summaryrefslogtreecommitdiff
path: root/lisp/progmodes/cc-defs.el
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2022-08-19 18:14:12 +0200
committerStefan Kangas <stefankangas@gmail.com>2022-08-19 18:14:41 +0200
commitda635838f25eddc5df041ece31b527828d49abcc (patch)
tree414ed97bb9d63fb291493c03889f8ef203a1ad25 /lisp/progmodes/cc-defs.el
parentb7d6ebff078cece09c3e7a84c34ea4fe65e65917 (diff)
downloademacs-da635838f25eddc5df041ece31b527828d49abcc.tar.gz
emacs-da635838f25eddc5df041ece31b527828d49abcc.tar.bz2
emacs-da635838f25eddc5df041ece31b527828d49abcc.zip
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.
Diffstat (limited to 'lisp/progmodes/cc-defs.el')
-rw-r--r--lisp/progmodes/cc-defs.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/cc-defs.el b/lisp/progmodes/cc-defs.el
index 48ae4368a7c..f867625480c 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