summaryrefslogtreecommitdiff
path: root/lisp/help-fns.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/help-fns.el')
-rw-r--r--lisp/help-fns.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 857157b75f7..d4146b19d60 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -540,7 +540,8 @@ it is displayed along with the global value."
(error nil))))
(when location
(with-current-buffer (car location)
- (goto-char (cdr location))
+ (when (cdr location)
+ (goto-char (cdr location)))
(when (re-search-backward
"^;;; Generated autoloads from \\(.*\\)" nil t)
(setq file-name (match-string 1)))))))