Discussion:
Weird state
(too old to reply)
Dieter Britz
2016-01-15 14:14:01 UTC
Permalink
Sometimes during an emacs session, I hit some wrong key and
I get into some buffer state, where there is this on the screen:

;; This buffer is for notes you don't want to save, and for Lisp
evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.

The only way I know how to get back to the session is to
exit/save and go back in again. But there must be a "normal"
way to revert to the editing session. What is it, please?
--
Dieter Britz
Barry Margolin
2016-01-15 17:28:14 UTC
Permalink
Post by Dieter Britz
Sometimes during an emacs session, I hit some wrong key and
;; This buffer is for notes you don't want to save, and for Lisp
evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.
The only way I know how to get back to the session is to
exit/save and go back in again. But there must be a "normal"
way to revert to the editing session. What is it, please?
That's just the *scratch* buffer. You should be able to use C-x b to
switch back to another buffer.
--
Barry Margolin, ***@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
Pascal J. Bourguignon
2016-01-15 20:32:32 UTC
Permalink
Post by Dieter Britz
Sometimes during an emacs session, I hit some wrong key and
You can type C-h l to see what you did, and then avoid redoing it.
Post by Dieter Britz
;; This buffer is for notes you don't want to save, and for Lisp
evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.
The only way I know how to get back to the session is to
exit/save and go back in again. But there must be a "normal"
way to revert to the editing session. What is it, please?
Actually this is the *scratch* buffer. It's a buffer that you can use as
a scrap book. Also, since it is in the emacs-lisp-mode by default, you
can use it to type lisp expressions and evaluate them.
You can try it:

(+ 2 3) C-u C-x C-e

Anyways, you should be able to go back to your original buffer with:

C-x b RET

You can see all your buffers with:

C-x C-b

and select the buffer you want to go back by clicking on it, or using
C-n, C-p, etc and RET. You can also save or kill buffers from the
*Buffer List* buffer, by typing s or k (and then x to execute the
orders). Type C-h m for more information about the bindings available
in a given mode (in a given buffer).
--
__Pascal Bourguignon__ http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk
Loading...