From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.help Subject: Re: opening buffers in particular windows? Date: Sun, 04 Apr 2010 09:05:24 +0200 Message-ID: <4BB83A34.6030908@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1270364770 5592 80.91.229.12 (4 Apr 2010 07:06:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 4 Apr 2010 07:06:10 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: catphive@catphive.net Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 04 09:06:06 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NyJuF-0007fe-Cz for geh-help-gnu-emacs@m.gmane.org; Sun, 04 Apr 2010 09:06:03 +0200 Original-Received: from localhost ([127.0.0.1]:49440 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NyJuE-0007Gh-SE for geh-help-gnu-emacs@m.gmane.org; Sun, 04 Apr 2010 03:06:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NyJtq-0007F9-2k for help-gnu-emacs@gnu.org; Sun, 04 Apr 2010 03:05:38 -0400 Original-Received: from [140.186.70.92] (port=50362 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NyJtn-0007Ah-9p for help-gnu-emacs@gnu.org; Sun, 04 Apr 2010 03:05:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NyJtk-0006Wo-6M for help-gnu-emacs@gnu.org; Sun, 04 Apr 2010 03:05:35 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:41393) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NyJtj-0006WU-NA for help-gnu-emacs@gnu.org; Sun, 04 Apr 2010 03:05:32 -0400 Original-Received: (qmail invoked by alias); 04 Apr 2010 07:05:26 -0000 Original-Received: from 62-47-41-211.adsl.highway.telekom.at (EHLO [62.47.41.211]) [62.47.41.211] by mail.gmx.net (mp056) with SMTP; 04 Apr 2010 09:05:26 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19icx4vDfhi5/z7h9urq2F5pWiACdVvzlG6lVVBve Refxq8pu0QS2K+ User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) Original-References: i2oef38762f1004031557ie3a7dcbfq37348d82043fcff7@mail.gmail.com X-Y-GMX-Trusted: 0 X-FuHaFi: 0.65000000000000002 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72592 Archived-At: > >> M-x man is actually kind of annoying because I usually want it to open > >> in the window that I run the command in. If you want that behavior, it might help to add man buffers to either `same-window-buffer-names' or `same-window-regexps' > I think that now that monitors have gotten so big, it's common to have > 3 or 4 windows open, whereas in the past most emacs users probably had > 2 max. For this reason most of the "open in other window" type > commands now behave very unpredictably with 3 or more windows. Those commands based on `display-buffer' should behave predictably. If they don't please report that as a bug. > I'm currently learning elisp so I can fix things like this for myself. > Guidance on how C-x o, dired's o, C-x b, and M-x man decide which of n > windows is the "other window" would be helpful. Hopefully they all > just call some "other window" function that I can hook to customize > its behavior. If the same-window-... based behavior fails, `display-buffer' based functions try to "reuse", in this order (1) the "least recently used" window, (2) some visible window on another frame showing the buffer already, (3) the largest visible window, (4) some window showing the buffer already, (5) the largest window. martin