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: Sat, 08 Oct 2011 17:00:42 +0200 Message-ID: <4E90659A.5040804@gmx.at> References: <20090805001735.1CC041E844E@localhost> <4E745DAE.5040808@gmx.at> <4E8EA522.9090300@gmx.at> <4E8F3040.1060409@gmx.at> <4E904ED1.8090906@gmx.at> <83wrcfefmh.fsf@gnu.org> 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 1318086074 7595 80.91.229.12 (8 Oct 2011 15:01:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 8 Oct 2011 15:01:14 +0000 (UTC) Cc: larsi@gnus.org, stevey@google.com, 4041@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 08 17:01:09 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 1RCYOh-0002Fn-GP for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Oct 2011 17:01:07 +0200 Original-Received: from localhost ([::1]:54220 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCYOg-00044P-MT for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Oct 2011 11:01:06 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:40215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCYOd-000448-7R for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2011 11:01:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RCYOc-0005mQ-2C for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2011 11:01:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCYOb-0005mL-Vc for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2011 11:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RCYOb-0001Pp-IF for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2011 11:01: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: Sat, 08 Oct 2011 15:01: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.13180860545423 (code B ref 4041); Sat, 08 Oct 2011 15:01:01 +0000 Original-Received: (at 4041) by debbugs.gnu.org; 8 Oct 2011 15:00:54 +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 1RCYOT-0001PO-TL for submit@debbugs.gnu.org; Sat, 08 Oct 2011 11:00:54 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1RCYOQ-0001PB-FY for 4041@debbugs.gnu.org; Sat, 08 Oct 2011 11:00:52 -0400 Original-Received: (qmail invoked by alias); 08 Oct 2011 15:00:43 -0000 Original-Received: from 62-47-47-212.adsl.highway.telekom.at (EHLO [62.47.47.212]) [62.47.47.212] by mail.gmx.net (mp003) with SMTP; 08 Oct 2011 17:00:43 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19oLiE1dtJoWiin0bFXXXQxiWnLTIhgJ9axoyCLml qcwix5s7UendwS User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <83wrcfefmh.fsf@gnu.org> X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 08 Oct 2011 11:01:01 -0400 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:52423 Archived-At: > So I don't think switch-to-next/prev-buffer can be a convenient > solution to this problem. Did you try it in practice? With some convenient binding? In my experience, the buffer isn't too far away, usually. > What is necessary is a way to switch to a buffer by name and have the > window remember its previous window-point. If the buffer was never > displayed in this window, "C-x b" should choose some value of > window-point that was used before and is not already displayed in some > other window. (If there's a window for every possible value of > window-point for the buffer, i.e. the user opens yet another window > with the same buffer, just choose one of the values, e.g., the first > or the last.) For the important use case of having 2 windows with the > same buffer, this strategy will do _exactly_ what the user wants. Using the window-point from some other window will be utterly disconcerting if you later want to display the buffer in _that_ other window. Recording window-points of deleted windows to implement the "used before" approach might be expensive - these are markers into that buffer. > Yes, but it works satisfactorily only if you switch between 2 buffers > in the same window. Switch to a third, and you are screwed. Try them. I have bound `switch-to-prev-buffer' and `switch-to-next-buffer' to M-left and M-right respectively and use them all of the time. Especially, because I usually tend to forget the names of buffers I'm working on. When you grow old enough you will eventually even appreciate that. Till then try the version of `switch-to-buffer' I attached to the last mail and tell me whether you really need more. > (And, btw, why aren't those 2 functions documented in the user > manual?) Because I haven't looked into that yet. martin