From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Window configurations Date: Fri, 04 Jun 2010 10:11:40 +0200 Message-ID: <4C08B53C.7040304@gmx.at> References: <4BB4CF6B.2000007@alice.it> <87r5m4hz39.fsf@mail.jurta.org> <4BD40821.70808@gmx.at> <87zl0rtmqy.fsf@mail.jurta.org> <871vdu6qn5.fsf@mail.jurta.org> <87bpcv1wvt.fsf@mail.jurta.org> <4BE13828.2030609@gmx.at> <87vdb2qo82.fsf@mail.jurta.org> <4BE27C17.3030005@gmx.at> <87vdav4vx5.fsf@mail.jurta.org> <4BE900E7.3090402@gmx.at> <87r5liqv8f.fsf@mail.jurta.org> <4BEA74DC.2060103@gmx.at> <87y6fns8qo.fsf@mail.jurta.org> <4BECF4D6.9030707@gmx.at> <87632na2af.fsf@mail.jurta.org> <4C03F1B5.8040708@gmx.at> <4C04D1BF.9070902@gmx.at> <87zkzcse1j.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1275639133 17809 80.91.229.12 (4 Jun 2010 08:12:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 4 Jun 2010 08:12:13 +0000 (UTC) Cc: Stefan Monnier , Emacs To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 04 10:12:10 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@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 1OKS0f-0001o0-TZ for ged-emacs-devel@m.gmane.org; Fri, 04 Jun 2010 10:12:10 +0200 Original-Received: from localhost ([127.0.0.1]:43390 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKS0e-0002mn-Rl for ged-emacs-devel@m.gmane.org; Fri, 04 Jun 2010 04:12:08 -0400 Original-Received: from [140.186.70.92] (port=41536 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKS0M-0002jn-EL for emacs-devel@gnu.org; Fri, 04 Jun 2010 04:11:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OKS0K-0002AI-AS for emacs-devel@gnu.org; Fri, 04 Jun 2010 04:11:49 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:33792) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OKS0J-00029O-Sn for emacs-devel@gnu.org; Fri, 04 Jun 2010 04:11:48 -0400 Original-Received: (qmail invoked by alias); 04 Jun 2010 08:11:44 -0000 Original-Received: from 62-47-52-22.adsl.highway.telekom.at (EHLO [62.47.52.22]) [62.47.52.22] by mail.gmx.net (mp054) with SMTP; 04 Jun 2010 10:11:44 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+H2utmH06HTiKR6fHwbeL+YX7/JbuA8wpwlIeqWn cdEoy30D2t2RsG User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <87zkzcse1j.fsf@mail.jurta.org> X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:125494 Archived-At: > There is another case that is more annoying: > > 1. Run `emacs -q', the current buffer is "*scratch*". > > 2. Type `C-h i', the current buffer is "*info*". > > 3. Type `C-h C-t', the current buffer is "TODO". > > 4. Type `C-h C-n', the current buffer is "NEWS". > > 5. Type `C-x k RET', the current buffer is the previous buffer "TODO", good. > > 6. Type `C-x k RET', the current buffer is "*scratch*". Why? > The previous buffer is "*info*", not "*scratch*"! This happened in revision 90833 of `pop-to-buffer' from 2008-09-13. Since then `pop-to-buffer' doesn't reselect the selected window. The culprit is this conditional (unless (eq new-window old-window) ;; `display-buffer' has chosen another window, select it. which does not select the *info* window because it was already selected before but obviously doesn't record the *info* buffer either :-( I'm running my code without the conditional for more than two months now so it shouldn't harm if you remove it as well. martin