emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 8854b321c2 3/3: Make ad-version variable obsolete


From: Stefan Kangas
Subject: master 8854b321c2 3/3: Make ad-version variable obsolete
Date: Thu, 11 Aug 2022 11:41:35 -0400 (EDT)

branch: master
commit 8854b321c2cf6132d7de43682c8ea26dd436c9d4
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>

    Make ad-version variable obsolete
    
    * lisp/emacs-lisp/advice.el (ad-version): Make obsolete in favor
    of emacs-version.  It has not been bumped since 1994.
---
 lisp/emacs-lisp/advice.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/emacs-lisp/advice.el b/lisp/emacs-lisp/advice.el
index 2a2bcca700..391743d715 100644
--- a/lisp/emacs-lisp/advice.el
+++ b/lisp/emacs-lisp/advice.el
@@ -1580,8 +1580,6 @@
   :link '(custom-manual "(elisp)Advising Functions")
   :group 'lisp)
 
-(defconst ad-version "2.14")
-
 ;;;###autoload
 (defcustom ad-redefinition-action 'warn
   "Defines what to do with redefinitions during Advice de/activation.
@@ -3250,6 +3248,9 @@ Use only in REAL emergencies."
     (message "Oops! Left over advised function %S" function)
     (ad-pop-advised-function function)))
 
+(defconst ad-version "2.14")
+(make-obsolete-variable 'ad-version 'emacs-version "29.1")
+
 (provide 'advice)
 
 ;;; advice.el ends here



reply via email to

[Prev in Thread] Current Thread [Next in Thread]