Fanael / edit-indirect

Edit regions in separate buffers
99 stars 23 forks source link

quit-window called even if no window was created #2

Closed gvol closed 8 years ago

gvol commented 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.

(with-current-buffer
    (edit-indirect-region (point-min) (point-max) nil)
  (indent-region (point-min) (point-max))
  (edit-indirect-commit))
Fanael commented 8 years ago

Good catch.

gvol commented 8 years ago

Sweet, thanks!