diff options
author | Richard M. Stallman <rms@gnu.org> | 2006-07-12 15:58:10 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2006-07-12 15:58:10 +0000 |
commit | 38586111b136a4d4b77cb8c9dc78a84ec7884144 (patch) | |
tree | 847b5053a530323c888009000fa048578e9df1a5 /lisp/help-fns.el | |
parent | e1cac5702da02e7c856d6d14a043e1b6554ce585 (diff) | |
download | emacs-38586111b136a4d4b77cb8c9dc78a84ec7884144.tar.gz |
(describe-variable): Handle find-variable-noselect returning no position.
Diffstat (limited to 'lisp/help-fns.el')
-rw-r--r-- | lisp/help-fns.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el index 69555feb170..53e280fd1a7 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el @@ -534,7 +534,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))))))) |