Skip to content

Commit

Permalink
* elisp-demos.el: Silence byte compiler warning on org-show-entry
Browse files Browse the repository at this point in the history
  • Loading branch information
xuchunyang committed Jan 18, 2024
1 parent 7479865 commit cdde3c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion elisp-demos.el
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ If set, new notes are added to the first file in this list."
(let ((pos (org-find-exact-headline-in-buffer (symbol-name symbol))))
(when pos
(goto-char pos)
(org-show-entry)
(funcall (if (fboundp 'org-fold-show-entry)
'org-fold-show-entry
'org-show-entry))
(if (fboundp 'pop-to-buffer-same-window)
(pop-to-buffer-same-window (current-buffer))
(pop-to-buffer (current-buffer)))
Expand Down

0 comments on commit cdde3c4

Please sign in to comment.