Mercurial > hg > xemacs-beta
diff lisp/cus-edit.el @ 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 | 877ad4697eea |
children | 17f7e9191c0b |
line wrap: on
line diff
--- 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)