# HG changeset patch # User Richard M. Stallman # Date 1150753614 0 # Node ID 927d95604b994723da162edac9375bb980525365 # Parent 926119f309e8e7c81a4fabc042c66c6edbcc3a74 (customize-option, customize-option-other-window): Error if SYMBOL is nil. diff -r 926119f309e8 -r 927d95604b99 lisp/cus-edit.el --- 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))