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

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

[nongnu] elpa/paredit 17852a0 019/224: Call `comment-forward' as a symbo


From: ELPA Syncer
Subject: [nongnu] elpa/paredit 17852a0 019/224: Call `comment-forward' as a symbol with `funcall'.
Date: Sat, 7 Aug 2021 09:22:09 -0400 (EDT)

branch: elpa/paredit
commit 17852a0d897493bb493a67b3f36350ebb96e7d97
Author: Taylor R Campbell <campbell@mumble.net>
Commit: Taylor R Campbell <campbell@mumble.net>

    Call `comment-forward' as a symbol with `funcall'.
    
    This suppresses the compiler's warning about a function not known to
    be defined.
    
    darcs-hash:20080928135222-00fcc-5f4d902e13be97833fd28c5e611147c577ec1c41
---
 paredit.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/paredit.el b/paredit.el
index 4e10d52..724f4df 100644
--- a/paredit.el
+++ b/paredit.el
@@ -1027,7 +1027,10 @@ At the top level, where indentation is calculated to be 
at column 0,
         (lambda (beginning end &optional argument)
          (interactive "*r\nP")
          (funcall (if (save-excursion (goto-char beginning)
-                                      (comment-forward (point-max))
+                                      ;; This is not defined until `newcomment'
+                                      ;; is loaded.  Using `funcall' with a
+                                      ;; symbol shuts up the compiler.
+                                      (funcall 'comment-forward (point-max))
                                       (<= end (point)))
                       'uncomment-region
                       'comment-region)



reply via email to

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