* mu4e-view.el: emacs23 work-around hack for missing `window-parent' function

This commit is contained in:
djcb
2012-04-23 21:01:28 +03:00
parent 78dc4e94bd
commit c4c1e193cd

View File

@ -539,9 +539,14 @@ citations."
(interactive)
(when (buffer-live-p mu4e-view-buffer)
(with-current-buffer mu4e-view-buffer
(if (fboundp 'window-parent) ;; window-parent is an emacs24ism
(if (window-parent)
(kill-buffer-and-window)
(kill-buffer)))))
(kill-buffer))
;; emacs23 hack: trial and error
(condition-case nil
(kill-buffer-and-window)
(kill-buffer))))))
(defun mu4e-view-action (&optional msg)
"Ask user for some action to apply on MSG (or message-at-point,