* doc/lispref/windows.texi (Choosing Window): Mention `no-display-ok'.

* etc/NEWS: Mention new display action alist entry `no-display-ok'.
(Bug#13594)

* lisp/window.el (display-buffer-alist): Doc fix.  (Bug#13594)
This commit is contained in:
Leo Liu 2013-11-20 10:44:38 +08:00
parent eca4ecbaae
commit f0cfa5feab
6 changed files with 29 additions and 7 deletions

View file

@ -1,3 +1,7 @@
2013-11-20 Leo Liu <sdl.web@gmail.com>
* windows.texi (Choosing Window): Mention `no-display-ok'. (Bug#13594)
2013-11-19 Xue Fuqiao <xfq.free@gmail.com>
* os.texi (File Notifications): Add an index.

View file

@ -1842,7 +1842,10 @@ The constant @code{display-buffer-fallback-action}.
@noindent
Each action function is called in turn, passing the buffer as the
first argument and the combined action alist as the second argument,
until one of the functions returns non-@code{nil}.
until one of the functions returns non-@code{nil}. The caller can
pass @code{(no-display-ok . t)} as an element of the action alist to
indicate its readiness to handle the case of not displaying the
buffer.
The argument @var{action} can also have a non-@code{nil}, non-list
value. This has the special meaning that the buffer should be

View file

@ -1,3 +1,8 @@
2013-11-20 Leo Liu <sdl.web@gmail.com>
* NEWS: Mention new display action alist entry `no-display-ok'.
(Bug#13594)
2013-11-18 Leo Liu <sdl.web@gmail.com>
* NEWS: Mention new features for Octave mode.

View file

@ -1800,6 +1800,10 @@ reused.
*** New option `switch-to-buffer-preserve-window-point' to restore a
window's point when switching buffers.
*** New display action alist entry `no-display-ok' to indicate the
caller of `display-buffer' is ready to handle the case of not
displaying the buffer.
*** New display action alist entries `window-height' and `window-width'
specify the size of new windows created by `display-buffer'.

View file

@ -1,3 +1,7 @@
2013-11-20 Leo Liu <sdl.web@gmail.com>
* window.el (display-buffer-alist): Doc fix. (Bug#13594)
2013-11-19 Dan Nicolaescu <dann@gnu.org>
* vc/vc-git.el (vc-git-dir-extra-headers): Add headers

View file

@ -5355,15 +5355,17 @@ This is a list of elements (CONDITION . ACTION), where:
ACTION is a cons cell (FUNCTION . ALIST), where FUNCTION is a
function or a list of functions. Each such function should
accept two arguments: a buffer to display and an alist of the
same form as ALIST. If (no-display-ok . t) is in ALIST, the
caller is prepared for the case of not displaying the buffer
and FUNCTION can safely return a non-window value to suppress
displaying. See `display-buffer' for details.
same form as ALIST. See `display-buffer' for details.
`display-buffer' scans this alist until it either finds a
matching regular expression or the function specified by a
condition returns non-nil. In any of these cases, it adds the
associated action to the list of actions it will try."
condition returns non-nil. It can pass (no-display-ok . t) in
its action alist to indicate readiness for the case of not
displaying the buffer and FUNCTION can safely return a non-window
value to suppress displaying.
In any of these cases, it adds the associated action to the list
of actions it will try."
:type `(alist :key-type
(choice :tag "Condition"
regexp