diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2021-03-11 14:32:42 -0500 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2021-03-11 14:32:42 -0500 |
commit | d9c94e93b7013d575aeb2a8e8077564a80b04f7c (patch) | |
tree | 0eb0b9d2c5263c1d6a1665e17774b846a802405a /lisp/mail/mail-hist.el | |
parent | b90c658492a2548f183bf072be50f4a57a2b5f0b (diff) | |
download | emacs-d9c94e93b7013d575aeb2a8e8077564a80b04f7c.tar.gz emacs-d9c94e93b7013d575aeb2a8e8077564a80b04f7c.tar.bz2 emacs-d9c94e93b7013d575aeb2a8e8077564a80b04f7c.zip |
* lisp/mail/: Use lexical-binding
Remove some redundant `:group` args as well.
* lisp/mail/supercite.el: Use lexical-binding.
(completer-disable): Declare var.
(sc-set-variable): Don't rely on dynbind to access `help` variable.
* lisp/mail/mail-extr.el: Use lexical-binding.
(mail-extract-address-components): Avoid use of dynamic scoping to
refer to local vars.
* lisp/mail/mailabbrev.el: Use lexical-binding.
(mail-abbrev-make-syntax-table): Rename `_` variable to `syntax-_`.
* lisp/mail/mailheader.el: Use lexical-binding.
(headers): Don't declare as dynbound globally.
(mail-header-set, mail-header-merge): Declare `headers` as dynbound
locally, instead. Mark those functions as obsolete.
(mail-header-format): Use `alist-get` instead of `mail-header`.
* lisp/mail/binhex.el (binhex-decode-region-external): Remove always-nil
var `firstline`.
* lisp/mail/emacsbug.el: Use lexical-binding.
(report-emacs-bug): Remove always-nil var `message-end-point`.
* lisp/mail/rmail-spam-filter.el: Use lexical-binding.
(bbdb/mail_auto_create_p): Declare variable.
* lisp/mail/rmail.el (rmail-get-new-mail): Remove always-nil var
`delete-files`.
* lisp/mail/rmailout.el: Use lexical-binding.
(rmail-output-read-file-name): Remove unused var `err`.
(rmail-convert-to-babyl-format): Remove unused var `count`.
(rmail-output-as-mbox): Remove unused vars `from` and `date`.
* lisp/mail/rmailsort.el: Use lexical-binding.
(rmail-sort-messages): Remove unused var `msginfo`.
* lisp/mail/rfc822.el: Use lexical-binding.
* lisp/mail/rmailedit.el: Use lexical-binding.
* lisp/mail/mailclient.el: Use lexical-binding.
* lisp/mail/blessmail.el: Use lexical-binding.
* lisp/mail/mail-hist.el: Use lexical-binding.
* lisp/mail/rmailkwd.el: Use lexical-binding.
* lisp/mail/rmailmsc.el: Use lexical-binding.
* lisp/mail/uce.el: Use lexical-binding.
* lisp/mail/unrmail.el: Use lexical-binding.
Diffstat (limited to 'lisp/mail/mail-hist.el')
-rw-r--r-- | lisp/mail/mail-hist.el | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/lisp/mail/mail-hist.el b/lisp/mail/mail-hist.el index 37c8ad68860..239b386ff84 100644 --- a/lisp/mail/mail-hist.el +++ b/lisp/mail/mail-hist.el @@ -1,4 +1,4 @@ -;;; mail-hist.el --- headers and message body history for outgoing mail +;;; mail-hist.el --- headers and message body history for outgoing mail -*- lexical-binding: t; -*- ;; Copyright (C) 1994, 2001-2021 Free Software Foundation, Inc. @@ -69,8 +69,8 @@ ;;;###autoload (defun mail-hist-enable () - (add-hook 'mail-mode-hook 'mail-hist-define-keys) - (add-hook 'mail-send-hook 'mail-hist-put-headers-into-history)) + (add-hook 'mail-mode-hook #'mail-hist-define-keys) + (add-hook 'mail-send-hook #'mail-hist-put-headers-into-history)) (defvar mail-hist-header-ring-alist nil "Alist of form (header-name . history-ring). @@ -80,14 +80,12 @@ previous/next input.") (defcustom mail-hist-history-size (or kill-ring-max 1729) "The maximum number of elements in a mail field's history. Oldest elements are dumped first." - :type 'integer - :group 'mail-hist) + :type 'integer) ;;;###autoload (defcustom mail-hist-keep-history t "Non-nil means keep a history for headers and text of outgoing mail." - :type 'boolean - :group 'mail-hist) + :type 'boolean) ;; For handling repeated history requests (defvar mail-hist-access-count 0) @@ -184,8 +182,7 @@ HEADER is a string without the colon." (defcustom mail-hist-text-size-limit nil "Don't store any header or body with more than this many characters. If the value is nil, that means no limit on text size." - :type '(choice (const nil) integer) - :group 'mail-hist) + :type '(choice (const nil) integer)) (defun mail-hist-text-too-long-p (text) "Return non-nil if TEXT's length exceeds `mail-hist-text-size-limit'." |