From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: find-file-literally and save-buffer Date: Tue, 27 Mar 2007 22:33:28 -0400 Message-ID: References: <20070326115910.697F830147@Psilocybe.Update.UU.SE> <87odmfnxxw.fsf@stupidchicken.com> <87k5x3nxcl.fsf@stupidchicken.com> <20070327113711.6EE393012B@Psilocybe.Update.UU.SE> <87y7lircb4.fsf@stupidchicken.com> <20070328015123.899BB300F3@Psilocybe.Update.UU.SE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1175049226 12389 80.91.229.12 (28 Mar 2007 02:33:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Mar 2007 02:33:46 +0000 (UTC) Cc: cyd@stupidchicken.com, emacs-devel@gnu.org To: ams@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 28 04:33:38 2007 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 1HWNyj-0001Dc-1c for ged-emacs-devel@m.gmane.org; Wed, 28 Mar 2007 04:33:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWO18-0005zm-Nu for ged-emacs-devel@m.gmane.org; Tue, 27 Mar 2007 21:36:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HWO15-0005xc-Pv for emacs-devel@gnu.org; Tue, 27 Mar 2007 22:36:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HWO13-0005sU-AN for emacs-devel@gnu.org; Tue, 27 Mar 2007 22:36:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWO13-0005s8-7P for emacs-devel@gnu.org; Tue, 27 Mar 2007 21:36:01 -0500 Original-Received: from tomts36.bellnexxia.net ([209.226.175.93] helo=tomts36-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HWNyb-0000J3-J0; Tue, 27 Mar 2007 22:33:29 -0400 Original-Received: from pastel.home ([70.55.83.113]) by tomts36-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070328023328.MBZ1612.tomts36-srv.bellnexxia.net@pastel.home>; Tue, 27 Mar 2007 22:33:28 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 246ED80FA; Tue, 27 Mar 2007 22:33:28 -0400 (EDT) In-Reply-To: <20070328015123.899BB300F3@Psilocybe.Update.UU.SE> (Alfred M. Szmidt's message of "Wed\, 28 Mar 2007 03\:51\:23 +0200 \(CEST\)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux) X-detected-kernel: Solaris 8 (1) 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:68694 Archived-At: >>> >> | emacs -Q >>> >> | M-x find-file-literally ~/RMAIL.empty RET >>> >> | C-u M-~ (not-modified t) >>> >> | C-x C-s (save-buffer) >>> >>> I think this might be related to me having my home directory >>> under version control ... I think it is because >>> vc-arch-file-source-p calls find-file-noselect, which in turn >>> calls vc-arch-file-source-p, and so on... >> Probably the fix is for vc-arch-file-source-p to check if >> get-file-buffer is nil; if so, it should perform >> insert-file-contents on a temp buffer, instead of visiting the >> file directly. > Sounds right, I've just installed the patch below to address it, > This supresses the question about reverting the buffer to a normal > mode when saving a file after using find-file-literally, is that > intended? No. But it's a separate/different bug, I believe. Stefan