[bug?] anybody experience priorites inserted in links?

2023-03-13 Thread Samuel Wales
i am currently on an old version of everything, so please do not take
this too seriously, but it has been around forever.

* [[https://google.com][google]] [or whatever]

if i run org-priority-up, on occasion the priority cookie gets wrongly
inserted into the link description.

just want to know if this is unique to my config or if there are ideas
on it that could help narrow it down more quickly.



Re: best org-able copy all tabs extension for firefox?

2023-03-13 Thread Samuel Wales
as i am not adept at vetting strange code, i would prefer recommended
or otherwise vetted extensions --- or even better, floss cli tools

On 3/13/23, Samuel Wales  wrote:
> what is a recommended/supported copy all urls extension that will
> support org link syntax at least imperfectly?
>
> context:
>
> ime, firefox, and specifically its list of tabs, is
> a perpetual set of roadblocks for me, what with, in my case:
>
> 1) unreliability of session restore,
> 2) lack of command line interfaces to firefox
>- can't just get a list of titles/urls from a running or
>  non-running firefox
>- can't get a modern org link syntax or even any
> 3) much too many tabs, no ability to organize due to
>cognitive issues, org might help a bit, or itself get complex
> 4) not-quite-there but interesting extensions
>1) tabfs being innovative and promising but seemingly proof
>   of concept-ish and for me too much effort to get going,
>2) spookfox being org and promising but seemingly alpha-ish
>   and also possibly too much effort for me to get going,
>3) onetab not unloading tabs so you can't just load them all
>   - seemingly once you go onetab you can't go back to
> your ginormous list of tabs, so it is a
> one-direction trip
>4) can't find a good copy all urls in the org context
> 5) strange things you have to do to work around the
>problem of unreliability of session restore whether
>running or not running
> 6) fear that a webmail might not like me if i restore
> 7) basic needs like duplicate removal
> 8) bookmarks not really a solution for me,
> 9) impedance matching all over the place,
> 10) new stuff to have to learn just to be defensive
>
> ime, ymmv, disclaimers, politeness.
>
> --
> The Kafka Pandemic
>
> A blog about science, health, human rights, and misopathy:
> https://thekafkapandemic.blogspot.com
>


-- 
The Kafka Pandemic

A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com



best org-able copy all tabs extension for firefox?

2023-03-13 Thread Samuel Wales
what is a recommended/supported copy all urls extension that will
support org link syntax at least imperfectly?

context:

ime, firefox, and specifically its list of tabs, is
a perpetual set of roadblocks for me, what with, in my case:

1) unreliability of session restore,
2) lack of command line interfaces to firefox
   - can't just get a list of titles/urls from a running or
 non-running firefox
   - can't get a modern org link syntax or even any
3) much too many tabs, no ability to organize due to
   cognitive issues, org might help a bit, or itself get complex
4) not-quite-there but interesting extensions
   1) tabfs being innovative and promising but seemingly proof
  of concept-ish and for me too much effort to get going,
   2) spookfox being org and promising but seemingly alpha-ish
  and also possibly too much effort for me to get going,
   3) onetab not unloading tabs so you can't just load them all
  - seemingly once you go onetab you can't go back to
your ginormous list of tabs, so it is a
one-direction trip
   4) can't find a good copy all urls in the org context
5) strange things you have to do to work around the
   problem of unreliability of session restore whether
   running or not running
6) fear that a webmail might not like me if i restore
7) basic needs like duplicate removal
8) bookmarks not really a solution for me,
9) impedance matching all over the place,
10) new stuff to have to learn just to be defensive

ime, ymmv, disclaimers, politeness.

-- 
The Kafka Pandemic

A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com



[PATCH]: Small type in ox-latex.el

2023-03-13 Thread Pedro Andres Aranda Gutierrez
Attached is a silly small patch, not even a TINYCHANGE ;-) Its a typo
I found skimming through the latex exported...



-- 
Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um gestellt zu werden
Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should
run a leader-deposed hook here, but we can't yet


micro-org.diff
Description: Binary data


Re: [BUG] No space after footnote with org-export-with-footnotes set to nil [9.6.1 ( @ /Users/test/.emacs.d/elpa/28.0/develop/org-9.6.1/)]

2023-03-13 Thread Max Nikulin

On 11/03/2023 17:38, Ihor Radchenko wrote:


Newlines are tricky. They may or may not be significant.
For example, in CJK paragraphs, newlines are to be stripped.

I think that a reasonable thing to do could be not adding newlines if
the previous object is a plain string ending with a newline.


It is in agreement with my expectation that the fix should not be 
LaTeX-specific. That is why I raised the issue in this thread.



This is latex-specific.
See the attached tentative fix.



Reported-by: Max Nikulin 
Link: https://orgmode.org/list/tufdb6$11h2$1...@ciao.gmane.io


and Max Nikulin to emacs-orgmode. Re: Comments break up a paragraph when 
writing one-setence-per-line. Sun, 3 Oct 2021 18:34:10 +0700. 
https://list.orgmode.org/sjc4fk$76r$1...@ciao.gmane.io



+  (replace-regexp-in-string
+   (rx (1+ (0+ space) "\n")) "\n"
+   contents))


What I do not like with this regexp is that it matches every newline 
character, not only blank lines:


(replace-regexp-in-string
 (rx (1+ (0+ space) "\n")) "[n]"
 "a   \nb")
"a[n]b"

If you still believe that a fix should be for LaTeX only then I would 
consider extra "\n": (rx "\n" (1+ (0+ space) "\n"))


I have realized that the following is a kind of pitfall in Org syntax:

#+macro: comment
Another
{{{comment(Paragraph separator! Do you expect it?)}}}
paragraph.




Re: [patch] ob-clojure: Fix results output

2023-03-13 Thread Daniel Kraus
Hi!

Ihor Radchenko  writes:

> You need to document the changes in ORG-NEWS.

I added an entry about the new ClojureScript change.
I guess the other (main) part of the patch is a bugfix and will not
be documented in ORG-NEWS.

> Also, see inline comments below.
>
>> Subject: [PATCH] ob-clojure.el: Fix results output, support clojure-cli
>
> Does it have to be a single commit? Not a big deal, but two separate
> commits would be cleaner.

I saw that as well but unfortunately I did it all in the same go
and then touch the same code parts, so separating them in individual
working commits, while not a huge task, is still some work with not
much benefit.

>> -;; Support for evaluating Clojure code
>> +;; Support for evaluating Clojure / ClojureScript code.
>
> This is an important new feature that should be announced clearly in ORG-NEWS.

ClojureScript source blocks where supported before, but just no way to set
the backend for it separately. See the ORG-NEWS in the new attached patch.

> Also, make sure that
> https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.html
> is up-to-date.

Good reminder. I send a PR for this when this patch is installed?!


