diff options
| author | Richard M. Stallman | 2004-11-02 14:17:44 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-11-02 14:17:44 +0000 |
| commit | 5f97a49d4666de5522ccc8f950dc97667fbb29c5 (patch) | |
| tree | 40baba4a92cd57246079fb088a27568c9330be97 | |
| parent | 76e159ab680e78215f4478a75a226c1458bbf917 (diff) | |
| download | emacs-5f97a49d4666de5522ccc8f950dc97667fbb29c5.tar.gz emacs-5f97a49d4666de5522ccc8f950dc97667fbb29c5.zip | |
(customize-group-other-window):
Select the window that displays the custom buffer.
(custom-buffer-create-other-window): Likewise.
| -rw-r--r-- | lisp/cus-edit.el | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 9e0efc5d3d0..89fcb633133 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el | |||
| @@ -896,15 +896,14 @@ then prompt for the MODE to customize." | |||
| 896 | (let ((name (format "*Customize Group: %s*" | 896 | (let ((name (format "*Customize Group: %s*" |
| 897 | (custom-unlispify-tag-name group)))) | 897 | (custom-unlispify-tag-name group)))) |
| 898 | (if (get-buffer name) | 898 | (if (get-buffer name) |
| 899 | (let ((window (selected-window)) | 899 | (let ( |
| 900 | ;; Copied from `custom-buffer-create-other-window'. | 900 | ;; Copied from `custom-buffer-create-other-window'. |
| 901 | (pop-up-windows t) | 901 | (pop-up-windows t) |
| 902 | (special-display-buffer-names nil) | 902 | (special-display-buffer-names nil) |
| 903 | (special-display-regexps nil) | 903 | (special-display-regexps nil) |
| 904 | (same-window-buffer-names nil) | 904 | (same-window-buffer-names nil) |
| 905 | (same-window-regexps nil)) | 905 | (same-window-regexps nil)) |
| 906 | (pop-to-buffer name) | 906 | (pop-to-buffer name)) |
| 907 | (select-window window)) | ||
| 908 | (custom-buffer-create-other-window | 907 | (custom-buffer-create-other-window |
| 909 | (list (list group 'custom-group)) | 908 | (list (list group 'custom-group)) |
| 910 | name | 909 | name |
| @@ -1240,21 +1239,20 @@ that option." | |||
| 1240 | 1239 | ||
| 1241 | ;;;###autoload | 1240 | ;;;###autoload |
| 1242 | (defun custom-buffer-create-other-window (options &optional name description) | 1241 | (defun custom-buffer-create-other-window (options &optional name description) |
| 1243 | "Create a buffer containing OPTIONS. | 1242 | "Create a buffer containing OPTIONS, and display it in another window. |
| 1243 | The result includes selecting that window. | ||
| 1244 | Optional NAME is the name of the buffer. | 1244 | Optional NAME is the name of the buffer. |
| 1245 | OPTIONS should be an alist of the form ((SYMBOL WIDGET)...), where | 1245 | OPTIONS should be an alist of the form ((SYMBOL WIDGET)...), where |
| 1246 | SYMBOL is a customization option, and WIDGET is a widget for editing | 1246 | SYMBOL is a customization option, and WIDGET is a widget for editing |
| 1247 | that option." | 1247 | that option." |
| 1248 | (unless name (setq name "*Customization*")) | 1248 | (unless name (setq name "*Customization*")) |
| 1249 | (let ((window (selected-window)) | 1249 | (let ((pop-up-windows t) |
| 1250 | (pop-up-windows t) | ||
| 1251 | (special-display-buffer-names nil) | 1250 | (special-display-buffer-names nil) |
| 1252 | (special-display-regexps nil) | 1251 | (special-display-regexps nil) |
| 1253 | (same-window-buffer-names nil) | 1252 | (same-window-buffer-names nil) |
| 1254 | (same-window-regexps nil)) | 1253 | (same-window-regexps nil)) |
| 1255 | (pop-to-buffer (custom-get-fresh-buffer name)) | 1254 | (pop-to-buffer (custom-get-fresh-buffer name)) |
| 1256 | (custom-buffer-create-internal options description) | 1255 | (custom-buffer-create-internal options description))) |
| 1257 | (select-window window))) | ||
| 1258 | 1256 | ||
| 1259 | (defcustom custom-reset-button-menu nil | 1257 | (defcustom custom-reset-button-menu nil |
| 1260 | "If non-nil, only show a single reset button in customize buffers. | 1258 | "If non-nil, only show a single reset button in customize buffers. |