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, 17 Sep 2011 10:43:26 +0200 Message-ID: <4E745DAE.5040808@gmx.at> References: <20090805001735.1CC041E844E@localhost> 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 1316249069 31065 80.91.229.12 (17 Sep 2011 08:44:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 17 Sep 2011 08:44:29 +0000 (UTC) Cc: Steve Yegge , 4041@debbugs.gnu.org To: Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 17 10:44:19 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 1R4qVW-0003sF-0Y for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Sep 2011 10:44:18 +0200 Original-Received: from localhost ([::1]:40251 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4qVV-0002Mz-L2 for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Sep 2011 04:44:17 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4qVT-0002Mu-Sd for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2011 04:44:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R4qVS-0007Sg-Rk for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2011 04:44:15 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45622) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4qVS-0007Sa-NL for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2011 04:44:14 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R4qa5-0008DL-TL; Sat, 17 Sep 2011 04:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Sep 2011 08:49: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.131624930231526 (code B ref 4041); Sat, 17 Sep 2011 08:49:01 +0000 Original-Received: (at 4041) by debbugs.gnu.org; 17 Sep 2011 08:48:22 +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 1R4qZS-0008CR-81 for submit@debbugs.gnu.org; Sat, 17 Sep 2011 04:48:22 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1R4qZO-0008CH-BJ for 4041@debbugs.gnu.org; Sat, 17 Sep 2011 04:48:19 -0400 Original-Received: (qmail invoked by alias); 17 Sep 2011 08:43:28 -0000 Original-Received: from 62-47-33-108.adsl.highway.telekom.at (EHLO [62.47.33.108]) [62.47.33.108] by mail.gmx.net (mp057) with SMTP; 17 Sep 2011 10:43:28 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18HS30jT6UHU4izMzzpsxwngnM1bgNwMyVluynmct GhyRmGUUEMPO85 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: Sat, 17 Sep 2011 04:49: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:51292 Archived-At: >> 1) emacs -q (with non-nil window-system) >> 2) find-file /usr/share/dict/words >> - any file longer than ~3x the frame height should serve to demonstrate >> - in remaining steps I'll call this file buffer BUF >> 3) (goto-char (/ (point-max) 2)) >> 4) (new-frame) >> 5) (other-frame) ; if necessary to put point in new frame >> 6) switch to buffer BUF >> 7) (goto-char (point-min)) >> 8) switch to buffer *scratch* (or any other buffer) >> 9) switch to buffer BUF >> >> Observe that point has returned to (/ (point-max) 2). > > I can confirm that this behaviour is still present in Emacs 24. > > And it seems like an unfortunate behaviour. How difficult would it be > to stash window-point (I guess) on a per-frame basis? Frame-local > variables are being phased out, but it seems like this would be nice to > have. 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. martin