Fix #3254: RET not invoking org-goto-ret in org-goto buffer
This commit is contained in:
parent
2407db0508
commit
8e34998433
1 changed files with 3 additions and 1 deletions
|
@ -167,7 +167,9 @@ If on a:
|
||||||
type (org-element-type context)))
|
type (org-element-type context)))
|
||||||
(pcase type
|
(pcase type
|
||||||
(`headline
|
(`headline
|
||||||
(cond ((and (fboundp 'toc-org-insert-toc)
|
(cond ((memq (bound-and-true-p org-goto-map) (current-active-maps))
|
||||||
|
(org-goto-ret))
|
||||||
|
((and (fboundp 'toc-org-insert-toc)
|
||||||
(member "TOC" (org-get-tags)))
|
(member "TOC" (org-get-tags)))
|
||||||
(toc-org-insert-toc)
|
(toc-org-insert-toc)
|
||||||
(message "Updating table of contents"))
|
(message "Updating table of contents"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue