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

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

[elpa] externals/denote 2c377d4af8 3/8: Clarify 'denote--slug-no-punct'


From: ELPA Syncer
Subject: [elpa] externals/denote 2c377d4af8 3/8: Clarify 'denote--slug-no-punct' doc string
Date: Mon, 22 May 2023 15:57:59 -0400 (EDT)

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

    Clarify 'denote--slug-no-punct' doc string
---
 denote.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index e4b560e0d3..d8e550d978 100644
--- a/denote.el
+++ b/denote.el
@@ -538,7 +538,10 @@ things accordingly.")
     (file-name-as-directory (expand-file-name path))))
 
 (defun denote--slug-no-punct (str)
-  "Convert STR to a file name slug."
+  "Remove punctuation from STR.
+Concretely, replace with spaces anything that matches the
+`denote-excluded-punctuation-regexp' and
+`denote-excluded-punctuation-extra-regexp'."
   (replace-regexp-in-string
    (concat denote-excluded-punctuation-regexp
            denote-excluded-punctuation-extra-regexp)



reply via email to

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