From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Sullivan Newsgroups: gmane.emacs.devel Subject: Problem and patch for display-buffer docstring Date: Sun, 09 Apr 2006 23:36:46 -0400 Message-ID: <87lkuet835.fsf@ashbery.wjsullivan.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1144643728 7591 80.91.229.2 (10 Apr 2006 04:35:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Apr 2006 04:35:28 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 10 06:35:27 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FSo7U-0004EQ-Q8 for ged-emacs-devel@m.gmane.org; Mon, 10 Apr 2006 06:35:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FSo7U-00036L-Ns for ged-emacs-devel@m.gmane.org; Mon, 10 Apr 2006 00:35:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FSo7I-00036F-BH for emacs-devel@gnu.org; Mon, 10 Apr 2006 00:35:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FSo7G-000363-SH for emacs-devel@gnu.org; Mon, 10 Apr 2006 00:35:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FSo7G-000360-MW for emacs-devel@gnu.org; Mon, 10 Apr 2006 00:35:06 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FSoBp-0003ns-5O for emacs-devel@gnu.org; Mon, 10 Apr 2006 00:39:49 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1FSo7C-0004Bi-LU for emacs-devel@gnu.org; Mon, 10 Apr 2006 06:35:02 +0200 Original-Received: from dsl092-079-150.bos1.dsl.speakeasy.net ([66.92.79.150]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Apr 2006 06:35:02 +0200 Original-Received: from john by dsl092-079-150.bos1.dsl.speakeasy.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Apr 2006 06:35:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 61 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dsl092-079-150.bos1.dsl.speakeasy.net User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:BiBmbkYjAhOuK1jGk7QN6/C69xA= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:52584 Archived-At: --=-=-= 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 * window.c (Fdisplay_buffer): Fix docstring. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=display-buffer.patch Content-Description: window.c patch for display-buffer *** /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. --=-=-= -- -John Sullivan -http://www.wjsullivan.net --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --=-=-=--