>>  (defcustom org-babel-clojure-backend (cond
>>((executable-find "bb") 'babashka)
>> -  ((executable-find "nbb") 'nbb)
>> +  ((executable-find "clojure") 
>> 'clojure-cli)
>>((featurep 'cider) 'cider)
>>((featurep 'inf-clojure) 'inf-clojure)
>>((featurep 'slime) 'slime)
>> @@ -87,11 +88,24 @@ defcustom org-babel-clojure-backend
>>:group 'org-babel
>>:package-version '(Org . "9.6")
>
> Org 9.7. This is a new feature to come in the next release.

Fixed.

>> +(defcustom org-babel-clojurescript-backend
>> +  (cond
>> +   ((or (executable-find "nbb") (executable-find "npx")) 'nbb)
>> +   ((featurep 'cider) 'cider)
>> +   (t nil))
>> +  "Backend used to evaluate Clojure code blocks."
>> +  :group 'org-babel
>> +  :package-version '(Org . "9.6")
>
> 9.7
> New customization to be announced in ORG-NEWS.

Fixed.

>> -(defcustom ob-clojure-nbb-command (executable-find "nbb")
>> +(defcustom ob-clojure-nbb-command (or (executable-find "nbb")
>> +  (when-let (npx (executable-find 
>> "npx"))
>> +(concat npx " nbb")))
>>"Path to the nbb executable."
>>:type '(choice file (const nil))
>> +  :group 'org-babel)
>
> It is no longer a path, despite what is claimed in the docstring.
> :type definition is also not accurate.
> Also, update :package-version.

Fixed.

>> +(defcustom ob-clojure-cli-command (when-let (cmd (executable-find 
>> "clojure"))
>> +(concat cmd " -M"))
>> +  "Clojure CLI command used to execute source blocks."
>> +  :type 'file
>>:group 'org-babel
>>:package-version '(Org . "9.6"))
>
> 9.7

Fixed.

>>  (defun org-babel-expand-body:clojure (body params)
>>"Expand BODY according to PARAMS, return the expanded body."
>>(let* ((vars (org-babel--get-vars params))
>> + (cljs-p (string= (cdr (assq :target params)) "cljs"))
>
> Note: I do not see :target header arg being documented in
> https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.html

This was apparently a kludge that ob-clojure used to evaluate ClojureScript
in the normal clojure:execute function.
I simply used the same kludge where I need to check for cljs, but after
reviewing it's not really necessary and I removed the :target parameter
completely. As this was undocumented I guess it's ok to remove?!

>> -(defun ob-clojure-eval-with-babashka (bb expanded)
>> -  "Evaluate EXPANDED code block using BB (babashka or nbb)."
>> -  (let ((script-file (org-babel-temp-file "clojure-bb-script-" ".clj")))
>
> This will remove a non-private function. May you leave a fallback
> obsolete alias to not break third-party code that calls the old function
> name?

I created an obsolete-function-alias.


Attached is the new patch with the changes.

Thanks,
  Daniel
>From 3ad98fa88f6ebd4ae1b2b41d66cca9e9d6e1875e Mon Sep 17 00:00:00 2001
From: Daniel Kraus 
Date: Thu, 9 Mar 2023 16:11:27 +0100
Subject: [PATCH] ob-clojure.el: Fix results output, support clojure-cli

* lisp/ob-clojure.el (org-babel-clojure-backend): Add support for
clojure-cli.
* lisp/ob-clojure.el (org-babel-clojurescript-backend): Move nbb to
clojurescript.
* lisp/ob-clojure.el (org-babel-expand-body:clojure)
* lisp/ob-clojure.el (ob-clojure-eval-with-cider): Return only the
last expression when :results is not set or value, and return only
stdout when :results is set to output.
* lisp/ob-clojure.el (ob-clojure-eval-with-cmd): Rename function as
it is not only for babashka.
* lisp/ob-clojure.el (org-babel-execute:clojure): Differentiate
between Clojure an

Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2023-03-13 Thread Ihor Radchenko
Ihor Radchenko  writes:

> The previews still interfere with hl-line overlay - their background is
> not replaced with hl-line background. Maybe we can also put low
> 'priority in the preview overlays? To make them closer to ordinary text
> in buffer.

See the attached where I compared default preview overlay with me adding
'priority -100 property.


-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 


Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2023-03-13 Thread Ihor Radchenko
Timothy  writes:

> • Preview overlays can hide and show themselves dynamically based on cursor 
> position.

How? I do not see anything and I cannot find any relevant customization
in org-latex-preview.el

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2023-03-13 Thread Ihor Radchenko
Timothy  writes:

> • Previews are coloured to match surrounding text and the active theme.
> • SVG previews automatically change colors when the active theme changes.

The previews still interfere with hl-line overlay - their background is
not replaced with hl-line background. Maybe we can also put low
'priority in the preview overlays? To make them closer to ordinary text
in buffer.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2023-03-13 Thread Ihor Radchenko
Timothy  writes:

> • Org mode can keep equation numbering consistent by regenerating previews as 
> needed.

This is disabled by default, right?
But I am still seeing the numbering (see the attached) the Org text
below. Also, One of the preview is truncated.



Org source:
---

For isotropic materials:

\begin{equation}
\begin{bmatrix}
\epsilon_{11} \\ \epsilon_{22} \\ \epsilon_{33} \\ 2\epsilon_{23} \\ 
2\epsilon_{13} \\ 2\epsilon_{12}
\end{bmatrix} = 
\frac{1}{E} 
\begin{bmatrix}
1 & -\nu & -\nu & 0 & 0 & 0 \\
-\nu & 1 & -\nu & 0 & 0 & 0 \\
-\nu & -\nu & 1 & 0 & 0 & 0 \\
0 & 0 & 0 & 2+2\nu & 0 & 0 \\
0 & 0 & 0 & 0 & 2+2\nu & 0 \\
0 & 0 & 0 & 0 & 0 & 2+2\nu
\end{bmatrix}  
\begin{bmatrix}
\sigma_{11} \\ \sigma_{22} \\ \sigma_{33} \\ \sigma_{23} \\ \sigma_{13} \\ 
\sigma_{12}
\end{bmatrix}  
\end{equation}

\begin{equation}
\begin{bmatrix}
\sigma_{11} \\ \sigma_{22} \\ \sigma_{33} \\ \sigma_{23} \\ \sigma_{13} \\ 
\sigma_{12}
\end{bmatrix} = 
\frac{E}{\left(1+\nu\right)\left(1-2\nu\right)} 
\begin{bmatrix}
1-\nu & \nu & \nu & 0 & 0 & 0 \\
\nu & 1-\nu & \nu & 0 & 0 & 0 \\
\nu & \nu & 1-\nu & 0 & 0 & 0 \\
0 & 0 & 0 & \frac{1-2\nu}{2} & 0 & 0 \\
0 & 0 & 0 & 0 & \frac{1-2\nu}{2} & 0 \\
0 & 0 & 0 & 0 & 0 & \frac{1-2\nu}{2}
\end{bmatrix}  
\begin{bmatrix}
\epsilon_{11} \\ \epsilon_{22} \\ \epsilon_{33} \\ 2\epsilon_{23} \\ 
2\epsilon_{13} \\ 2\epsilon_{12}
\end{bmatrix}  
\end{equation}

\begin{equation}
\begin{bmatrix}
\sigma_{11} \\ \sigma_{22} \\ \sigma_{33} \\ \sigma_{23} \\ \sigma_{13} \\ 
\sigma_{12}
\end{bmatrix} = 
\begin{bmatrix}
2\mu+\lambda & \lambda & \lambda & 0 & 0 & 0 \\
\lambda & 2\mu+\lambda & \lambda & 0 & 0 & 0 \\
\lambda & \lambda & 2\mu+\lambda & 0 & 0 & 0 \\
0 & 0 & 0 & \mu & 0 & 0 \\
0 & 0 & 0 & 0 & \mu & 0 \\
0 & 0 & 0 & 0 & 0 & \mu
\end{bmatrix}  
\begin{bmatrix}
\epsilon_{11} \\ \epsilon_{22} \\ \epsilon_{33} \\ 2\epsilon_{23} \\ 
2\epsilon_{13} \\ 2\epsilon_{12}
\end{bmatrix}  
\end{equation}


\begin{equation}
E=2\mu(1+\nu)
\end{equation}
\begin{equation}
G=2\mu
\end{equation}


-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 


Re: Use timestamp instead of time-stamp uniformly in Org (was: How to update a timestamp?)

2023-03-13 Thread Ihor Radchenko
alain.coch...@unistra.fr writes:

> Ihor Radchenko writes on Mon 13 Mar 2023 11:29:
>
>  > Would you be interested to create a patch?
>
> I wish I could, but it is beyond my ability: I am not an (e)lisp
> programmer.

It is not too hard. Just a question of sprinkling defalias and
defvaralias near the functions with "time-stamp" in name.
lisp/org.el has plenty of examples.

Then, doc/org-manual.org is just an Org file where you can add extra
#+findex: entries with "timestamp" function name references.

We have the details about creating patches in
https://orgmode.org/worg/org-contribute.html#first-patch

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: Haskell code blocks

2023-03-13 Thread Ihor Radchenko
Bruno Barbier  writes:

> Sorry, I'm still working on adding a 'test-ob-haskell.el', when I have
> some spare time, but I'm unable so far to find tests that I can't
> reliably break.

May I know if you are still working on this?
Do you need any help?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: Use timestamp instead of time-stamp uniformly in Org (was: How to update a timestamp?)

2023-03-13 Thread Alain . Cochard
Ihor Radchenko writes on Mon 13 Mar 2023 11:29:

 > Would you be interested to create a patch?

I wish I could, but it is beyond my ability: I am not an (e)lisp
programmer.

-- 
EOST (École et Observatoire des Sciences de la Terre) 
ITE (Institut Terre & Environnement) | alain.coch...@unistra.fr
5 rue René Descartes   [bureau 110]  | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France | [ slot available for rent ]




Re: Org Table Header bug?

2023-03-13 Thread Ihor Radchenko
Ypo  writes:

> When enabled org-table-header-line-mode, the LaTeX symbols in the header 
> are not fontified.

It would help if you provided a reproducer.

Note that getting this right is a bit tricky. In particular, when table
columns are shrunk.

The function doing the work is `org-table-row-get-visible-string'.
I am wondering if there is a better way to retrieve visible string than
what is done in the function.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Use timestamp instead of time-stamp uniformly in Org (was: How to update a timestamp?)

2023-03-13 Thread Ihor Radchenko
alain.coch...@unistra.fr writes:

> Also, when searching through the manual for time-stamp, I was a victim
> of the time-stamp/timestamp curse :-)

Manual overwhelmingly uses timestamp, except several "time-spamped",
which appear to be just right.

Not so much for function and variable names. Some (few) use time-stamp
with dash.

Would you be interested to create a patch?
We can simply provide "timestamp" aliases to "time-stamp" functions and
variables and then mention the aliases in the manual.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: How to update a timestamp?

2023-03-13 Thread Alain . Cochard
Dieter Faulbaum writes on Mon 13 Mar 2023 00:24:
 > 
 > If you are prompted for the date, you can give a point ('.') and 
 > the current date is shown.
 > I think this is "short enough".

Indeed, short enough.  Thank you.

I guess I should have found it by myself, but skim reading through
8.2.1 gave me the feeling that it was only devoted to specific
formats.

Also, when searching through the manual for time-stamp, I was a victim
of the time-stamp/timestamp curse :-)


-- 
EOST (École et Observatoire des Sciences de la Terre) 
ITE (Institut Terre & Environnement) | alain.coch...@unistra.fr
5 rue René Descartes   [bureau 110]  | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France | [ slot available for rent ]