mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 12:28:09 +01:00
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:
parent
b4deb33a66
commit
3f16dd7611
1 changed files with 1 additions and 4 deletions
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue