Skip to content

Commit

Permalink
Do not advise delete-window Increase compatibility with packages (pre…
Browse files Browse the repository at this point in the history
…sumably)
  • Loading branch information
davidswelt authored and dholm committed Jul 26, 2018
1 parent e315e85 commit 1fc3e22
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions one-buffer-one-frame.el
Original file line number Diff line number Diff line change
Expand Up @@ -645,8 +645,7 @@ even if it's the only visible frame."
(select-window window)
(if (one-window-p t)
(aquamacs-delete-frame)
(old-delete-window (selected-window))))
;; old-delete-window is the original emacs delete-window.
(delete-window (selected-window))))

(defun delete-window-if-one-buffer-one-frame ()
;; only delete window when tabbar-mode is not on!
Expand Down

0 comments on commit 1fc3e22

Please sign in to comment.