unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Problem and patch for display-buffer docstring
@ 2006-04-10  3:36 John Sullivan
  0 siblings, 0 replies; only message in thread
From: John Sullivan @ 2006-04-10  3:36 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 867 bytes --]


The docstring for display-buffer includes:

  The variables `special-display-buffer-names',
  `special-display-regexps', `same-window-buffer-names', and
  `same-window-regexps' customize how certain buffer names are handled.
  The latter two take effect only if NOT-THIS-WINDOW is t.

This last line seems wrong.

My `same-window-buffer-names', for example, is ("*shell*" "*mail*"
"*inferior-lisp*" "*ielm*" "*scheme*"). If I do M-x display-buffer RET *shell*
RET, I get the *shell* buffer in the current window.

It looks like the opposite is true. Because C-u M-x display-buffer RET *shell*
RET displays the *shell* buffer in the other window. Another experiment with a
buffer name that matched `same-window-regexps' supports this.

So, a patch to change t to nil.


2006-04-09  John Sullivan  <john@wjsullivan.net>

	* window.c (Fdisplay_buffer): Fix docstring.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: window.c patch for display-buffer --]
[-- Type: text/x-patch, Size: 943 bytes --]

*** /usr/local/src/emacs-snapshot-20060406/src/window.c	2006-03-20 17:22:25.000000000 -0500
--- window-new.c	2006-04-09 23:02:23.000000000 -0400
***************
*** 3417,3423 ****
  The variables `special-display-buffer-names',
  `special-display-regexps', `same-window-buffer-names', and
  `same-window-regexps' customize how certain buffer names are handled.
! The latter two take effect only if NOT-THIS-WINDOW is t.
  
  If optional argument FRAME is `visible', search all visible frames.
  If FRAME is 0, search all visible and iconified frames.
--- 3417,3423 ----
  The variables `special-display-buffer-names',
  `special-display-regexps', `same-window-buffer-names', and
  `same-window-regexps' customize how certain buffer names are handled.
! The latter two take effect only if NOT-THIS-WINDOW is nil.
  
  If optional argument FRAME is `visible', search all visible frames.
  If FRAME is 0, search all visible and iconified frames.

[-- Attachment #3: Type: text/plain, Size: 47 bytes --]


-- 
-John Sullivan
-http://www.wjsullivan.net

[-- Attachment #4: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-04-10  3:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-10  3:36 Problem and patch for display-buffer docstring John Sullivan

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).