diff options
| author | Leo Liu | 2013-11-20 10:44:38 +0800 |
|---|---|---|
| committer | Leo Liu | 2013-11-20 10:44:38 +0800 |
| commit | f0cfa5feabab3986c002e55c1c6825f3c206d5c2 (patch) | |
| tree | 2ba19920f0932d5adc45d0af670e245df5e48fd0 | |
| parent | eca4ecbaae8d1984438c8e2ce54fffb8448f2ef2 (diff) | |
| download | emacs-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/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/windows.texi | 5 | ||||
| -rw-r--r-- | etc/ChangeLog | 5 | ||||
| -rw-r--r-- | etc/NEWS | 4 | ||||
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/window.el | 14 |
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 @@ | |||
| 1 | 2013-11-20 Leo Liu <sdl.web@gmail.com> | ||
| 2 | |||
| 3 | * windows.texi (Choosing Window): Mention `no-display-ok'. (Bug#13594) | ||
| 4 | |||
| 1 | 2013-11-19 Xue Fuqiao <xfq.free@gmail.com> | 5 | 2013-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 |
| 1843 | Each action function is called in turn, passing the buffer as the | 1843 | Each action function is called in turn, passing the buffer as the |
| 1844 | first argument and the combined action alist as the second argument, | 1844 | first argument and the combined action alist as the second argument, |
| 1845 | until one of the functions returns non-@code{nil}. | 1845 | until one of the functions returns non-@code{nil}. The caller can |
| 1846 | pass @code{(no-display-ok . t)} as an element of the action alist to | ||
| 1847 | indicate its readiness to handle the case of not displaying the | ||
| 1848 | buffer. | ||
| 1846 | 1849 | ||
| 1847 | The argument @var{action} can also have a non-@code{nil}, non-list | 1850 | The argument @var{action} can also have a non-@code{nil}, non-list |
| 1848 | value. This has the special meaning that the buffer should be | 1851 | value. 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 @@ | |||
| 1 | 2013-11-20 Leo Liu <sdl.web@gmail.com> | ||
| 2 | |||
| 3 | * NEWS: Mention new display action alist entry `no-display-ok'. | ||
| 4 | (Bug#13594) | ||
| 5 | |||
| 1 | 2013-11-18 Leo Liu <sdl.web@gmail.com> | 6 | 2013-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. |
| @@ -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 |
| 1801 | window's point when switching buffers. | 1801 | window's point when switching buffers. |
| 1802 | 1802 | ||
| 1803 | *** New display action alist entry `no-display-ok' to indicate the | ||
| 1804 | caller of `display-buffer' is ready to handle the case of not | ||
| 1805 | displaying 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' |
| 1804 | specify the size of new windows created by `display-buffer'. | 1808 | specify 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 @@ | |||
| 1 | 2013-11-20 Leo Liu <sdl.web@gmail.com> | ||
| 2 | |||
| 3 | * window.el (display-buffer-alist): Doc fix. (Bug#13594) | ||
| 4 | |||
| 1 | 2013-11-19 Dan Nicolaescu <dann@gnu.org> | 5 | 2013-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 |
| 5364 | matching regular expression or the function specified by a | 5361 | matching regular expression or the function specified by a |
| 5365 | condition returns non-nil. In any of these cases, it adds the | 5362 | condition returns non-nil. It can pass (no-display-ok . t) in |
| 5366 | associated action to the list of actions it will try." | 5363 | its action alist to indicate readiness for the case of not |
| 5364 | displaying the buffer and FUNCTION can safely return a non-window | ||
| 5365 | value to suppress displaying. | ||
| 5366 | |||
| 5367 | In any of these cases, it adds the associated action to the list | ||
| 5368 | of 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 |