Re: accounting

2021-01-04 Thread Uwe Brauer
> On 04/01/2021 21:04, Uwe Brauer wrote: > https://beancount.github.io/ > is the project home page. You can find the documentation here: > https://beancount.github.io/docs/ > I haven't submitted beancount-mode to any Emacs package repository yet, > there is still some work I would like to do b

Re: Regression in table.el detection? [maint]

2021-01-04 Thread Kaushal Modi
Hi Kyle, I was able to reproduce with issue with ox-html as well. Please copy paste this in a new temp.org file and run `C-c C-e h H': * Subtree 1 +--+--+--+ | Header 1 | Header 2 | Header 3 | +--+--+--+ | a| b| c| +

Re: Regression in table.el detection? [maint]

2021-01-04 Thread Kaushal Modi
On Tue, Jan 5, 2021 at 1:36 AM Kaushal Modi wrote: > > I'll keep looking.. > OK, when I added the same debug messages to ox-html.el, I see: = (table (:begin 1860 :end 2104 :type table\.el :tblfm nil :contents-begin nil :contents-end nil :value "+--+--+--+ | Header 1

Re: Regression in table.el detection? [maint]

2021-01-04 Thread Kaushal Modi
On Tue, Jan 5, 2021 at 1:15 AM Kyle Meyer wrote: > > > Exporting that table to html, I see "Before" on release_9.4.4, maint > (273391c97), and master (00b4de329). > > You're able to trigger the issue with a vanilla configuration on maint? > Hi Kyle, Thanks for checking. Indeed ox-html export do

Re: Regression in table.el detection? [maint]

2021-01-04 Thread Kyle Meyer
Kaushal Modi writes: > Hello, > > There has been a recent regression in table.el detection. > > Earlier, this used to be detected as a table.el table, but now it's not > (entirely): > > > +--+--+--+ > | Header 1 | Header 2 | Header 3 | > +--+--+--+ >

Re: [PATCH] ol: Avoid initial input when completing function for storing link

2021-01-04 Thread Kyle Meyer
Kyle Meyer writes: > John Kitchin writes: > >> Is there an easy way to avoid this, or to modify the order of the functions >> used? I want to see all the options for storing, or better, to just store >> them all and let me choose later when I use org-insert-link. > > The "or better" sounds reasona

Re: [PATCH] org-contacts.el: Use `bound-and-true-p' to check (unbound) var

2021-01-04 Thread Kyle Meyer
David Florness writes: > Thank you, Kyle. This patch should do the trick. I'm always happy to > send another revision so feel free to nitpick. Thank you. Looks good to me, but I'll leave the final review/apply up to stardiviner.

Re: [QUESTION] Org "customid" and "coderef" links seems not fontified as other file: link

2021-01-04 Thread miles christopher
Nicolas Goaziou writes: > Hello, > > stardiviner writes: > >> Bump this thread, hi, Nicolas, any thoughts or update about this? >> >> stardiviner writes: >> >>> I have following minimal testing code: >>> >>> #+begin_src emacs-lisp >>> (defun org-link-beautify (start end path bracketp) >>> "

[PATCH] org-contacts.el: Use `bound-and-true-p' to check (unbound) var

2021-01-04 Thread David Florness
* org-contacts.el (org-contacts-link-store): Use `bound-and-true-p' to check the truthiness of org-id-link-to-org-use-id, which may or may not be bound depending on whether org-id has been loaded. This simplifies the code. --- Thank you, Kyle. This patch should do the trick. I'm always happy to

Re: [PATCH v2] org-contacts.el: Only use org-id-store-link if org-id is loaded

2021-01-04 Thread Kyle Meyer
David Florness writes: > Fixes bug introduced in 6b83c6e4e that made org-contacts-anniversaries > error if org-id was not loaded. > --- > v1 -> v2: Stefan Monnier made a good suggestion to use bound-and-true-p > instead here: https://lists.gnu.org/r/emacs-devel/2021-01/msg00257.html stardiviner a

[PATCH v2] org-contacts.el: Only use org-id-store-link if org-id is loaded

