mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-10 07:16:20 -04:00
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:
parent
1bf9eba5aa
commit
6f88b2377f
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue