From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bill Wohler Newsgroups: gmane.emacs.devel Subject: Re: undo weirdness with insert-file-contents Date: Thu, 28 Feb 2008 21:50:57 -0800 Organization: Newt Software Message-ID: <873arcgvjy.fsf@olgas.newt.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204264294 31398 80.91.229.12 (29 Feb 2008 05:51:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Feb 2008 05:51:34 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 29 06:51:57 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 1JUy9y-0006zt-UF for ged-emacs-devel@m.gmane.org; Fri, 29 Feb 2008 06:51:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUy9S-0000LI-Mi for ged-emacs-devel@m.gmane.org; Fri, 29 Feb 2008 00:51:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUy9L-0000Ir-1j for emacs-devel@gnu.org; Fri, 29 Feb 2008 00:51:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUy9H-0000F8-Du for emacs-devel@gnu.org; Fri, 29 Feb 2008 00:51:13 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUy9H-0000Eu-80 for emacs-devel@gnu.org; Fri, 29 Feb 2008 00:51:11 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JUy9G-0000kv-Jd for emacs-devel@gnu.org; Fri, 29 Feb 2008 00:51:10 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JUy9A-0000j4-Rx for emacs-devel@gnu.org; Fri, 29 Feb 2008 05:51:04 +0000 Original-Received: from h-68-164-242-205.snvacaid.dynamic.covad.net ([68.164.242.205]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Feb 2008 05:51:04 +0000 Original-Received: from wohler by h-68-164-242-205.snvacaid.dynamic.covad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Feb 2008 05:51:04 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: h-68-164-242-205.snvacaid.dynamic.covad.net User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:8kcnsEelmdjRnOubJIx/cSzxF2g= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:90834 Archived-At: Glenn Morris writes: > Miles Bader wrote: > >> I define a "message-setup-hook" which for some reason has the unintended >> side-effect of turning off undo in the result message-mode buffer >> [buffer-undo-list has a value of t]. > > Here's a simpler example of the same thing (?): > > http://lists.gnu.org/archive/html/emacs-devel/2008-02/msg02302.html > > From: Bill Wohler > Subject: 23.0.60; Disabled undo > Date: Sat, 23 Feb 2008 22:07:26 -0800 Thanks, Glenn. Yes, I suspect that it is the same thing. My original message, however, didn't get quite the same attention as Miles' :-). Martin, I'll assume that I'd observe the same as Glenn. I'll be happy to try out new patches. > now works in both 22 and 23, but in 22 the buffer is marked as not > modified after undo. It 23 it is marked as modified. I agree with Martin; the buffer, which is now in its original pristine state, should not be marked modified. -- Bill Wohler http://www.newt.com/wohler/ GnuPG ID:610BD9AD