2021-01-04 Thread David Florness
Fixes bug introduced in 6b83c6e4e that made org-contacts-anniversaries error if org-id was not loaded. --- v1 -> v2: Stefan Monnier made a good suggestion to use bound-and-true-p instead here: https://lists.gnu.org/r/emacs-devel/2021-01/msg00257.html Alternatively, we could autoload org-id-link-to

[PATCH] org-macs: Allow specifying relative time in hours

2021-01-04 Thread Daniel Gröber
This adds support for date expressions such as +12h to org-matcher-time. The regexp this function uses to parse such relative expressions already includes the "h" character but doesn't actually handle that case. AFAICT org-mode commit ec921a2a68 ("Support hourly repeat cookies") neglected to add s

Re: accounting

2021-01-04 Thread Daniele Nicolodi
On 04/01/2021 21:04, Uwe Brauer wrote: "DN" == Daniele Nicolodi writes: > >> On 04/01/2021 09:54, Uwe Brauer wrote: >>> Hi >>> >>> https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ledger.html >>> >>> Points out how to use ledger within org mode. >>>

Org-capture template no longer recognised...

2021-01-04 Thread Neil Shephard
Hi, I am enjoying learning more and more about how functional and useful org-mode is, truly amazing software. One thing I've setup is a Babel document for logging exercise activities and accompanying custom org-capture-templates for entering data. These worked great until recently but with no co

Re: advanced search for patterns

2021-01-04 Thread Samuel Wales
correction: *{pat1} {pat2} {pat3} -{pat4} should do the trick iiuc and if you have the varialbe setc.

Re: advanced search for patterns

2021-01-04 Thread Samuel Wales
with the correct variable settings, i think you can do {pat1} {pat2} {pat3} -{pat4} you can check the manual for the search settings. On 1/4/21, hj-orgmod...@hj.proberto.com wrote: > hello, I have been using orgmode for a while , and noticed that I can > find headings based on tags, but I ha

advanced search for patterns

2021-01-04 Thread hj-orgmode-1
hello, I have been using orgmode for a while , and noticed that I can find headings based on tags, but I haven't figured out whether there is a way to say in emacs org-mode :   find me all the (lowest-level) headings [ or heading-paths ] that contains text (whether formatted as source code blo

following links disables sparse tree highlighting

2021-01-04 Thread Samuel Wales
when i do org-sparse-tree regexp search, keywords are highlighted and i can use next-error. when i then click on a link with mouse, the highlighting disappears. i have set org-remove-highlights-with-change to nil. can i do anything to make the highlights stay?

Re: Bug: org-element does not recognize table.el tables [9.4 (release_9.4-53-g23f941 @ /home/nick/elisp/org-mode/lisp/)]

2021-01-04 Thread Nick Dokos
Nicolas Goaziou writes: > Hello, > > Nick Dokos writes: > > [...] > >> Evaluating `(org-element-at-point)' returns `(paragraph ...)' all along >> the top line and `(table ( :type org ))' when the cursor is at >> the beginning of the `a b c' line. > > Fixed. Thank you. > Thank you! --

Re: accounting

2021-01-04 Thread Samuel Wales
i don't know if this is the best, but for some reason i had it so that ledger goes into a block [used to be example or so, now is ledger], and then post-process it with a shell source block. perhaps this will make more sense [in the distant past it made more sense to me]. when i process it, i cal

Bug: inconsistent escaping of coderef regexp

2021-01-04 Thread Tom Gillespie
It is not possible to strip coderefs when tangling and also search for those coderefs using org-link-search. This is because org-link-search uses org-src-coderef-regexp which calls regexp-quote on the regexp string while org-babel-tangle-single-block does not and uses the regexp string directly wit

Re: Accounting WAS Emacs-orgmode Digest, Vol 179, Issue 4

2021-01-04 Thread Uwe Brauer
> Also, in practical terms for day to day, rather than input things manually, > I highly recommend downloading csvs (or similar formats) from your bank and > using the ruby gem `reckon` which is a bayesian predictor that will learn > from your ledger on how to expense your bank account entries and

Re: accounting

2021-01-04 Thread Uwe Brauer
>>> "DN" == Daniele Nicolodi writes: > On 04/01/2021 09:54, Uwe Brauer wrote: >> Hi >> >> https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ledger.html >> >> Points out how to use ledger within org mode. >> >> Is there any simpler solution? > As other poi

Re: accounting

2021-01-04 Thread Uwe Brauer
>>> "ESF" == Eric S Fraga writes: > On Monday, 4 Jan 2021 at 13:43, Uwe Brauer wrote: >> The example in this link is ok, also the output (the result of the >> ledger operation) is not very nicely formatted. > ledger does allow you to control, in detail, how the output should be >

Regression in table.el detection? [maint]

2021-01-04 Thread Kaushal Modi
Hello, There has been a recent regression in table.el detection. Earlier, this used to be detected as a table.el table, but now it's not (entirely): +--+--+--+ | Header 1 | Header 2 | Header 3 | +--+--+--+ | a| b| c| +-

Re: [PATCH] org-contacts.el: Only use org-id-store-link if org-id is loaded

2021-01-04 Thread David Florness
David Florness writes: > Anyways, mu4e has an action function called > `mu4e-action-git-apply-patch' [0] for this. If you setup this action with I meant `mu4e-action-git-apply-mbox' here. -- David signature.asc Description: PGP signature

