From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.devel Subject: insert-file-contents disables undo Date: Thu, 24 Jul 2008 18:52:55 +0900 Organization: Emacsen advocacy group Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1216893228 2508 80.91.229.12 (24 Jul 2008 09:53:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Jul 2008 09:53:48 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 24 11:54:37 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 1KLxWn-00078M-51 for ged-emacs-devel@m.gmane.org; Thu, 24 Jul 2008 11:54:29 +0200 Original-Received: from localhost ([127.0.0.1]:36354 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLxVt-0005Xu-AT for ged-emacs-devel@m.gmane.org; Thu, 24 Jul 2008 05:53:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KLxVT-0005Ny-AE for emacs-devel@gnu.org; Thu, 24 Jul 2008 05:53:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KLxVR-0005Lk-B0 for emacs-devel@gnu.org; Thu, 24 Jul 2008 05:53:05 -0400 Original-Received: from [199.232.76.173] (port=59138 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLxVQ-0005L3-4Y for emacs-devel@gnu.org; Thu, 24 Jul 2008 05:53:04 -0400 Original-Received: from orlando.hostforweb.net ([216.246.45.90]:54689) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KLxVQ-0006Bg-Ib for emacs-devel@gnu.org; Thu, 24 Jul 2008 05:53:04 -0400 Original-Received: from localhost ([127.0.0.1]:59973) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1KLxVI-00015E-Oj for emacs-devel@gnu.org; Thu, 24 Jul 2008 04:52:57 -0500 X-Hashcash: 1:20:080724:emacs-devel@gnu.org::mRgxjvObhvi0PgP0:0000000000000000000000000000000000000000004yLE X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:hLiUV7LfLusvp6I9STaUrrV+CKE= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: 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:101375 Archived-At: Hi, When performing `insert-file-contents' at the end of a buffer, which is not empty, buffer's undo is disabled. It happens only with Emacs 23. (with-temp-buffer (buffer-enable-undo) (insert "\n") (insert-file-contents "~/.emacs") buffer-undo-list) => t I was troubled for months with this problem that sometimes happened when writing a message draft, and I found the cause of it today. It happens when I perform `message-insert-signature' which uses `insert-file-contents' to insert my ~/.signature file. It is not only on me, is it? Could someone repair it? Thanks in advance.