Skip to content

Commit

Permalink
support jedi:goto-definition from within dedicated src-block buffers …
Browse files Browse the repository at this point in the history
…in org-babel
  • Loading branch information
methuselah-0 committed Oct 22, 2020
1 parent 9d5f291 commit 2bc1055
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jedi-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,10 @@ See also: `jedi:server-args'."
(defun jedi:-buffer-file-name ()
"Return `buffer-file-name' without text properties.
See: https://github.com/tkf/emacs-jedi/issues/54"
(substring-no-properties (or (buffer-file-name) "")))
(substring-no-properties (or (if (string-match "\*Org Src" (buffer-name (current-buffer)))
(buffer-file-name (org-src-source-buffer))
(buffer-file-name))
"")))

(defun jedi:call-deferred (method-name)
"Call ``Script(...).METHOD-NAME`` and return a deferred object."
Expand Down

0 comments on commit 2bc1055

Please sign in to comment.