aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Rost2002-12-26 22:15:38 +0000
committerMarkus Rost2002-12-26 22:15:38 +0000
commitffec8c5a3d3ed9bef34bf0b9b7fdbe6f06d6ae7f (patch)
tree35d87d198fefa56c60e79762cc0d78badbb3ba8c
parentabc6be8d89ad01d19f7163bf77a517275db87779 (diff)
downloademacs-ffec8c5a3d3ed9bef34bf0b9b7fdbe6f06d6ae7f.tar.gz
emacs-ffec8c5a3d3ed9bef34bf0b9b7fdbe6f06d6ae7f.zip
(customize-group-other-window): Use pop-to-buffer in
the same way as `custom-buffer-create-other-window'. (customize-variable-other-window, customize-option-other-window): Definitions moved up.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/cus-edit.el32
2 files changed, 26 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index fc2fd27ede9..d3d113d4919 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12002-12-26 Markus Rost <rost@math.ohio-state.edu>
2
3 * cus-edit.el (customize-group-other-window): Use pop-to-buffer in
4 the same way as `custom-buffer-create-other-window'.
5 (customize-variable-other-window, customize-option-other-window):
6 Definitions moved up.
7
12002-12-26 Kai Gro,A_(Bjohann <kai.grossjohann@uni-duisburg.de> 82002-12-26 Kai Gro,A_(Bjohann <kai.grossjohann@uni-duisburg.de>
2 9
3 * net/tramp*.el: Sync with upstream version 2.0.28. Bugfixes. 10 * net/tramp*.el: Sync with upstream version 2.0.28. Bugfixes.
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index 63901cc7a8c..d2321f48a68 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -908,7 +908,13 @@ then prompt for the MODE to customize."
908 (let ((name (format "*Customize Group: %s*" 908 (let ((name (format "*Customize Group: %s*"
909 (custom-unlispify-tag-name group)))) 909 (custom-unlispify-tag-name group))))
910 (if (get-buffer name) 910 (if (get-buffer name)
911 (let ((window (selected-window))) 911 (let ((window (selected-window))
912 ;; Copied from `custom-buffer-create-other-window'.
913 (pop-up-windows t)
914 (special-display-buffer-names nil)
915 (special-display-regexps nil)
916 (same-window-buffer-names nil)
917 (same-window-regexps nil))
912 (pop-to-buffer name) 918 (pop-to-buffer name)
913 (select-window window)) 919 (select-window window))
914 (custom-buffer-create-other-window 920 (custom-buffer-create-other-window
@@ -950,6 +956,18 @@ then prompt for the MODE to customize."
950 (format "*Customize Option: %s*" 956 (format "*Customize Option: %s*"
951 (custom-unlispify-tag-name symbol)))) 957 (custom-unlispify-tag-name symbol))))
952 958
959;;;###autoload
960(defalias 'customize-variable-other-window 'customize-option-other-window)
961
962;;;###autoload
963(defun customize-option-other-window (symbol)
964 "Customize SYMBOL, which must be a user option variable.
965Show the buffer in another window, but don't select it."
966 (interactive (custom-variable-prompt))
967 (custom-buffer-create-other-window
968 (list (list symbol 'custom-variable))
969 (format "*Customize Option: %s*" (custom-unlispify-tag-name symbol))))
970
953(defvar customize-changed-options-previous-release "20.2" 971(defvar customize-changed-options-previous-release "20.2"
954 "Version for `customize-changed-options' to refer back to by default.") 972 "Version for `customize-changed-options' to refer back to by default.")
955 973
@@ -1044,18 +1062,6 @@ version."
1044 (< minor1 minor2))))) 1062 (< minor1 minor2)))))
1045 1063
1046;;;###autoload 1064;;;###autoload
1047(defalias 'customize-variable-other-window 'customize-option-other-window)
1048
1049;;;###autoload
1050(defun customize-option-other-window (symbol)
1051 "Customize SYMBOL, which must be a user option variable.
1052Show the buffer in another window, but don't select it."
1053 (interactive (custom-variable-prompt))
1054 (custom-buffer-create-other-window
1055 (list (list symbol 'custom-variable))
1056 (format "*Customize Option: %s*" (custom-unlispify-tag-name symbol))))
1057
1058;;;###autoload
1059(defun customize-face (&optional face) 1065(defun customize-face (&optional face)
1060 "Customize SYMBOL, which should be a face name or nil. 1066 "Customize SYMBOL, which should be a face name or nil.
1061If SYMBOL is nil, customize all faces. 1067If SYMBOL is nil, customize all faces.