aboutsummaryrefslogtreecommitdiff
path: root/compat-macs.el
diff options
context:
space:
mode:
authorPhilip Kaludercic <philipk@posteo.net>2022-08-30 15:36:07 +0200
committerPhilip Kaludercic <philipk@posteo.net>2022-08-30 15:36:07 +0200
commit999ef2a730fb2d2a633c7a86c4e012fadc1b66cc (patch)
treea0e5a795919b40e62ad3ab2ba5417eccc04ef262 /compat-macs.el
parent948535b0c758da5f00b3bc18af205c3ef933630a (diff)
Raise an error if the realname would be the same as the name
Diffstat (limited to 'compat-macs.el')
-rw-r--r--compat-macs.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/compat-macs.el b/compat-macs.el
index c6417c8..cfd5d27 100644
--- a/compat-macs.el
+++ b/compat-macs.el
@@ -119,6 +119,8 @@ DEF-FN, INSTALL-FN, CHECK-FN, ATTR and TYPE."
'(compat--ignore))
(`(when (and ,(if cond cond t)
,(funcall check-fn)))))))
+ (when (eq name realname)
+ (error "%S: Name is equal to realname" name))
(cond
((and (plist-get attr :prefix) (memq type '(func macro))
(string-match "\\`compat-\\(.+\\)\\'" (symbol-name name))