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: Mon, 10 Oct 2011 14:57:11 +0200 Message-ID: <4E92EBA7.3090000@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> <4E90659A.5040804@gmx.at> <83r52nebv9.fsf@gnu.org> <4E90728F.4010001@gmx.at> <83pqi7e7iu.fsf@gnu.org> <4E908E03.6010408@gmx.at> <83obxrdxxj.fsf@gnu.org> <4E915C5A.1040405@gmx.at> <83hb3idpo6.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 1318251487 21868 80.91.229.12 (10 Oct 2011 12:58:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 10 Oct 2011 12:58:07 +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 Mon Oct 10 14:58:02 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 1RDFQg-0000lM-CU for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Oct 2011 14:58:02 +0200 Original-Received: from localhost ([::1]:53732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDFQf-0000an-Oj for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Oct 2011 08:58:01 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:45767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDFQb-0000aV-Ud for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2011 08:57:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDFQW-0006Ko-2e for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2011 08:57:57 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33929) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDFQV-0006Ki-W6 for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2011 08:57:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RDFQg-0001Cr-Gp for bug-gnu-emacs@gnu.org; Mon, 10 Oct 2011 08:58:02 -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: Mon, 10 Oct 2011 12:58:02 +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.13182514544599 (code B ref 4041); Mon, 10 Oct 2011 12:58:02 +0000 Original-Received: (at 4041) by debbugs.gnu.org; 10 Oct 2011 12:57:34 +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 1RDFQE-0001C8-5q for submit@debbugs.gnu.org; Mon, 10 Oct 2011 08:57:34 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1RDFQA-0001Bu-Fi for 4041@debbugs.gnu.org; Mon, 10 Oct 2011 08:57:32 -0400 Original-Received: (qmail invoked by alias); 10 Oct 2011 12:57:12 -0000 Original-Received: from 62-47-43-150.adsl.highway.telekom.at (EHLO [62.47.43.150]) [62.47.43.150] by mail.gmx.net (mp046) with SMTP; 10 Oct 2011 14:57:12 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/8xrBEpyX8KmKdwfaM0qUQV/InHQuTRDMFMypXsS wq9NFU3zH1Otvv User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <83hb3idpo6.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: Mon, 10 Oct 2011 08:58:02 -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:52467 Archived-At: > I tried it now. It seems to do a good job, but it sometimes loses one > of the 2 places in one of the files I visited. E.g., visit xdisp.c > and window.c, display each one in turn in 2 separate windows at 2 > different places. Then start switching buffers in both windows, and > after a few switches I can only see one place in window.c. My crystal ball tells me that you did the following: (1) Remove one of these buffers from the last window that shows it - `point' goes to its `window-point'. (2) Show this buffer in the other window. In this case the test (let* ((entry (and (get-buffer-window buffer 0) (assq buffer (window-prev-buffers)))) will fail and the buffer will be shown at the position of its `point'. Try (let* ((entry (and ; (get-buffer-window buffer 0) (assq buffer (window-prev-buffers)))) and I'm sure the function will do what you want. Unfortunately, omitting that conjunct might give surprising results when you switch to a buffer that you haven't seen for quite some time, in a window where this buffer was shown earlier. In this case you probably do want to show the buffer at the position of `point'. martin