Skip to content

Commit

Permalink
Fix #127 dired has switch to use pop-to-buffer-same-window on Emacs 2…
Browse files Browse the repository at this point in the history
…6, this fix lets purpose handle displaying it
  • Loading branch information
wyuenho authored and bmag committed May 31, 2018
1 parent 5d8f1d1 commit 8737c5d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions window-purpose-x.el
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,11 @@ If current buffer doesn't have a filename, do nothing."
(cl-delete-if #'window-dedicated-p
(purpose-windows-with-purpose 'dired)))
(save-selected-window
(dired (file-name-directory (buffer-file-name)))
(when (fboundp 'dired-hide-details-mode)
(dired-hide-details-mode))
(let ((buffer (dired-noselect (file-name-directory (buffer-file-name)))))
(with-current-buffer buffer
(when (fboundp 'dired-hide-details-mode)
(dired-hide-details-mode)))
(display-buffer buffer))
(bury-buffer (current-buffer)))))

(defun purpose-x-code1-update-changed ()
Expand Down

0 comments on commit 8737c5d

Please sign in to comment.