Re: Problem with let/cl-letf binding stuff with org-capture

2023-02-10 Thread Bruno Barbier
Arthur Miller writes: >> Bruno Barbier writes: >> If you really want to just get the piece of text, you might be able to >> use the hook `org-capture-mode-hook' to replace the key binding to >> 'C-c C-c' in the capture buffer, so that it calls your own function that >> will take the string and

[BUG] Smart quotes do not work in export when language is en-gb

2023-02-10 Thread General discussions about Org-mode.
Hello, When exporting a document to LaTeX with smart quotes enabled, I found that this had been ignored (e.g. "hello" vs ``hello'' in the output). I had the document language set to en-gb, which it seems disables smart quotes, as there is no corresponding entry in org-export-smart-quotes

Multiple noweb-ref

2023-02-10 Thread Théo Maxime Tyburn
Hi, I have several code blocks that I label using `:noweb-ref label`. I set them for all blocks under a subtree by setting the org property `header-args+` of the root of the subtree to `:noweb-ref label`. Now with this approach, I can't accumulate `noweb-ref` like I could do for tags. I would

[BUG] Problems with :exports results for shell and plantuml code [9.6-pre (release_9.5.5-995-g4b9aef @ /home/dzu/.emacs.d/straight/build/org-mode/)]

2023-02-10 Thread Detlev Zundel
Hi orgmode-list! I currently have a problem while exporting org-babel blocks to html or latex output. Even though I explicitely specify ':exports result' for the blocks, the exported document contains both the (syntax colored) code block and the code. I noticed this in a plantuml block that I

Re: Problem with let/cl-letf binding stuff with org-capture

2023-02-10 Thread Arthur Miller
Bruno Barbier writes: > Arthur Miller writes: > >> However I see that the binding for the org-capture-finalizer, in capture >> buffer, >> is still the default 'org-capture--default-finalize' and not my lambda. >> >> I am really not an expert on emacs lisp; and I do understand that this is >>

Re: [POLL] Proposed syntax for timestamps with time zone info (was: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda)

2023-02-10 Thread Max Nikulin
On 10/02/2023 10:29, Jean Louis wrote: 2030-02-09 12:00 -08 @UTC -- this time CANNOT be said to be "fixed UTC" I do not see any reason why obviously invalid timestamp draws so much attention. Resolution may be rather concise: behavior is *undefined* since field values are mutually

Re: [RFC] If you use Org 9.6, please share the output of M-x org-element-cache-hash-show-statistics

2023-02-10 Thread Alan Tyree
3 days, 2 hours, 25 minutes, 36 seconds 2.35% of cache searches hashed, 78.11% non-hashable. Org mode version 9.6.1 ( @ /home/alant/.emacs.d/elpa/org-9.6.1/) On Fri, 10 Feb 2023 at 22:18, Fraga, Eric wrote: > 10.48% of cache searches hashed, 5.66% non-hashable. > 2 days, 17 hours, 12

Re: [PATCH] Async evaluation in ob-shell

2023-02-10 Thread Matt
On Thu, 09 Feb 2023 06:23:42 -0500 Ihor Radchenko wrote --- > Could you please elaborate? What was the problem with > `buffer-substring'? I am asking because one of the previous versions of > `org-babel-comint-wait-for-output' relied upon 'face text property. See > a35d16368. The

Re: [RFC] If you use Org 9.6, please share the output of M-x org-element-cache-hash-show-statistics

2023-02-10 Thread Kévin Le Gouguec
Kévin Le Gouguec writes: > Here are the stats for today: And today's session: > org-element-cache-hash-show-statistics: >> 19.32% of cache searches hashed, 11.88% non-hashable. 23.65% of cache searches hashed, 17.88% non-hashable. > emacs-uptime: >> 10 hours, 50 minutes, 12 seconds 13

Re: Problem with let/cl-letf binding stuff with org-capture

2023-02-10 Thread Bruno Barbier
Arthur Miller writes: > However I see that the binding for the org-capture-finalizer, in capture > buffer, > is still the default 'org-capture--default-finalize' and not my lambda. > > I am really not an expert on emacs lisp; and I do understand that this is > somewhat "creative" use of

Re: [RFC] If you use Org 9.6, please share the output of M-x org-element-cache-hash-show-statistics

2023-02-10 Thread Gregor Zattler
Hi Ihor, * Ihor Radchenko [2023-02-09; 11:51 GMT]: > If you are ok with sharing the statistics, and you are running Emacs > session for at least few hours (using Org mode, obviously), please reply > sharing the output of > M-x org-element-cache-hash-show-statistics 4.77% of cache searches

