# HG changeset patch # User Richard M. Stallman # Date 1152719890 0 # Node ID 2227a7e3b7ebb6c2ffe95db2cde07c566262b4d4 # Parent 067fc0d0be7e7235de3ada7aec15cc6c50608718 (describe-variable): Handle find-variable-noselect returning no position. diff -r 067fc0d0be7e -r 2227a7e3b7eb lisp/help-fns.el --- 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)))))))