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#4041: 23.0.92; Emacs 23: buffer point is no longer frame-local Date: Fri, 07 Oct 2011 09:07:14 +0200 Message-ID: <4E8EA522.9090300@gmx.at> References: <20090805001735.1CC041E844E@localhost> <4E745DAE.5040808@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 1317971289 24321 80.91.229.12 (7 Oct 2011 07:08:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 7 Oct 2011 07:08:09 +0000 (UTC) Cc: 4041@debbugs.gnu.org, Steve Yegge To: Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 07 09:08:03 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RC4XJ-0004wo-U6 for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Oct 2011 09:08:02 +0200 Original-Received: from localhost ([::1]:41654 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RC4XE-0006jX-Ss for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Oct 2011 03:07:56 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54185) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RC4X8-0006jE-Ir for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2011 03:07:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RC4X7-0001uU-Hp for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2011 03:07:50 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RC4X7-0001uL-9D for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2011 03:07:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RC4XJ-00031A-Qv for bug-gnu-emacs@gnu.org; Fri, 07 Oct 2011 03:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Oct 2011 07:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 4041 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 4041-submit@debbugs.gnu.org id=B4041.131797126011569 (code B ref 4041); Fri, 07 Oct 2011 07:08:01 +0000 Original-Received: (at 4041) by debbugs.gnu.org; 7 Oct 2011 07:07:40 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RC4Ww-00030X-UG for submit@debbugs.gnu.org; Fri, 07 Oct 2011 03:07:40 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1RC4Wu-00030K-Nf for 4041@debbugs.gnu.org; Fri, 07 Oct 2011 03:07:37 -0400 Original-Received: (qmail invoked by alias); 07 Oct 2011 07:07:17 -0000 Original-Received: from 62-47-35-224.adsl.highway.telekom.at (EHLO [62.47.35.224]) [62.47.35.224] by mail.gmx.net (mp053) with SMTP; 07 Oct 2011 09:07:17 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX183grwKCBc3Fn8fh9AtB4qzzJey32Z/Pv/SsW4Try fOJKJJYCLi+Iho User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 07 Oct 2011 03:08:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) 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:52355 Archived-At: >> Even if you had such a feature it would not DTRT with multiple windows >> showing the same buffer on the same frame. But if, in step (9) above, >> you do `previous-buffer' or `switch-to-prev-buffer', the window's point >> should show up at `point-min'. `switch-to-buffer' could, in principle, >> retrieve that position by scanning `window-prev-buffers' of that window. > > I think `switch-to-buffer' should do the same as `previous-buffer' here > -- it seems like the obvious solution. Is there any reason not to? We'd have to handle two issues: (1) If a buffer is shown nowhere else and you `switch-to-buffer' to it, you probably want it to show it at the actual position of `point' - whatever that means for you. (2) If the buffer is already shown on another frame with `point' visible it makes sense to `switch-to-buffer' at some position it earlier had on the present frame. Whatever we did here, it would make `switch-to-buffer' behave inconsistently. I still think that the OP instead of > 8) switch to buffer *scratch* (or any other buffer) > 9) switch to buffer BUF should switch to the previous buffer in 9). martin