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: find-file-literally and save-buffer Date: Mon, 26 Mar 2007 13:59:10 +0200 (CEST) Message-ID: <20070326115910.697F830147@Psilocybe.Update.UU.SE> Reply-To: ams@gnu.org NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1174910425 32263 80.91.229.12 (26 Mar 2007 12:00:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2007 12:00:25 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 26 14:00:14 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 1HVnrx-0007iv-V1 for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 14:00:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVnuB-0001ld-2a for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 07:02:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVntE-0008Ep-OA for emacs-devel@gnu.org; Mon, 26 Mar 2007 08:01:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HVntC-0008A1-VI for emacs-devel@gnu.org; Mon, 26 Mar 2007 08:01:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVntC-00089P-IX for emacs-devel@gnu.org; Mon, 26 Mar 2007 07:01:30 -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 1HVnqx-0008BF-6D for emacs-devel@gnu.org; Mon, 26 Mar 2007 07:59:11 -0400 Original-Received: by Psilocybe.Update.UU.SE (Postfix, from userid 30270) id 697F830147; Mon, 26 Mar 2007 13:59:10 +0200 (CEST) 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:68589 Archived-At: Hey, When you open a RMAIL (might occur with other modes as well) buffer literally, and then try to save it, emacs just keeps asking if you wish to save the file and visit it normally. Answering `yes' doesn't do anything, it keeps asking the same question. Answering no will just ask you if you want to discard the changes. The message that one gets seems awfully long as well, 6 lines: | The file %s is already visited normally, | and you have edited the buffer. Now you have asked to visit it literally, | meaning no coding system handling, format conversion, or local variables. | Emacs can only visit a file in one way at a time. | | Do you want to save the file, and visit it literally instead? To reproduce: | emacs -Q | M-x find-file-literally ~/RMAIL.empty RET | C-u M-~ (not-modified t) | C-x C-s (save-buffer) Answering y at this point has no effect, though if you keep it pressed for a while you get this message in *Messages* | vc-check-master-templates: Lisp nesting exeeds `max-lisp-eval-depth' RMAIL.empty was created with: | C-u M-x rmail ~/RMAIL.empty RET | s (rmail-expunge-and-save) There also seems to be no way to save the buffer, without visiting the file normally. Cheers.