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 weirdness with insert-file-contents Date: Thu, 28 Feb 2008 20:35:24 +0100 Message-ID: <47C70CFC.30203@gmx.at> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060605020908000306050100" X-Trace: ger.gmane.org 1204227421 17765 80.91.229.12 (28 Feb 2008 19:37:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Feb 2008 19:37:01 +0000 (UTC) Cc: Bill Wohler , emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 28 20:37:26 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 1JUoZA-0004ig-02 for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2008 20:37:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUoYd-0003Ph-Hk for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2008 14:36:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUoXp-00035f-TC for emacs-devel@gnu.org; Thu, 28 Feb 2008 14:35:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUoXn-00034A-W4 for emacs-devel@gnu.org; Thu, 28 Feb 2008 14:35:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUoXn-00033x-PU for emacs-devel@gnu.org; Thu, 28 Feb 2008 14:35:51 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JUoXn-0008Ci-1M for emacs-devel@gnu.org; Thu, 28 Feb 2008 14:35:51 -0500 Original-Received: (qmail invoked by alias); 28 Feb 2008 19:35:49 -0000 Original-Received: from N765P023.adsl.highway.telekom.at (EHLO [62.47.39.151]) [62.47.39.151] by mail.gmx.net (mp013) with SMTP; 28 Feb 2008 20:35:49 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+cp74PuNOcdyumK6G58PtZXtrh9LxOC7TTlDrPif b49w8n6ISjnDVa 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:90766 Archived-At: This is a multi-part message in MIME format. --------------060605020908000306050100 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit >>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 (?): Thanks for noting. > 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 Bill, please try whether the attached patch works. --------------060605020908000306050100 Content-Type: text/plain; name="fileio.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="fileio.patch" *** fileio.c.~1.602.~ Thu Feb 14 20:41:44 2008 --- fileio.c Thu Feb 28 20:21:18 2008 *************** *** 4674,4680 **** /* Save old undo list and don't record undo for decoding. */ old_undo = current_buffer->undo_list; - current_buffer->undo_list = Qt; if (NILP (replace)) { --- 4674,4679 ---- --------------060605020908000306050100--