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#731: 23.0.60; Varying point position after undo Date: Sun, 21 Sep 2008 13:58:37 +0200 Message-ID: <48D636ED.3020103@gmx.at> References: <20080918232637.dyy4dg5nhiwgs4s4@webmail.mit.edu> <48D36604.7020702@gmx.at> Reply-To: martin rudalics , 731@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050006030101010109010606" X-Trace: ger.gmane.org 1222000082 20204 80.91.229.12 (21 Sep 2008 12:28:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Sep 2008 12:28:02 +0000 (UTC) Cc: 731@emacsbugs.donarmstrong.com, cyd@MIT.EDU To: Markus Triska Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 21 14:28:58 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 1KhO3W-0004RD-NT for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Sep 2008 14:28:50 +0200 Original-Received: from localhost ([127.0.0.1]:50886 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KhO2U-0000cy-1o for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Sep 2008 08:27:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KhO2O-0000cK-PQ for bug-gnu-emacs@gnu.org; Sun, 21 Sep 2008 08:27:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KhO2N-0000bz-9n for bug-gnu-emacs@gnu.org; Sun, 21 Sep 2008 08:27:40 -0400 Original-Received: from [199.232.76.173] (port=51490 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KhO2N-0000bw-6O for bug-gnu-emacs@gnu.org; Sun, 21 Sep 2008 08:27:39 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:50901) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KhO2M-0004ms-KN for bug-gnu-emacs@gnu.org; Sun, 21 Sep 2008 08:27:38 -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 m8LCRaJ4006953; Sun, 21 Sep 2008 05:27:36 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8LCA7Oq000335; Sun, 21 Sep 2008 05:10:07 -0700 X-Loop: don@donarmstrong.com Resent-From: martin rudalics Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 21 Sep 2008 12:10:06 +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 731-submit@emacsbugs.donarmstrong.com id=B731.122199849129689 (code B ref 731); Sun, 21 Sep 2008 12:10:06 +0000 Original-Received: (at 731) by emacsbugs.donarmstrong.com; 21 Sep 2008 12:01:31 +0000 Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m8LC1QAF029682 for <731@emacsbugs.donarmstrong.com>; Sun, 21 Sep 2008 05:01:28 -0700 Original-Received: (qmail invoked by alias); 21 Sep 2008 12:01:20 -0000 Original-Received: from 88-117-42-206.adsl.highway.telekom.at (EHLO [88.117.42.206]) [88.117.42.206] by mail.gmx.net (mp019) with SMTP; 21 Sep 2008 14:01:20 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+XFDkYrzCXmAG5Wqhg0WUVbPwfhz8A7ucOWM/3qd rmeYOOpO5ZUjM5 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: X-Y-GMX-Trusted: 0 X-FuHaFi: 0.72,0.62 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 21 Sep 2008 08:27:40 -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:20681 Archived-At: This is a multi-part message in MIME format. --------------050006030101010109010606 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > buffer-undo-list is initially nil regardless of how I open the file. > When I open the file from the command line and then press C-M-x on the > first form, `buffer-undo-list' is with CVS trunk: > > (nil > (96 . 106) > (t 18643 . 10108)) > > whereas with Emacs 22.2, it is: > > (nil > (96 . 106) > 1 > (t 18643 . 10108)) Hmmm... Can you try the attached patch? martin --------------050006030101010109010606 Content-Type: text/plain; name="731.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="731.diff" *** undo.c.~1.85.~ 2008-05-14 09:49:54.000000000 +0200 --- undo.c 2008-09-21 13:44:44.468750000 +0200 *************** *** 79,85 **** if (NILP (pending_boundary)) pending_boundary = Fcons (Qnil, Qnil); ! if (current_buffer != last_undo_buffer) Fundo_boundary (); last_undo_buffer = current_buffer; --- 79,88 ---- if (NILP (pending_boundary)) pending_boundary = Fcons (Qnil, Qnil); ! if ((current_buffer != last_undo_buffer) ! /* Don't make an undo boundary when record_first_change will do it ! anyway. */ ! && (MODIFF > SAVE_MODIFF)) Fundo_boundary (); last_undo_buffer = current_buffer; --------------050006030101010109010606--