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#9605: 24.0.90; initial point in *scratch* buffer Date: Wed, 28 Sep 2011 20:25:35 +0200 Message-ID: <4E83669F.9090108@gmx.at> References: <35pqik60j5.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1317234382 2370 80.91.229.12 (28 Sep 2011 18:26:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Sep 2011 18:26:22 +0000 (UTC) Cc: Katsumi Yamaoka , 9605@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 28 20:26:17 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 1R8yph-0000PD-GI for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Sep 2011 20:26:13 +0200 Original-Received: from localhost ([::1]:33934 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8ypg-0003Pf-NP for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Sep 2011 14:26:12 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8ypd-0003PP-Eb for bug-gnu-emacs@gnu.org; Wed, 28 Sep 2011 14:26:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R8ypb-0008SY-KN for bug-gnu-emacs@gnu.org; Wed, 28 Sep 2011 14:26:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8ypb-0008SQ-Iq for bug-gnu-emacs@gnu.org; Wed, 28 Sep 2011 14:26:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R8yqU-0003qm-Gh for bug-gnu-emacs@gnu.org; Wed, 28 Sep 2011 14:27: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: Wed, 28 Sep 2011 18:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9605 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9605-submit@debbugs.gnu.org id=B9605.131723439914763 (code B ref 9605); Wed, 28 Sep 2011 18:27:02 +0000 Original-Received: (at 9605) by debbugs.gnu.org; 28 Sep 2011 18:26:39 +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 1R8yq7-0003q4-59 for submit@debbugs.gnu.org; Wed, 28 Sep 2011 14:26:39 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1R8yq4-0003pv-Bf for 9605@debbugs.gnu.org; Wed, 28 Sep 2011 14:26:38 -0400 Original-Received: (qmail invoked by alias); 28 Sep 2011 18:25:38 -0000 Original-Received: from 62-47-49-134.adsl.highway.telekom.at (EHLO [62.47.49.134]) [62.47.49.134] by mail.gmx.net (mp048) with SMTP; 28 Sep 2011 20:25:38 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19kCkgoabBkxioLfE7O3AJcaf2f8Ya8Se94Wgijke LmkysEocYdcdsM User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <35pqik60j5.fsf@fencepost.gnu.org> X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 28 Sep 2011 14:27:02 -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:51969 Archived-At: > emacs -Q > > M-< ; point at start of *scratch* > C-x b foo > > In foo, insert and evaluate: > > (with-current-buffer "*scratch*" > (goto-char (point-max)) > (insert "foo")) > > Then > > M-x quit-window > > In Emacs 23.3, point in *scratch* is now at point-max (after "foo"). > In Emacs 24.0.90, it is at point-min. It's not easy to find a general solution for this. Suppose you edit the same buffer in two windows A and B, temporarily switch to another buffer in window B, continue editing in window A, and eventually quit window B. In this case you want point in window B be at the position it had before you switched to another buffer in it. In the case at hand we could call `kill-buffer' in `exit-splash-screen'. But can't we do the insertion before or while the buffer is displayed? martin