aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Liu2013-11-20 10:44:38 +0800
committerLeo Liu2013-11-20 10:44:38 +0800
commitf0cfa5feabab3986c002e55c1c6825f3c206d5c2 (patch)
tree2ba19920f0932d5adc45d0af670e245df5e48fd0
parenteca4ecbaae8d1984438c8e2ce54fffb8448f2ef2 (diff)
downloademacs-f0cfa5feabab3986c002e55c1c6825f3c206d5c2.tar.gz
emacs-f0cfa5feabab3986c002e55c1c6825f3c206d5c2.zip
* 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)
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/windows.texi5
-rw-r--r--etc/ChangeLog5
-rw-r--r--etc/NEWS4
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/window.el14
6 files changed, 29 insertions, 7 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index e298f79d1c0..16ee55a173c 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,7 @@
12013-11-20 Leo Liu <sdl.web@gmail.com>
2
3 * windows.texi (Choosing Window): Mention `no-display-ok'. (Bug#13594)
4
12013-11-19 Xue Fuqiao <xfq.free@gmail.com> 52013-11-19 Xue Fuqiao <xfq.free@gmail.com>
2 6
3 * os.texi (File Notifications): Add an index. 7 * os.texi (File Notifications): Add an index.
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi
index 13c9ca53222..8f592dfebb3 100644
--- a/doc/lispref/windows.texi
+++ b/doc/lispref/windows.texi
@@ -1842,7 +1842,10 @@ The constant @code{display-buffer-fallback-action}.
1842@noindent 1842@noindent
1843Each action function is called in turn, passing the buffer as the 1843Each action function is called in turn, passing the buffer as the
1844first argument and the combined action alist as the second argument, 1844first argument and the combined action alist as the second argument,
1845until one of the functions returns non-@code{nil}. 1845until one of the functions returns non-@code{nil}. The caller can
1846pass @code{(no-display-ok . t)} as an element of the action alist to
1847indicate its readiness to handle the case of not displaying the
1848buffer.
1846 1849
1847The argument @var{action} can also have a non-@code{nil}, non-list 1850The argument @var{action} can also have a non-@code{nil}, non-list
1848value. This has the special meaning that the buffer should be 1851value. This has the special meaning that the buffer should be
diff --git a/etc/ChangeLog b/etc/ChangeLog
index 120f4d4db1c..faa369c40fb 100644
--- a/etc/ChangeLog
+++ b/etc/ChangeLog
@@ -1,3 +1,8 @@
12013-11-20 Leo Liu <sdl.web@gmail.com>
2
3 * NEWS: Mention new display action alist entry `no-display-ok'.
4 (Bug#13594)
5
12013-11-18 Leo Liu <sdl.web@gmail.com> 62013-11-18 Leo Liu <sdl.web@gmail.com>
2 7
3 * NEWS: Mention new features for Octave mode. 8 * NEWS: Mention new features for Octave mode.
diff --git a/etc/NEWS b/etc/NEWS
index 9772f97045a..33103f72775 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1800,6 +1800,10 @@ reused.
1800*** New option `switch-to-buffer-preserve-window-point' to restore a 1800*** New option `switch-to-buffer-preserve-window-point' to restore a
1801window's point when switching buffers. 1801window's point when switching buffers.
1802 1802
1803*** New display action alist entry `no-display-ok' to indicate the
1804caller of `display-buffer' is ready to handle the case of not
1805displaying the buffer.
1806
1803*** New display action alist entries `window-height' and `window-width' 1807*** New display action alist entries `window-height' and `window-width'
1804specify the size of new windows created by `display-buffer'. 1808specify the size of new windows created by `display-buffer'.
1805 1809
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d052406332a..3bfc413bcd1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12013-11-20 Leo Liu <sdl.web@gmail.com>
2
3 * window.el (display-buffer-alist): Doc fix. (Bug#13594)
4
12013-11-19 Dan Nicolaescu <dann@gnu.org> 52013-11-19 Dan Nicolaescu <dann@gnu.org>
2 6
3 * vc/vc-git.el (vc-git-dir-extra-headers): Add headers 7 * vc/vc-git.el (vc-git-dir-extra-headers): Add headers
diff --git a/lisp/window.el b/lisp/window.el
index ad74afed027..ac9311b2dbf 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -5355,15 +5355,17 @@ This is a list of elements (CONDITION . ACTION), where:
5355 ACTION is a cons cell (FUNCTION . ALIST), where FUNCTION is a 5355 ACTION is a cons cell (FUNCTION . ALIST), where FUNCTION is a
5356 function or a list of functions. Each such function should 5356 function or a list of functions. Each such function should
5357 accept two arguments: a buffer to display and an alist of the 5357 accept two arguments: a buffer to display and an alist of the
5358 same form as ALIST. If (no-display-ok . t) is in ALIST, the 5358 same form as ALIST. See `display-buffer' for details.
5359 caller is prepared for the case of not displaying the buffer
5360 and FUNCTION can safely return a non-window value to suppress
5361 displaying. See `display-buffer' for details.
5362 5359
5363`display-buffer' scans this alist until it either finds a 5360`display-buffer' scans this alist until it either finds a
5364matching regular expression or the function specified by a 5361matching regular expression or the function specified by a
5365condition returns non-nil. In any of these cases, it adds the 5362condition returns non-nil. It can pass (no-display-ok . t) in
5366associated action to the list of actions it will try." 5363its action alist to indicate readiness for the case of not
5364displaying the buffer and FUNCTION can safely return a non-window
5365value to suppress displaying.
5366
5367In any of these cases, it adds the associated action to the list
5368of actions it will try."
5367 :type `(alist :key-type 5369 :type `(alist :key-type
5368 (choice :tag "Condition" 5370 (choice :tag "Condition"
5369 regexp 5371 regexp