branch: elpa/helm
commit 09adee900c7d089ae0b93b260322c4192f81741f
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>
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