diff options
| author | Martin Rudalics | 2015-05-20 08:49:23 +0200 |
|---|---|---|
| committer | Martin Rudalics | 2015-05-20 08:49:23 +0200 |
| commit | 31d58d45249b3fb13a0a9a2c921f04cd9b42ff3f (patch) | |
| tree | a5c2f1b4826b1e7f972c88d6b992ba3dfc9ef05b /etc | |
| parent | f743819b57ef519109c1b9d520d358d19a197086 (diff) | |
| download | emacs-31d58d45249b3fb13a0a9a2c921f04cd9b42ff3f.tar.gz emacs-31d58d45249b3fb13a0a9a2c921f04cd9b42ff3f.zip | |
Improve `switch-to-buffer' in strongly dedicated windows (Bug#20472)
* lisp/window.el (switch-to-buffer-in-dedicated-window): New option.
(switch-to-buffer): If the selected window is strongly dedicated
to its buffer, signal error before prompting for buffer name. Handle
`switch-to-buffer-in-dedicated-window'. (Bug#20472)
* doc/lispref/windows.texi (Switching Buffers): Document
`switch-to-buffer-in-dedicated-window'.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 13 |
1 files changed, 9 insertions, 4 deletions
| @@ -165,7 +165,7 @@ buffers to allow certain parts of the text to be writable. | |||
| 165 | ** A new function `directory-files-recursively' returns all matching | 165 | ** A new function `directory-files-recursively' returns all matching |
| 166 | files (recursively) under a directory. | 166 | files (recursively) under a directory. |
| 167 | 167 | ||
| 168 | ** The new `directory-name-p' can be used to check whether a file | 168 | ** The new function `directory-name-p' can be used to check whether a file |
| 169 | name (as returned from, for instance, `file-name-all-completions' is | 169 | name (as returned from, for instance, `file-name-all-completions' is |
| 170 | a directory file name. It returns non-nil if the last character in | 170 | a directory file name. It returns non-nil if the last character in |
| 171 | the name is a forward slash. | 171 | the name is a forward slash. |
| @@ -585,8 +585,8 @@ nil to disable this. | |||
| 585 | fitting for use in money calculations; factorial works with | 585 | fitting for use in money calculations; factorial works with |
| 586 | non-integer inputs. | 586 | non-integer inputs. |
| 587 | 587 | ||
| 588 | ** HideIfDef mode now support full C/C++ expressions, argumented macro expansions | 588 | ** HideIfDef mode now support full C/C++ expressions, argumented macro expansions, |
| 589 | , interactive macro evaluation and automatic scanning of #defined symbols. | 589 | interactive macro evaluation and automatic scanning of #defined symbols. |
| 590 | 590 | ||
| 591 | *** New custom variable `hide-ifdef-header-regexp' to define C/C++ header file | 591 | *** New custom variable `hide-ifdef-header-regexp' to define C/C++ header file |
| 592 | name patterns. Default case-insensitive .h, .hh, .hpp and .hxx. | 592 | name patterns. Default case-insensitive .h, .hh, .hpp and .hxx. |
| @@ -755,7 +755,7 @@ If you want the old behavior of calling the function in the buffer | |||
| 755 | from which the minibuffer was entered, call it with the new argument | 755 | from which the minibuffer was entered, call it with the new argument |
| 756 | `switch-buffer'. | 756 | `switch-buffer'. |
| 757 | 757 | ||
| 758 | ** window-configurations no longer record the buffers's marks. | 758 | ** window-configurations no longer record the buffers' marks. |
| 759 | 759 | ||
| 760 | ** inhibit-modification-hooks now also inhibits lock-file checks, as well as | 760 | ** inhibit-modification-hooks now also inhibits lock-file checks, as well as |
| 761 | active region handling. | 761 | active region handling. |
| @@ -960,6 +960,11 @@ fullwidth frames, the behavior may depend on the toolkit used. | |||
| 960 | windows without "fixing" it. It's supported by `fit-window-to-buffer', | 960 | windows without "fixing" it. It's supported by `fit-window-to-buffer', |
| 961 | `temp-buffer-resize-mode' and `display-buffer'. | 961 | `temp-buffer-resize-mode' and `display-buffer'. |
| 962 | 962 | ||
| 963 | +++ | ||
| 964 | ** New option `switch-to-buffer-in-dedicated-window' allows to customize | ||
| 965 | how `switch-to-buffer' proceeds interactively when the selected window | ||
| 966 | is strongly dedicated to its buffer. | ||
| 967 | |||
| 963 | ** Tearoff menus and detachable toolbars for Gtk+ has been removed. | 968 | ** Tearoff menus and detachable toolbars for Gtk+ has been removed. |
| 964 | Those features have been deprecated in Gtk+ for a long time. | 969 | Those features have been deprecated in Gtk+ for a long time. |
| 965 | 970 | ||