Sometimes to speed up of opening an emacs' eshell directly from terminal (in my case from MS DOS prompt), I do emacs -Q -f eshell
. But when I try to exit emacs doesn't let it, unless I give some input to the below message in the mini-buffer.
select coding system (default utf-8):
This is really undesirable. I just like to exit and I don't care about the encoding. Is there a way to bypass this message?
Added 2: In the * Warning * buffer I get
These default coding systems were tried to encode text
in the buffer ` *temp*':
(iso-latin-1-dos (718 . 1575) (719 . 1606) (721 . 1583) (722 . 1604)
(723 . 1582) (724 . 1608) (725 . 1575) (726 . 1607) (728 . 1575)
(729 . 1585) (730 . 1575))
However, each of them encountered characters it couldn't encode:
iso-latin-1-dos cannot encode these: ا ن د ل خ و ا ه ا ر ...
Click on a character (or switch to this window by `C-x o'
and select the characters by RET) to jump to the place it appears,
where `C-u C-x =' will give information about it.
Select one of the safe coding systems listed below,
or cancel the writing with C-g and edit the buffer
to remove or modify the problematic characters,
or specify any other coding system (and risk losing
the problematic characters).
utf-8 gb18030 utf-7 utf-16 utf-16be-with-signature
utf-16le-with-signature utf-16be utf-16le iso-2022-7bit utf-8-auto
utf-8-with-signature utf-7-imap utf-8-emacs
It appear the buffer * temp * is the last entries of my previous eshells.
After a search, I found a post http://sourceforge.net/p/cedet/mailman/message/23702016/, by David Engster in which it is suggested that a bug is responsible for this.
I am not sure what to do.
Added 2: I should mention that if I go to eshell without the argument -Q
this problem doesn't arise.
*temp*
buffer created? A buffer without a file should not trigger autosave prompts on exit. Incidentally, the sourceforge bug report doesn't appear to be related, since it is about CEDET and EIEIO, which you don't seem to use.