branch: externals/denote
commit 9e638cc72f5f52ec8babbb12cd67e9e54d140904
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    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>.
---
 denote.el | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/denote.el b/denote.el
index f6d14df4c7..36d0ed8174 100644
--- a/denote.el
+++ b/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

Reply via email to