From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Alfred M. Szmidt" Newsgroups: gmane.emacs.devel Subject: Re: find-file-literally and save-buffer Date: Wed, 28 Mar 2007 03:51:23 +0200 (CEST) Message-ID: <20070328015123.899BB300F3@Psilocybe.Update.UU.SE> 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> Reply-To: ams@gnu.org NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1175046711 1810 80.91.229.12 (28 Mar 2007 01:51:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Mar 2007 01:51:51 +0000 (UTC) Cc: cyd@stupidchicken.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 28 03:51:44 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 1HWNKA-0007ae-2s for ged-emacs-devel@m.gmane.org; Wed, 28 Mar 2007 03:51:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWNMZ-0005gH-CP for ged-emacs-devel@m.gmane.org; Tue, 27 Mar 2007 20:54:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HWNMM-0005YO-F6 for emacs-devel@gnu.org; Tue, 27 Mar 2007 21:53:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HWNMI-0005SJ-Pa for emacs-devel@gnu.org; Tue, 27 Mar 2007 21:53:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HWNMI-0005S6-NB for emacs-devel@gnu.org; Tue, 27 Mar 2007 20:53:54 -0500 Original-Received: from psilocybe.update.uu.se ([130.238.19.25]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HWNJs-00017i-E8 for emacs-devel@gnu.org; Tue, 27 Mar 2007 21:51:24 -0400 Original-Received: by Psilocybe.Update.UU.SE (Postfix, from userid 30270) id 899BB300F3; Wed, 28 Mar 2007 03:51:23 +0200 (CEST) In-reply-to: (message from Stefan Monnier on Tue, 27 Mar 2007 21:19:41 -0400) X-detected-kernel: Linux 2.6 (newer, 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:68693 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?