Re: [PATCH] Fix verbatim block fontification to end blocks on headlines

2019-12-13 Thread Tom Gillespie
Adam Porter writes: > May I recommend using the rx macro for regexps? They are much easier > for humans to parse, which helps reduce errors like the ones mentioned > here. And they are about to gain some very useful new features > in Emacs 27. Yep. I'll switch the regex in over to use rx.

Re: [PATCH] Fix verbatim block fontification to end blocks on headlines

2019-12-12 Thread Tom Gillespie
Thank you very much for the feedback. I will make the additional fixes against maint along with the changes for clarity and send them along tomorrow. Additional replies in line. Best, Tom On Thu, Dec 12, 2019 at 12:40 AM Nicolas Goaziou wrote: > > Hello, > > Tom Gille

Bug: tangle failure of one block results in failure to set =:tangle-mode= of another [9.3 (9.3-elpaplus @ /home/tom/.emacs.d/elpa/org-plus-contrib-20191203/)]

2019-12-07 Thread Tom Gillespie
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list.

Bug: headlines escape blocks [9.3 (9.3-elpaplus @ /home/tom/.emacs.d/elpa/org-plus-contrib-20191203/)]

2019-12-07 Thread Tom Gillespie
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list.

Re: Bug: headlines escape blocks [9.3 (9.3-elpaplus @ /home/tom/.emacs.d/elpa/org-plus-contrib-20191203/)]

2019-12-07 Thread Tom Gillespie
at 3:12 AM Nicolas Goaziou wrote: > > Hello, > > Tom Gillespie writes: > > > * Description > > Headlines are not ignored inside of blocks when the headline is not > > indented. > > > > * Affected versions > > 9.1.9, 9.3 > > > > *

[PATCH] Fix verbatim block fontification to end blocks on headlines

2019-12-11 Thread Tom Gillespie
blocks are not. There is nothing to match, is there? [1] Bug: headlines escape blocks: https://lists.gnu.org/archive/html/emacs-orgmode/2019-12/msg00133.html From 531eac23e22b5b8b16f2747bbd5c1bd43fcbe43b Mon Sep 17 00:00:00 2001 From: Tom Gillespie Date: Wed, 11 Dec 2019 17:57:47 -0800 Subject: org.e

Re: [PATCH] Fix verbatim block fontification to end blocks on headlines

