Re: Bug: Infinite loop caused by org-agenda-property-list [9.4 (9.4-elpa @ /home/dsmasterson/.emacs.d/elpa/org-9.4/)]

2020-09-25 Thread David Masterson
Nick Dokos writes: > From what I can gather, this does not have much to do with Org mode > proper, which has no org-agenda-property-list at all. I presume that > you have > > https://github.com/Malabarba/org-agenda-property/blob/master/org-agenda-property.el > > installed, which does provide

Help: how to extend org-mode markup?

2020-09-25 Thread Pierre-Henry F.
Hello, I would like to extend the org-mode markup. For example, I would like to change the face of a keyword, say: :next: . Whenever :next: is displayed from an org-mode buffer, it should show up in using an arbitrary face. I tried this: (defun org-add-my-extra-markup () (add-to-list

Re: Help: how to extend org-mode markup?

2020-09-25 Thread Ihor Radchenko
> (add-to-list 'org-font-lock-extra-keywords It is internal variable. You should not use it. Simply use font-lock-add-keywords instead. Best, Ihor "Pierre-Henry F." writes: > Hello, > > I would like to extend the org-mode markup. > > For example, I would like to change the face of a keyword,

Re: Help: how to extend org-mode markup?

2020-09-25 Thread Christian Moe
Hello, In your example, `:next:' is a tag. Tags and keywords are different entities. https://orgmode.org/worg/dev/org-syntax.html You should be able to do what you want by customizing `org-tag-faces'. Yours, Christian Pierre-Henry F. writes: > Hello, > > I would like to extend the org-mode

Re: org-table-sum

2020-09-25 Thread Robert Pluim
> On Thu, 24 Sep 2020 16:48:14 -0400, Kyle Meyer said: >> I did not find a way to reproduce this with other numbers, but the >> order seems to matter. Kyle> See . Exactly. Which is why you should use 'calc' with floating point numbers, it

Re: org-tables with monetary amounts

2020-09-25 Thread Daniele Nicolodi
On 23/09/2020 18:55, Eric S Fraga wrote: > Not answering your question directly but, depending on why and how you > are using org tables for monetary calculations, you may wish to look at > ledger [1]. There is support in org for ledger via babel (ob-ledger.el, > distributed with org). Hello

Re: Help: how to extend org-mode markup?

2020-09-25 Thread Eric S Fraga
One alternative, that I use for specific org files, is ~hi-lock-mode~. Based on regular expressions, you can highlight any bits you want without affecting the underlying org font lock settings. -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4-29-gbc9664

Re: Help: how to extend org-mode markup?

2020-09-25 Thread Ihor Radchenko
> As suggested by Ihor, I tried: > > (font-lock-add-keywords 'org-mode > '(("\\W\\(:next:\\)\\W" 1 font-lock-warning-face prepend))) You need to fontify it _after_ all other org-mode font settings: (font-lock-add-keywords 'org-mode '(("\\W\\(:next:\\)\\W" 1 font-lock-warning-face prepend)

Re: Help: how to extend org-mode markup?

2020-09-25 Thread Ihor Radchenko
Sorry, misplaced the argument. 'append should be the last argument to font-lock-add-keywords: (font-lock-add-keywords 'org-mode '(("\\W\\(:next:\\)\\W" 1 font-lock-warning-face prepend)) 'append) Ihor Radchenko writes: >> As suggested by Ihor, I tried: >> >> (font-lock-add-keywords

Re: org-tables with monetary amounts

2020-09-25 Thread Neil Jerram
On Tue, 22 Sep 2020 at 17:05, Daniele Nicolodi wrote: > Hello, > Hi Daniele... > > I often use org-tables to work with monetary amounts. Me too. I use Org mode plus Scheme code to try to analyze my bank statements and compare them against a budget. Org is a convenient form for specifying

Re: Help: how to extend org-mode markup?

2020-09-25 Thread Pierre-Henry F.
Well, this works! Thank you all! (defun user-custom-keywords () ;; M-x list-faces-display (let ((user-custom-keywords '((":next:" . 'org-habit-clear-face) (":wait:" . 'org-habit-alert-face) (":failed:" . 'org-habit-overdue-face)

Bug: org-capture: %L causes arg out of range error for empty string annotation [9.4 (release_9.4-31-g8c44f2 @ /home/n/.emacs.d/straight/build/org/)]

2020-09-25 Thread No Wayman
d06aa486d6c3163b6ef6e9ab665117bd93dff34a introduces the following in `org-capture-fill-template': (v-L (if (or v-a (string-match l-re v-a)) (replace-match "\\1" nil nil v-a) v-a)) If `v-a' is an empty string, the call to `replace-match' throws an Args out of

Re: Help: how to extend org-mode markup?

2020-09-25 Thread Christian Moe
Please disregard my response. I misunderstood both your intention and the use of font-lock keywords. Sorry for the noise. :-( Yours, Christian Pierre-Henry F. writes: > Thank you very much for your replies. > > Here is the use case: > > |---+| > | something | :next: | >

Re: Help: how to extend org-mode markup?

2020-09-25 Thread Pierre-Henry F.
Thank you very much for your replies. Here is the use case: |---+| | something | :next: | |---+| I would like :next: to show up using an arbitrary face. As suggested by Ihor, I tried: (font-lock-add-keywords 'org-mode '(("\\W\\(:next:\\)\\W" 1

Re: Bug: org-capture: %L causes arg out of range error for empty string annotation [9.4 (release_9.4-31-g8c44f2 @ /home/n/.emacs.d/straight/build/org/)]

2020-09-25 Thread No Wayman
No Wayman writes: If `v-a' is an empty string, the call to `replace-match' throws an Args out of range error. Similar assignments in that area of the code use an `and' comparison to guard against this, so perhaps it should be: (v-L (if (and v-a (string-match l-re v-a))

Re: org-table-sum

2020-09-25 Thread Eric S Fraga
On Thursday, 24 Sep 2020 at 21:38, Kein Test wrote: > I found out about org-table-sum yesterday, but I quickly ran into a > problem, where the result is not right. It is right and due to the use of floating point arithmetic in the computer. If you ask org/calc to display the number with 2

Re: Help: how to extend org-mode markup?

2020-09-25 Thread Pierre-Henry F.
Thank you Ihor, It does work... too good now :-) all the other faces are gone Well, OK... I will check that an other time. Thank you all for your replies ! PHF ‐‐‐ Original Message ‐‐‐ On Friday, September 25, 2020 10:13 AM, Ihor Radchenko wrote: > > As suggested by Ihor, I

Re: org-tables with monetary amounts

2020-09-25 Thread Daniele Nicolodi
On 25/09/2020 11:25, Neil Jerram wrote: > Aside: Perhaps I'm misunderstanding them, but none of the open source > tools, including (h)ledger, seem to be of much help here. > - They focus on data entry and reconciliation, which I don't need as I'm > happy to download and use OFX files from my bank.

Re: org-tables with monetary amounts

2020-09-25 Thread Alan Schmitt
Hello, On 2020-09-25 13:20, Daniele Nicolodi writes: > I use beancoount (another text-based accounting software, very similar > to ledger) for accounting purposes and I am very happy with it. I use > org-mode for planning and management tasks or simply to compare quotes, > things better handled

Re: Bug: Occasional error with recurring tasks in agenda [9.4 (release_9.4-3-ge6021b @ /home/james/.config/emacs/straight/build/org-plus-contrib/)]

2020-09-25 Thread Ihor Radchenko
> This doesn't happen with emacs -Q, so presumably there's something in my > config that's making this happen, but I have no idea what I should be > looking for. Any suggestions? I sometimes observe similar behaviour if I delete/refile task in file. Then, if agenda view is not refreshed, tasks

:auto-sitemap in org-publish-project-alist

2020-09-25 Thread David Masterson
My org-publish-project-alist kind of looks like this: (setq org-publish-project-alist '(("orgfiles" :base-directory "~/DSM/MyOrg/" :base-extension "org" :publishing-directory "~/Publish/html/" :publishing-function org-html-publish-to-html

Re: Bug: org-capture: %L causes arg out of range error for empty string annotation [9.4 (release_9.4-31-g8c44f2 @ /home/n/.emacs.d/straight/build/org/)]

2020-09-25 Thread Kyle Meyer
No Wayman writes: > No Wayman writes: > >> If `v-a' is an empty string, the call to `replace-match' throws >> an >> Args out of range error. Similar assignments in that area of the >> code use an `and' comparison to guard against this, so perhaps >> it >> should be: >> >> >>> (v-L (if (and v-a

problem with org-capture (via gnus-icalendar-event-export)

2020-09-25 Thread Eric S Fraga
Hello, I use gnus-icalendar-event-export to calendar invites to my org agenda files. This uses org-capture and suddenly this appears to have stopped working. See attached backtrace. I don't have time to debug at the moment but thought I'd bring this to the attention of the list just in case.

Re: [PATCH] org-plot abstractions and extension

2020-09-25 Thread TEC
Hello everyone. Just in case this has slipped through the cracks / fallen under the radar --- here's a little bump. Timothy. TEC writes: > Oooops, I've just noticed my patch attachment re-send was only addressed > to Bastien (maybe this is why I haven't heard anything?). > This is what I get

Re: problem with org-capture (via gnus-icalendar-event-export)

2020-09-25 Thread Kyle Meyer
Eric S Fraga writes: > Hello, > > I use gnus-icalendar-event-export to calendar invites to my org agenda > files. This uses org-capture and suddenly this appears to have stopped > working. See attached backtrace. > > I don't have time to debug at the moment but thought I'd bring this to > the

Re: [PATCH] Enhance org-html--build-meta-info

2020-09-25 Thread TEC
@Maintainers I think this is ready for a review. Jens Lechtenboerger writes: > My suggestion would be to go with the handling of description in all > cases, including the title. Currently the only element handled differently to `org-html-encode-plain-text' is "author". I don't know why so I

Re: problem with org-capture (via gnus-icalendar-event-export)

2020-09-25 Thread Eric S Fraga
On Friday, 25 Sep 2020 at 12:31, Kyle Meyer wrote: > I think No Wayman just sent a patch to fix this: > > I'll take a look at it tonight unless someone gets to it sooner. Okay but no rush from my end. Calendar stuff can wait until Monday for me: it's now officially the weekend! ;-) Thank you,

Re: Bug: Infinite loop caused by org-agenda-property-list [9.4 (9.4-elpa @ /home/dsmasterson/.emacs.d/elpa/org-9.4/)]

2020-09-25 Thread Nick Dokos
David Masterson writes: > Nick Dokos writes: > >> From what I can gather, this does not have much to do with Org mode >> proper, which has no org-agenda-property-list at all. I presume that >> you have >> >> https://github.com/Malabarba/org-agenda-property/blob/master/org-agenda-property.el >>

Re: Bug: Occasional error with recurring tasks in agenda [9.4 (release_9.4-3-ge6021b @ /home/james/.config/emacs/straight/build/org-plus-contrib/)]

2020-09-25 Thread James N . V . Cash
>>> It seems to always work properly from the org buffer itself, so I assume >>> it's something happening in the agenda, but I'm not sure where to look. >>> I've tried debugging `org-agenda-todo`, but I can't see anything in >>> askance there. Any advice as to what I should be looking for?

Fwd: expiring logbook

2020-09-25 Thread Samuel Wales
just wondering out loud what is usually done here. open ended. in principle one could sort in agenda by logbook size and have it show the 20 biggest. one could have a command to show logbook [in case any relevant notes worth saving] then ask user whether to archive. archiving would consist of

preserving marks upon org-agenda-redo-all

2020-09-25 Thread Samuel Wales
seems redoing the agenda by doing g in tags agenda view unmarks all. perhaps it should persist those? we have mark persistence for bulk actions. just an idea. thanks. -- The Kafka Pandemic Please learn what misopathy is.