Questions tagged [quitting]
39 questions
2
votes
1 answer
How to debug slow respond or halt?
I try to comments 1.4K+ lines in a C++ function by using M-; or rectangle insert string //.
Wait for several minutes, Emacs still no respond. I have to kill Emacs.
In this case, how could I locate what cause the Emacs use 100% CPU and looks like do…

Enze Chi
- 1,460
- 13
- 29
1
vote
0 answers
How can I make sure I can stop a long operation in emacs?
I have a lisp function which performs a transformation on a buffer. It's usually quick, but sometimes it's very slow when the buffer is big.
I can see it's working, because it prints out its progress in the echo area, yet I cannot stop it with…

Tom
- 1,260
- 8
- 16
0
votes
0 answers
C-g sometimes doesn't work
For the past several weeks, I've experienced an erratic and hard-to-diagnose behavior: the C-g key binding sometimes doesn't work. Strangely, this problem doesn't affect alternative bindings of keyboard-quit. For example, if I bind keyboard-quit to…

Pablo
- 313
- 2
- 8
0
votes
0 answers
with-local-quit: do I need to set quit-flag to nil?
I have this code:
(defun my-test ()
(interactive)
(save-excursion
(let ((inhibit-quit t))
(with-local-quit
(goto-char (point-min))
(while (search-forward "foo" nil t)
(let ((b (copy-marker…

Gabriele
- 1,554
- 9
- 21
0
votes
2 answers
Value of confirm-kill-processes is ignored
When closing emacs, if I have unsaved buffers its a long process of having to read the questions (at first the logic is 'n' to not save and exit), then it changes to must type yes. Ideally there would be no 2nd question where one has to type out yes…
user27072
0
votes
0 answers
How do you write an abortable function?
How do you wrote an abortable function, so that
when user presses C-g during execution,
this function is "stopped"
;; my function so far
(defun my/elfeed-extra-info-2 ()
(interactive)
(next-line)
(message "here1")
(sleep-for 0.5)
…

american-ninja-warrior
- 3,903
- 2
- 24
- 44