emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote fa5530e39d 19/19: Tweak denote--file-type-org-ex


From: ELPA Syncer
Subject: [elpa] externals/denote fa5530e39d 19/19: Tweak denote--file-type-org-extra-p
Date: Sat, 13 Apr 2024 03:57:45 -0400 (EDT)

branch: externals/denote
commit fa5530e39db2c7d5e1287c21897ab5cf7762f54f
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Tweak denote--file-type-org-extra-p
---
 denote.el | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/denote.el b/denote.el
index ed9f57ac40..81e5d35811 100644
--- a/denote.el
+++ b/denote.el
@@ -2496,12 +2496,10 @@ See the format of `denote-file-types'."
 
 (defun denote--file-type-org-extra-p ()
   "Return non-nil if this is an `org-capture' or Org Note buffer."
-  (or
-   (and (bound-and-true-p org-capture-mode)
-        (derived-mode-p 'org-mode)
-        (string-match-p "\\`CAPTURE.*\\.org" (buffer-name)))
-   (and (derived-mode-p 'org-mode)
-        (string-match-p "\\`\\*Org Note\\*" (buffer-name)))))
+  (and (derived-mode-p 'org-mode)
+       (or (and (bound-and-true-p org-capture-mode)
+                (string-match-p "\\`CAPTURE.*\\.org" (buffer-name)))
+           (string-match-p "\\`\\*Org Note\\*" (buffer-name)))))
 
 (defun denote-filetype-heuristics (file)
   "Return likely file type of FILE.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]