From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: TODO Date: Thu, 28 Feb 2008 11:41:20 -0500 Message-ID: References: <5E2DA7EF-D0F1-4B0C-A3DC-F0B64FE2FE00@gmail.com> <13170DB6-B7A1-4843-AAF5-AB68B65D2331@gmail.com> <18370.18434.78349.822958@kahikatea.snap.net.nz> <200802261813.m1QIDEku015891@sallyv1.ics.uci.edu> <200802261848.m1QImEag004425@sallyv1.ics.uci.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1204216913 8845 80.91.229.12 (28 Feb 2008 16:41:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Feb 2008 16:41:53 +0000 (UTC) Cc: mail.vjrao@gmail.com, dann@ics.uci.edu, nickrob@snap.net.nz, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 28 17:42:15 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 1JUlpZ-0006BT-4Z for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2008 17:42:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUlp2-0004O1-OL for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2008 11:41:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUloy-0004Nm-7u for emacs-devel@gnu.org; Thu, 28 Feb 2008 11:41:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUlow-0004NL-7F for emacs-devel@gnu.org; Thu, 28 Feb 2008 11:41:23 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUlow-0004NH-3M for emacs-devel@gnu.org; Thu, 28 Feb 2008 11:41:22 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JUlov-0006qR-Qx for emacs-devel@gnu.org; Thu, 28 Feb 2008 11:41:21 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1JUlou-0003tX-Ny; Thu, 28 Feb 2008 11:41:20 -0500 In-reply-to: (message from Stefan Monnier on Wed, 27 Feb 2008 15:45:01 -0500) 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:90730 Archived-At: If `insert-file-contents' does not change any part of the buffer, it's basically a no-op. I see hence no reason for it to flush the undo-list in that case. The point is that it is somewhat unclean for the flushing to depend on the data in the file. So the usual ways of calling `insert-file-contents' should either flush or not, regardless of the data in the file.