Commit 38d58078 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(customize-option): Renamed from custom-variable.

(customize-variable): Add it as an alias.
(customize-option-other-window):
Renamed from customize-variable-other-window.
(custom-load-symbol): Search for both short and absolute
names of the library, when avoiding duplicate loading.
parent 5b5cdd97
...@@ -740,22 +740,24 @@ are shown; the contents of those subgroups are initially hidden." ...@@ -740,22 +740,24 @@ are shown; the contents of those subgroups are initially hidden."
(list (list symbol 'custom-group)) (list (list symbol 'custom-group))
(format "*Customize Group: %s*" (custom-unlispify-tag-name symbol)))) (format "*Customize Group: %s*" (custom-unlispify-tag-name symbol))))
;;;### (defalias 'customize-variable 'customize-option)
;;;###autoload ;;;###autoload
(defun customize-variable (symbol) (defun customize-option (symbol)
"Customize SYMBOL, which must be a variable." "Customize SYMBOL, which must be a user option variable."
(interactive (custom-variable-prompt)) (interactive (custom-variable-prompt))
(custom-buffer-create (list (list symbol 'custom-variable)) (custom-buffer-create (list (list symbol 'custom-variable))
(format "*Customize Variable: %s*" (format "*Customize Option: %s*"
(custom-unlispify-tag-name symbol)))) (custom-unlispify-tag-name symbol))))
;;;###autoload ;;;###autoload
(defun customize-variable-other-window (symbol) (defun customize-option-other-window (symbol)
"Customize SYMBOL, which must be a variable. "Customize SYMBOL, which must be a user option variable.
Show the buffer in another window, but don't select it." Show the buffer in another window, but don't select it."
(interactive (custom-variable-prompt)) (interactive (custom-variable-prompt))
(custom-buffer-create-other-window (custom-buffer-create-other-window
(list (list symbol 'custom-variable)) (list (list symbol 'custom-variable))
(format "*Customize Variable: %s*" (custom-unlispify-tag-name symbol)))) (format "*Customize Option: %s*" (custom-unlispify-tag-name symbol))))
;;;###autoload ;;;###autoload
(defun customize-face (&optional symbol) (defun customize-face (&optional symbol)
...@@ -1331,6 +1333,7 @@ Change the state of this item." ...@@ -1331,6 +1333,7 @@ Change the state of this item."
(require load) (require load)
(error nil))) (error nil)))
;; Don't reload a file already loaded. ;; Don't reload a file already loaded.
((assoc load load-history))
((assoc (locate-library load) load-history)) ((assoc (locate-library load) load-history))
(t (t
(condition-case nil (condition-case nil
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment