From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: undo weirdness with insert-file-contents Date: Thu, 28 Feb 2008 15:28:50 -0500 Message-ID: References: <47C70CFC.30203@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204230552 30629 80.91.229.12 (28 Feb 2008 20:29:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Feb 2008 20:29:12 +0000 (UTC) Cc: Bill Wohler , emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 28 21:29:38 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 1JUpNi-0002Ry-0d for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2008 21:29:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUpNB-0004UV-LE for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2008 15:28:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUpN6-0004UM-U4 for emacs-devel@gnu.org; Thu, 28 Feb 2008 15:28:52 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUpN5-0004Tw-J6 for emacs-devel@gnu.org; Thu, 28 Feb 2008 15:28:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUpN5-0004Tt-EM for emacs-devel@gnu.org; Thu, 28 Feb 2008 15:28:51 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JUpN5-0005N6-Hl for emacs-devel@gnu.org; Thu, 28 Feb 2008 15:28:51 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1JUpN4-00064k-88; Thu, 28 Feb 2008 15:28:50 -0500 X-Spook: Rule Psix Plame wire transfer INSCOM Afghanistan SWAT X-Ran: <(*|M|71|z}84(syi+U8AM/y{@.m\t{apYtJ'nVB^M;.2Hqsu,?"N[YW`&Br6bEl%(Njy# X-Hue: white X-Attribution: GM In-Reply-To: <47C70CFC.30203@gmx.at> (martin rudalics's message of "Thu, 28 Feb 2008 20:35:24 +0100") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) 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:90773 Archived-At: martin rudalics wrote: > Bill, please try whether the attached patch works. Works for me. However the behaviour differs from Emacs 22: (progn (pop-to-buffer "foo") (insert-file-contents "/etc/issue") (goto-char (point-max)) (insert-file-contents "/etc/issue")) M-x undo 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.