diff options
author | Stefan Kangas <stefan@marxist.se> | 2020-11-16 18:52:42 +0100 |
---|---|---|
committer | Stefan Kangas <stefan@marxist.se> | 2020-11-16 18:52:42 +0100 |
commit | 9191c82f6d69340ce231a41c61594e1b9b9b51aa (patch) | |
tree | fe921fac985237d38d902acd372d45709e5790d5 /lisp/net/mairix.el | |
parent | f0f2c8563b3f57be4c6b174b49fbac1e530ef7ac (diff) | |
download | emacs-9191c82f6d69340ce231a41c61594e1b9b9b51aa.tar.gz emacs-9191c82f6d69340ce231a41c61594e1b9b9b51aa.tar.bz2 emacs-9191c82f6d69340ce231a41c61594e1b9b9b51aa.zip |
Don't quote lambdas in net/*.el
* lisp/net/eudc-export.el (eudc-create-bbdb-record):
* lisp/net/eudc.el (eudc-print-attribute-value)
(eudc-display-records, eudc-process-form)
(eudc-filter-duplicate-attributes, eudc-filter-partial-records)
(eudc-add-field-to-records, eudc-query-with-words)
(eudc-query-form, eudc-menu):
* lisp/net/eudcb-bbdb.el (eudc-bbdb-extract-phones)
(eudc-bbdb-query-internal):
* lisp/net/mairix.el (mairix-widget-make-query-from-widgets)
(mairix-widget-build-editable-fields, mairix-widget-get-values):
Don't quote lambdas.
Diffstat (limited to 'lisp/net/mairix.el')
-rw-r--r-- | lisp/net/mairix.el | 83 |
1 files changed, 40 insertions, 43 deletions
diff --git a/lisp/net/mairix.el b/lisp/net/mairix.el index 8218249ec18..5571b2ab81c 100644 --- a/lisp/net/mairix.el +++ b/lisp/net/mairix.el @@ -631,14 +631,13 @@ See %s for details" mairix-output-buffer))) (when (member 'flags mairix-widget-other) (setq flag (mapconcat - (function - (lambda (flag) - (setq temp - (widget-value (cadr (assoc (car flag) mairix-widgets)))) - (if (string= "yes" temp) - (cadr flag) - (if (string= "no" temp) - (concat "-" (cadr flag)))))) + (lambda (flag) + (setq temp + (widget-value (cadr (assoc (car flag) mairix-widgets)))) + (if (string= "yes" temp) + (cadr flag) + (if (string= "no" temp) + (concat "-" (cadr flag))))) '(("seen" "s") ("replied" "r") ("flagged" "f")) "")) (when (not (zerop (length flag))) (push (concat "F:" flag) query))) @@ -694,34 +693,33 @@ Fill in VALUES if based on an article." VALUES may contain values for editable fields from current article." (let ((ret)) (mapc - (function - (lambda (field) - (setq field (car (cddr field))) - (setq - ret - (nconc - (list - (list - (concat "c" field) - (widget-create 'checkbox - :tag field - :notify (lambda (widget &rest ignore) - (mairix-widget-toggle-activate widget)) - nil))) - (list - (list - (concat "e" field) - (widget-create 'editable-field - :size 60 - :format (concat " " field ":" - (make-string - (- 11 (length field)) ?\ ) - "%v") - :value (or (cadr (assoc field values)) "")))) - ret)) - (widget-insert "\n") - ;; Deactivate editable field - (widget-apply (cadr (nth 1 ret)) :deactivate))) + (lambda (field) + (setq field (car (cddr field))) + (setq + ret + (nconc + (list + (list + (concat "c" field) + (widget-create 'checkbox + :tag field + :notify (lambda (widget &rest ignore) + (mairix-widget-toggle-activate widget)) + nil))) + (list + (list + (concat "e" field) + (widget-create 'editable-field + :size 60 + :format (concat " " field ":" + (make-string + (- 11 (length field)) ?\ ) + "%v") + :value (or (cadr (assoc field values)) "")))) + ret)) + (widget-insert "\n") + ;; Deactivate editable field + (widget-apply (cadr (nth 1 ret)) :deactivate)) mairix-widget-fields-list) ret)) @@ -936,13 +934,12 @@ Use cursor keys or C-n,C-p to select next/previous search.\n\n") (save-excursion (save-restriction (mapcar - (function - (lambda (field) - (list (car (cddr field)) - (if (car field) - (mairix-replace-invalid-chars - (funcall get-mail-header (car field))) - nil)))) + (lambda (field) + (list (car (cddr field)) + (if (car field) + (mairix-replace-invalid-chars + (funcall get-mail-header (car field))) + nil))) mairix-widget-fields-list))) (error "No function for obtaining mail header specified")))) |