Use functions instead of lambdas in add-hook calls
This commit is contained in:
@ -407,13 +407,15 @@ article-mode."
|
||||
(mu4e-view-mode)
|
||||
(setq gnus-article-decoded-p gnus-article-decode-hook)
|
||||
(set-buffer-modified-p nil)
|
||||
(add-hook 'kill-buffer-hook
|
||||
(lambda() ;; cleanup the mm-* buffers that the view spawns
|
||||
(when mu4e~gnus-article-mime-handles
|
||||
(mm-destroy-parts mu4e~gnus-article-mime-handles)
|
||||
(setq mu4e~gnus-article-mime-handles nil))))
|
||||
(add-hook 'kill-buffer-hook #'mu4e~view-kill-buffer-hook-fn)
|
||||
(read-only-mode)))
|
||||
|
||||
(defun mu4e~view-kill-buffer-hook-fn ()
|
||||
;; cleanup the mm-* buffers that the view spawns
|
||||
(when mu4e~gnus-article-mime-handles
|
||||
(mm-destroy-parts mu4e~gnus-article-mime-handles)
|
||||
(setq mu4e~gnus-article-mime-handles nil)))
|
||||
|
||||
(defun mu4e~view-gnus-display-mime (msg)
|
||||
"Same as `gnus-display-mime' but add a mu4e headers to MSG."
|
||||
(lambda (&optional ihandles)
|
||||
|
||||
Reference in New Issue
Block a user