Re: Using lexical-binding

2021-03-03 Thread Kyle Meyer
Kyle Meyer writes: > Stefan Monnier writes: > >> Since I'm not using it, I can't really test the result in any meaningful >> way. Furthermore, just like `calendar.el`, it relies on dynamic scoping >> and `eval` in all kinds of ways, so it's very difficult to be sure the >> result is

Re: [PATCH] Reduce code duplication in ob-sql.el and ob-sqlite.el

2021-03-03 Thread Kyle Meyer
Nick Savage writes: > Hi everyone, > > See the attached patch. It is a small change to reduce code duplication > between ob-sql.el and ob-sqlite.el by reusing org-babel-sql-expand-vars > as suggested by the FIXME in ob-sqlite.el. Thank you. Looks good, though I think it'd be nice to keep

Re: [PATCH] Async session eval (2nd attempt)

2021-03-03 Thread Kyle Meyer
Jack Kamm writes: > I also have an async implementation for ob-R that's ready after this is > merged :) It's a bit disappointing that only one babel user has tested this out and provided feedback, but please feel free to merge this whenever you think it's ready. I'm very happy to leave the

Re: [PATCH] Query when exiting with running clock

2021-03-03 Thread Kyle Meyer
Allen Li writes: > Thanks for your feedback. I have addressed your comments. Please see > the new patches. Thanks. Pushed with a few modifications and a commit on top that adds a NEWS entry. 1: 39422ba4a ! 1: 303e7c28e org-clock: Query when exiting with running clock @@ Commit message

Culling org files

2021-03-03 Thread Samuel Wales
along lines of reducing logbook entries, i often want to reduce org files, and i wonder if anybody already had the same desire. here are some random ideas. my org files are so large i might have written this list a few times 1) list links to duplicate headlines 2) list links to

Re: Org mode links: Open a PDF file at a given page and highlight a given string

2021-03-03 Thread Juan Manuel Macías
Hi Maxim Thanks for your advice, which I appreciate very much. Maxim Nikulin writes: > On 03/03/2021 09:31, Juan Manuel Macías wrote: >> (start-process-shell-command "zathura" nil (concat "zathura " >>clean-path >>

Re: Remove old clock entries

2021-03-03 Thread TRS-80
On 2021-03-01 01:20, Julien Cubizolles wrote: I'm clocking the time spent on daily tasks like email and for that I have a "Daily Routine" TODO entry. Clocking in this task adds a new clock line everyday, leading to a very populated CLOCK drawer. I'd like to limit its size by either a maximum

Re: Org mode links: Open a PDF file at a given page and highlight a given string

2021-03-03 Thread Maxim Nikulin
On 03/03/2021 09:31, Juan Manuel Macías wrote: (start-process-shell-command "zathura" nil (concat "zathura " clean-path " -P "

Re: contact management in emacs

2021-03-03 Thread TRS-80
On 2021-02-28 04:06, Russell Adams wrote: The stumbling point for me has been exporting to my mobile phone. I'm fine with a one way sync from my BBDB/Org solution to the phone, but I feel like I never found a good option. Please share what you find works for you. I never got further than

[PATCH] Reduce code duplication in ob-sql.el and ob-sqlite.el

2021-03-03 Thread Nick Savage
Hi everyone, See the attached patch. It is a small change to reduce code duplication between ob-sql.el and ob-sqlite.el by reusing org-babel-sql-expand-vars as suggested by the FIXME in ob-sqlite.el. Thanks, Nick >From 849a1b7417b39abbf0aeb1b241e890470e4111cd Mon Sep 17 00:00:00 2001 From:

Re: greedy substitution in org-open-file

2021-03-03 Thread Maxim Nikulin
Discussion of the original patch: https://orgmode.org/list/4b51d104.9090...@jboecker.de/T/#u https://lists.gnu.org/archive/html/emacs-orgmode/2010-01/msg00450.html https://orgmode.org/list/4bb9c078.9050...@jboecker.de/ The patch may make it a little easier to break things by misconfiguring

Re: Org mode links: Open a PDF file at a given page and highlight a given string

2021-03-03 Thread Maxim Nikulin
On 03/03/2021 05:36, Kyle Meyer wrote: Rodrigo Morales writes: [...] + create a Org link to specific pages of a PDF and highlight a given string. #+begin_src emacs-lisp :results silent (setq org-file-apps '(("\\.pdf::\\([0-9]+\\)::\\([^:]+\\)\\'" . "zathura -P %1 -f %2 %s")))