[PATCH] Introduce "export features"

2023-02-10 Thread Timothy
Hello everyone, I’m thrilled to finally be presenting a feature that I’ve been incubating for a while now that I call “export features”. This work is based on the observation that often we include content in export templates that is only relevant in particular situations. This leaves one having

Re: Problem with let/cl-letf binding stuff with org-capture

2023-02-10 Thread Arthur Miller
Ruijie Yu writes: > Hi Arthur, > > Please excuse my brevity and semi-random line of thought, as I’m replying on > mobile right now. See below. > >> On Feb 10, 2023, at 23:11, Arthur Miller wrote: >> >>  >> Based on a Reddit thread: >> >>

Re: [BUG] Problems with ':exports result' for shell and plantuml blocks [9.6-pre (release_9.5.5-995-g4b9aef @ /home/dzu/.emacs.d/straight/build/org-mode/)]

2023-02-10 Thread Detlev Zundel
Hi list, found the problem. Misspelled ':export results' as ':exports result'. Of course it does not throw an error, but simply does not work. Fixing this, fixes all of my problems... *shame on me* Thanks Detlev

Re: Problem with let/cl-letf binding stuff with org-capture

2023-02-10 Thread General discussions about Org-mode.
Hi Arthur, Please excuse my brevity and semi-random line of thought, as I’m replying on mobile right now. See below. > On Feb 10, 2023, at 23:11, Arthur Miller wrote: > >  > Based on a Reddit thread: > >

Problem with let/cl-letf binding stuff with org-capture

2023-02-10 Thread Arthur Miller
Based on a Reddit thread: https://www.reddit.com/r/emacs/comments/10xhvd8/a_little_readstring_utility_using_an_org_mode/j7xziao/?context=3 I did a small experiment to see if I can re-use org-capture, to just capture a string from a buffer, without actually writing to any file. My plan was to

[BUG] Problems with ':exports result' for shell and plantuml blocks [9.6-pre (release_9.5.5-995-g4b9aef @ /home/dzu/.emacs.d/straight/build/org-mode/)]

2023-02-10 Thread Detlev Zundel
Hi list, I am having problems with exporting code blocks to pdf or html documents. I noticed the problem with a PlantUML block that I use for inline diagrams. As I only want the diagram in the output, I use ':exports result' in the header of the block. My main target is PDF output and the PDF

Re: [RFC] If you use Org 9.6, please share the output of M-x org-element-cache-hash-show-statistics

2023-02-10 Thread Detlev Zundel
oops, C-c C-c in message mode sends the message, *smirk* Ihor Radchenko writes: M-x org-element-cache-hash-show-statistics M-x emacs-uptime #+begin_src elisp (org-element-cache-hash-show-statistics) #+end_src #+RESULTS: : 6.60% of cache searches hashed, 34.35% non-hashable. #+begin_src

Re: [RFC] If you use Org 9.6, please share the output of M-x org-element-cache-hash-show-statistics

2023-02-10 Thread Detlev Zundel
Ihor Radchenko writes: > M-x org-element-cache-hash-show-statistics > M-x emacs-uptime #+begin_src elisp org-element-cache-hash-show-statistics #+end_src -- Restrict Digital Restrictions Management: If you can't copy it - don't buy it

Re: [FR] Allow emojis in tags (was: emojis in tags?)

2023-02-10 Thread Robert Nikander
> On Feb 10, 2023, at 6:23 AM, Ihor Radchenko wrote: > > Robert Nikander writes: > >> […] > > It is not hard to do, but I am not sure about consequences of such a > change in Org syntax. > > I see no obvious downsides though. I noticed that other potentially useful symbols do not work.

Re: [PATCH] Support building Org from shallow clone [9.6.1 (release_9.6.1-137-gecb62e @ /home/n/.emacs.d/elpaca/builds/org/)]

2023-02-10 Thread Ihor Radchenko
Max Nikulin writes: > another option is to use --always > > git describe --match release\* --abbrev=6 --always HEAD > 52f29d This is indeed more reliable. Applied, onto main. With your version instead of git log. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=6d37d2a8e > and

Re: [PATCH] ol.el: Recommend `browse-url' to `:follow' links

2023-02-10 Thread Max Nikulin
On 10/02/2023 18:13, Ihor Radchenko wrote: Max Nikulin writes: I think, it might be helpful to mention the `browse-url' package in the docs for the :follow property of `org-link-parameters'. Writing code to launch an external application may be tricky, so it is better to delegate the task to

