From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#731: 23.0.60; Varying point position after undo Date: Sat, 16 Aug 2008 18:59:05 +0200 (CEST) Message-ID: <20080816165905.644A7A32727@mt-computer.local> Reply-To: Markus Triska , 731@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1218906466 16263 80.91.229.12 (16 Aug 2008 17:07:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Aug 2008 17:07:46 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 16 19:08:39 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KUPGV-0005y3-Cs for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Aug 2008 19:08:35 +0200 Original-Received: from localhost ([127.0.0.1]:54568 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KUPFY-0001CM-9w for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Aug 2008 13:07:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KUPFU-0001Bc-9x for bug-gnu-emacs@gnu.org; Sat, 16 Aug 2008 13:07:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KUPFQ-00018j-N2 for bug-gnu-emacs@gnu.org; Sat, 16 Aug 2008 13:07:31 -0400 Original-Received: from [199.232.76.173] (port=41033 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KUPFQ-00018f-Hs for bug-gnu-emacs@gnu.org; Sat, 16 Aug 2008 13:07:28 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:55318) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KUPFQ-0004WT-3G for bug-gnu-emacs@gnu.org; Sat, 16 Aug 2008 13:07:28 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7GH7PXv000448; Sat, 16 Aug 2008 10:07:26 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7GH57g0031761; Sat, 16 Aug 2008 10:05:07 -0700 X-Loop: don@donarmstrong.com Resent-From: Markus Triska Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 16 Aug 2008 17:05:07 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 731 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121890595729263 (code B ref -1); Sat, 16 Aug 2008 17:05:07 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 16 Aug 2008 16:59:17 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7GGxDsp029257 for ; Sat, 16 Aug 2008 09:59:15 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:39605) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KUP6E-0008Kh-Fu for emacs-pretest-bug@gnu.org; Sat, 16 Aug 2008 12:57:58 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KUP7M-0002HL-H6 for emacs-pretest-bug@gnu.org; Sat, 16 Aug 2008 12:59:12 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:33377) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KUP7L-0002Gx-R5 for emacs-pretest-bug@gnu.org; Sat, 16 Aug 2008 12:59:08 -0400 Original-Received: (qmail invoked by alias); 16 Aug 2008 16:59:06 -0000 Original-Received: from chello062178240212.3.14.tuwien.teleweb.at (EHLO mt-computer.local) [62.178.240.212] by mail.gmx.net (mp032) with SMTP; 16 Aug 2008 18:59:06 +0200 X-Authenticated: #4064391 X-Provags-ID: V01U2FsdGVkX190+XZPgXJ0RQTwZhbU+wK7VlAJcQn6WGv9474/oo ZGjXXELfd77xrD Original-Received: by mt-computer.local (Postfix, from userid 502) id 644A7A32727; Sat, 16 Aug 2008 18:59:05 +0200 (CEST) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.54 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Sat, 16 Aug 2008 13:07:30 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19496 gmane.emacs.pretest.bugs:22841 Archived-At: When you put the following two forms in undo1.el: (progn (goto-char (point-max)) (insert "test line\n")) (defun mytest () (message "hi")) then do "$ emacs -Q undo1.el", place point after the first form, press C-x C-e then C-_, point is placed at the original end of buffer. In contrast, every further time you do the same, point is placed at the end of the second form after the insertion is undone. When you then switch to the *scratch* buffer and then switch back and do the same, point is again placed at the original end of the buffer exactly the first time you do it, and placed at the other spot every further time. I find it desirable that point position after undo become more predictable in this case. I have also seen cases where point after undo is completely misplaced (i.e., neither at the place where point originally was, nor where the inserted text started), though I cannot yet reproduce it reliably. In GNU Emacs 23.0.60.1 (i386-apple-darwin8.11.1, GTK+ Version 2.12.9) of 2008-08-15 on mt-computer.local Windowing system distributor `The XFree86 Project, Inc', version 11.0.40400000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en.UTF-8 value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t