From 161c71277e2a6d894989fd72e6381c76f46d9760 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 19 Jun 2006 21:46:54 +0000 Subject: [PATCH] (customize-option, customize-option-other-window): Error if SYMBOL is nil. --- lisp/cus-edit.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index e700cd47d16..53f92f2243b 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el @@ -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)) -- 2.39.5