2019-12-17 Thread Tom Gillespie
8c36ffa82c138057a03c813aa0c7616f04744a72 Mon Sep 17 00:00:00 2001 From: Tom Gillespie Date: Wed, 11 Dec 2019 17:57:47 -0800 Subject: org.el: Fix verbatim block fontification to end blocks on headlines * lisp/org.el (org-fontify-meta-lines-and-blocks-1): Enhance regex for finding the end of blocks (i.e., `beg

Re: Bug or not a bug? dot expansion in ob-shell

2020-02-29 Thread Tom Gillespie
(lambda (path) (browse-url (concat "mailto:; path ("news" :follow (lambda (path) (browse-url (concat "news:; path ("shell" :follow org--open-shell-link)) org-latex-format-headline-function 'org-latex-format-

Re: Bug or not a bug? dot expansion in ob-shell

2020-02-29 Thread Tom Gillespie
Hi all, Sorry to be late to this thread (and for a wall of text), but as a heavy user of ob-shell I wanted to chime in. First a disclosure, I would be very unhappy if option 1 were selected, it would require me to make a whole bunch of changes and try to find an option to revert to the current

Re: Bug: Running C-c C-c doesn't tangle [9.3.6 (9.3.6-elpa @ /home/aadcg/.emacs.d/elpa/org-9.3.6/)]

2020-03-02 Thread Tom Gillespie
Hi André, C-c C-v C-t is the default tangle binding, C-c C-c will execute the block (and resolve any noweb references if the :noweb header is set) but will not tangle it. Two references are https://orgmode.org/manual/Extracting-Source-Code.html and

[PATCH] org-src: Add option to restore window configuration after edit

2020-02-16 Thread Tom Gillespie
work is needed. Thanks! Tom From 362a45ff172af3f49050964aa8534d11374934ca Mon Sep 17 00:00:00 2001 From: Tom Gillespie Date: Sun, 16 Feb 2020 19:21:16 -0800 Subject: [PATCH] org-src: Add option to restore window configuration after edit * lisp/org-src.el: Add an option to restore the previous

Re: [PATCH] org-src: Add option to restore window configuration after edit

2020-02-16 Thread Tom Gillespie
, but I guess that can wait. Thus, definitely ok to ignore this patch. Best! Tom On Sun, Feb 16, 2020 at 8:16 PM Kyle Meyer wrote: > > Hi Tom, > > Tom Gillespie writes: > > > Hi all, > > After hours of frustration ending in a realization that I should really >

[PATCH] org-manual: Use ol-man.el in "Adding Hyperlink Types"

2020-01-08 Thread Tom Gillespie
Hi, This is a tiny change to the manual to account for the change from org -> ol in the org-man example. There may be other references in the manual that have similar issues but I did not check. Tom From b2b8088f958379552f5c9dc228dcda56b7e6f738 Mon Sep 17 00:00:00 2001 From: Tom Gillespie D

Re: [PATCH] org-manual: Use ol-man.el in "Adding Hyperlink Types"

2020-01-09 Thread Tom Gillespie
Great thanks! On Thu, Jan 9, 2020 at 8:50 AM Nicolas Goaziou wrote: > I removed this since you have signed FSF papers. Got it, I'll leave it out in the future and add a note in org-contribute.org in case someone else missed the implication of that paragraph.

Re: babel default header args as functions

2020-09-05 Thread Tom Gillespie
I think making the behavior of default arguments consistent with regular arguments is probably a good thing. I have a number of use cases that I can imagine would benefit greatly from being able to define a :header-args: :header (lambda () "yay!") property as a closure (and actually I assumed that

Re: [PATCH] Add support for trace and error output streams in Common Lisp

2020-09-05 Thread Tom Gillespie
Hi, One comment on this patch right now is that =errors= should probably be changed to =error= for consistency with the slime nomenclature and with the fact that all the rest of the options for the :results header are singular nouns. I also wanted to chime in here with a note that this seems to

Re: [PATCH] lisp/ob-core.el: pass expanded body to org-confirm-babel-evaluate

2020-09-04 Thread Tom Gillespie
included a patch against maint that reuses the let block from org-babel-execute-src-block to accomplish this. Best! Tom From dfb8eee9901a0fe4bd933911386f69863785a15b Mon Sep 17 00:00:00 2001 From: Tom Gillespie Date: Fri, 4 Sep 2020 20:35:03 -0700 Subject: [PATCH] lisp/ob-core.el: org-babel-check

Re: [FEATURE REQUEST] No tangle of code blocks within archived subtrees

2020-09-04 Thread Tom Gillespie
Hi Gabriel, This seems like it is probably a bug given that everything else about archive headings is disabled. In the meantime, depending on how many blocks you are dealing with you could hack around this by using the following header argument. #+header: :tangle (unless-archived

Re: [PATCH] lisp/ob-core.el: pass expanded body to org-confirm-babel-evaluate

2020-09-06 Thread Tom Gillespie
for getting this in! Best, Tom On Sat, Sep 5, 2020 at 8:45 PM Kyle Meyer wrote: > > Tom Gillespie writes: > > > Hi Kyle, > > Following up in this thread having investigated the impact of coderefs. > > My conclusion is that coderefs need to be stripped out before they are >

Re: [FEATURE REQUEST] No tangle of code blocks within archived subtrees

2020-09-06 Thread Tom Gillespie
Hi Bastien, My initial reaction was to say yes to all of these in the name of consistency, but there are nuances for org-babel-ref-resolve and org-babel-expand-noweb-references that are different than for org-babel-exp-process-buffer. If I have a block that nowebbs in another block, and at

Re: babel default header args as functions

2020-09-06 Thread Tom Gillespie
to the second example). Best! Tom On Sat, Sep 5, 2020 at 10:00 PM Bastien wrote: > > Thanks for weighing in into this discussion. > > Tom Gillespie writes: > > > I have a number of use > > cases that I can imagine would benefit greatly from being able to > > defin

Re: [FEATURE REQUEST] No tangle of code blocks within archived subtrees

2020-09-08 Thread Tom Gillespie
Great, thank you. Also handy to see the "right" way to traverse up the tree. Best! Tom On Sun, Sep 6, 2020 at 9:52 PM Bastien wrote: > > Thanks Tom for the feedback. > > >> - org-babel-exp-process-buffer > > Yes > >> - org-babel-ref-resolve > > Probably not? > >> -

Re: Website revamp?

2020-09-07 Thread Tom Gillespie
Hi Timothy, Based on the available relationships Org mode is almost certainly a https://schema.org/SoftwareApplication that is a https://schema.org/softwareAddOn of https://emacs.org as well is in https://schema.org/applicationSuite https://emacs.org. There are a number of other properties

Re: babel default header args as functions

2020-09-09 Thread Tom Gillespie
Hi Matt, Looking good here. Thanks! Tom On Wed, Sep 9, 2020 at 12:06 PM Matt Huszagh wrote: > > Tom Gillespie writes: > > > [...] I have a number of use > > cases that I can imagine would benefit greatly from being able to > > define a :header-args: :header

Re: Shouldn't ob-shell's org-babel-expand-src-block prepend the :shebang value?

2020-09-10 Thread Tom Gillespie
Hi Vladimir, I have encountered similar issues with wanting to have a racket #lang line included in a tangled block while also allowing org to know exactly which #lang it is working with. I haven't found a good solution. One issue with embedding the shebang when editing a buffer is that it is

Re: [PATCH] ob-core: Fix handling of multiple noweb refs in same line

2020-09-14 Thread Tom Gillespie
though I guess you never know). Thank you for tracking this down, and now I know how to add ert tests for things like this in the future! Best, Tom On Tue, Sep 15, 2020 at 12:21 AM Kyle Meyer wrote: > > Tom Gillespie writes: > > > Hi, > >The 9.4 release has a bug where it

Bug: org-babel only tangles first noweb reference on a line [9.4 (9.4-elpaplus @ /home/tom/.emacs.d/elpa/org-plus-contrib-20200914/)]

2020-09-14 Thread Tom Gillespie
Hi, The 9.4 release has a bug where it will only tangle the first noweb reference on a line. This is also present at 9c31cba002a1ba93053aebea1f778be87f61ba06. It happens in emacs-27 and emacs-28. The reproduction is below. Best! Tom The expected content of oops-3.el should be 1 2 1, but is

Re: Website revamp?

2020-09-01 Thread Tom Gillespie
Hi Timothy, Thank you for all your work on this! A couple of suggestions. When the dimensions of the browser window become too narrow the links in the header move to the hamburger menu. This seems like it is quite bad for discoverability. Is there a way that the other sections could be

Re: Website revamp?

2020-09-01 Thread Tom Gillespie
, Tom On Tue, Sep 1, 2020 at 11:07 AM Tom Gillespie wrote: > > Hi Timothy, > Thank you for all your work on this! A couple of suggestions. When > the dimensions of the browser window become too narrow the links in > the header move to the hamburger menu. This seems like

Re: best practices query: non-emacs packages based on tangled source

2020-10-18 Thread Tom Gillespie
Hi Greg, Great question. This came out a bit longer than I anticipated since I wrote up a couple of relevant workflows. Sync between org source blocks and tangled code is something that I think needs improvement. I have covered the difference in semantics between tangled code and babel evaluated

Re: The Website Revamp: The final stretch

2020-09-24 Thread Tom Gillespie
A vote for A from me. I think that using the light background for the section above the fold fits better with the color themes of the other pages and will make the transition less jarring. Best! Tom On Thu, Sep 24, 2020 at 9:20 AM TEC wrote: > > > An update. > > 1. We have a volunteer for a

Re: official orgmode parser

2020-10-24 Thread Tom Gillespie
> which Ruby org-mode parser does Github use? I'm pretty sure that github uses https://github.com/wallyqs/org-ruby. It is ... not compliant, shall we say. I have making some fixes to the footnote parsing section on my todo list, but I don't expect to get to it any time in the near future. Tom

Re: official orgmode parser

2020-10-26 Thread Tom Gillespie
Here is an attempt to clarify my own confusion around the nested structures in org. In short: each node in the headline tree and the plain list tree can be parse using the EBNF, the nesting level cannot, which means that certain useful operations such as folding, require additional rules beyond

Re: official orgmode parser

2020-10-26 Thread Tom Gillespie
Even if this did work for plain lists it won't work for headlines because headlines have an arbitrary number of stars and thus it is not possible for the grammar to know what is a sub-headline vs "the next headline". For a similar reason I'm fairly sure that the sublist approach will not work due

Re: official orgmode parser

2020-10-26 Thread Tom Gillespie
I started writing down Org's grammar as an EBNF (with Racket's #lang brag) on Saturday. There is indeed a layer of Org grammar that can be implemented via EBNF, but it is fairly minimal. You can identify headlines, but you can't identify nesting level; the arbitrary nesting depth means that you

Re: New website - back to the old unicorn!

2020-10-26 Thread Tom Gillespie
The image is a bit off center no? On Mon, Oct 26, 2020 at 1:27 PM TEC wrote: > > > Eric S Fraga writes: > > > On Monday, 26 Oct 2020 at 14:54, Daniele Nicolodi wrote: > >> - (minor) I would add a background to the example in the home > >> page to > >> make it stand out more as an example

Re: Can you automatically noweb include?

2020-08-07 Thread Tom Gillespie
required. * Use the code :PROPERTIES: :header-args:python: :prologue "<>" :END: #+name: python-helper #+begin_src python asdf = lambda : 'result' #+end_src #+begin_src python :noweb yes return asdf() #+end_src On Fri, Aug 7, 2020 at 9:20 PM Tom Gillespie wrote: > > H

Re: Can you automatically noweb include?

2020-08-07 Thread Tom Gillespie
I don't see a direct answer to the original question in the thread, so here is an example of how I do it taken from https://raw.githubusercontent.com/SciCrunch/sparc-curation/master/docs/developer-guide.org. You can ctrl-f for racket-graph-helper to see the relevant blocks. A reduced version is

Re: Can you automatically noweb include?

2020-08-07 Thread Tom Gillespie
Hah, this is what I get for not reading carefully enough. I wonder if it is possible to stick <> in the prologue and have it expand. On Fri, Aug 7, 2020 at 9:18 PM Tom Gillespie wrote: > > I don't see a direct answer to the original question in the thread, so > here is an exam

Re: [PATCH] lisp/ob-core.el: pass expanded body to org-confirm-babel-evaluate

2020-08-02 Thread Tom Gillespie
be to get the expanded version of the body passed to org-confirm-babel-evaluate asap with as few disturbances to the rest of the code base as possible. Best! Tom On Tue, Jul 21, 2020 at 9:20 PM Kyle Meyer wrote: > > Tom Gillespie writes: > > > On Sun, Jul 19, 2020 at 2:13 PM Ky

[PATCH] lisp/ob-core.el: pass expanded body to org-confirm-babel-evaluate

2020-07-13 Thread Tom Gillespie
! Tom From 6d069f9532f44ee9fbc1a0ebdaadcc2eb807f8ec Mon Sep 17 00:00:00 2001 From: Tom Gillespie Date: Mon, 13 Jul 2020 12:04:18 -0700 Subject: [PATCH] lisp/ob-core.el: pass expanded body to org-confirm-babel-evaluate * lisp/ob-core.el (org-babel-get-body-to-eval): New function extracted from org

Re: Updates to ob-racket mode, code review request

2020-07-13 Thread Tom Gillespie
Hi George, I took a glance at your additions, nothing jumps out as being problematic. I have been using wallyqs ob-racket (https://github.com/wallyqs/ob-racket) for about 4 years because it has support for specifying the #lang in the header, and I seem to recall that there were some other

Re: [PATCH] lisp/ob-core.el: pass expanded body to org-confirm-babel-evaluate

2020-07-20 Thread Tom Gillespie
Hi Kyle, Thank you for the feedback. In short if modifying (nth 1 info) in place won't cause a problem then I think it is the way to go. Details below. Best, Tom On Sun, Jul 19, 2020 at 2:13 PM Kyle Meyer wrote: > > Tom Gillespie writes: > > > This is a patch to impro

Re: temporary inclusion of a read-only file / inline element into orgmode buffer

2021-01-06 Thread Tom Gillespie
Check out org-transclusion, it covers some of the use cases you describe or could be used to implement them. The issue with giant results, especially those that have very long lines, is more challenging, but being able to specify that different output streams should go to files instead of results

Re: Possibility to copy text outside EMACS and send it to orgmode document

2021-01-06 Thread Tom Gillespie
It is built into the core org distribution.

Re: Local variables insecurities - Re: One vs many directories

2020-11-25 Thread Tom Gillespie
> As there is the option ! to "apply local variables and permanently > mark these values" but there is no option "not to apply local > variables and permanently mark these values". I have a longer reply that I will send tomorrow, but wanted to respond to this. Yes exactly! I have the equivalent

Re: Local variables insecurities - Re: One vs many directories

2020-11-25 Thread Tom Gillespie
Hi Jean, Some points in summary before a long email. 1. Having an accepting default behavior as a user (i.e., saying yes to all prompts) is bad security practice. The only thing that systems can do is prompt as infrequently as possible in hopes that people don't get prompt fatigue. Emacs

Re: consistent behavior across babel languages

2020-11-25 Thread Tom Gillespie
Hi Ian, Thanks for getting this started. I have been collecting a list of org babel issues and worg is definitely a better place to put them than in one big email. Since there are so many different features that a babel language implementation can support I don't want to try to put them all in

Re: How to evaluate source code while in the edit buffer?

2020-12-04 Thread Tom Gillespie
While we're on the subject of execution in the edit buffer, it is not entirely clear what such execution would mean. Mirko's desire seems to be to execute the buffer directly without org-babel as an intermediary. However, the most consistent approach would be a command to pop back to the source

Re: new website: not easy to find how to ask for help

2020-12-08 Thread Tom Gillespie
Hi Eric, Good point, we are indeed missing a line that says "You can mail the list directly at mailto:emacs-orgmode@gnu.org.; Here's a patch. I assume it is probably ok to put the raw email on the site. Best, Tom From 490c48a9750d04571e63250208ae90b2cd85 Mon Sep 17 00:00:00 2001 From

Re: stability of toc links

2020-12-08 Thread Tom Gillespie
It sounds like you are looking for the CUSTOM_ID property. See https://orgmode.org/manual/Handling-Links.html and https://orgmode.org/manual/Internal-Links.html. I don't remember whether there is a way to generate ids matching headlines within org itself, but there is

Re: ob-python: import local package into a session

2020-11-24 Thread Tom Gillespie
I have also been dissatisfied with the current options for making local python libraries accessible in certain org files. The amount of setup that is required outside the org file itself was too large, especially if you want someone else who is not intimately familiar with python to be able to use

Re: One vs many directories

2020-11-24 Thread Tom Gillespie
> > That is security issue. > > Why is it a security issue? The variables do need to be close to the end > — 3000 characters is only about 50 lines. It isn't a security issue by itself. Emacs never automatically runs eval file local variables unless you have tampered with enable-local-eval, in

Re: Is Org really so simple?

2020-11-23 Thread Tom Gillespie
I have read many perspectives like this of late on this mailing list. In summary I think that Org is such an incredibly flexible and powerful tool that many users have not the faintest idea what other users are doing with it (for example I am completely mystified by the level of activity in the

Re: Bug: :prologue and :epilogue are ignored in ob-sql code blocks (inter alia)

2020-11-24 Thread Tom Gillespie
Tim, Thank for the report, and the digging for ob-langs that might be affected. The underlying issue is that prologue and epilogue are part of both the user facing parts of org babel as well as the internal language implementation facing code. This is a fundamental design flaw in org babel

Re: How to preserve empty headings

2020-11-30 Thread Tom Gillespie
This is caused by elastic-indent-mode. As foretold https://lists.gnu.org/archive/html/emacs-orgmode/2020-11/msg00325.html. Tom On Mon, Nov 30, 2020 at 1:38 PM Titus von der Malsburg wrote: > > > On 2020-11-30 Mon 19:25, Diego Zamboni wrote: > >> > >> I’m aware of several workarounds and this one

Re: Multiple named code blocks

2020-11-28 Thread Tom Gillespie
Hi Félix, I think that it is probably not a good idea to implicitly concatenate blocks that share the same name. There are a number of major downsides. One reason is that all the other parts of org-mode assume that there is only a single block with that name, or rather have undefined behavior

Re: Emacs inserts hardwired org-agenda-files variable, overwriting user options

2020-11-29 Thread Tom Gillespie
> Would this affect my own custom What I did when I migrated was to manually move the existing custom-set-variables and custom-set-faces from .emacs to the new custom-file (in my case ~/.emacs.d/custom.el), that way the old definitions will still be loaded. All new customizations will live in

Re: Emacs inserts hardwired org-agenda-files variable, overwriting user options

2020-11-29 Thread Tom Gillespie
Here is a workaround. Emacs klobbering settings in .emacs has caused many issues for me in the past. The solution I finally came up with was to ensure that custom variables are loaded before any of my settings. Near the top of my .emacs (before any calls to setq) I have the following: custom

Re: looking for a macro eval workaround (9.1 vs 9.2 and +) for export backend test

2020-11-29 Thread Tom Gillespie
Not sure if this helps, but the example that I came up with for the quickstart https://orgmode.org/quickstart.html#macros has an example (see below) of using multiple @@ export snippets in a single macro. If you have consistent naming conventions for pdf vs svg you might be able to write a variant

Re: Bug fix attached: org-babel sql postgres, fix hardcode

2020-12-12 Thread Tom Gillespie
It looks like the two patches are sequential, there should probably be a rebase into a single patch. I would remove the comment in the second patch because it is a single command to jump to the default value and it might change in the future, so no reason to put it in a comment. One way to

Re: did behaviour of RET change again?

2020-12-23 Thread Tom Gillespie
> in case not obvious, i am suggesting a nil value for org adapt indentation. > thus no physical indentation of all lines including planning lines. > i'd even suggest no physical indentation as default for example and > source blocks, but that is a can of worms. I know that this is a can of

Re: did behaviour of RET change again?

2020-12-23 Thread Tom Gillespie
> possibly i'm misunderstanding, but my sense is that the value of org > adapt indentation doesn't change what you might actually find ("in a > .org file in the wild"). so, whatever its value, your grammar would > have to deal with all cases? Yep, we can't magically change all the files out in

Re: Bring up a screen giving option to open a series of orgmode files

2020-12-15 Thread Tom Gillespie
To hop in on the hypothes.is thread. I have spent quite a bit of time working with hypothes.is and related tooling (mostly in python), so here is a brain dump on interactions between org and hypothes.is. As others have mentioned, this could easily be its own thread. Best! Tom A quick note on

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

2020-12-15 Thread Tom Gillespie
Hi Timothy, I understand now. Having a way to implement this in the config is a good thing as it covers a slightly different set of use cases and workflows than always using a common #+setupfile: line. That way if you are working with files that don't have a #+setupfile: specified you can

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

2020-12-15 Thread Tom Gillespie
A question from the slightly uninformed. Why not just use #+html_head: possibly with a macro to fill in variable values? That is fully extensible and doesn't overload keywords. For title, date, author, etc. those can have clearly defined mappings to the html, but everything else seems to be

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

2020-12-21 Thread Tom Gillespie
A few years ago I was trying to format tables in a certain specific way and it was essentially impossible with org tables for reasons that now escape me. However, it was possible to accomplish it using tabels.el tables. I don't think I ended up actually using the tables.el solution, but at the

Re: Emacs as an Org LSP server

2020-12-14 Thread Tom Gillespie
See also. https://lists.gnu.org/archive/html/emacs-devel/2017-04/msg00798.html and https://www.reddit.com/r/emacs/comments/696pv1/rms_supports_language_server_protocol_integration/ for some discussion. Best, Tom On Mon, Dec 14, 2020 at 4:31 PM Tim Cross wrote: > > > > I am no fan of Microsoft.

Re: Thoughts on the standardization of Org

2020-11-10 Thread Tom Gillespie
This is a great sub-thread that should probably be its own top level thread on org security. Org files are mostly benign unless the user does something extremely dangerous like setting enable-local-eval t. However, there are some areas where arbitrary code can be executed (as intended) that some

Re: official orgmode parser

2020-11-12 Thread Tom Gillespie
Hi Bastien, I agree it would be great to ask them to contribute to whichever ruby library they are using. I will see if I can get in touch, but I have no idea of where to start if we really want to get to the folks who could make a decision. It looks like gitlab uses the same org-ruby library

Re: Changed list indentation behavior: how to revert?

2020-11-16 Thread Tom Gillespie
Would it help if major releases maintained a mini-config that if added to init.el would allow users to retain old behavior? That way they wouldn't have to read the NEWS but could just add the relevant lines, or maybe even just call the org-old-default-behavior-9.1 or org-old-default-behavior-9.4.

Re: TEC: update the new website ML page?

2020-11-16 Thread Tom Gillespie
om > > PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ > > Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 > From 98057ee1b0c008d38fe7b725bc03c4d9af01ee25 Mon Sep 17 00:00:00 2001 From: Tom Gillespie Date: Mon, 16 Nov 2020 12:02:42 -0500 Subject: [PATCH]

Re: Changed list indentation behavior: how to revert?

2020-11-16 Thread Tom Gillespie
> > Ugh, I update my emacs package pretty infrequently and I usually have 30 or > > more packages updating at a time -- I can't see wading through 30 NEWS > > files searching for landmines... > > > > Yes, this I think is a problem. Most of those packages probably only > have minor changes and bug

Re: Changed list indentation behavior: how to revert?

2020-11-16 Thread Tom Gillespie
> If people don't have time to read the NEWS file, I also doubt they would > be aware of the mini config file or have the time to add it to their > setup. There would be an additional burden on developers to maintain the > mini-config which might not actually result in any real benefit. I would >

Re: Changed list indentation behavior: how to revert?

2020-11-16 Thread Tom Gillespie
Terry, Thank you very much for the clear articulation of the problem, it enable me to see what the issue is and find more and deeper issues with the change. Speaking as someone who was not affected by this change due to the peculiarities of my config, let me say as a fairly impartial

Re: Changed list indentation behavior: how to revert?

2020-11-16 Thread Tom Gillespie
EWS files > searching for landmines... > > > -- Bill > > > On Mon, Nov 16, 2020 at 9:10 PM Tom Gillespie wrote: >> >> Semver is unlikely to help because the question is what is "broken" by >> a change in version. Semver would likely be about breaki

Re: Changed list indentation behavior: how to revert?

2020-11-16 Thread Tom Gillespie
ack where we are now -- to know what really changed you have to read the NEWS. Bastien has also talked about hear-ye versioning, which says when a version changes users need to read the news. Best, Tom On Mon, Nov 16, 2020 at 1:15 PM gyro funch wrote: > > On 11/16/2020 9:26 AM, Tom Gillespie wrote:

Re: Tables: missing multi-col/row syntax

2020-11-02 Thread Tom Gillespie
Any support for something like this would need to retain backward compatibility as well to avoid older versions reformatting the tables due to e.g. the presence of a double pipe. I also think that extending the table syntax in ways that makes it more complex than it already is, will be a

Re: Thoughts on the standardization of Org

2020-10-31 Thread Tom Gillespie
Hi Asa, My general take is that any active work toward standardization would be premature. At the very least a full implementation outside of Emacs would need to exist. In the absence of that there is little point to standardization. There is ample existing documentation to build a compliant

Re: Is reading nested simple lists into org-babel code blocks currently supported?

2020-10-29 Thread Tom Gillespie
Hi James, I would file this along with other ob-lang dependent features such as TRAMP remote execution support. For example, python works as in your other examples, but only if you define :var unordered="unordered" as another variable before the variable you pass the plain list to because

Re: Org-Mode as DSL

2020-10-29 Thread Tom Gillespie
Hi Mauro, Welcome! This is definitely not a crazy idea (or at least if it is then you are in good company). Org already has wide support as a markup language, and tools like https://github.com/tecosaur/org-pandoc-import exist that leverage this, but the syntax is not standardized and as a

Re: Display ellipsis at end of headline instead of after tags

2021-01-10 Thread Tom Gillespie
Not 100% sure about this, but take a look at the hs-set-up-overlay variable, it seems like it might be possible to customize that to achieve this behavior. Best, Tom

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

Re: Possibility to copy text outside EMACS and send it to orgmode document

2021-01-05 Thread Tom Gillespie
You can achieve something a bit like this using org-protocol-capture-html https://github.com/alphapapa/org-protocol-capture-html. I'm not entirely sure whether you can bind the equivalent of a hook in javascript to run every time you C-c, but if you can, then it should be possible to match this

Re: Large source block causes org-mode to be unusable

2021-06-21 Thread Tom Gillespie
> That said, I think keeping 2000 lines of source code inside an > org src block is neither a standard use case nor a reasonable idea. I would say that it certainly is a standard use case for people who want to keep everything in a single file (e.g. to simplify reproducibility and avoid the mess

[PATCH] ob-core: tangle check library of babel after current buffer

2021-06-16 Thread Tom Gillespie
Hi, This is a patch that fixes tangling behavior when a block has been ingested into the library of babel and then modified. Best! Tom From 22d0689257f977d09b013a143e899f788b45a039 Mon Sep 17 00:00:00 2001 From: Tom Gillespie Date: Mon, 14 Jun 2021 19:18:28 -0700 Subject: [PATCH] ob-core

Re: Multiple calc commands with orgbabel

2021-05-07 Thread Tom Gillespie
Hi Bastien, Here's a patch to make it official. :) Tom From 3a61289e8fa4442f6d340138dcb67b950e980212 Mon Sep 17 00:00:00 2001 From: Tom Gillespie Date: Thu, 6 May 2021 23:52:21 -0700 Subject: [PATCH] lisp/ob-calc.el: Add Tom Gillespie as the maintainer * lisp/ob-calc.el: Add Tom Gillespie

Re: Multiple calc commands with orgbabel

2021-05-06 Thread Tom Gillespie
Hi Bastien, Given the short length of the file, the fact that I now have a fairly good idea of how it works, and the fact that I share a last name with the original author of calc, I would be happy to. I'll hunt down the steps you mentioned for becoming an ob- maintainer and ping back when

Re: URLs with brackets not recognised

2021-05-12 Thread Tom Gillespie
A quick fix is to percent encode the troublesome characters, but the underlying issue is in org-link-any-re which is defined in org-link-make-regexps which is what org uses to find the next link. Some improvements might be possible for some of the edge cases there, but a complete solution for bare

bug#48676: Arbitrary code execution in Org export macros

2021-05-26 Thread Tom Gillespie
Hi Glenn, The definition for local variables doesn't cover things like org macros, though the spirit of the policy is something worth keeping in mind. Running M-x org-export-dispatch and hitting two keys means that the user has to do something to trigger code execution, much like they would

Re: A formal grammar for Org

2021-06-01 Thread Tom Gillespie
Hi Jakob, Thank you for getting in touch. I had been meaning to after someone pointed me to your repo in a reddit thread, but you beat me to it. Replies in line. Best! Tom PS ccing this back to the list for the record. On Tue, Jun 1, 2021 at 1:56 AM Jakob Schöttl wrote: > > Hi Tom, > > I

Re: execute elisp link without prompt

2021-05-21 Thread Tom Gillespie
> In the end I've set as to nil as a local variable If you want something a bit more secure you could use a function that checks the block name ("some-block" in this example). Best! Tom (lambda (_lang _body) (not (string= "some-block" (plist-get (cadr (org-element-at-point))

Re: Empty headline titles unsupported: Bug?

2021-05-29 Thread Tom Gillespie
Hi David, Laundry produces a full s-expression representation of the org parse tree (though it is still evolving). I haven't added a pass that converts it to some Racket internal representation (probably will be structs). If you get it installed and put #lang org at the top of an org file you

Re: Empty headline titles unsupported: Bug?

2021-05-29 Thread Tom Gillespie
Hi Ihor, Yes, happy to put my test cases into the org element cases and visa versa. My long term plan is to come up with a set of test cases that are unambiguous and potentially ambiguous so that we can determine the expected behavior in those cases, so this is a great first step. Best, Tom

Re: Empty headline titles unsupported: Bug?

2021-05-27 Thread Tom Gillespie
Hi all, Here is the 4th (or so) iteration of the grammar for titles that I think deals with most of the issues in this thread along with a bunch of nasty test cases. The previous attempts can be inspected in the git history, but long story short, it is extremely hard to find a grammar that

Re: colored src blocks question

2021-06-01 Thread Tom Gillespie
Hi John, Are you perhaps missing the :extend t directive in the font spec? Best, Tom >

Re: [PATCH] Allow tangling to a list of files

2021-07-07 Thread Tom Gillespie
Reading over this with the new information about the use case, it seems that using noweb to manage the many-to-many nature of a mapping between blocks and files is a much better way to achieve the desired result. In addition it is already supported and does not add more complexity to an already

Re: [POLL] Setting `org-adapt-indentation' to nil by default?

2021-05-02 Thread Tom Gillespie
Hi Bastien, Strong +1 here. Users can get the same visual effect without materializing the whitespace into the file. Materializing the whitespace causes many potential issues with source blocks for languages that have significant whitespace, issues with #+begin_src and #+end_src having

Re: <> and ?font-lock? fly-check, ...

2021-05-02 Thread Tom Gillespie
Hi Greg, A slightly different suggestion that doesn't break other org processors (which might not allow users to change org-babel-noweb-wrap- values) is to prefix the names of the blocks with & (e.g. <<>>) as I do in multiple places in

Re: [PATCH] Fontification for inline src blocks

2021-05-02 Thread Tom Gillespie
Hi Timothy, It seems to work more or less as expected. A few comments below. Best, Tom 1. I think there needs to be a function to toggle org-inline-src-prettify-results as there is e.g. for hyperlinks. I was quite confused by the prettified results. 2. I'm also not sure that this approach to

  1   2   >