mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 20:08:10 +01:00
Don't quote lambda forms
This generates byte-compiler warnings on (at least) current trunk versions of Emacs. The quote is not necessary; lambda forms are self-quoting.
This commit is contained in:
parent
4a2a271878
commit
e3260d0253
6 changed files with 64 additions and 64 deletions
|
@ -68,7 +68,7 @@ mode."
|
||||||
:group 'notmuch)
|
:group 'notmuch)
|
||||||
|
|
||||||
(define-button-type 'notmuch-crypto-status-button-type
|
(define-button-type 'notmuch-crypto-status-button-type
|
||||||
'action '(lambda (button) (message (button-get button 'help-echo)))
|
'action (lambda (button) (message (button-get button 'help-echo)))
|
||||||
'follow-link t
|
'follow-link t
|
||||||
'help-echo "Set notmuch-crypto-process-mime to process cryptographic mime parts.")
|
'help-echo "Set notmuch-crypto-process-mime to process cryptographic mime parts.")
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ mode."
|
||||||
(help-msg nil)
|
(help-msg nil)
|
||||||
(label "Signature not processed")
|
(label "Signature not processed")
|
||||||
(face 'notmuch-crypto-signature-unknown)
|
(face 'notmuch-crypto-signature-unknown)
|
||||||
(button-action '(lambda (button) (message (button-get button 'help-echo)))))
|
(button-action (lambda (button) (message (button-get button 'help-echo)))))
|
||||||
(cond
|
(cond
|
||||||
((string= status "good")
|
((string= status "good")
|
||||||
(let ((fingerprint (concat "0x" (plist-get sigstatus :fingerprint))))
|
(let ((fingerprint (concat "0x" (plist-get sigstatus :fingerprint))))
|
||||||
|
|
|
@ -336,7 +336,7 @@ should be. Returns a cons cell `(tags-per-line width)'."
|
||||||
(defvar notmuch-hello-mode-map
|
(defvar notmuch-hello-mode-map
|
||||||
(let ((map (make-sparse-keymap)))
|
(let ((map (make-sparse-keymap)))
|
||||||
(set-keymap-parent map widget-keymap)
|
(set-keymap-parent map widget-keymap)
|
||||||
(define-key map "v" '(lambda () "Display the notmuch version" (interactive)
|
(define-key map "v" (lambda () "Display the notmuch version" (interactive)
|
||||||
(message "notmuch version %s" (notmuch-version))))
|
(message "notmuch version %s" (notmuch-version))))
|
||||||
(define-key map "?" 'notmuch-help)
|
(define-key map "?" 'notmuch-help)
|
||||||
(define-key map "q" 'notmuch-kill-this-buffer)
|
(define-key map "q" 'notmuch-kill-this-buffer)
|
||||||
|
@ -513,7 +513,7 @@ Complete list of currently available key bindings:
|
||||||
(widget-insert "\n\n")
|
(widget-insert "\n\n")
|
||||||
(let ((start (point))
|
(let ((start (point))
|
||||||
(nth 0))
|
(nth 0))
|
||||||
(mapc '(lambda (search)
|
(mapc (lambda (search)
|
||||||
(let ((widget-symbol (intern (format "notmuch-hello-search-%d" nth))))
|
(let ((widget-symbol (intern (format "notmuch-hello-search-%d" nth))))
|
||||||
(set widget-symbol
|
(set widget-symbol
|
||||||
(widget-create 'editable-field
|
(widget-create 'editable-field
|
||||||
|
|
|
@ -65,7 +65,7 @@ yet when sending a mail."
|
||||||
;; Set up the message-fcc-handler to move mails to the maildir in Fcc
|
;; Set up the message-fcc-handler to move mails to the maildir in Fcc
|
||||||
;; The parameter is set to mark messages as "seen"
|
;; The parameter is set to mark messages as "seen"
|
||||||
(setq message-fcc-handler-function
|
(setq message-fcc-handler-function
|
||||||
'(lambda (destdir)
|
(lambda (destdir)
|
||||||
(notmuch-maildir-fcc-write-buffer-to-maildir destdir t)))
|
(notmuch-maildir-fcc-write-buffer-to-maildir destdir t)))
|
||||||
;; add a hook to actually insert the Fcc header when sending
|
;; add a hook to actually insert the Fcc header when sending
|
||||||
(add-hook 'message-header-setup-hook 'notmuch-fcc-header-setup))
|
(add-hook 'message-header-setup-hook 'notmuch-fcc-header-setup))
|
||||||
|
@ -131,7 +131,7 @@ will NOT be removed or replaced."
|
||||||
|
|
||||||
(defun notmuch-maildir-fcc-host-fixer (hostname)
|
(defun notmuch-maildir-fcc-host-fixer (hostname)
|
||||||
(replace-regexp-in-string "/\\|:"
|
(replace-regexp-in-string "/\\|:"
|
||||||
'(lambda (s)
|
(lambda (s)
|
||||||
(cond ((string-equal s "/") "\\057")
|
(cond ((string-equal s "/") "\\057")
|
||||||
((string-equal s ":") "\\072")
|
((string-equal s ":") "\\072")
|
||||||
(t s)))
|
(t s)))
|
||||||
|
|
|
@ -39,7 +39,7 @@ the \"inbox\" and \"todo\", you would set
|
||||||
(when (and notmuch-message-replied-tags rep)
|
(when (and notmuch-message-replied-tags rep)
|
||||||
;; add a "+" to any tag that is doesn't already begin with a "+"
|
;; add a "+" to any tag that is doesn't already begin with a "+"
|
||||||
;; or "-"
|
;; or "-"
|
||||||
(let ((tags (mapcar '(lambda (str)
|
(let ((tags (mapcar (lambda (str)
|
||||||
(if (not (string-match "^[+-]" str))
|
(if (not (string-match "^[+-]" str))
|
||||||
(concat "+" str)
|
(concat "+" str)
|
||||||
str))
|
str))
|
||||||
|
|
|
@ -265,7 +265,7 @@ message at DEPTH in the current thread."
|
||||||
(defun notmuch-show-insert-headers (headers)
|
(defun notmuch-show-insert-headers (headers)
|
||||||
"Insert the headers of the current message."
|
"Insert the headers of the current message."
|
||||||
(let ((start (point)))
|
(let ((start (point)))
|
||||||
(mapc '(lambda (header)
|
(mapc (lambda (header)
|
||||||
(let* ((header-symbol (intern (concat ":" header)))
|
(let* ((header-symbol (intern (concat ":" header)))
|
||||||
(header-value (plist-get headers header-symbol)))
|
(header-value (plist-get headers header-symbol)))
|
||||||
(if (and header-value
|
(if (and header-value
|
||||||
|
@ -344,7 +344,7 @@ current buffer, if possible."
|
||||||
))
|
))
|
||||||
|
|
||||||
(defun notmuch-show-multipart/*-to-list (part)
|
(defun notmuch-show-multipart/*-to-list (part)
|
||||||
(mapcar '(lambda (inner-part) (plist-get inner-part :content-type))
|
(mapcar (lambda (inner-part) (plist-get inner-part :content-type))
|
||||||
(plist-get part :content)))
|
(plist-get part :content)))
|
||||||
|
|
||||||
(defun notmuch-show-multipart/alternative-choose (types)
|
(defun notmuch-show-multipart/alternative-choose (types)
|
||||||
|
@ -657,7 +657,7 @@ current buffer, if possible."
|
||||||
|
|
||||||
(defun notmuch-show-insert-body (msg body depth)
|
(defun notmuch-show-insert-body (msg body depth)
|
||||||
"Insert the body BODY at depth DEPTH in the current thread."
|
"Insert the body BODY at depth DEPTH in the current thread."
|
||||||
(mapc '(lambda (part) (notmuch-show-insert-bodypart msg part depth)) body))
|
(mapc (lambda (part) (notmuch-show-insert-bodypart msg part depth)) body))
|
||||||
|
|
||||||
(defun notmuch-show-make-symbol (type)
|
(defun notmuch-show-make-symbol (type)
|
||||||
(make-symbol (concat "notmuch-show-" type)))
|
(make-symbol (concat "notmuch-show-" type)))
|
||||||
|
@ -775,11 +775,11 @@ current buffer, if possible."
|
||||||
|
|
||||||
(defun notmuch-show-insert-thread (thread depth)
|
(defun notmuch-show-insert-thread (thread depth)
|
||||||
"Insert the thread THREAD at depth DEPTH in the current forest."
|
"Insert the thread THREAD at depth DEPTH in the current forest."
|
||||||
(mapc '(lambda (tree) (notmuch-show-insert-tree tree depth)) thread))
|
(mapc (lambda (tree) (notmuch-show-insert-tree tree depth)) thread))
|
||||||
|
|
||||||
(defun notmuch-show-insert-forest (forest)
|
(defun notmuch-show-insert-forest (forest)
|
||||||
"Insert the forest of threads FOREST."
|
"Insert the forest of threads FOREST."
|
||||||
(mapc '(lambda (thread) (notmuch-show-insert-thread thread 0)) forest))
|
(mapc (lambda (thread) (notmuch-show-insert-thread thread 0)) forest))
|
||||||
|
|
||||||
(defvar notmuch-show-thread-id nil)
|
(defvar notmuch-show-thread-id nil)
|
||||||
(make-variable-buffer-local 'notmuch-show-thread-id)
|
(make-variable-buffer-local 'notmuch-show-thread-id)
|
||||||
|
|
|
@ -662,7 +662,7 @@ foreground and blue background."
|
||||||
;; Create the overlay only if the message has tags which match one
|
;; Create the overlay only if the message has tags which match one
|
||||||
;; of those specified in `notmuch-search-line-faces'.
|
;; of those specified in `notmuch-search-line-faces'.
|
||||||
(let (overlay)
|
(let (overlay)
|
||||||
(mapc '(lambda (elem)
|
(mapc (lambda (elem)
|
||||||
(let ((tag (car elem))
|
(let ((tag (car elem))
|
||||||
(attributes (cdr elem)))
|
(attributes (cdr elem)))
|
||||||
(when (member tag line-tag-list)
|
(when (member tag line-tag-list)
|
||||||
|
|
Loading…
Reference in a new issue