# HG changeset patch # User Luc Teirlinck # Date 1120778383 0 # Node ID 292d83423c40d5c8ba53ca73b023f58ec6e2a723 # Parent 50ac59c8d9bd075682e204616137bdf55ee67b04 (customize-option, customize-option-other-window): Make them handle aliases. diff -r 50ac59c8d9bd -r 292d83423c40 lisp/cus-edit.el --- a/lisp/cus-edit.el Thu Jul 07 23:18:26 2005 +0000 +++ b/lisp/cus-edit.el Thu Jul 07 23:19:43 2005 +0000 @@ -1021,9 +1021,12 @@ (defun customize-option (symbol) "Customize SYMBOL, which must be a user option variable." (interactive (custom-variable-prompt)) - (custom-buffer-create (list (list symbol 'custom-variable)) - (format "*Customize Option: %s*" - (custom-unlispify-tag-name symbol)))) + (let ((basevar (indirect-variable symbol))) + (custom-buffer-create (list (list basevar 'custom-variable)) + (format "*Customize Option: %s*" + (custom-unlispify-tag-name basevar))) + (unless (eq symbol basevar) + (message "`%s' is an alias for `%s'" symbol basevar)))) ;;;###autoload (defalias 'customize-variable-other-window 'customize-option-other-window) @@ -1033,9 +1036,12 @@ "Customize SYMBOL, which must be a user option variable. Show the buffer in another window, but don't select it." (interactive (custom-variable-prompt)) - (custom-buffer-create-other-window - (list (list symbol 'custom-variable)) - (format "*Customize Option: %s*" (custom-unlispify-tag-name symbol)))) + (let ((basevar (indirect-variable symbol))) + (custom-buffer-create-other-window + (list (list basevar 'custom-variable)) + (format "*Customize Option: %s*" (custom-unlispify-tag-name basevar))) + (unless (eq symbol basevar) + (message "`%s' is an alias for `%s'" symbol basevar)))) (defvar customize-changed-options-previous-release "20.2" "Version for `customize-changed-options' to refer back to by default.")