branch: externals/compat
commit 12e36f7c08dc63324c7dc7bf62925de639d66d21
Author: Philip Kaludercic <phil...@posteo.net>
Commit: Philip Kaludercic <phil...@posteo.net>

    Check if actual name is fbound before binding a function or macro
---
 compat-macs.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compat-macs.el b/compat-macs.el
index 46ffa0c..ac093f5 100644
--- a/compat-macs.el
+++ b/compat-macs.el
@@ -159,7 +159,7 @@ attributes (see `compat-generate-common')."
      (lambda (realname)
        (cond
         ((memq type '(func macro))
-         `(fboundp ',realname))
+         `(fboundp ',name))
         ((eq type 'advice)
          ;; TODO: Improve the check if the advice already has been
          ;;       installed or still has to be added.

Reply via email to