emacs-diffs
[Top][All Lists]
Advanced

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

scratch/bug-44858 60edb5d 5/6: Avoid warning about long docstring lines


From: Stefan Kangas
Subject: scratch/bug-44858 60edb5d 5/6: Avoid warning about long docstring lines in defcustom
Date: Fri, 24 Sep 2021 13:19:52 -0400 (EDT)

branch: scratch/bug-44858
commit 60edb5da34c2cdf1e156cbf48fe3d426894bcc99
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>

    Avoid warning about long docstring lines in defcustom
    
    * lisp/custom.el (defcustom): Avoid warning about long docstring
    lines.  This was caused by the value of the defcustom being treated as
    docstring due to it being wrapped in a lambda.
---
 lisp/custom.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/custom.el b/lisp/custom.el
index f392bd8..858b158 100644
--- a/lisp/custom.el
+++ b/lisp/custom.el
@@ -378,7 +378,7 @@ for more information."
          ;; expression is checked by the byte-compiler, and that
          ;; lexical-binding is obeyed, so quote the expression with
          ;; `lambda' rather than with `quote'.
-         ``(funcall #',(lambda () ,standard))
+         ``(funcall #',(lambda () "" ,standard))
        `',standard)
     ,doc
     ,@args))



reply via email to

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