Re: desktop notifications (Re: idea for capture anywhere in x)

2022-10-29 Thread Ihor Radchenko
Samuel Wales writes: > perhaps some fuction in org-capture-before-finalize-hook could raise > emacs for a tiny period of time or something, in the case that it is > invoked when emacs is not visible. if so, and idk if poss, i would > have to try it to find out if it wfm. > > then i wouldn't hafe

Re: Inserting arbitrary lines before tables with Babel

2022-10-29 Thread Ihor Radchenko
Kierin Bell writes: > When evaluating Babel code blocks with a ':results table' header > argument, what is the best way to automatically insert text _outside_ > of the table? > > For example, if I have a source block: > #+NAME: get-random-table > #+begin_src R :var length=12 :results table >

Re: Exporting images to different output formats

2022-10-29 Thread Ihor Radchenko
Michael Welle writes: > I want to export to different output formats. Trouble is the way ox-gfm > exports images. So I thought, hm, why not utilise macros to abstract away > the differences. Well, that escalated quickly: > > #+macro: img_gfm (eval (concat "#+begin_export md\n![img](" $1 " \"" $2

Re: [PATCH] lisp/ob-tangle.el, lisp/ob-core.el: Add strip-tangle noweb option

2022-10-29 Thread Timothy
Hi Daniel, > Add a “strip-tangle” noweb option to strip the noweb tags when tangling, but > keep and expand them otherwise. I must admit I can’t see the point of this — would you mind providing an example of when this would be useful? All the best, Timothy -- Timothy (‘tecosaur’/‘TEC’), Org

Re: [PATCH] lisp/ob-tangle.el, lisp/ob-core.el: Add strip-tangle noweb option

2022-10-29 Thread Ihor Radchenko
Daniel Ziltener writes: > From: Daniel Ziltener > > * lisp/ob-tangle.el (org-babel-tangle-single-block): strip noweb tags > from block if :noweb has been set to strip-tangle. > * lisp/ob-core.el (org-babel-common-header-args-w-values): add > "strip-tangle" as new allowed value. > *

Re: org table proposal: merge and split cells in org-tables

2022-10-29 Thread Ihor Radchenko
Uwe Brauer writes: > In a conversation with Ihor Radchenko it was considered as being helpful > to provide a table in which cells are merged and split. We should consider this idea seriously as this and related features are being requested frequently in the community. I recall the following

Re: [FR] Display stderr contents after executing shell blocks (even when stdout :results output is requested) (was: Org 9.6-pre and Bash sessions)

2022-10-29 Thread Ihor Radchenko
Max Nikulin writes: > I agree that stderr may be important. I would not mind to have a buffer > that combines both stderr and stdout (maybe fontified). Despite order of > messages in separate streams is not strictly defined, it still may shed > some light on the reason what went wrong. I am

Re: [FR] Display stderr contents after executing shell blocks (even when stdout :results output is requested) (was: Org 9.6-pre and Bash sessions)

2022-10-29 Thread Ihor Radchenko
to...@tuxteam.de writes: >> What you are describing would better fit into a new :results option. > > Oh, I missed the popup part. Sounds useful for yet another profile, > yes. If you need it, feel free to open a separate feature request for extra :results options in ob-shell. Possibly providing

Re: Setting org-todo-keywords through directory-local variables

