# HG changeset patch # User Juri Linkov # Date 1131992892 0 # Node ID b148d2fdff126b8d5fa28a279b91eb42c83520ae # Parent 5efe1788a37caaa49ba4fc372ed57ee24a49cad5 (custom-variable-prompt): Set the default value arg of completing-read. diff -r 5efe1788a37c -r b148d2fdff12 lisp/cus-edit.el --- a/lisp/cus-edit.el Mon Nov 14 16:20:34 2005 +0000 +++ b/lisp/cus-edit.el Mon Nov 14 18:28:12 2005 +0000 @@ -493,11 +493,12 @@ (let ((v (variable-at-point)) (enable-recursive-minibuffers t) val) - (setq val (completing-read - (if (and (symbolp v) (custom-variable-p v)) - (format "Customize option (default %s): " v) - "Customize option: ") - obarray 'custom-variable-p t)) + (setq val (if (and (symbolp v) (custom-variable-p v)) + (completing-read + (format "Customize option (default %s): " v) obarray + 'custom-variable-p t nil nil (symbol-name v)) + (completing-read "Customize option: " obarray + 'custom-variable-p t))) (list (if (equal val "") (if (symbolp v) v nil) (intern val)))))