branch: externals/denote commit 4651362642d813d7747ad0b286a59beff1139016 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Make denote--file-type-org-extra-p handle cases like org-tree-to-indirect-buffer Now we can add Denote links in those buffers as well. Whereas before it would not work, as Denote would not recognise the file type. Thanks to coherentstate for bringing this matter to my attention in issue 418: <https://github.com/protesilaos/denote/issues/418>. --- README.org | 2 +- denote.el | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index 43364719af..e302a08a4e 100644 --- a/README.org +++ b/README.org @@ -6195,7 +6195,7 @@ Denote is meant to be a collective effort. Every bit of help matters. Samuel W. Flint, Suhail Singh, Shreyas Ragavan, Stefan Thesing, Summer Emacs, Sven Seebeck, Taoufik, TJ Stankus, Vick (VicZz), Viktor Haag, Wade Mealing, Yi Liu, Ypot, atanasj, azegas, babusri, - doolio, duli, drcxd, elge70, fingerknight, hpgisler, + coherentstate, doolio, duli, drcxd, elge70, fingerknight, hpgisler, mentalisttraceur, pRot0ta1p, rbenit68, relict007, sienic, skissue, sundar bp, yetanotherfossman, zadca123 diff --git a/denote.el b/denote.el index 3cf331feed..c01d22db34 100644 --- a/denote.el +++ b/denote.el @@ -2670,7 +2670,8 @@ See the format of `denote-file-types'." (and (derived-mode-p 'org-mode) (or (and (bound-and-true-p org-capture-mode) (string-match-p "\\`CAPTURE-.*" (buffer-name))) - (string-match-p "\\`\\*Org Note\\*" (buffer-name))))) + (string-match-p "\\`\\*Org Note\\*" (buffer-name)) + (null buffer-file-name)))) (defun denote-filetype-heuristics (file) "Return likely file type of FILE.