emacs-diffs
[Top][All Lists]
Advanced

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

master da635838f2: Make two compat aliases obsolete in cc-defs.el


From: Stefan Kangas
Subject: master da635838f2: Make two compat aliases obsolete in cc-defs.el
Date: Fri, 19 Aug 2022 12:15:35 -0400 (EDT)

branch: master
commit da635838f25eddc5df041ece31b527828d49abcc
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    Make two compat aliases obsolete in cc-defs.el
    
    * lisp/progmodes/cc-defs.el (c-regexp-opt, c-regexp-opt-depth):
    Make compat alias obsolete.
---
 lisp/progmodes/cc-defs.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/progmodes/cc-defs.el b/lisp/progmodes/cc-defs.el
index 48ae4368a7..f867625480 100644
--- a/lisp/progmodes/cc-defs.el
+++ b/lisp/progmodes/cc-defs.el
@@ -2071,8 +2071,8 @@ non-nil, a caret is prepended to invert the set."
     str))
 
 ;; Leftovers from (X)Emacs 19 compatibility.
-(defalias 'c-regexp-opt 'regexp-opt)
-(defalias 'c-regexp-opt-depth 'regexp-opt-depth)
+(define-obsolete-function-alias 'c-regexp-opt #'regexp-opt "29.1")
+(define-obsolete-function-alias 'c-regexp-opt-depth #'regexp-opt-depth "29.1")
 
 
 ;; Figure out what features this Emacs has



reply via email to

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