Add an obsolete alias for denote-slug-hyphenate

In principle, we should not be doing this for private symbols, but it
helps with transitioning old code to the new normal. We have had this
practice for a long time now (and I eventually remove those warnings a
few releases afterwards).

Thanks to bdillahu for reporting the issue with some sample code in
the manual and to Jean-Philippe Gagné Guay for confirming the problem.
This was done in issue 538: <https://github.com/protesilaos/denote/issues/538>.
This commit is contained in:
Protesilaos Stavrou 2025-01-27 09:25:44 +02:00
parent 1bf9eba5aa
commit 6f88b2377f
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -1051,6 +1051,11 @@ This is useful as a helper function to construct
(characters (seq-filter #'characterp ascii-range)))
(mapconcat #'string characters)))
(define-obsolete-function-alias
'denote--slug-hyphenate
'denote-slug-hyphenate
"3.2.0")
(defun denote-slug-hyphenate (str)
"Replace spaces and underscores with hyphens in STR.
Also replace multiple hyphens with a single one and remove any