[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/tablist 9c0c56d 22/60: * lisp/pdf-occur.el: New and improv
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/tablist 9c0c56d 22/60: * lisp/pdf-occur.el: New and improved asynchronous, multiple file occur. |
Date: |
Sun, 1 Aug 2021 18:19:28 -0400 (EDT) |
branch: elpa/tablist
commit 9c0c56dc7022401021323ca57fc1abdb702e9c61
Author: Andreas Politz <politza@hochschule-trier.de>
Commit: Andreas Politz <politza@hochschule-trier.de>
* lisp/pdf-occur.el: New and improved asynchronous, multiple file occur.
* lisp/pdf-isearch.el:(pdf-isearch-occur): New command.
* lisp/tablist.el (tablist-generate-sorter): New macro
* lisp/pdf-tools.el (pdf-tools-modes, pdf-tools-enabled-modes): Added
occur global mode.
---
tablist.el | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/tablist.el b/tablist.el
index b168c66..77e731c 100644
--- a/tablist.el
+++ b/tablist.el
@@ -1926,5 +1926,28 @@ AWINDOW is deleted."
(tablist-window-attach newwin window)
newwin))
+(defmacro tablist-generate-sorter (column compare-fn &optional read-fn)
+ "Generate a sort function for `tabulated-list' entries.
+
+Example:
+
+ \(tablist-generate-sorter 0 '< 'string-to-number\)
+
+would create a sort function sorting `tabulated-list-entries' on
+the 0-th column as numbers by the less-than relation."
+
+ (let ((column-sym (make-symbol "column"))
+ (compare-fn-sym (make-symbol "compare-fn"))
+ (read-fn-sym (make-symbol "read-fn")))
+ `(let ((,column-sym ,column)
+ (,compare-fn-sym ,compare-fn)
+ (,read-fn-sym (or ,read-fn 'identity)))
+ (lambda (e1 e2)
+ (funcall ,compare-fn-sym
+ (funcall ,read-fn-sym
+ (aref (cadr e1) ,column-sym))
+ (funcall ,read-fn-sym
+ (aref (cadr e2) ,column-sym)))))))
+
(provide 'tablist)
;;; tablist.el ends here
- [nongnu] elpa/tablist ad275a1 13/60: Merged branch renderpages., (continued)
- [nongnu] elpa/tablist ad275a1 13/60: Merged branch renderpages., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/tablist b90fff4 11/60: *** empty log message ***, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/tablist 9019123 17/60: Remove tablist package., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/tablist e10e086 18/60: Readded tablist package., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/tablist 2077a99 19/60: Fix typo in description, and trailing line to satisfy package.el, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/tablist 0f1e499 21/60: Add .dir-locals.el, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/tablist 3ade133 15/60: Handle recent changes in eldoc., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/tablist 6c03338 12/60: *** empty log message ***, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/tablist 6d03439 20/60: Added dir-locals.el, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/tablist d65235d 14/60: Fixed a bug regarding tablist columns., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/tablist 9c0c56d 22/60: * lisp/pdf-occur.el: New and improved asynchronous, multiple file occur.,
Philip Kaludercic <=
- [nongnu] elpa/tablist a0c8192 23/60: Bumped version added NEWS., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/tablist bf2e139 04/60: Fixed some bindings., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/tablist f980411 08/60: Clean up help text., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/tablist 82bf4b9 10/60: Updated copyright., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/tablist c78eccd 24/60: Turn macro into a function, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/tablist c5da8e6 32/60: Ignore .cask directory, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/tablist 117c37f 33/60: Added Cask, Makefile and README files, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/tablist 2262a80 35/60: Clear .dir-locals.el, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/tablist f13b8f0 41/60: Improve README, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/tablist c834a84 42/60: Cosmetic changes to tablist, Philip Kaludercic, 2021/08/01