aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/mh-e
diff options
context:
space:
mode:
authorStefan Kangas2021-10-21 23:35:07 +0200
committerStefan Kangas2021-10-21 23:35:07 +0200
commit357d273d2e312fca7b187dca45585cbdbf4c6469 (patch)
tree781054ab5588885211f9d6f56cf12ef191d102c8 /lisp/mh-e
parent6352e0a55587e15fa3bef878a329c1a148749cfe (diff)
downloademacs-357d273d2e312fca7b187dca45585cbdbf4c6469.tar.gz
emacs-357d273d2e312fca7b187dca45585cbdbf4c6469.zip
Remove redundant #' before lambda
* admin/unidata/unidata-gen.el (unidata-gen-table) (unidata-gen-table-symbol, unidata-gen-table-integer) (unidata-gen-table-numeric, unidata-gen-table-word-list) (unidata-describe-decomposition): * lisp/apropos.el (apropos-user-option): * lisp/bookmark.el (bookmark-bmenu-search): * lisp/composite.el (unicode-category-table): * lisp/elec-pair.el (electric-pair--balance-info): * lisp/electric.el (electric-quote-chars): * lisp/emulation/cua-base.el (cua-rectangle-mark-key): * lisp/epa-hook.el (epa-file-encrypt-to): * lisp/faces.el (face-font-selection-order) (face-font-family-alternatives, face-font-registry-alternatives) (face-valid-attribute-values, tty-run-terminal-initialization): * lisp/files.el (recover-file, file-expand-wildcards): * lisp/frame.el (frames-on-display-list): * lisp/help-at-pt.el (help-at-pt-display-when-idle): * lisp/help-fns.el (help-fns--face-attributes): * lisp/ido.el (ido-mode, ido-unc-hosts): * lisp/isearch.el (isearch-highlight-regexp) (isearch-highlight-lines-matching-regexp): * lisp/language/indian.el (script-regexp-alist): * lisp/language/lao.el: * lisp/leim/quail/ipa.el (ipa-x-sampa-prepend-to-keymap-entry): * lisp/mh-e/mh-folder.el (mh-process-commands): * lisp/mh-e/mh-mime.el (mh-display-with-external-viewer): * lisp/ps-mule.el (ps-mule-end-job): * lisp/ps-print.el (ps-color-scale, ps-background-pages) (ps-background-text, ps-background-image, ps-background) (ps-begin-job, ps-print-translation-table): * lisp/recentf.el (recentf-sort-ascending) (recentf-sort-descending, recentf-sort-basenames-ascending) (recentf-sort-basenames-descending) (recentf-sort-directories-ascending) (recentf-sort-directories-descending): * lisp/replace.el (occur-engine-add-prefix): * lisp/select.el (xselect--encode-string): * lisp/server.el (server-use-tcp): * lisp/ses.el (ses-sort-column): * lisp/sort.el (sort-columns): * lisp/term/ns-win.el (window-system-initialization): * lisp/tree-widget.el (tree-widget-image-formats): * lisp/whitespace.el (whitespace-report-region): Remove redundant #' before lambda.
Diffstat (limited to 'lisp/mh-e')
-rw-r--r--lisp/mh-e/mh-folder.el72
-rw-r--r--lisp/mh-e/mh-mime.el36
2 files changed, 54 insertions, 54 deletions
diff --git a/lisp/mh-e/mh-folder.el b/lisp/mh-e/mh-folder.el
index e6c295764b7..c700b3348df 100644
--- a/lisp/mh-e/mh-folder.el
+++ b/lisp/mh-e/mh-folder.el
@@ -1543,34 +1543,34 @@ after the commands are processed."
1543 (append folders-changed (mh-index-execute-commands)))) 1543 (append folders-changed (mh-index-execute-commands))))
1544 1544
1545 ;; Then refile messages 1545 ;; Then refile messages
1546 (mapc #'(lambda (folder-msg-list) 1546 (mapc (lambda (folder-msg-list)
1547 (let* ((dest-folder (symbol-name (car folder-msg-list))) 1547 (let* ((dest-folder (symbol-name (car folder-msg-list)))
1548 (last (car (mh-translate-range dest-folder "last"))) 1548 (last (car (mh-translate-range dest-folder "last")))
1549 (msgs (cdr folder-msg-list))) 1549 (msgs (cdr folder-msg-list)))
1550 (push dest-folder folders-changed) 1550 (push dest-folder folders-changed)
1551 (setq redraw-needed-flag t) 1551 (setq redraw-needed-flag t)
1552 (apply #'mh-exec-cmd 1552 (apply #'mh-exec-cmd
1553 "refile" "-src" folder dest-folder 1553 "refile" "-src" folder dest-folder
1554 (mh-coalesce-msg-list msgs)) 1554 (mh-coalesce-msg-list msgs))
1555 (mh-delete-scan-msgs msgs) 1555 (mh-delete-scan-msgs msgs)
1556 ;; Preserve sequences in destination folder... 1556 ;; Preserve sequences in destination folder...
1557 (when mh-refile-preserves-sequences-flag 1557 (when mh-refile-preserves-sequences-flag
1558 (clrhash dest-map) 1558 (clrhash dest-map)
1559 (cl-loop 1559 (cl-loop
1560 for i from (1+ (or last 0)) 1560 for i from (1+ (or last 0))
1561 for msg in (sort (copy-sequence msgs) #'<) 1561 for msg in (sort (copy-sequence msgs) #'<)
1562 do (cl-loop for seq-name in (gethash msg seq-map) 1562 do (cl-loop for seq-name in (gethash msg seq-map)
1563 do (push i (gethash seq-name dest-map)))) 1563 do (push i (gethash seq-name dest-map))))
1564 (maphash 1564 (maphash
1565 #'(lambda (seq msgs) 1565 #'(lambda (seq msgs)
1566 ;; Can't be run in the background, since the 1566 ;; Can't be run in the background, since the
1567 ;; current folder is changed by mark this could 1567 ;; current folder is changed by mark this could
1568 ;; lead to a race condition with the next refile. 1568 ;; lead to a race condition with the next refile.
1569 (apply #'mh-exec-cmd "mark" 1569 (apply #'mh-exec-cmd "mark"
1570 "-sequence" (symbol-name seq) dest-folder 1570 "-sequence" (symbol-name seq) dest-folder
1571 "-add" (mapcar #'(lambda (x) (format "%s" x)) 1571 "-add" (mapcar #'(lambda (x) (format "%s" x))
1572 (mh-coalesce-msg-list msgs)))) 1572 (mh-coalesce-msg-list msgs))))
1573 dest-map)))) 1573 dest-map))))
1574 mh-refile-list) 1574 mh-refile-list)
1575 (setq mh-refile-list ()) 1575 (setq mh-refile-list ())
1576 1576
@@ -1614,14 +1614,14 @@ after the commands are processed."
1614 do (cl-loop for seq-name in (gethash msg seq-map) 1614 do (cl-loop for seq-name in (gethash msg seq-map)
1615 do (push i (gethash seq-name allow-map)))) 1615 do (push i (gethash seq-name allow-map))))
1616 (maphash 1616 (maphash
1617 #'(lambda (seq msgs) 1617 (lambda (seq msgs)
1618 ;; Can't be run in background, since the current 1618 ;; Can't be run in background, since the current
1619 ;; folder is changed by mark this could lead to a 1619 ;; folder is changed by mark this could lead to a
1620 ;; race condition with the next refile/allowlist. 1620 ;; race condition with the next refile/allowlist.
1621 (apply #'mh-exec-cmd "mark" 1621 (apply #'mh-exec-cmd "mark"
1622 "-sequence" (symbol-name seq) mh-inbox 1622 "-sequence" (symbol-name seq) mh-inbox
1623 "-add" (mapcar #'(lambda(x) (format "%s" x)) 1623 "-add" (mapcar #'(lambda(x) (format "%s" x))
1624 (mh-coalesce-msg-list msgs)))) 1624 (mh-coalesce-msg-list msgs))))
1625 allow-map)) 1625 allow-map))
1626 (setq mh-allowlist nil))) 1626 (setq mh-allowlist nil)))
1627 1627
diff --git a/lisp/mh-e/mh-mime.el b/lisp/mh-e/mh-mime.el
index 3d9128c15a7..0b58d7ba1f4 100644
--- a/lisp/mh-e/mh-mime.el
+++ b/lisp/mh-e/mh-mime.el
@@ -238,24 +238,24 @@ usually reads the file \"/etc/mailcap\"."
238 (when (consp part-index) (setq part-index (car part-index))) 238 (when (consp part-index) (setq part-index (car part-index)))
239 (mh-folder-mime-action 239 (mh-folder-mime-action
240 part-index 240 part-index
241 #'(lambda () 241 (lambda ()
242 (let* ((part (get-text-property (point) 'mh-data)) 242 (let* ((part (get-text-property (point) 'mh-data))
243 (type (mm-handle-media-type part)) 243 (type (mm-handle-media-type part))
244 (methods (mapcar (lambda (x) (list (cdr (assoc 'viewer x)))) 244 (methods (mapcar (lambda (x) (list (cdr (assoc 'viewer x))))
245 (mailcap-mime-info type 'all))) 245 (mailcap-mime-info type 'all)))
246 (def (caar methods)) 246 (def (caar methods))
247 (prompt (format-prompt "Viewer" def)) 247 (prompt (format-prompt "Viewer" def))
248 (method (completing-read prompt methods nil nil nil nil def)) 248 (method (completing-read prompt methods nil nil nil nil def))
249 (folder mh-show-folder-buffer) 249 (folder mh-show-folder-buffer)
250 (buffer-read-only nil)) 250 (buffer-read-only nil))
251 (when (string-match "^[^% \t]+$" method) 251 (when (string-match "^[^% \t]+$" method)
252 (setq method (concat method " %s"))) 252 (setq method (concat method " %s")))
253 (mh-flet 253 (mh-flet
254 ((mm-handle-set-external-undisplayer 254 ((mm-handle-set-external-undisplayer
255 (handle function) 255 (handle function)
256 (mh-handle-set-external-undisplayer folder handle function))) 256 (mh-handle-set-external-undisplayer folder handle function)))
257 (unwind-protect (mm-display-external part method) 257 (unwind-protect (mm-display-external part method)
258 (set-buffer-modified-p nil))))) 258 (set-buffer-modified-p nil)))))
259 nil)) 259 nil))
260 260
261;;;###mh-autoload 261;;;###mh-autoload