mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-10 07:16:20 -04:00
Tweak denote-org-extras--get-outline to only ever get useful regexp for the outline
This commit is contained in:
parent
d6e94118da
commit
392f6ebe77
|
|
@ -36,7 +36,7 @@
|
|||
(defun denote-org-extras--get-outline (file)
|
||||
"Return `outline-regexp' headings and line numbers of FILE."
|
||||
(with-current-buffer (find-file-noselect file)
|
||||
(let ((outline-regexp (format "^\\(?:%s\\)" (or (bound-and-true-p outline-regexp) "[*\^L]+")))
|
||||
(let ((outline-regexp (format "^\\(?:%s\\)" (or (bound-and-true-p outline-regexp) "\\*+ ")))
|
||||
candidates)
|
||||
(save-excursion
|
||||
(goto-char (point-min))
|
||||
|
|
|
|||
Loading…
Reference in a new issue