emacs: notmuch-wash.el: require diff-mode at beginning of code

That's what we usually do.  Also do not declare variable
`diff-file-header-re' because it is defined in `diff-mode.el',
which we always require.
This commit is contained in:
Jonas Bernoulli 2021-01-10 15:00:55 +01:00 committed by David Bremner
parent b4deb33a66
commit 3f16dd7611

View file

@ -24,6 +24,7 @@
;;; Code: ;;; Code:
(require 'coolj) (require 'coolj)
(require 'diff-mode)
(require 'notmuch-lib) (require 'notmuch-lib)
(declare-function notmuch-show-insert-bodypart "notmuch-show" (declare-function notmuch-show-insert-bodypart "notmuch-show"
@ -341,10 +342,6 @@ the wrapped text are maintained."
;;;; Convert Inline Patches ;;;; Convert Inline Patches
(require 'diff-mode)
(defvar diff-file-header-re) ; From `diff-mode.el'.
(defun notmuch-wash-subject-to-filename (subject &optional maxlen) (defun notmuch-wash-subject-to-filename (subject &optional maxlen)
"Convert a mail SUBJECT into a filename. "Convert a mail SUBJECT into a filename.