Questions tagged [quitting]
35 questions
64
votes
2 answers
What do I do when Emacs is frozen?
What should I do when Emacs stops responding?
My current "emacs-is-frozen" protocol looks like this:
Spam C-g (it sometimes works)
Wait for a while.
pkill -9 emacs
What alternate steps could I try to avoid losing work that hasn't been autosaved…

Clément
- 3,924
- 1
- 22
- 37
62
votes
4 answers
Debugging a frozen Emacs
I am using mew for my e-mail. I need to use TLS with my email provider for SMTP. However, when I try to invoke that, Emacs freezes.
I would like to take this opportunity to learn more about Emacs packages. How would I go about debugging this…

Svante
- 721
- 5
- 7
10
votes
2 answers
How to set temporary halt after C-x C-c?
If I run C-x C-c in emacs, it will close immediately. If I set confirm-kill-emacs to y-or-n-p it will ask for confirmation before closing.
Instead of y-or-n-p, I want to set some temporary timer for 3 seconds before closing emacs. So, if I press…

Chillar Anand
- 4,042
- 1
- 23
- 52
8
votes
2 answers
How to move the cursor to a newly opened buffer only when the newly opened buffer can be closed with q?
Some buffers can be closed by being in them and pressing q such as the help buffer, doing C-h k M-x will open a help buffer describing the keybinding M-x. Although, the cursor will stay in the original buffer and when I done reading the help buffer,…

scribe
- 930
- 4
- 15
6
votes
1 answer
Interrupt ELisp interpreter from outside Emacs?
Sometimes Lisp hangs due to an infinite loop, making the whole of Emacs unresponsive, so it can't process any input, C-g included. So, I was hoping for there to be a way to maybe send it an emergency call from the outside, which would interrupt the…

wvxvw
- 11,222
- 2
- 30
- 55
6
votes
2 answers
Emacs doesn't let me exit without selecting a coding system
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…

Name
- 7,689
- 4
- 38
- 84
6
votes
2 answers
How can I kill all unmodified buffers / files and delete their related frames?
How can I close all unmodified buffers?
Usually after a day of work - I've got a ton of buffers / frames open. Right now I have to navigate to each frame and close it - which then prompts me if the file has been modified.

Chris Stryczynski
- 707
- 5
- 23
5
votes
1 answer
How to exit minibuffer with one key?
How can I tell emacs that one key press of should terminate the minibuffer, like C-g does by default?
I tried in scratch buffer:
(global-set-key (kbd "") 'keyboard-quit)
but if I go M-x woopswrongcommand i'm still stuck in the…

John Doe
- 159
- 6
5
votes
2 answers
Closing emacsclient after quitting calc?
I'd like to run calc in an emacsclient in my terminal, and then have that particular emacsclient session close completely and return me to my shell when calc quits.
I've got the first part of that working with emacsclient -t --eval '(calc nil t)'…

izkon
- 1,798
- 10
- 23
5
votes
3 answers
If I press CTRL-x CTRL-c and exited the scratch buffer in Emacs, will everything I typed be gone?
My Internet was not working, and while waiting it to go back up, I used Emacs to type some ideas first.
A few minutes later, the Internet was up, and I checked my Chrome browser, and it worked. So I will use Google Docs instead, I thought.
So I came…

nonopolarity
- 273
- 1
- 7
4
votes
1 answer
why do I need to use ctrl-G twice to quit a minibuffer prompt?
Sometime recently emacs started making me hit C-g twice to quit a minibuffer prompt and I can't figure out how or why it's doing this.
What happens is I start a minibuffer command -- say, C-x C-f -- and then hit C-g to quit. Emacs then appends…

Dan Drake
- 503
- 2
- 15
4
votes
3 answers
EXWM - How to close another emacs opened inside exwm?
Inside EXWM (from "term") I opened another Emacs session (git commit opened it).
How do I close this Emacs session?

Everton J. Carpes
- 43
- 3
4
votes
1 answer
how to read messages which appear after `C-x C-c`?
When I exit emacs via C-x C-c (save-buffers-kill-terminal) it prints a message in minibuffer. I can't read the message because the frame gets destroyed too fast.
I'd like to read the message(s), how can I do this?

jue
- 4,476
- 8
- 20
4
votes
0 answers
Quitting emacs is very slow
Quitting my Emacs takes a really long time.
Is there a good way to track what's happening while quitting Emacs?
(So far I'm turning to git blame to figure out what changes I have made to cause this problem.)

diadochos
- 611
- 5
- 13
4
votes
1 answer
Confirm quit only for keyboard shortcut, not for window close via mouse
I activated setq-local confirm-kill-emacs (quote y-or-n-p) on a hook for a local mode which has a shortcut very similar to C-x C-c, in order to avoid accidentally closing Emacs when trying to execute the said shortcut. That way, Emacs will ask me to…

anol
- 195
- 4