Closed gvol closed 8 years ago
I have the following minimal example of something that I want to do. The intention is to indent (a portion of) the buffer with another major-mode. But edit-indirect-commit calls quit-window which buries the buffer I'm working in.
edit-indirect-commit
(with-current-buffer (edit-indirect-region (point-min) (point-max) nil) (indent-region (point-min) (point-max)) (edit-indirect-commit))
Good catch.
Sweet, thanks!
I have the following minimal example of something that I want to do. The intention is to indent (a portion of) the buffer with another major-mode. But
edit-indirect-commit
calls quit-window which buries the buffer I'm working in.