From: Stefan Monnier <monnier@iro.umontreal.ca>
To: ams@gnu.org
Cc: cyd@stupidchicken.com, emacs-devel@gnu.org
Subject: Re: find-file-literally and save-buffer
Date: Tue, 27 Mar 2007 22:33:28 -0400 [thread overview]
Message-ID: <jwv3b3qayin.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20070328015123.899BB300F3@Psilocybe.Update.UU.SE> (Alfred M. Szmidt's message of "Wed\, 28 Mar 2007 03\:51\:23 +0200 \(CEST\)")
>>> >> | 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
prev parent reply other threads:[~2007-03-28 2:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-26 11:59 find-file-literally and save-buffer Alfred M. Szmidt
2007-03-27 3:54 ` Chong Yidong
2007-03-27 4:07 ` Chong Yidong
2007-03-27 9:47 ` Alfred M. Szmidt
2007-03-27 11:37 ` Alfred M. Szmidt
2007-03-27 14:27 ` Chong Yidong
2007-03-27 18:56 ` Alfred M. Szmidt
2007-03-28 1:19 ` Stefan Monnier
2007-03-28 1:51 ` Alfred M. Szmidt
2007-03-28 2:33 ` Stefan Monnier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv3b3qayin.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=ams@gnu.org \
--cc=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).