mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-02-06 20:49:33 +00:00
(customize-option, customize-option-other-window): Error if SYMBOL is nil.
This commit is contained in:
parent
2aa8102725
commit
161c71277e
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user