Skip to content

Commit

Permalink
Org: remove call to org-internal function
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Andre committed Feb 7, 2022
1 parent 7cb85a8 commit 3e09990
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions dumb-jump.el
Original file line number Diff line number Diff line change
Expand Up @@ -2079,15 +2079,10 @@ to keep looking for another root."
; src edit buffer ? org-edit-src-exit
(if (and (fboundp 'org-src-edit-buffer-p)
(org-src-edit-buffer-p))
;; set the composite language
(let* ((beg org-src--beg-marker)
(source-buffer (marker-buffer beg)))
(with-current-buffer source-buffer
(setq language (dumb-jump-get-language-in-org)))
;; save+exit the sub-editing buffer and search in project
(org-edit-src-exit))
(if (string= language "org")
(setq language (dumb-jump-get-language-in-org))))
(progn (setq language "org")
(org-edit-src-exit)))
(if (string= language "org")
(setq language (dumb-jump-get-language-in-org)))
(if (member language (-distinct
(--map (plist-get it :language)
dumb-jump-find-rules)))
Expand Down

0 comments on commit 3e09990

Please sign in to comment.