Re: [QUESTION] Org "customid" and "coderef" links seems not fontified as other file: link

2021-01-04 Thread Nicolas Goaziou
Hello, stardiviner writes: > Bump this thread, hi, Nicolas, any thoughts or update about this? > > stardiviner writes: > >> I have following minimal testing code: >> >> #+begin_src emacs-lisp >> (defun org-link-beautify (start end path bracketp) >> "Display icon for the Org link type." >> (

Re: [PATCH] org-contacts.el: Only use org-id-store-link if org-id is loaded

2021-01-04 Thread David Florness
miles christopher writes: > I applied your patch, thanks. I don't want to use Gmail web UI or find > out email URL in mailing list archive. I'm using mu4e. Is there a > convenient simple way for mu4e user? Oh cool, I use mu4e also :) I guessed you were using the Gmail UI since you have a Gmail a

Re: Accounting WAS Emacs-orgmode Digest, Vol 179, Issue 4

2021-01-04 Thread Daryl Manning
I do not use ledger within org-mode bit use a combo of libraries to make ledger entries *look* and act like org-mode with folding. I find this work (for me) much better than trying to mess with babel and having inline ledger (basically, I treat my ledger file as a... ahem... ledger... I track perso

Re: [PATCH] org-contacts.el: Only use org-id-store-link if org-id is loaded

2021-01-04 Thread miles christopher
I applied your patch, thanks. I don't want to use Gmail web UI or find out email URL in mailing list archive. I'm using mu4e. Is there a convenient simple way for mu4e user? David Florness writes: > miles christopher writes: > >> Thanks for your patch. :smile: >> >> Can you send patch file as

Re: ist here a :post header arg for tangling?

2021-01-04 Thread Immanuel Litzroth
I also seem to remember that the buffer you are dropped into after tangling doesn't even have the correct major mode set. Immanuel On Mon, Jan 4, 2021 at 4:11 PM Diego Zamboni wrote: > > Agree. It should be possible to make the hook file-local, but still it's not > trivial to have good control o

Re: ist here a :post header arg for tangling?

2021-01-04 Thread Immanuel Litzroth
Oh and I also made the tangling itself more flexible in that you can now also choose to only tangle stuff going to a certain file. This is mainly to be able to define an interactive command that tangles/reloads everything going to the file under point. Immanuel On Mon, Jan 4, 2021 at 4:31 PM Imman

Re: ist here a :post header arg for tangling?

2021-01-04 Thread Immanuel Litzroth
Well I solved the problem by writing a tangler which can be configured with tangle-config you define a tangler by making a hash "language" -> tangle-hooks. The tangle-hooks are called at beginning of tangling, on each source block, on each noweb-ref and at the end of tangling. They receive the full

Re: ist here a :post header arg for tangling?

2021-01-04 Thread George Mauer
So like I said, I would like to run some code to post-process files. Nothing super-concrete, but a bunch of small use cases I've run into such as - Running tests on every tangle - Executing a code block in the same document and running tests after all tangles - Running a code-formatter such as pre

Re: ist here a :post header arg for tangling?

2021-01-04 Thread Diego Zamboni
Agree. It should be possible to make the hook file-local, but still it's not trivial to have good control over where and how the changes are made. --Diego On Mon, Jan 4, 2021 at 3:51 PM Immanuel Litzroth < immanuel.litzr...@gmail.com> wrote: > There's that, but you're not gonna do much with tha

Re: ist here a :post header arg for tangling?

2021-01-04 Thread Immanuel Litzroth
There's that, but you're not gonna do much with that since it is global to emacs. If you're brimming with vigour you might achieve what you want by rebinding that each time you tangle to do the correct thing. Not much information is available in that hook, you get dropped into a temp buffer contain

Re: ist here a :post header arg for tangling?

2021-01-04 Thread Diego Zamboni
There's =org-babel-post-tangle-hook=, which AFAICT specifies hooks that will be run with the tangled code in a temporary buffer. I couldn't find much documentation nor examples, but it is mentioned at https://orgmode.org/manual/Extracting-Source-Code.html#Hooks-3 --Diego On Fri, Jan 1, 2021 a

Re: accounting

2021-01-04 Thread Eric S Fraga
On Monday, 4 Jan 2021 at 13:43, Uwe Brauer wrote: > The example in this link is ok, also the output (the result of the > ledger operation) is not very nicely formatted. ledger does allow you to control, in detail, how the output should be formatted. The default output is suitable for a console d

Re: accounting

2021-01-04 Thread Charles Millar
On 1/4/21 3:54 AM, Uwe Brauer wrote: Hi https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ledger.html Points out how to use ledger within org mode. Is there any simpler solution? Regards Uwe Brauer If "simpler" means just making entries into your ledger.dat file using orgmode y

Re: accounting

2021-01-04 Thread Uwe Brauer
>>> "AB" == Arne Babenhauserheide writes: > Uwe Brauer writes: >> https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ledger.html >> >> Points out how to use ledger within org mode. >> >> Is there any simpler solution? > Do you mean simpler accounting in org-mode

Re: accounting

2021-01-04 Thread Daniele Nicolodi
On 04/01/2021 09:54, Uwe Brauer wrote: > Hi > > https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ledger.html > > Points out how to use ledger within org mode. > > Is there any simpler solution? As other pointed out, you are not describing what you want to accomplish, thus is impossi

Re: ob-haskell

2021-01-04 Thread Leo
Lawrence Bottorff writes: > Enclosing code in :{ ... :} is fairly good -- again you can type this in at > the REPL prompt and see how it works -- however, there are gotchas. > I don't think I understand what the problem is with :{ ... :}. Doing this manually has worked pretty well for me. > > W

Re: accounting

2021-01-04 Thread Dr. Arne Babenhauserheide
Uwe Brauer writes: > https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ledger.html > > Points out how to use ledger within org mode. > > Is there any simpler solution? Do you mean simpler accounting in org-mode, or do you mean simpler ledger-integration? You can always tangle your le

Re: Org to ConTeXt exporter?

2021-01-04 Thread Ludovic Courtès
Hi, Jonathan McHugh skribis: > I investigated further the Context engine for Skribilo: > https://git.savannah.gnu.org/gitweb/?p=skribilo.git;a=tree;f=src/guile/skribilo/engine;h=9c6353eb7c6eae70de007c2f0a8f01092ae669a2;hb=HEAD > > While I cant comment on it's Context engine functionality or effi

Re: accounting

2021-01-04 Thread Eric S Fraga
On Monday, 4 Jan 2021 at 09:54, Uwe Brauer wrote: > Points out how to use ledger within org mode. > Is there any simpler solution? How do you wish it to be simpler? What is it you wish to do? -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4.4-166-g291993

accounting

2021-01-04 Thread Uwe Brauer
Hi https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-ledger.html Points out how to use ledger within org mode. Is there any simpler solution? Regards Uwe Brauer