From: Richard M. Stallman Date: Wed, 12 Jul 2006 15:58:10 +0000 (+0000) Subject: (describe-variable): Handle find-variable-noselect returning no position. X-Git-Tag: emacs-pretest-22.0.90~1489 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=38586111b136a4d4b77cb8c9dc78a84ec7884144;p=emacs.git (describe-variable): Handle find-variable-noselect returning no position. --- 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)))))))