2022-10-29 Thread Ihor Radchenko
[sending to Org ML in-reply to the relevant thread] Kévin Le Gouguec writes: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57003 28.1.90; Can local variables be loaded before loading major mode? > … reminded me of a patch I submitted to the Org ML… some time ago  > (sorry for not following

Re: Identical attributes id="text-table-of-contents" of div with role="doc-toc" when exporting to html when using tables of contents for multiple subheadings

2022-10-29 Thread Ihor Radchenko
Michel Damiens writes: > when exporting to html this org document : > > #+OPTIONS: toc:1 > * par 1 > #+TOC: headlines 1 local > ** par 1.1 > ** par 1.2 > * par 2 > #+TOC: headlines 1 local > ** par 2.1 > ** par 2.2 > > div's for toc (with

Re: org-x11idle-exists-p with emacs --daemon

2022-10-29 Thread Ihor Radchenko
Max Nikulin writes: > On 28/10/2022 11:28, Ihor Radchenko wrote: >> >> * lisp/org-clock.el (org-x11idle-exists-p): Do not check if load-time >> `window-system' is `x'. Instead, rely on the check in >> `org-user-idle-seconds'. > > I would say that even there it is not strictly correct to test

Re: [PATCH] lisp/ob-tangle.el, lisp/ob-core.el: Add strip-tangle noweb option

2022-10-29 Thread Daniel Ziltener
From: Daniel Ziltener * lisp/ob-tangle.el (org-babel-tangle-single-block): strip noweb tags from block if :noweb has been set to strip-tangle. * lisp/ob-core.el (org-babel-common-header-args-w-values): add "strip-tangle" as new allowed value. * testing/lisp/test-ob-tangle.el

Re: desktop notifications (Re: idea for capture anywhere in x)

2022-10-29 Thread Samuel Wales
i am lost in a sea of partial solutions and hints that myb rain cannot process at this time, despite their straightforwardness. i do like the idea of having confidence that a capture worked thgouh very much. perhaps some fuction in org-capture-before-finalize-hook could raise emacs for a tiny

Re: citar--library-file-action

2022-10-29 Thread Henrik Frisk
Den tis 25 okt. 2022 kl 22:42 skrev Bruce D'Arcus : > For citar support/bugs, you should report on the github issue tracker. > > But my guess: you need to install citar-embark, as a while ago, we > moved the embark-related functionality into a separate package. If > it's been a few months since

Re: Getting X selection reliably (Re: idea for capture anywhere in x)

2022-10-29 Thread Samuel Wales
i am still slightly lost [varying cognitive issues] but wanted to make one correction. i think i have my capture set up so that my typical capture location shows, although it is underneath ff so cannot be seen at the time. so a new frame in many cases is not necessary; the existing emacs frame

Re: Init.el

2022-10-29 Thread Eduardo Ochs
On Sat, 29 Oct 2022 at 16:08, Renato Pontefice wrote: > (...) Hi Renato, I've uploaded a version with some fixes of your init.el to: https://0x0.st/oYcy.txt I just added comment signs at the beginning of some lines, and I used TAB in most lines to make Emacs indent - i.e., position - them

Inserting arbitrary lines before tables with Babel

2022-10-29 Thread Kierin Bell
Hello, When evaluating Babel code blocks with a ':results table' header argument, what is the best way to automatically insert text _outside_ of the table? For example, if I have a source block: #+NAME: get-random-table #+begin_src R :var length=12 :results table runif(length) #+end_src ...

indent-tabs-mode in org (was: ob-clojure eval error when has comment at end of code line)

2022-10-29 Thread Daniel Kraus
Ihor Radchenko writes: > Daniel Kraus writes: > >> - What should I use for indention? Looking in ob-clojure and org.el >> it seems that using tabs with tab-width 8 is standard but there's >> quite a few lines where it's spaces only. > That is a good question. I guess, just Emacs default. >

Re: Init.el

2022-10-29 Thread tomas
On Sat, Oct 29, 2022 at 09:08:08PM +0200, Renato Pontefice wrote: > I’m sorry, but I’m in a big big confusion…I regreat but I’m unable to correct > the prob the is originated to my init.el and the conclusion is that I cannot > use emac. > I ask if you can correct my init.el (that I post) OK,

Init.el

2022-10-29 Thread Renato Pontefice
I’m sorry, but I’m in a big big confusion…I regreat but I’m unable to correct the prob the is originated to my init.el and the conclusion is that I cannot use emac. I ask if you can correct my init.el (that I post) ;; -ss*- mode: elisp -*- ;;--setta il formato della data diversamente --

Re: Position 972

2022-10-29 Thread tomas
On Sat, Oct 29, 2022 at 06:16:30PM +, Juan Manuel Macías wrote: [...] > Renato, adding to what Tomas and Bruno have explained to you very well, > you have another case in the init that you sent me by mail. Notice the > third line here: Oh, I get it that Juan Manuel has received one copy of

Re: Position 972

2022-10-29 Thread tomas
On Sat, Oct 29, 2022 at 06:29:33PM +, Juan Manuel Macías wrote: > Renato Pontefice writes: > > > Symbol's value as variable is void: ‘org > > It's 'org not ‘org. Notice the difference between the quotes[1]. (Did you > modify that part? It was correct before). Perhaps it was Google (through

Re: Position 972

2022-10-29 Thread Juan Manuel Macías
Renato Pontefice writes: > Symbol's value as variable is void: ‘org It's 'org not ‘org. Notice the difference between the quotes[1]. (Did you modify that part? It was correct before). [1] https://www.gnu.org/software/emacs/manual/html_node/elisp/Quoting.html

Re: Position 972

2022-10-29 Thread Juan Manuel Macías
Renato Pontefice writes: > Bruno, > With the common you told me I reach che 972 /M-g c 972) and I found this: > > ;;Org mode configuration > Enable Org mode > (require ‘org) > > Could be this the error? > > Now I’ve erased the two ;; save init.el and restart emacs, but now I obtain: >

