[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/helm 09adee900c 2/3: Prevent error in helm-get-first-line-
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/helm 09adee900c 2/3: Prevent error in helm-get-first-line-documentation if NAME is not specified |
Date: |
Tue, 3 May 2022 02:58:36 -0400 (EDT) |
branch: elpa/helm
commit 09adee900c7d089ae0b93b260322c4192f81741f
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>
Prevent error in helm-get-first-line-documentation if NAME is not specified
---
helm-elisp.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/helm-elisp.el b/helm-elisp.el
index 95d773aa95..1f82a20fcb 100644
--- a/helm-elisp.el
+++ b/helm-elisp.el
@@ -406,7 +406,9 @@ the same time to variable and a function."
collect (cons (concat c spaces annot) c) into lst
finally return (sort lst #'helm-generic-sort-fn)))
-(cl-defun helm-get-first-line-documentation (sym &optional name (end-column
72))
+(cl-defun helm-get-first-line-documentation (sym &optional
+ (name "describe-function")
+ (end-column 72))
"Return first line documentation of symbol SYM truncated at END-COLUMN.
If SYM is not documented, return \"Not documented\".
Argument NAME allows specifiying what function to use to display