branch: externals/denote
commit 833fa1a2107a9fed912ab6ee80d82de50d1bd63a
Author: Protesilaos Stavrou <i...@protesilaos.com>
Commit: Protesilaos Stavrou <i...@protesilaos.com>

    Make denote--path use signature only if present
    
    Thanks to Mirko Hernandez for informing me about this in issue 115 on
    the GitHub mirror: <https://github.com/protesilaos/denote/issues/115>.
---
 denote.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index ff27060b59..4625db6d8b 100644
--- a/denote.el
+++ b/denote.el
@@ -1407,7 +1407,8 @@ construct path to DIR."
    (denote-sluggify-keywords keywords)
    (denote-sluggify title)
    (denote--file-extension file-type)
-   (denote--slug-no-punct signature)))
+   (when signature
+     (denote--slug-no-punct signature))))
 
 ;; Adapted from `org-hugo--org-date-time-to-rfc3339' in the `ox-hugo'
 ;; package: <https://github.com/kaushalmodi/ox-hugo>.

Reply via email to