Re: [PATCH] remove unused code in ob-octave.el

2023-02-10 Thread Ihor Radchenko
Leo Butler writes: > What is the point of ob-octave-prep-session:octave or its brother, > ob-octave-prep-session:matlab? > > These two functions are unused in the existing code. They are used. ob-core.el library prescribed certain function names to be defined in order to declare new babel

Re: [org-promote-subtree + undo] adds one star

2023-02-10 Thread Ihor Radchenko
Ihor Radchenko writes: > alain.coch...@unistra.fr writes: > >> I fear that, even if the emacs people fix the problem, it still won't >> work with, say, emacs 27 or 28. >> >> Oh, well... > > If they fix this, we will at least have a clue what is causing it. The bug has been fixed for Emacs 29.

[FR] Allow emojis in tags (was: emojis in tags?)

2023-02-10 Thread Ihor Radchenko
Robert Nikander writes: > Does anyone else think it might be nice to allow emojis in tags? I used to > use OmniFocus before I got into org-mode. I had some tags that were certain > symbols that had meaning to me. It is not hard to do, but I am not sure about consequences of such a change in

Re: [RFC] If you use Org 9.6, please share the output of M-x org-element-cache-hash-show-statistics

2023-02-10 Thread Fraga, Eric
10.48% of cache searches hashed, 5.66% non-hashable. 2 days, 17 hours, 12 minutes, 29 seconds -- : Eric S Fraga, with org release_9.6-201-gb58fba in Emacs 30.0.50

Re: [PATCH] ol.el: Recommend `browse-url' to `:follow' links

2023-02-10 Thread Ihor Radchenko
Max Nikulin writes: > I think, it might be helpful to mention the `browse-url' package in the > docs for the :follow property of `org-link-parameters'. Writing code to > launch an external application may be tricky, so it is better to > delegate the task to existing utilities. Maybe better

Re: [BUG] list.orgmode.org managed to parse a message in future: 2023-10-29 [9.6.1 (release_9.6.1-223-gc8d20d @ /home/yantar92/.emacs.d/straight/build/org/)]

2023-02-10 Thread Greg Minshall
Jean Louis, > In my opinion central computer that manages mailing lists should > recogniz if time of users is far in future and handle it > appropriately. > Maybe re-writing time with explanation in e-mail header would be more > appropriate. maybe something like that. though, this seems more

Re: new org mode, changed folding behavior could be improved / more consistent

2023-02-10 Thread Ihor Radchenko
[ Adding Org ML back to CC ] Laurenz Wiskott writes: >> What about only enabling this feature when you pass "0" prefix argument: >> C-u 0 S- ? > > I would like to avoid the extra key strokes, and I don't know why that should > be needed. > What could this first star-line be used for except to

Re: [BUG] CUSTOM_id ignored on blocks by ox-beamer

2023-02-10 Thread Ihor Radchenko
Alan Schmitt writes: > Here is an updated patch. Thanks! Applied, onto main. I changed quoting style of some terms in ORG-NEWS and moved the new item to the top as we usually do for new items (last comes first). https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=666a61bcc -- Ihor

Re: [POLL] Proposed syntax for timestamps with time zone info (was: [FEATURE REQUEST] Timezone support in org-mode datestamps and org-agenda)

2023-02-10 Thread Ihor Radchenko
Jean Louis writes: > If you start adding in Org "fixed" time with UTC offset, that is a new > type of timestamp, as it is not common in world. It is how ISO8601 defines offsets. > Here is suggestion: > --- > > 1. Convert local time timestamp to UTC > 2. Add 10024 hours > 3.

Should we extend org-catch-invisible-edits to more interactive commands? (was: Catching invisible edits: problem understanding doc)

2023-02-10 Thread Ihor Radchenko
alain.coch...@unistra.fr writes: >M-x undo > > I visually see no change, but I can observe by unfolding the headline > that 'bar' has disappeared. In my understanding of the documentation > above and of the docstring for org-fold-catch-invisible-edits, this > should only happen with 'nil'. >

Re: Either zero or two newlines with org-agenda-block-separator, cannot seem to get one?

2023-02-10 Thread Detlef Steuer
Am Thu, 09 Feb 2023 11:53:16 -0500 schrieb TRS-80 : > Hello List, > > I had sent original email to the list some time ago, never received a > reply. > > Hopefully I have set the correct headers for proper threading; if not > the OP can be found at (either of) these URLs: > >