The bug could be reproduced in emacs -Q with a plain text file.
-
Create a text file with a few lines, e.g.,
foo
bar
foobar
-
M-x consult-focus-lines, type foo, press RET. Now the buffer only shows the matching lines, and a FOCUS indicator shows in the mode line.
-
M-x revert-buffer-quick (C-x x g). The FOCUS indicator disappears.
-
Try to bring back the original content by either C-u M-x consult-focus-lines or M-x consult-focus-lines and press RET right away. Neither does anything.
The only way I found to get the original content back is to kill the buffer and reopen the file.
A few more notes.
- It also happens with
.org files.
- I could not reproduce it with a
.md file. In that case, revert-buffer-quick restores the original content immediately.
Environment
emacs -Q, Emacs 32.0.50
- Consult 3.7 (
3a2441d)
- macOS Tahoe 26.6.2
The bug could be reproduced in
emacs -Qwith a plain text file.Create a text file with a few lines, e.g.,
foo
bar
foobar
M-x consult-focus-lines, typefoo, press RET. Now the buffer only shows the matching lines, and aFOCUSindicator shows in the mode line.M-x revert-buffer-quick(C-x x g). TheFOCUSindicator disappears.Try to bring back the original content by either
C-u M-x consult-focus-linesorM-x consult-focus-linesand press RET right away. Neither does anything.The only way I found to get the original content back is to kill the buffer and reopen the file.
A few more notes.
.orgfiles..mdfile. In that case,revert-buffer-quickrestores the original content immediately.Environment
emacs -Q, Emacs 32.0.503a2441d)