]> git.eshelyaron.com Git - emacs.git/commitdiff
(customize-option, customize-option-other-window): Error if SYMBOL is nil.
authorRichard M. Stallman <rms@gnu.org>
Mon, 19 Jun 2006 21:46:54 +0000 (21:46 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 19 Jun 2006 21:46:54 +0000 (21:46 +0000)
lisp/cus-edit.el

index e700cd47d1608af70f99ae0b94116a4765f7b8e6..53f92f2243b6af371260080d26ba45d8a39e1771 100644 (file)
@@ -1055,6 +1055,8 @@ then prompt for the MODE to customize."
 (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 @@ then prompt for the MODE to customize."
   "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))