Questions tagged [recursive-edit]
8 questions
7
votes
2 answers
query-replace in keyboard macro
Let me define a keyboard-macro: I enter C-x (, then go to beginning with M-<, then type M-% to query-replace some occurrences of foo by bar. Out of 3 occurrences found, I replace only the last 2, then save with C-x C-s and finish the kbd-macro with…

phs
- 1,095
- 6
- 13
6
votes
3 answers
Why do some commands terminate when leaving the minibuffer (isearch) while others don't (find-file)?
Occasionally I start to open a file, and before I select the file for some reason I execute C-x o before answering the prompt. Then everytime I try and run find-file again it complains about Command attempted to use minibuffer while in minibuffer.…

dgtized
- 4,169
- 20
- 41
4
votes
1 answer
How to give user free rein to edit a buffer in the middle of lisp code?
I'm trying to run some code, a little like this:
(defun myfun ()
(message "one")
(user-does-things)
(message "two")
I would like the code to do this:
display "one"
let the user edit in another buffer
When the user is done editing, display…

Trevoke
- 2,375
- 21
- 34
3
votes
1 answer
How to enable Backtrace?
I'm following the tutorial's "Making error": reproduced in the screenshot below. The manufactured error does not open the Backtrace window as it should. The same page says "It is possible to prevent Emacs entering the debugger in cases like this.…
user19777
3
votes
1 answer
How to identify the source of a recursive edit?
Every once in a while I notice that the mode name on the mode-line
says [Emacs-Lisp] instead of just Emacs-Lisp. I realise that this
indicates a recursive edit, and I can get rid of it with C-M-c, but
I never know what triggered it.
Is there a way…

Malabarba
- 22,878
- 6
- 78
- 163
2
votes
2 answers
Emacs 28: How to use `RET` without exiting a recursive edit within a keyboard macro?
Now that I switched to using GNU Emacs 28.1 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2022-05-11 I can no longer end my use of my keyboard macro that allows me to rename a file, by using the…

Alan Wehmann
- 75
- 5
2
votes
1 answer
What are the implications of working in multiple layers of recursive-edit?
I'm not sure if I fully understand the use-cases of recursive edit.
Nor am I sure if I worded this question correctly.
But every now and then when I'm doing something I'll look at the minibuffer and see that I'll be currently in a layer of…

John DeBord
- 550
- 3
- 13
1
vote
0 answers
Quitting minibufer works no more in 24.5.1?
In GNU Emacs 24.5.1, which comes with Ubuntu 16.04 Xenial Xerus the C-g does not abort the command like it used to do in earlier versions, which is annoying as it breaks the habit.
There is C-] command, which seemingly does the same thing, but…

Roman Susi
- 210
- 1
- 6