Fix #3254: RET not invoking org-goto-ret in org-goto buffer

This commit is contained in:
Henrik Lissner 2020-05-31 20:47:46 -04:00
parent 2407db0508
commit 8e34998433
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -167,7 +167,9 @@ If on a:
type (org-element-type context)))
(pcase type
(`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)))
(toc-org-insert-toc)
(message "Updating table of contents"))