]> git.eshelyaron.com Git - emacs.git/commitdiff
Make two compat aliases obsolete in cc-defs.el
authorStefan Kangas <stefankangas@gmail.com>
Fri, 19 Aug 2022 16:14:12 +0000 (18:14 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Fri, 19 Aug 2022 16:14:41 +0000 (18:14 +0200)
* lisp/progmodes/cc-defs.el (c-regexp-opt, c-regexp-opt-depth):
Make compat alias obsolete.

lisp/progmodes/cc-defs.el

index 48ae4368a7c46ac7ae89c4a3f496d3bded920953..f867625480c4121dd99a814b588a5b9ed816dd49 100644 (file)
@@ -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")
 
 \f
 ;; Figure out what features this Emacs has