]> git.eshelyaron.com Git - emacs.git/commitdiff
(describe-variable): Handle find-variable-noselect returning no position.
authorRichard M. Stallman <rms@gnu.org>
Wed, 12 Jul 2006 15:58:10 +0000 (15:58 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 12 Jul 2006 15:58:10 +0000 (15:58 +0000)
lisp/help-fns.el

index 69555feb170108e3942ae81cf16d381dd692be00..53e280fd1a78fdb07600e0ece07b34a19614336e 100644 (file)
@@ -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)))))))