From 38586111b136a4d4b77cb8c9dc78a84ec7884144 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 12 Jul 2006 15:58:10 +0000 Subject: [PATCH] (describe-variable): Handle find-variable-noselect returning no position. --- lisp/help-fns.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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))))))) -- 2.39.2