From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: undo bug? Date: Tue, 01 Apr 2008 13:43:39 +0200 Message-ID: <47F21FEB.401@gmx.at> References: 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: ger.gmane.org 1207050179 26310 80.91.229.12 (1 Apr 2008 11:42:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Apr 2008 11:42:59 +0000 (UTC) Cc: emacs-devel@gnu.org To: Katsumi Yamaoka Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 01 13:43:30 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jgetf-00030v-Nd for ged-emacs-devel@m.gmane.org; Tue, 01 Apr 2008 13:43:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jget3-0008Fb-Kh for ged-emacs-devel@m.gmane.org; Tue, 01 Apr 2008 07:42:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jgesy-0008C4-Up for emacs-devel@gnu.org; Tue, 01 Apr 2008 07:42:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jgesw-00086r-AV for emacs-devel@gnu.org; Tue, 01 Apr 2008 07:42:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jgesw-00086f-6Z for emacs-devel@gnu.org; Tue, 01 Apr 2008 07:42:38 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Jgesv-0001mM-Oj for emacs-devel@gnu.org; Tue, 01 Apr 2008 07:42:38 -0400 Original-Received: (qmail invoked by alias); 01 Apr 2008 11:42:33 -0000 Original-Received: from 62-47-40-81.adsl.highway.telekom.at (EHLO [62.47.40.81]) [62.47.40.81] by mail.gmx.net (mp015) with SMTP; 01 Apr 2008 13:42:33 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/5oTBXXKb5ScsjKVH48WHVCiDrDLhNYw5aDjYs4y z4i6uCkAWjSi4x User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:94106 Archived-At: > (defun x3 () > (interactive) > (delete-backward-char 3) > (setq buffer-undo-list nil) > (insert "A") > (message "%s" buffer-undo-list)) Can you please test with (CVS) Emacs 23 whether (defun x3 () (interactive) (let ((undo-inhibit-record-point t)) (delete-backward-char 3) (setq buffer-undo-list nil) (insert "A") (message "%s" buffer-undo-list))) does what you want here? If it solves your problem then we probably should consider a solution like the one I sketched in http://lists.gnu.org/archive/html/bug-gnu-emacs/2008-03/msg00096.html