Use 'define-obsolete-variable-alias' instead of 'make-obsolete-variable' for two that are still used

Thanks to Matthias Fuchs for informing me about a package that
depended on the old symbols. This was done in issue 640:
<https://github.com/protesilaos/denote/issues/640>.
This commit is contained in:
Protesilaos Stavrou 2025-10-18 07:56:57 +03:00
parent ff373d18e4
commit 9e638cc72f
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -915,10 +915,20 @@ If the region is active, its text is used as the link's description."
;; For character classes, evaluate: (info "(elisp) Char Classes")
(define-obsolete-variable-alias
'denote-id-format
'denote-date-identifier-format
"4.1.0")
(defconst denote-date-identifier-format "%Y%m%dT%H%M%S"
"Format of ID prefix of a note's filename.
The note's ID is derived from the date and time of its creation.")
(define-obsolete-variable-alias
'denote-id-regexp
'denote-date-identifier-regexp
"4.1.0")
(defconst denote-date-identifier-regexp "\\([0-9]\\{8\\}\\)\\(T[0-9]\\{6\\}\\)"
"Regular expression to match `denote-date-identifier-format'.")
@ -934,16 +944,6 @@ The note's ID is derived from the date and time of its creation.")
(defconst denote-keywords-regexp "__\\([^.]*?\\)\\(==.*\\|--.*\\|__.*\\|@@.*\\|\\..*\\)*$"
"Regular expression to match the KEYWORDS field in a file name.")
(make-obsolete-variable
'denote-id-format
'denote-date-identifier-format
"4.1.0")
(make-obsolete-variable
'denote-id-regexp
'denote-date-identifier-regexp
"4.1.0")
(make-obsolete-variable
'denote-excluded-punctuation-extra-regexp
'denote-file-name-slug-functions