changeset 4701:684f0ed6cd4f

Behave better when #'variable-at-point gives nil, #'custom-variable-prompt. lisp/ChangeLog addition: 2009-09-27 Aidan Kehoe <kehoea@parhasard.net> * cus-edit.el (custom-variable-prompt): nil is a symbol, check that variable-at-point is non-nil before checking if it's a symbol when deciding on the prompt used in this function.
author Aidan Kehoe <kehoea@parhasard.net>
date Sun, 27 Sep 2009 20:37:44 +0100
parents ef70ee47d287
children eb1a409c317b
files lisp/ChangeLog lisp/cus-edit.el
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri Sep 25 01:10:49 2009 +0900
+++ b/lisp/ChangeLog	Sun Sep 27 20:37:44 2009 +0100
@@ -1,3 +1,10 @@
+2009-09-27  Aidan Kehoe  <kehoea@parhasard.net>
+
+	* cus-edit.el (custom-variable-prompt): 
+	nil is a symbol, check that variable-at-point is non-nil before
+	checking if it's a symbol when deciding on the prompt used in this
+	function. 
+
 2009-09-22  Andreas Roehler  <andreas.roehler@online.de>
 
 	* lisp.el (beginning-of-defun-raw):
--- a/lisp/cus-edit.el	Fri Sep 25 01:10:49 2009 +0900
+++ b/lisp/cus-edit.el	Sun Sep 27 20:37:44 2009 +0100
@@ -300,7 +300,7 @@
 	 (enable-recursive-minibuffers t)
 	 val)
      (setq val (completing-read
-		(if (symbolp v)
+		(if (and v (symbolp v))
 		    (format "Customize variable: (default %s) " v)
 		  "Customize variable: ")
 		obarray (lambda (symbol)