Re: Position 972

2022-10-29 Thread Renato Pontefice
Ok, I’ve reinserted the line you send me, but now, the error 972 ia disappeared, but I have this error: __ Warning (initialization): An error occurred while loading ‘/Users/renatopontefice/.emacs.d/init.el’: Symbol's value as variable is void:

Re: Position 972

2022-10-29 Thread tomas
On Sat, Oct 29, 2022 at 06:29:28PM +0200, Renato Pontefice wrote: > Bruno, > With the common you told me I reach che 972 /M-g c 972) and I found this: > > ;;Org mode configuration > Enable Org mode > (require ‘org) > > Could be this the error? > > Now I’ve erased the two ;; save init.el

org table proposal: merge and split cells in org-tables

2022-10-29 Thread Uwe Brauer
Hi This subject is brought up regularly. In a conversation with Ihor Radchenko it was considered as being helpful to provide a table in which cells are merged and split. Here is one ++-+ | Region | Sales

Position 972

2022-10-29 Thread Renato Pontefice
Bruno, With the common you told me I reach che 972 /M-g c 972) and I found this: ;;Org mode configuration Enable Org mode (require ‘org) Could be this the error? Now I’ve erased the two ;; save init.el and restart emacs, but now I obtain:

Identical attributes id="text-table-of-contents" of div with role="doc-toc" when exporting to html when using tables of contents for multiple subheadings

2022-10-29 Thread Michel Damiens
Hello, when exporting to html this org document : #+OPTIONS: toc:1 * par 1 #+TOC: headlines 1 local ** par 1.1 ** par 1.2 * par 2 #+TOC: headlines 1 local ** par 2.1 ** par 2.2 div's for toc (with role="org-toc") in subheadings par 1 and par 2 get

[CLOSED] Re: [PATCH] Fix ob-clojure handling source block variable's value is a org-mode table or list

2022-10-29 Thread Christopher M. Miles
Daniel Kraus writes: > Hi > > Ihor Radchenko writes: >> "Christopher M. Miles" writes: >>> Any review comments about this patch? >> I have sent the following comment shortly after your followup: > > I even made another post after that, suggesting that the if condition > is not even needed.

Re: Still prob the I cannot solve....

2022-10-29 Thread Bruno Barbier
Hi Renato, You'll have more chance to get help if you reply to the list, using the same thread. Renato Pontefice writes: > When I start emacs, now I receive this messages: > > Warning (initialization): An error occurred while loading >

bug#35453: 26.1; Poor performance of vertical-motion in large org buffer

2022-10-29 Thread Stefan Kangas
For posterity, this was closed by feature/noverlay being merged: https://lists.gnu.org/archive/html/emacs-devel/2022-10/msg02166.html

Re: incorrect indentation of new item inserted with capture template

2022-10-29 Thread Ihor Radchenko
Ian Garmaise writes: > I figured out the problem. Seems like date trees expect only list items > between date headlines. > I had been adding headlines between dates, and this seems to confuse the > insertion mechanism. I now stick to list items and it works perfectly. > Might be a good idea to

Re: Cannot find therefore at 972 character...

2022-10-29 Thread Juan Manuel Macías
Renato Pontefice writes: > I tried ib more way, but I’m unable to see where the error is. > > Can you help me? Please > > Renato > > Otherwise I haver to put away all that I’ve done and restart from0 Renato, can you please put the content of your /Users/renatopontefice/.emacs.d/init.el file

Re: [off-topic] E-readers and Org-Mode

2022-10-29 Thread Max Nikulin
On 28/10/2022 00:53, Juan Manuel Macías wrote: Everything said in this threed is very interesting, but now I am hesitating between buying one of these devices or simply a 10-inch tablet with a good screen, and then applying all possible blue light filters to it. Another option is a hardware

Re: org-x11idle-exists-p with emacs --daemon

2022-10-29 Thread Max Nikulin
On 28/10/2022 11:28, Ihor Radchenko wrote: * lisp/org-clock.el (org-x11idle-exists-p): Do not check if load-time `window-system' is `x'. Instead, rely on the check in `org-user-idle-seconds'. I would say that even there it is not strictly correct to test `window-system', perhaps

Re: incorrect indentation of new item inserted with capture template

2022-10-29 Thread Ian Garmaise
Hi Ihor, I figured out the problem. Seems like date trees expect only list items between date headlines. I had been adding headlines between dates, and this seems to confuse the insertion mechanism. I now stick to list items and it works perfectly. Might be a good idea to add something about

Cannot find therefore at 972 character...

2022-10-29 Thread Renato Pontefice
I tried ib more way, but I’m unable to see where the error is. Can you help me? Please Renato Otherwise I haver to put away all that I’ve done and restart from0

Exporting images to different output formats

2022-10-29 Thread Michael Welle
Hello, I want to export to different output formats. Trouble is the way ox-gfm exports images. So I thought, hm, why not utilise macros to abstract away the differences. Well, that escalated quickly: #+macro: img_gfm (eval (concat "#+begin_export md\n![img](" $1 " \"" $2 "\")\n*Abb.: " $2 "*

Re: [FR] Display stderr contents after executing shell blocks (even when stdout :results output is requested) (was: Org 9.6-pre and Bash sessions)

2022-10-29 Thread Max Nikulin
On 29/10/2022 11:05, Ihor Radchenko wrote: As explained in the above quote, it may be reasonable to display stderr in the shell (and possibly other) src blocks upon execution. + Stderr may contain important information even if the code block succeeds - Displaying stderr will raise *Error*

Re: [PATCH] Fix ob-clojure handling source block variable's value is a org-mode table or list

2022-10-29 Thread Daniel Kraus
Hi Ihor Radchenko writes: > "Christopher M. Miles" writes: >> Any review comments about this patch? > I have sent the following comment shortly after your followup: I even made another post after that, suggesting that the if condition is not even needed. Simply always quoting seems to work and

bug#35453: 26.1; Poor performance of vertical-motion in large org buffer

2022-10-29 Thread Eli Zaretskii
> From: Ihor Radchenko > Cc: Eli Zaretskii , 35...@debbugs.gnu.org > Date: Sat, 29 Oct 2022 09:02:31 + > > Ihor Radchenko writes: > > >> There are no intervals in this story. The way overlays are > >> implemented, they don't use intervals (if by that you mean the > >> facilities in

Re: [PATCH] org-manual: Suggest to wait for one month and followup when reporting bugs

2022-10-29 Thread Ihor Radchenko
Bastien Guerry writes: > Ihor Radchenko writes: > >> I think we can expose our mailing list policy a bit more in the manual. > > Yes, I think this is a good idea. Applied onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=5a358b3a3575776430a7702a901f92f71cd11b9e --

[CLOSED] Re: [BUG] Org mode treat tags as links

2022-10-29 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> I defined a custom link type "video:". >> >> And when I added tag "video" in tags like bellowing: >> >> #+begin_src org >> * headline 1 :tag1:video:hello >> #+end_src > > Note that this particular example actually contains a link.

Re: [FR] Display stderr contents after executing shell blocks (even when stdout :results output is requested) (was: Org 9.6-pre and Bash sessions)

2022-10-29 Thread tomas
On Sat, Oct 29, 2022 at 09:09:04AM +, Ihor Radchenko wrote: > to...@tuxteam.de writes: > > > As I hinted at, I also wanted to have the exit code documented [...] > Note that what we are discussing here is different from your > description. A popup window accumulating stderr is displayed upon

Re: [FR] Display stderr contents after executing shell blocks (even when stdout :results output is requested) (was: Org 9.6-pre and Bash sessions)

2022-10-29 Thread Ihor Radchenko
to...@tuxteam.de writes: > As I hinted at, I also wanted to have the exit code documented. So > my setup was a bit more involved than this. Plus, I didn't want all > that code scaffolding to show up in the typeset results (my audience > had enough to digest as it was), so I hid all that in the

Re: [off-topic] E-readers and Org-Mode

2022-10-29 Thread Juan Manuel Macías
Juan Manuel Macías writes: > [...] Anyway, I think it would be possible to write some python > script[1] to extract the annotations and then parse the resulting xml > from there to get a nice and beautiful Org document. Which also leads > me to wonder if anyone has tried that. I've found that

bug#35453: 26.1; Poor performance of vertical-motion in large org buffer

2022-10-29 Thread Ihor Radchenko
Ihor Radchenko writes: >> There are no intervals in this story. The way overlays are >> implemented, they don't use intervals (if by that you mean the >> facilities in intervals.c). Someone was working on making overlays >> more efficient by changing the low-level implementation details, but

Re: [FR] Display stderr contents after executing shell blocks (even when stdout :results output is requested) (was: Org 9.6-pre and Bash sessions)

2022-10-29 Thread tomas
On Fri, Oct 28, 2022 at 11:43:39PM -0700, Samuel Wales wrote: > long ago i made the contents of my shell blocks look like this: > > { > code > } 2>&1 > : As I hinted at, I also wanted to have the exit code documented. So my setup was a bit more involved than this. Plus, I didn't want all that

Re: Org mode, Org Mode, Org-mode or Org-Mode?

2022-10-29 Thread Marcin Borkowski
On 2022-10-28, at 23:50, Ihor Radchenko wrote: > Marcin Borkowski writes: > >> What is the "official" version? I found at least two spelling on >> orgmode.org... > > If we look into doc/Documentation_Standards.org: > > - Prefer "Org mode" to "Org-mode" or "org-mode". This is simply >

Re: [PATCH] Fix ob-clojure handling source block variable's value is a org-mode table or list

2022-10-29 Thread Bastien
Daniel Kraus writes: > I think I'll go with the big `cond` above to auto-detect what's > installed. That's probably the best out-of-the-box experience. Indeed, thank you! -- Bastien

Re: ob-clojure session support

2022-10-29 Thread Bastien Guerry
Hi Ihor and Daniel, Ihor Radchenko writes: > If Bastien removed session support, and you do not see any justification, > it was most likely an oversight. >From memory, I removed session support in ob-clojure.el because it was too buggy. > We generally avoid feature regressions: >

Re: [WORG] Document in more detail about what maintainers do?

2022-10-29 Thread Bastien Guerry
Hi Ihor, Ihor Radchenko writes: > One month has passed, and I decided to apply the patch as is. > https://git.sr.ht/~bzg/worg/commit/6fbe51dee6bf276584c24fa1e7ec673526c9326e Thanks! -- Bastien

desktop notifications (Re: idea for capture anywhere in x)

2022-10-29 Thread Max Nikulin
On 29/10/2022 11:59, Ihor Radchenko wrote: Functions in org-capture-before-finalize-hook have access to the contents of the capture buffer text. So, one can call `start-process' to run notify-send shell command and put the actual captured text into the notification (displayed briefly or for

Re: Getting X selection reliably (Re: idea for capture anywhere in x)

2022-10-29 Thread Max Nikulin
On 29/10/2022 13:03, Samuel Wales wrote: fluxbox is the only wm or de that seems to do everything i need. Then you should have no problem to call `org-capture' using emacsclient as a menu entry action. Does it work for you? From my point of view "capture anywhere in x" task should be roughly

Re: couldn't org-table-create-with-table\.el respect hline

2022-10-29 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko writes: > Uwe Brauer writes: >>> Do you need a specific table.el feature that you miss in native Org tables? >> >> Merging and splitting cells! > Can you please send a separate message detailing the feature request and > how you envision this functionality to work?

Re: couldn't org-table-create-with-table\.el respect hline

2022-10-29 Thread Ihor Radchenko
Uwe Brauer writes: >> Do you need a specific table.el feature that you miss in native Org tables? > > Merging and splitting cells! Can you please send a separate message detailing the feature request and how you envision this functionality to work? (I know that many people desire this feature,

Re: [FR] Display stderr contents after executing shell blocks (even when stdout :results output is requested) (was: Org 9.6-pre and Bash sessions)

2022-10-29 Thread Samuel Wales
long ago i made the contents of my shell blocks look like this: { code } 2>&1 : On 10/28/22, to...@tuxteam.de wrote: > On Sat, Oct 29, 2022 at 04:05:19AM +, Ihor Radchenko wrote: >> Rudolf Adamkovič writes: >> >> > Ihor Radchenko writes: >> > >> >> I do not think that it make sense to

Re: couldn't org-table-create-with-table\.el respect hline

2022-10-29 Thread Uwe Brauer
> Uwe Brauer writes: org--> table conversion is not reversible. hlines are not part of > table.el syntax and cannot be retained. > I recommend using native Org tables. > Do you need a specific table.el feature that you miss in native Org tables? Merging and splitting cells! --

Re: when exporting to odt or html, latex equations are not exported when in soure block: BUG?

2022-10-29 Thread Uwe Brauer
> Uwe Brauer writes: > Just use :results raw. Org understands latex environments natively. > See 12.5.1 LaTeX fragments section of the manual. thanks -- Warning: Content may be disturbing to some audiences I strongly condemn Putin's war of aggression against the Ukraine. I support to deliver

Re: Please add support for dlangs packagemanager to ob-C.el

2022-10-29 Thread Ihor Radchenko
tbanelwebmin writes: > Your TINYCHANGE fits into the 15 lines limit. I will review it. > > As Bastien said, we follow as much as we can a predefined format for commit > messages: > https://orgmode.org/worg/org-contribute.html#commit-messages > > You may also look at past commit messages, for

Re: [WORG] Document in more detail about what maintainers do?

2022-10-29 Thread Ihor Radchenko
Ihor Radchenko writes: > Bastien writes: > >> Ihor Radchenko writes: >> >>> I think the part about CC is missing in >>> https://orgmode.org/worg/org-maintenance.html#orga0c76fb >> >> Indeed - can you add it? > >>> Also, I find it important to take note about worg documentation for >>> built-in

Re: [FR] Display stderr contents after executing shell blocks (even when stdout :results output is requested) (was: Org 9.6-pre and Bash sessions)

2022-10-29 Thread tomas
On Sat, Oct 29, 2022 at 04:05:19AM +, Ihor Radchenko wrote: > Rudolf Adamkovič writes: > > > Ihor Radchenko writes: > > > >> I do not think that it make sense to display that buffer when the code > >> finishes successfully. I can see this kind of behaviour > >> breaking/spamming automated

Re: [PATCH] ob-maxima.el: Fix execution on MS Windows

2022-10-29 Thread Ihor Radchenko
Nikolay Kudryavtsev writes: > Anyway, I've tried to get it to work using shell-quote-argument, see the > attached patch. Seems to work well enough in practice on both platforms > and for cases like (setq temporary-file-directory "/tmp/`echo hi`/"). > From

Re: Getting X selection reliably (Re: idea for capture anywhere in x)

2022-10-29 Thread Samuel Wales
if what we are talking about is checking the text or metadata as org capture or emacs understands it against what we are capturing in a maximized application, by means of a popup and a human [myself], then: i'd say an emacs frame popping up over the application [whether the application is emacs