diff options
author | jao <jao@gnu.org> | 2025-09-15 03:01:58 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2025-09-15 03:01:58 +0100 |
commit | 79fee39ab74d0ebb89a559d7d1b8fdb6222e4a41 (patch) | |
tree | 9923f747cdbc0093965ecbb824365c412aa534d7 /lib | |
parent | 89aef17265d251a7e279bb890d903f34b288b792 (diff) | |
download | elibs-79fee39ab74d0ebb89a559d7d1b8fdb6222e4a41.tar.gz elibs-79fee39ab74d0ebb89a559d7d1b8fdb6222e4a41.tar.bz2 |
macos compatibility
Diffstat (limited to 'lib')
-rw-r--r-- | lib/doc/jao-org-notes.el | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/doc/jao-org-notes.el b/lib/doc/jao-org-notes.el index d3f18b8..bd45723 100644 --- a/lib/doc/jao-org-notes.el +++ b/lib/doc/jao-org-notes.el @@ -57,7 +57,11 @@ (string-to-number (cadr m)))) (defun jao-org-notes--matches (lines) - (mapcar (lambda (l) (jao-org-notes--clean-match (split-string l "\0" t))) lines)) + (seq-keep (lambda (l) + (let ((m (split-string (or l "") "\0" t))) + (when (and (car m) (cadr m)) + (jao-org-notes--clean-match m)))) + lines)) (defun jao-org-notes--grep-rx (rx &rest rg-args) (let ((default-directory jao-org-notes-dir)) @@ -212,7 +216,8 @@ (defun jao-org-notes-setup (mnemonic) "Set up the notes system, providing a mnemonic character for its org template." (setq org-capture-templates - (add-to-list 'org-capture-templates (jao-org-notes--template mnemonic)) + (add-to-list 'org-capture-templates + (jao-org-notes--template mnemonic)) jao-org-notes--tags (jao-org-notes-all-tags)) (when (fboundp 'org-capture-upgrade-templates) (org-capture-upgrade-templates org-capture-templates))) |