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

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

[elpa] externals/denote d73ef5c215 1/2: Make denote--file-type-org-extra


From: ELPA Syncer
Subject: [elpa] externals/denote d73ef5c215 1/2: Make denote--file-type-org-extra-p not assume full buffer name
Date: Wed, 17 Jul 2024 15:57:47 -0400 (EDT)

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

    Make denote--file-type-org-extra-p not assume full buffer name
    
    This way it works even when the buffer is renamed via the
    'denote-rename-buffer-mode'. Thanks to skissue for reporting the
    problem and discussing it with me. This was done in issue 393:
    <https://github.com/protesilaos/denote/issues/393>.
---
 README.org | 2 +-
 denote.el  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.org b/README.org
index 5dfd3ebd30..78e3af40a3 100644
--- a/README.org
+++ b/README.org
@@ -5794,7 +5794,7 @@ Denote is meant to be a collective effort.  Every bit of 
help matters.
   Vick (VicZz), Viktor Haag, Wade Mealing, Yi Liu, Ypot, atanasj,
   azegas, babusri, doolio, duli, drcxd, elge70, fingerknight,
   hpgisler, mentalisttraceur, pRot0ta1p, rbenit68, relict007, sienic,
-  sundar bp, yetanotherfossman, zadca123
+  skissue, sundar bp, yetanotherfossman, zadca123
 
 Special thanks to Peter Povinec who helped refine the file-naming
 scheme, which is the cornerstone of this project.
diff --git a/denote.el b/denote.el
index 6117144004..754a01a4b3 100644
--- a/denote.el
+++ b/denote.el
@@ -2632,7 +2632,7 @@ See the format of `denote-file-types'."
   "Return non-nil if this is an `org-capture' or Org Note buffer."
   (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 "\\`CAPTURE-.*" (buffer-name)))
            (string-match-p "\\`\\*Org Note\\*" (buffer-name)))))
 
 (defun denote-filetype-heuristics (file)



reply via email to

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