[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 535eec3bca: Don't bug out in advice--make-docstring when there's
From: |
Lars Ingebrigtsen |
Subject: |
master 535eec3bca: Don't bug out in advice--make-docstring when there's not doc string |
Date: |
Tue, 4 Oct 2022 06:50:23 -0400 (EDT) |
branch: master
commit 535eec3bca36b84b104a4041f7bcdd5b1649a94b
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Don't bug out in advice--make-docstring when there's not doc string
* lisp/emacs-lisp/nadvice.el (advice--make-docstring): Don't bug
out on functions with no documentation (bug#58284).
---
lisp/emacs-lisp/nadvice.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/emacs-lisp/nadvice.el b/lisp/emacs-lisp/nadvice.el
index b4acd423b8..429052bfdf 100644
--- a/lisp/emacs-lisp/nadvice.el
+++ b/lisp/emacs-lisp/nadvice.el
@@ -157,7 +157,8 @@ DOC is a string where \"FUNCTION\" and \"OLDFUN\" are
expected.")
(when before
(insert before)
(ensure-empty-lines 1))
- (insert origdoc)
+ (when origdoc
+ (insert origdoc))
(when after
(ensure-empty-lines 1)
(insert after))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 535eec3bca: Don't bug out in advice--make-docstring when there's not doc string,
Lars Ingebrigtsen <=