changeset 71849:2227a7e3b7eb

(describe-variable): Handle find-variable-noselect returning no position.
author Richard M. Stallman <rms@gnu.org>
date Wed, 12 Jul 2006 15:58:10 +0000
parents 067fc0d0be7e
children 5da49f1eb585
files lisp/help-fns.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/help-fns.el	Wed Jul 12 15:57:07 2006 +0000
+++ b/lisp/help-fns.el	Wed Jul 12 15:58:10 2006 +0000
@@ -534,7 +534,8 @@
 			 (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)))))))