Skip to content

Commit

Permalink
Merge pull request #4 from Fuco1/select-buffer-in-mrim
Browse files Browse the repository at this point in the history
Add C-u prefix to `mf/save-original-buffers` to select the buffer
  • Loading branch information
magnars committed Jun 15, 2013
2 parents 21535c9 + e3917c9 commit dddfe64
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions multifiles.el
Expand Up @@ -35,11 +35,13 @@
(require 'dash)

(defun mf/mirror-region-in-multifile (beg end &optional multifile-buffer)
(interactive "r")
(interactive (list (region-beginning) (region-end)
(when current-prefix-arg
(read-buffer "Mirror into buffer: " "*multifile*"))))
(deactivate-mark)
(let ((buffer (current-buffer))
(mode major-mode))
(switch-to-buffer-other-window (or "*multifile*" multifile-buffer))
(switch-to-buffer-other-window (or multifile-buffer "*multifile*"))
(funcall mode)
(multifiles-minor-mode 1)
(mf--add-mirror buffer beg end)
Expand Down

0 comments on commit dddfe64

Please sign in to comment.