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

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

[elpa] externals/compat 2bb6c10 91/99: Check if function is bound before


From: ELPA Syncer
Subject: [elpa] externals/compat 2bb6c10 91/99: Check if function is bound before extracting documentation
Date: Sun, 17 Oct 2021 05:58:03 -0400 (EDT)

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

    Check if function is bound before extracting documentation
---
 compat-macs.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compat-macs.el b/compat-macs.el
index 3f710d2..41dc3da 100644
--- a/compat-macs.el
+++ b/compat-macs.el
@@ -169,7 +169,7 @@ attributes (see `compat-generate-common')."
                   (lambda (&rest args)
                     ,(format
                       "[Manual compatibility advice for `%S', defined in Emacs 
%s]\n\n%s"
-                      name version (documentation name))
+                      name version (if (fboundp name) (documentation name) 
docstring))
                     (apply #',realname (cons (autoload-do-load ,oldfun) 
args))))))))))
      (lambda ()
        (cond



reply via email to

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