all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* find-file-literally and save-buffer
@ 2007-03-26 11:59 Alfred M. Szmidt
  2007-03-27  3:54 ` Chong Yidong
  0 siblings, 1 reply; 10+ messages in thread
From: Alfred M. Szmidt @ 2007-03-26 11:59 UTC (permalink / raw)
  To: emacs-devel

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.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-03-28  2:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.