From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#12208: yes-or-no-p escapes with-current-buffer Date: Mon, 27 Aug 2012 11:15:21 +0200 Message-ID: <503B3AA9.7010606@gmx.at> References: <502CBF82.3080601@gmx.at> <502E3482.5060300@gmx.at> <502E60C0.4080809@gmx.at> <502F9572.3040009@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1346058983 27114 80.91.229.3 (27 Aug 2012 09:16:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Aug 2012 09:16:23 +0000 (UTC) Cc: Steve Hafner To: 12208-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 27 11:16:23 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T5vQh-0003vf-A1 for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Aug 2012 11:16:19 +0200 Original-Received: from localhost ([::1]:57664 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5vQf-0005iA-47 for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Aug 2012 05:16:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5vQa-0005i0-2D for bug-gnu-emacs@gnu.org; Mon, 27 Aug 2012 05:16:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T5vQZ-000650-02 for bug-gnu-emacs@gnu.org; Mon, 27 Aug 2012 05:16:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T5vQY-00064q-Sr for bug-gnu-emacs@gnu.org; Mon, 27 Aug 2012 05:16:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T5vRO-0001Df-DV for bug-gnu-emacs@gnu.org; Mon, 27 Aug 2012 05:17:02 -0400 Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Aug 2012 09:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 12208 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 12208@debbugs.gnu.org, rudalics@gmx.at Original-Received: via spool by 12208-done@debbugs.gnu.org id=D12208.13460589874623 (code D ref 12208); Mon, 27 Aug 2012 09:17:02 +0000 Original-Received: (at 12208-done) by debbugs.gnu.org; 27 Aug 2012 09:16:27 +0000 Original-Received: from localhost ([127.0.0.1]:51781 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T5vQp-0001CW-Hj for submit@debbugs.gnu.org; Mon, 27 Aug 2012 05:16:27 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:37763) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1T5vQm-0001CN-P9 for 12208-done@debbugs.gnu.org; Mon, 27 Aug 2012 05:16:25 -0400 Original-Received: (qmail invoked by alias); 27 Aug 2012 09:15:31 -0000 Original-Received: from 62-47-60-67.adsl.highway.telekom.at (EHLO [62.47.60.67]) [62.47.60.67] by mail.gmx.net (mp019) with SMTP; 27 Aug 2012 11:15:31 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19n8cJobhxnCVr/yqGbpedGK995lbRqYshelwqIgE LGNaZKHQU7EY3/ In-Reply-To: <502F9572.3040009@gmx.at> X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:63522 Archived-At: > === modified file 'src/window.c' > --- src/window.c 2012-08-18 06:06:39 +0000 > +++ src/window.c 2012-08-18 13:09:15 +0000 > @@ -5889,7 +5889,13 @@ > } > > if (!NILP (new_current_buffer)) > - Fset_buffer (new_current_buffer); > + { > + Fset_buffer (new_current_buffer); > + /* If the new current buffer doesn't appear in the selected > + window, go to its old point. */ > + if (!EQ (XWINDOW (data->current_window)->buffer, > new_current_buffer)) > + Fgoto_char (make_number (old_point)); > + } > > Vminibuf_scroll_window = data->minibuf_scroll_window; > minibuf_selected_window = data->minibuf_selected_window; Installed in revision 109789 on trunk. Bug closed. martin