aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/recentf.el
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/recentf.el
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/recentf.el')
-rw-r--r--lisp/recentf.el50
1 files changed, 25 insertions, 25 deletions
diff --git a/lisp/recentf.el b/lisp/recentf.el
index 57cbaf0debb..6b5a47c66fd 100644
--- a/lisp/recentf.el
+++ b/lisp/recentf.el
@@ -674,55 +674,55 @@ Return nil if file NAME is not one of the ten more recent."
674 "Sort the list of menu elements L in ascending order. 674 "Sort the list of menu elements L in ascending order.
675The MENU-ITEM part of each menu element is compared." 675The MENU-ITEM part of each menu element is compared."
676 (sort (copy-sequence l) 676 (sort (copy-sequence l)
677 #'(lambda (e1 e2) 677 (lambda (e1 e2)
678 (recentf-string-lessp 678 (recentf-string-lessp
679 (recentf-menu-element-item e1) 679 (recentf-menu-element-item e1)
680 (recentf-menu-element-item e2))))) 680 (recentf-menu-element-item e2)))))
681 681
682(defsubst recentf-sort-descending (l) 682(defsubst recentf-sort-descending (l)
683 "Sort the list of menu elements L in descending order. 683 "Sort the list of menu elements L in descending order.
684The MENU-ITEM part of each menu element is compared." 684The MENU-ITEM part of each menu element is compared."
685 (sort (copy-sequence l) 685 (sort (copy-sequence l)
686 #'(lambda (e1 e2) 686 (lambda (e1 e2)
687 (recentf-string-lessp 687 (recentf-string-lessp
688 (recentf-menu-element-item e2) 688 (recentf-menu-element-item e2)
689 (recentf-menu-element-item e1))))) 689 (recentf-menu-element-item e1)))))
690 690
691(defsubst recentf-sort-basenames-ascending (l) 691(defsubst recentf-sort-basenames-ascending (l)
692 "Sort the list of menu elements L in ascending order. 692 "Sort the list of menu elements L in ascending order.
693Only filenames sans directory are compared." 693Only filenames sans directory are compared."
694 (sort (copy-sequence l) 694 (sort (copy-sequence l)
695 #'(lambda (e1 e2) 695 (lambda (e1 e2)
696 (recentf-string-lessp 696 (recentf-string-lessp
697 (file-name-nondirectory (recentf-menu-element-value e1)) 697 (file-name-nondirectory (recentf-menu-element-value e1))
698 (file-name-nondirectory (recentf-menu-element-value e2)))))) 698 (file-name-nondirectory (recentf-menu-element-value e2))))))
699 699
700(defsubst recentf-sort-basenames-descending (l) 700(defsubst recentf-sort-basenames-descending (l)
701 "Sort the list of menu elements L in descending order. 701 "Sort the list of menu elements L in descending order.
702Only filenames sans directory are compared." 702Only filenames sans directory are compared."
703 (sort (copy-sequence l) 703 (sort (copy-sequence l)
704 #'(lambda (e1 e2) 704 (lambda (e1 e2)
705 (recentf-string-lessp 705 (recentf-string-lessp
706 (file-name-nondirectory (recentf-menu-element-value e2)) 706 (file-name-nondirectory (recentf-menu-element-value e2))
707 (file-name-nondirectory (recentf-menu-element-value e1)))))) 707 (file-name-nondirectory (recentf-menu-element-value e1))))))
708 708
709(defsubst recentf-sort-directories-ascending (l) 709(defsubst recentf-sort-directories-ascending (l)
710 "Sort the list of menu elements L in ascending order. 710 "Sort the list of menu elements L in ascending order.
711Compares directories then filenames to order the list." 711Compares directories then filenames to order the list."
712 (sort (copy-sequence l) 712 (sort (copy-sequence l)
713 #'(lambda (e1 e2) 713 (lambda (e1 e2)
714 (recentf-directory-compare 714 (recentf-directory-compare
715 (recentf-menu-element-value e1) 715 (recentf-menu-element-value e1)
716 (recentf-menu-element-value e2))))) 716 (recentf-menu-element-value e2)))))
717 717
718(defsubst recentf-sort-directories-descending (l) 718(defsubst recentf-sort-directories-descending (l)
719 "Sort the list of menu elements L in descending order. 719 "Sort the list of menu elements L in descending order.
720Compares directories then filenames to order the list." 720Compares directories then filenames to order the list."
721 (sort (copy-sequence l) 721 (sort (copy-sequence l)
722 #'(lambda (e1 e2) 722 (lambda (e1 e2)
723 (recentf-directory-compare 723 (recentf-directory-compare
724 (recentf-menu-element-value e2) 724 (recentf-menu-element-value e2)
725 (recentf-menu-element-value e1))))) 725 (recentf-menu-element-value e1)))))
726 726
727(defun recentf-show-basenames (l &optional no-dir) 727(defun recentf-show-basenames (l &optional no-dir)
728 "Filter the list of menu elements L to show filenames sans directory. 728 "Filter the list of menu elements L to show filenames sans directory.
@@ -1382,5 +1382,5 @@ buffers you switch to a lot, you can say something like the following:
1382(provide 'recentf) 1382(provide 'recentf)
1383 1383
1384(run-hooks 'recentf-load-hook) 1384(run-hooks 'recentf-load-hook)
1385 1385
1386;;; recentf.el ends here 1386;;; recentf.el ends here