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