emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/compat 999ef2a730 2/4: Raise an error if the realname w


From: ELPA Syncer
Subject: [elpa] externals/compat 999ef2a730 2/4: Raise an error if the realname would be the same as the name
Date: Tue, 30 Aug 2022 09:57:24 -0400 (EDT)

branch: externals/compat
commit 999ef2a730fb2d2a633c7a86c4e012fadc1b66cc
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    Raise an error if the realname would be the same as the name
---
 compat-macs.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/compat-macs.el b/compat-macs.el
index c6417c8379..cfd5d27600 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))



reply via email to

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