emacs: drop use of message-default-charset

Apparently, message-default-charset is deprecated, which causes the
following warning messages during the build:

  In notmuch-maildir-setup-message-for-saving:
  emacs/notmuch-maildir-fcc.el:172:31:Warning: ‘message-default-charset’ is an
      obsolete variable (as of 26.1); The default charset comes from the
      language environment

In discussion with emacs upstream over on
https://debbugs.gnu.org/35370, it appears that we can just drop this
entirely and things should still work with emacs 25.
This commit is contained in:
Daniel Kahn Gillmor 2019-04-22 16:51:16 -04:00 committed by David Bremner
parent f3cba19f88
commit f079e7b9c3

View file

@ -169,8 +169,7 @@ This is taken from the function message-do-fcc."
(message-encode-message-body) (message-encode-message-body)
(save-restriction (save-restriction
(message-narrow-to-headers) (message-narrow-to-headers)
(let ((mail-parse-charset message-default-charset)) (mail-encode-encoded-word-buffer))
(mail-encode-encoded-word-buffer)))
(goto-char (point-min)) (goto-char (point-min))
(when (re-search-forward (when (re-search-forward
(concat "^" (regexp-quote mail-header-separator) "$") (concat "^" (regexp-quote mail-header-separator) "$")