* 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.
This commit is contained in:
parent
b90c658492
commit
d9c94e93b7
25 changed files with 202 additions and 229 deletions
|
@ -1381,7 +1381,7 @@ It shows the simple addresses and gets a confirmation. Use as:
|
|||
(save-window-excursion
|
||||
(display-buffer (set-buffer (get-buffer-create " F-C-A-H-E")))
|
||||
(erase-buffer)
|
||||
(insert (mapconcat 'identity feedmail-address-list " "))
|
||||
(insert (mapconcat #'identity feedmail-address-list " "))
|
||||
(if (not (y-or-n-p "How do you like them apples? "))
|
||||
(error "FQM: Sending...gave up in last chance hook"))))
|
||||
|
||||
|
@ -1592,10 +1592,10 @@ Feeds the buffer to it."
|
|||
(feedmail-say-debug ">in-> feedmail-buffer-to-binmail %s" addr-listoid)
|
||||
(set-buffer prepped)
|
||||
(apply
|
||||
'call-process-region
|
||||
#'call-process-region
|
||||
(append (list (point-min) (point-max) "/bin/sh" nil errors-to nil "-c"
|
||||
(format feedmail-binmail-template
|
||||
(mapconcat 'identity addr-listoid " "))))))
|
||||
(mapconcat #'identity addr-listoid " "))))))
|
||||
|
||||
|
||||
(defvar sendmail-program)
|
||||
|
@ -1609,7 +1609,7 @@ local gurus."
|
|||
(require 'sendmail)
|
||||
(feedmail-say-debug ">in-> feedmail-buffer-to-sendmail %s" addr-listoid)
|
||||
(set-buffer prepped)
|
||||
(apply 'call-process-region
|
||||
(apply #'call-process-region
|
||||
(append (list (point-min) (point-max) sendmail-program
|
||||
nil errors-to nil "-oi" "-t")
|
||||
;; provide envelope "from" to sendmail; results will vary
|
||||
|
@ -2042,7 +2042,7 @@ backup file names and the like)."
|
|||
(message "FQM: Trapped `%s', message left in queue." (car signal-stuff))
|
||||
(sit-for 3)
|
||||
(message "FQM: Trap details: \"%s\""
|
||||
(mapconcat 'identity (cdr signal-stuff) "\" \""))
|
||||
(mapconcat #'identity (cdr signal-stuff) "\" \""))
|
||||
(sit-for 3)))
|
||||
(kill-buffer blobby-buffer)
|
||||
(feedmail-say-chatter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue