Re: idea for capture anywhere in x

2022-10-12 Thread Max Nikulin
On 11/10/2022 05:06, Jean Louis wrote: Jean, make a pause and think ones more. It does not mean extra click and implies nothing different from you recipe. Instead of thinking, I am doing it. I consider it as a problem. It is better to think at first. Did you try to invoke Emacs without

Re: test-org-table/sort-lines: Failing test on macOS

2022-10-12 Thread Max Nikulin
On 11/10/2022 05:25, Rudolf Adamkovič wrote: (string-collate-lessp "a" "b" "C" t) ; t .. (string-collate-lessp "a" "b" "C" nil) ; t .. So basic sanity tests passed. (string-collate-lessp "a" "B" "C" nil) ; => nil (string-collate-lessp "a" "B" "POSIX" nil) ; nil is expected behavior as

Re: Export of this table fails LuaLaTeX compilation

2022-10-12 Thread Max Nikulin
On 12/10/2022 16:17, gerard.vermeu...@posteo.net wrote: On 12.10.2022 07:55, Max Nikulin wrote: On 12/10/2022 12:15, gerard.vermeulen wrote: On 12.10.2022 06:45, Max Nikulin wrote: LuaLaTeX is irrelevant. It seems \hline is allowed only immediately after \\. Minimal LaTeX example:

Re: idea for capture anywhere in x

2022-10-12 Thread Jean Louis
* Ihor Radchenko [2022-10-12 14:37]: > I was mostly answering about X website to eww website part. org-protocol > is a way to run arbitrary Elisp when Emacs is called with an arbitrary > data (not necessarily file). Sounds sensational, while it is not. According to (info "(org) Protocols") it

Re: [FR] [Revived] Human readable / customizable link anchors during export

2022-10-12 Thread Kévin Le Gouguec
Ihor Radchenko writes: > Kévin Le Gouguec writes: > >>> 3. Instead of trying to find a silver bullet for human-readable anchor >>>generator, we allow users to customize it. The default will be >>>constant "org" yielding "org-Ajjq"-type anchors, just like we have >>>now. But we can

Org 9.5 broke the rendering of my SVG images

2022-10-12 Thread Alexandre Duret-Lutz
Hi, In Org 9.5, SVG images started being exported by the HTML exporter as rather than . The patch causing that was https://list.orgmode.org/87k0pemj6d@gmail.com/T/ with two arguments: 1) do not have an alt attribute 2) will not render some SVG file correctly if it has no viewBox (I'm

Re: watch YT videos through in Emacs [Was: Interest in an Org video meetup?]

2022-10-12 Thread Robert Weiner
> More info on my blog in Spanish (if anyone is interested, I can translate it) Yes, please translate it to English. -- rsw On Wed, Oct 12, 2022 at 6:24 AM Juan Manuel Macías wrote: > Ihor Radchenko writes: > > > Quiliro Ordóñez writes: > > > >> Hola Juan Manuel. > >> > >>> There is the

Re: Get the "closest" property value

2022-10-12 Thread George Mauer
Thanks a lot Ihor, while that doesn't seem to "cascade" upwards, it was enough of a clue to get me there. What i'm looking for is (org-entry-get (point) "workspace-directory" 't) with the third "inherit" parameter set Thanks again! That's going to open up a few new workflows for me. On Wed, Oct

Re: bug: wrong-type-argument when trying export to pdf.

2022-10-12 Thread Justin Silverman
Sorry that was my bad, the backtrace was from my own config not the simple-config.el that I provided. Here is the backtrace from the simple-config.el that shows that the problem persists even without polymode. (still, thanks for pointing out that I had polymode activated, that was a mistake

Re: bug: wrong-type-argument when trying export to pdf.

2022-10-12 Thread Justin Silverman
Well, rm -rf .emacs.d/straight/ followed by repulling and rebuilding seemed to fix things. I am surprised that I still saw the same problem with emacs -Q but my simple-config.el did use straight. Perhaps straight in simple-config.el just ended up using the same build files that were

Re: [BUG] org-babel-script-escape mishandled empty python list

2022-10-12 Thread Ihor Radchenko
Jonas Bernoulli writes: > `org-babel-script-escape' doesn't handle an empty python list > correctly; ['a'] => ("a") but [] => []. > > #+name: addheader > #+header: :var rows="" > #+begin_src python > return [] > #+end_src > > #+header: :post addheader(*this*) > #+begin_src emacs-lisp :results

Re: idea for capture anywhere in x

2022-10-12 Thread Ihor Radchenko
Ypo writes: > Thanks, Ihor. > > But I was referring to 2 possible workflows (not sure if org-protocol > would be the answer). I was mostly answering about X website to eww website part. org-protocol is a way to run arbitrary Elisp when Emacs is called with an arbitrary data (not necessarily

Re: watch YT videos through in Emacs [Was: Interest in an Org video meetup?]

2022-10-12 Thread Ihor Radchenko
Max Nikulin writes: > On 12/10/2022 16:26, Ihor Radchenko wrote: >> >> if echo "$URL" | grep "ted.com/talks"; then >> mpv $URL && exit; >> fi >> >> # if echo "$URL" | grep "reddit.com"; then >> # URL="$(echo "$URL" | sed -rE 's/www\.reddit\.com/libredd.it/')" >> # fi >> >> if echo

Re: [PATCH] Org Habit fix + new feature

2022-10-12 Thread Morgan Smith
Ihor Radchenko writes: > > I am not against such feature. However, using clocking will break an > assumption that a single log record corresponds to a single habit > completion. This assumption is implied across org-habit code. > Oh that's a good point. I'll have to go back through the code

[BUG] org-babel-script-escape mishandled empty python list

2022-10-12 Thread Jonas Bernoulli
`org-babel-script-escape' doesn't handle an empty python list correctly; ['a'] => ("a") but [] => []. #+name: addheader #+header: :var rows="" #+begin_src python return [] #+end_src #+header: :post addheader(*this*) #+begin_src emacs-lisp :results table nil #+end_src #+RESULTS: : [] An

Re: idea for capture anywhere in x

2022-10-12 Thread Ypo
Thanks, Ihor. But I was referring to 2 possible workflows (not sure if org-protocol would be the answer). The first workflow would consist in emphasizing the web page permanently: 1. Open in ~eww~ the web page. 2. Emphasize with org-mode: highlight the text of the web page. 3. In the

Re: prevent underscores to be translates in subscript when exporting to latex

2022-10-12 Thread Luca Ferrari
On Sat, Oct 8, 2022 at 4:43 PM Mark Barton wrote: > The last part forces the export to recognize just the LaTeX form of > specifying subscripts. > Great! Thanks, this is what I was looking for. Luca

Re: Do not show a TODO item in the global TODO list until certain date?

2022-10-12 Thread Ihor Radchenko
Angel de Vicente writes: > I copied your code from > https://github.com/yantar92/emacs-config/blob/master/config.org#properties > into my .emacs and eval-ed it. > ... > But the "test" still shows in the TODO list. Am I missing something > basic here? Not really. I just use a different system

BUG: (org-up-element) does not work from inlinetask

2022-10-12 Thread Michael Dauer
(org-up-element) does not jump up when cursor is on inlinetask. From within the inlinetask it jumps to the inlinetask heading, but from there not higher in the hierarchy. Org mode version 9.5.5 (9.5.5-geeae6e

Re: idea for capture anywhere in x

2022-10-12 Thread Juan Manuel Macías
Ypo writes: > The first workflow would consist in emphasizing the web page > permanently: I think what you are looking for is something similar to what certain extensions for firefox or chrome do, like highlighter. It's useful, but I'd say only for static pages. > 1. Open in ~eww~ the web page.

Re: idea for capture anywhere in x

2022-10-12 Thread Jean Louis
I understand that by changing habits one can do many things. Just as user may use Emacs Window Manager, and everything is solved. > I do not mind, but nobody has created a more generic solution that Org can > use as a base to implement its features. That is why I wrote Capturing information is

Re: [HELP] Fwd: Org format as a new standard source format for GNU manuals

2022-10-12 Thread Richard Stallman
[[[ To any NSA and FBI agents reading my email: please consider]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > I would just like to point out that anyone familiar with writing a >

Re: idea for capture anywhere in x

2022-10-12 Thread Ihor Radchenko
Jean Louis writes: > Emacs has in any case the capability to accept information in various > ways and then run we could say really arbitrary Emacs lisp, as the > command line options allow it. How data is sent from external programs > may be decided, coded, prepared by such programs. > > The

Re: [BUG] org-beamer :BEAMER_ACT: ignored on columns

2022-10-12 Thread Ihor Radchenko
"Fraga, Eric" writes: > On Wednesday, 12 Oct 2022 at 14:00, Ihor Radchenko wrote: >> Your patch adds for columns > > All I did was copy the code that was there for options and adapted for > actions. I really do not understand what the rest of the code does and > really do not have the time (due

Re: [PATCH] Org Habit fix + new feature

2022-10-12 Thread Ihor Radchenko
Morgan Smith writes: > ... The current logic simply looks at the previous '(+ > org-habit-preceding-days org-habit-following-days)' log records which by > default would be 28. First of all, why are we looking into the future > at all? I don't think the habits graph currently supports looking

Re: Export of this table fails LuaLaTeX compilation

2022-10-12 Thread gerard . vermeulen
On 12.10.2022 18:21, Max Nikulin wrote: [...] Stewart Thomas. [BUG] Tables with square brackets do not compile in PDF (latex) export. Wed, 10 Nov 2021 11:16:10 -0500. https://list.orgmode.org/cao12v+wb18nan0fudpaen94ghdt_2nbdjtc4u7n4w3hazba...@mail.gmail.com I can not figure out an easy way

Re: BUG: (org-up-element) does not work from inlinetask

2022-10-12 Thread Ihor Radchenko
Michael Dauer writes: > (org-up-element) does not jump up when cursor is on inlinetask. > From within the inlinetask it jumps to the inlinetask heading, but from > there not higher in the hierarchy. Thanks for reporting! Fixed on main.

Re: Export of this table fails LuaLaTeX compilation

2022-10-12 Thread Ihor Radchenko
Max Nikulin writes: > On 12/10/2022 14:26, Ihor Radchenko wrote: >> Max Nikulin writes: >>> >>> I can not figure out an easy way to separate \\ from [b] text but to >>> prevent the problem you have discovered. I am unsure if >>> >>> \\[0pt] >>> >>> has no negative consequences and safe

Re: [PATCH] (v2) Fix void variable error `cider-buffer-ns` when specifying :backend header argument

2022-10-12 Thread Ihor Radchenko
"Christopher M. Miles" writes: > From 1ecdcc596c8447fcf96ff400f544c0adc680c8fc Mon Sep 17 00:00:00 2001 > From: stardiviner > Date: Wed, 12 Oct 2022 17:27:58 +0800 > Subject: [PATCH] lisp/ob-clojure.el: Fix :backend override not work with > `org-babel-clojure-backend' Thanks! Applied onto

Re: Export of this table fails LuaLaTeX compilation

2022-10-12 Thread Max Nikulin
On 13/10/2022 09:44, Ihor Radchenko wrote: Max Nikulin writes: I am considering \noalign{} instead of \relax. I was never aware of its effect, but accordingly to The TeXbook it should keep TeX in vertical mode without any action due to empty argument. (Actually I surprised that \relax causes

Re: Export of this table fails LuaLaTeX compilation

2022-10-12 Thread gerard . vermeulen
On 12.10.2022 07:55, Max Nikulin wrote: On 12/10/2022 12:15, gerard.vermeulen wrote: On 12.10.2022 06:45, Max Nikulin wrote: LuaLaTeX is irrelevant. It seems \hline is allowed only immediately after \\. Minimal LaTeX example: \begin{tabular}{l} b\\\relax \hline \end{tabular} Your

Re: watch YT videos through in Emacs [Was: Interest in an Org video meetup?]

2022-10-12 Thread Ihor Radchenko
Quiliro Ordóñez writes: > Hola Juan Manuel. > >> There is the YouTube option, which I imagine no one would like (me >> neither). The only thing in its favor is that Invidious can be used to >> watch the videos. BTW, I watch YT videos through Invidious in Emacs, >> with the Ytel package and

Re: [PATCH] (v2) Fix void variable error `cider-buffer-ns` when specifying :backend header argument

2022-10-12 Thread Christopher M. Miles
Ihor Radchenko writes: > "Christopher M. Miles" writes: > >> After updated to latest commit, I found error, >> >> Reproduce: >> >> When I specified the `:backend` header argument: >> >> #+begin_src clojure :backend babashka >> (+ 2 4) >> #+end_src >> >> I got error: >> >> #+begin_example >>

Re: Get the "closest" property value

2022-10-12 Thread Ihor Radchenko
George Mauer writes: > If I have a document what looks like the following. What code could I run > for the ??? to get the property value for "workspace-directory" that is > closest in the outline to the location running the code? > > * Top Level > :PROPERTIES: > :workspace-directory: /tmp >

Re: idea for capture anywhere in x

2022-10-12 Thread Ihor Radchenko
Ypo writes: > What if: > 1. It were easy and immediate to open in ~eww~ any web page that we are > reading in "x". Check out org-protocol.el commentary. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at

Re: Some question on How to handle date, recursive events

2022-10-12 Thread Ihor Radchenko
Renato Pontefice writes: > Hi, > I’m building my own calendar. I try to check: > 1 - retry a thing until it is not done > 2 - recursive events (each week, every first Friday of month…) > > > i.e. > 1) > ** TODO call Paul < 2022 10 05 10:30 +1d> > In this example I’ve created an Agenda view that

Re: watch YT videos through in Emacs [Was: Interest in an Org video meetup?]

2022-10-12 Thread Juan Manuel Macías
Ihor Radchenko writes: > Quiliro Ordóñez writes: > >> Hola Juan Manuel. >> >>> There is the YouTube option, which I imagine no one would like (me >>> neither). The only thing in its favor is that Invidious can be used to >>> watch the videos. BTW, I watch YT videos through Invidious in Emacs,

Re: watch YT videos through in Emacs [Was: Interest in an Org video meetup?]

2022-10-12 Thread Max Nikulin
On 12/10/2022 16:26, Ihor Radchenko wrote: if echo "$URL" | grep "ted.com/talks"; then mpv $URL && exit; fi # if echo "$URL" | grep "reddit.com"; then # URL="$(echo "$URL" | sed -rE 's/www\.reddit\.com/libredd.it/')" # fi if echo "$URL" | grep "bilibili.com"; then mpv $URL &&

Re: [BUG] org-beamer :BEAMER_ACT: ignored on columns

2022-10-12 Thread Ihor Radchenko
"Fraga, Eric" writes: > On Saturday, 8 Oct 2022 at 14:10, Ihor Radchenko wrote: >> This patch certainly adds code duplication and might also miss some >> scenarios considered in the environments from >> org-beamer-environments-default. > > I'm not sure what code duplication you are referring to

Re: [PATCH] Fix void variable error `cider-buffer-ns` when specifying :backend header argument

2022-10-12 Thread Ihor Radchenko
"Christopher M. Miles" writes: > After updated to latest commit, I found error, > > Reproduce: > > When I specified the `:backend` header argument: > > #+begin_src clojure :backend babashka > (+ 2 4) > #+end_src > > I got error: > > #+begin_example > void variable: cider-buffer-ns >

Re: [PATCH] Org Habit fix + new feature

2022-10-12 Thread Colin Baxter
> Morgan Smith writes: > Hello, > Colin Baxter writes: >> Please do not alter the default behaviour. When writing a paper >> or a book I use and need both logging and state changes, and I >> would prefer not to have to spend time changing my setup. > Don't worry,

Re: problem with the on-line manual

2022-10-12 Thread Ihor Radchenko
Giuseppe Lipari writes: > I would like to point out that the following link in the org-mode on-line > manual is broken : > > https://orgmode.org/manual/Images-in-LaTeX-export.html > > can someone please fix/restore it ? Fixed. At least for now. We are currently adjusting server rewrite rules.

Re: Export of this table fails LuaLaTeX compilation

2022-10-12 Thread Ihor Radchenko
Max Nikulin writes: > Gerard, we forgot to post the reason why \relax has been added after \\. > The intention was to prevent errors in the case of > > | a | > | [b] | > > or > > - item \\ >[2022-10-12] > > Stewart Thomas. [BUG] Tables with square brackets do not compile in PDF >

Re: [FR] [Revived] Human readable / customizable link anchors during export

2022-10-12 Thread Ihor Radchenko
Kévin Le Gouguec writes: >> 3. Instead of trying to find a silver bullet for human-readable anchor >>generator, we allow users to customize it. The default will be >>constant "org" yielding "org-Ajjq"-type anchors, just like we have >>now. But we can also provide other generators,

Re: [PATCH] Re: [BUG] org-agenda-remove-restriction-lock does not remove file lock [9.5.2 (release_9.5.2-17-gea6b74 @ /nix/store/iqqk7iqfwmfc6r78xg2knyq7hww2mhs4-emacs-git-20220225.0/share/emacs/29.0.

2022-10-12 Thread Liu Hui
Hi Ihor, Ihor Radchenko writes: > Could you please add docstrings and possibly code comments for > `org-agenda-restrict', `org-agenda-restrict-begin', > `org-agenda-restrict-end', `org-agenda-last-dispatch-buffer', and > possibly other elated variables? I have added docstrings for related

Re: [PATCH] Org Habit fix + new feature

2022-10-12 Thread Ihor Radchenko
Morgan Smith writes: > The second patch allows a habit to be considered done if time was logged > to it. Imagine you have an org habit like shaving. Chances are, if you > spend time doing it, it's done. I like to set LOGGING to nil for these > kinds of habits since it's redundant to have all

Re: [PATCH] LSP support in org-src buffers

2022-10-12 Thread Ihor Radchenko
Karthik Chikmagalur writes: >> You already implemented a way to associate the org-edit-src buffer with >> the fully tangled code. Then, why not make it simple and do the real >> tangling first and then make org-edit-src work directly with a real >> file buffer associated with the tangled file? >

Re: Export of this table fails LuaLaTeX compilation

2022-10-12 Thread Max Nikulin
On 12/10/2022 14:26, Ihor Radchenko wrote: Max Nikulin writes: I can not figure out an easy way to separate \\ from [b] text but to prevent the problem you have discovered. I am unsure if \\[0pt] has no negative consequences and safe enough. I expect that LaTeX sources are not easy to

Re: [PATCH] Re: [BUG] org-agenda-remove-restriction-lock does not remove file lock [9.5.2 (release_9.5.2-17-gea6b74 @ /nix/store/iqqk7iqfwmfc6r78xg2knyq7hww2mhs4-emacs-git-20220225.0/share/emacs/29.0.

2022-10-12 Thread Ihor Radchenko
Liu Hui writes: > I have added docstrings for related variables except > `org-agenda-last-dispatch-buffer', which is actually not used by any > other org-mode code. Please see the patch below. > > From 907499f16769e5a5353170c13f09595584530139 Mon Sep 17 00:00:00 2001 > From: Liu Hui > Date:

Re: [BUG] org-beamer :BEAMER_ACT: ignored on columns

2022-10-12 Thread Fraga, Eric
Hi Ihor, On Wednesday, 12 Oct 2022 at 14:00, Ihor Radchenko wrote: > Your patch adds for columns All I did was copy the code that was there for options and adapted for actions. I really do not understand what the rest of the code does and really do not have the time (due to teaching