changeset 71390:927d95604b99

(customize-option, customize-option-other-window): Error if SYMBOL is nil.
author Richard M. Stallman <rms@gnu.org>
date Mon, 19 Jun 2006 21:46:54 +0000
parents 926119f309e8
children baf495881cff
files lisp/cus-edit.el
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/cus-edit.el	Mon Jun 19 20:53:29 2006 +0000
+++ b/lisp/cus-edit.el	Mon Jun 19 21:46:54 2006 +0000
@@ -1055,6 +1055,8 @@
 (defun customize-option (symbol)
   "Customize SYMBOL, which must be a user option variable."
   (interactive (custom-variable-prompt))
+  (unless symbol
+    (error "No variable specified"))
   (let ((basevar (indirect-variable symbol)))
     (custom-buffer-create (list (list basevar 'custom-variable))
 			  (format "*Customize Option: %s*"
@@ -1070,6 +1072,8 @@
   "Customize SYMBOL, which must be a user option variable.
 Show the buffer in another window, but don't select it."
   (interactive (custom-variable-prompt))
+  (unless symbol
+    (error "No variable specified"))
   (let ((basevar (indirect-variable symbol)))
     (custom-buffer-create-other-window
      (list (list basevar 'custom-variable))