[Emacs] Make imalison:other-window handle windows AND frames

This commit is contained in:
Ivan Malison 2016-11-07 17:23:08 -08:00
parent 19fe0379a7
commit 1950c24fff
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -1190,12 +1190,11 @@ programming mode.
(make-frame) (make-frame)
(split-window-right))) (split-window-right)))
(defun imalison:other-window (&rest args) (defun imalison:other-window (count)
(interactive (interactive
(list 1)) (list 1))
(if (imalison:use-frames-only) (other-window count 'visible)
(apply 'other-frame args) (select-frame-set-input-focus (selected-frame)))
(apply 'other-window args)))
(when imalison:use-frames-only (when imalison:use-frames-only
(setq pop-up-frames 'graphic-only) (setq pop-up-frames 'graphic-only)