Re: [feature] Allow "," decimal point in table cells

2022-07-19 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko writes: > Uwe Brauer writes: >>> Uwe Brauer writes: >> >>> Org tables use Emacs' calc under the hood by default. >>> AFAIK, calc is unable to use "," as decimal point because it is reserved >>> as a vector separator. Which is why you got the vector addition in your

Re: change the default items for enumerated lists

2022-07-19 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko writes: > Uwe Brauer writes: >> When I want to add a plain list, I usually use >> >> + C-c - >> + M- >> >> Now, I would like to have the 1) item as default not -, moreover, when I >> use org-metaright to make a sublist I would like to start this list with >> a).

Re: org-set-properties for various (all) headings

2022-07-19 Thread Uwe Brauer
>>> "KM" == Kaushal Modi writes: > On Tue, Jul 19, 2022 at 12:58 PM Uwe Brauer wrote: >> >> > On Tue, Jul 19, 2022, 10:54 AM Uwe Brauer wrote: >> >> > Try replacing the `org-set-property` form to: >> >> > (org-set-property "New" "[]") >> >> This does not anything (besides garbage

Re: no syntax highlighting for code blocks with org-publish

2022-07-19 Thread M. Pger
Actually, using -nw implies that no theme is loaded, so the face colors 'extracted' by htmlize are the flashy default colors of Emacs in terminal. To have the colors associated with the theme I use, I had to load the theme through build.el and to change my bash script to: #!/bin/sh emacs -q

Re: numbering src blocks in HTML export

2022-07-19 Thread Ihor Radchenko
"Fraga, Eric" writes: > Followup question, if I may: how can I make -n be default behaviour for > export? I have tried, for instance, > > #+property: header-args:julia -n 1 > > to have all Julia src blocks show line numbers but it doesn't work. AFAIU, source block switches are never inherited.

Re: An org backend to Haddock

2022-07-19 Thread Ihor Radchenko
Yuchen Pei writes: > I do wonder what is the best way to handle cross-package links. > Currently I'm using CUSTOM_ID in the format of > package-name-x.y.z.Module.Name.IdentifierName, as well as > Module.Name.IdentifierName. But this is a "one big org file" approach, > and can make navigation

[feature] Allow "," decimal point in table cells (was: org-table with different conventions: decimals)

2022-07-19 Thread Ihor Radchenko
Uwe Brauer writes: >> Uwe Brauer writes: > >> Org tables use Emacs' calc under the hood by default. >> AFAIK, calc is unable to use "," as decimal point because it is reserved >> as a vector separator. Which is why you got the vector addition in your >> example. > > Thanks. I was afraid that

Re: change the default items for enumerated lists

2022-07-19 Thread Ihor Radchenko
Uwe Brauer writes: > When I want to add a plain list, I usually use > >+ C-c - >+ M- > > Now, I would like to have the 1) item as default not -, moreover, when I > use org-metaright to make a sublist I would like to start this list with > a). > > Howe can this be achieved? 1) "-" is

Re: Bug: Appointments duration and effort sums in agenda column view [9.3.7 (release_9.3.7-700-ga1e5be @ ~/.emacs.d/straight/build/org/)]

2022-07-19 Thread Mamoru Miura
Dear Ihor, Thank you for responding. The issue is failing to collect (and sum) appointments' duration as effort even when `org-agenda-columns-add-appointments-to-effort-sum' is t. My environment: * Emacs 28.1 * Org 9.5.4 Here's the setting (~/.emacs.d/init.el): (setq org-directory "~/org/")

Re: no syntax highlighting for code blocks with org-publish

2022-07-19 Thread M. Pger
I solved the issue by creating the following bash script in my project folder: #!/bin/sh TERM=xterm export TERM emacs -q -nw --load=build.el --eval="(eval-buffer)" --eval="(save-buffers-kill-terminal)" This avoid using --script (and thus batch) and thus allows font-lock to be enabled when my

Re: no syntax highlighting for code blocks with org-publish

2022-07-19 Thread Tim Cross
"M. Pger" writes: > I tried to publish using `M-x org-publish RET RET` as you > suggested, and > syntax highlighting was actually implemented, thanks. > > Actually the problem is coming from the fact that I use `emacs -Q --script > build.el` (as a > bash script) to publish the project.

Re: @string abbreviation in bib file not honored in (basic) org-cite

2022-07-19 Thread Bruce D'Arcus
On Tue, Jul 19, 2022 at 4:37 PM Joost Kremers wrote: > > > On Sun, Jul 17 2022, Ihor Radchenko wrote: > > alain.coch...@unistra.fr writes: > > > >> My .bib file is > >> > >>@string{jgr="J. Geophys. Res."} > >>@ARTICLE{chouet88, > >>journal=jgr, > >>author={Chouet, B.},

Re: @string abbreviation in bib file not honored in (basic) org-cite

2022-07-19 Thread Joost Kremers
On Sun, Jul 17 2022, Ihor Radchenko wrote: > alain.coch...@unistra.fr writes: > >> My .bib file is >> >>@string{jgr="J. Geophys. Res."} >>@ARTICLE{chouet88, >>journal=jgr, >>author={Chouet, B.}, title={Resonance of a fluid-driven crack: [...]}, >>year={1988}, volume={93},

How to add/delete statistics cookie automatically ?

2022-07-19 Thread Cletip Cletip
Hello everyone, My question is in the title, but for more detail on its exact use : I'd like to add [/] or [%] to a parent heading in case I either add a TODO subheading or a checkbox. I don't want to type it in the parent heading, but add it automatically. Also, if all subheadings/checkboxes are

Re: [PATCH] lisp/org.el: Fix `org-fill-paragraph' in lists when `mark-active'

2022-07-19 Thread Sébastien Miquel
Hi, Renato Ferreira writes: > Go to start of list, `org-mark-element`, then `org-fill-paragraph`. The first item does not get filled. This should be fixed on main. If not, please say so. I'm removing this from updates.orgmode.org: Canceled. -- Sébastien Miquel

Re: bug#52771: 29.0.50; org-fill-paragraph does not work for several plain lists

2022-07-19 Thread Sébastien Miquel
Kyle Meyer writes: > Rudolf Adamkovič writes: > >> Reproduction steps: >> >> 1. start "emacs -Q" >> 2. type "C-x C-f" and "test.org" and RET >> 3. type the following: >> >> - one >> two >> >> - three >> four >> >> 4. mark all with "C-x h" >> 5. type "M-q" to fill >> >> Actual: >> >> -

Re: [PATCH] ox-latex.el: Unify in one single list Babel and Polyglossia languages alists

2022-07-19 Thread Juan Manuel Macías
Max Nikulin writes: > On 19/07/2022 22:01, Juan Manuel Macías wrote: >> + (replace-match >> + (mapconcat (lambda (option) (if (equal "AUTO" option) language >> option)) >> + (cond ((member language options) (delete "AUTO" options)) >> + ((member "AUTO" options) options) >> +

Re: org-set-properties for various (all) headings

2022-07-19 Thread Kaushal Modi
On Tue, Jul 19, 2022 at 12:58 PM Uwe Brauer wrote: > > > On Tue, Jul 19, 2022, 10:54 AM Uwe Brauer wrote: > > > Try replacing the `org-set-property` form to: > > > (org-set-property "New" "[]") > > This does not anything (besides garbage collecting) > Did you replace only the

Re: [PATCH] ox-latex.el: Unify in one single list Babel and Polyglossia languages alists

2022-07-19 Thread Max Nikulin
On 19/07/2022 22:01, Juan Manuel Macías wrote: +(replace-match + (mapconcat (lambda (option) (if (equal "AUTO" option) language option)) +(cond ((member language options) (delete "AUTO" options)) +

Re: org-set-properties for various (all) headings

2022-07-19 Thread Uwe Brauer
> On Tue, Jul 19, 2022, 10:54 AM Uwe Brauer wrote: > Try replacing the `org-set-property` form to: > (org-set-property "New" "[]") This does not anything (besides garbage collecting) -- I strongly condemn Putin's war of aggression against the Ukraine. I support to deliver weapons to

Re: org-set-properties for various (all) headings

2022-07-19 Thread Kaushal Modi
On Tue, Jul 19, 2022, 10:54 AM Uwe Brauer wrote: > > > #+begin_src elisp :noexport > (defun my-set-property-at-heading () > "Function to be called at the beginning of an Org heading." > (interactive) > (let ((el (org-element-at-point))) > (org-set-property "New" (org-element-property

Re: numbering src blocks in HTML export

2022-07-19 Thread Fraga, Eric
Followup question, if I may: how can I make -n be default behaviour for export? I have tried, for instance, #+property: header-args:julia -n 1 to have all Julia src blocks show line numbers but it doesn't work. Thanks again, eric -- : Eric S Fraga, with org release_9.5.4-643-g057df6 in Emacs

Re: numbering src blocks in HTML export

2022-07-19 Thread Fraga, Eric
On Tuesday, 19 Jul 2022 at 15:28, Juan Manuel Macías wrote: > I usually do it this way: > > #+begin_src sh -n :exports code Thank you. Obvious (in hindsight). I now found the section in the info manual on this (under Markup for Rich Contents, which is I guess not where I expected it... but

Re: no syntax highlighting for code blocks with org-publish

2022-07-19 Thread M. Pger
I tried to publish using `M-x org-publish RET RET` as you suggested, and syntax highlighting was actually implemented, thanks. Actually the problem is coming from the fact that I use `emacs -Q --script build.el` (as a bash script) to publish the project. According to

Re: numbering src blocks in HTML export

2022-07-19 Thread Juan Manuel Macías
Fraga, Eric writes: > I really do not understand the last paragraph although it implies that > org already supports adding the line numbers. My elisp-fu is not up to > scratch to figure this out from the code unfortunately. Would somebody > explain what to do? Or should I simply add the CSS

numbering src blocks in HTML export

2022-07-19 Thread Fraga, Eric
Hello, a quick and hopefully easy question: how do I get lines in src blocks numbered in HTML export? I have looked at the code and the first thing I did was set org-html-wrap-src-lines to t. This wraps each line in "...". I know how to use CSS to add line numbers to lines with these tags but,

Re: [PATCH] ox-latex.el: Unify in one single list Babel and Polyglossia languages alists

2022-07-19 Thread Juan Manuel Macías
Here is a new version of the patch, with the fixes added. Important: I have modified in this patch org-latex-guess-babel-language so that it recognizes the new Babel syntax alongside the old syntax. That is, it is now possible to put: #+LaTeX_Header: \usepackage[arguments,AUTO]{babel}

Re: org-set-properties for various (all) headings

2022-07-19 Thread Uwe Brauer
>>> "KM" == Kaushal Modi writes: > Check out org-map-entries. I have one example here: > https://scripter.co/looping-through-org-mode-headings/#example-modifying-a-property-in-all-headings > . Very nice thanks however one question. I started as test with #+begin_src ** TODO Test

Re: org-table with different conventions: decimals

2022-07-19 Thread Uwe Brauer
> Uwe Brauer writes: > Org tables use Emacs' calc under the hood by default. > AFAIK, calc is unable to use "," as decimal point because it is reserved > as a vector separator. Which is why you got the vector addition in your > example. Thanks. I was afraid that the issue was with calc not

Re: An org backend to Haddock

2022-07-19 Thread Yuchen Pei
On Tue 2022-07-19 21:58:26 +0800, Ihor Radchenko wrote: > Yuchen Pei writes: > >> Given this is not the official version of haddock and my changes are in >> haddock-api, I'm calling it haddorg-api, for lack of a better name / >> approach. I'll be happy to contribute my changes upstream if a >>

Re: An org backend to Haddock

2022-07-19 Thread Ihor Radchenko
Yuchen Pei writes: > Given this is not the official version of haddock and my changes are in > haddock-api, I'm calling it haddorg-api, for lack of a better name / > approach. I'll be happy to contribute my changes upstream if a > different license covering my contribution (AGPLv3+) is

Re: [PATCH] Fix bug in org-indent-region when org-adapt-indentation is set to headline-data

2022-07-19 Thread Ihor Radchenko
Bastien Guerry writes: > Feel free to push the fix if it seems right to you. We can revert it > back or improve it if needed. Applied onto main via 9917d6954. Best, Ihor

Re: org-table with different conventions: decimals

2022-07-19 Thread Ihor Radchenko
Uwe Brauer writes: > In my current setting, the following works > > | 3.5 | 4.2 | 7.7 | > #+TBLFM: $3=$1+$2 > > Now if I want to switch to the convention used in Germany (that might be > relevant if I want to export it later to csv, but this is a different > topic) does work in a strange way,

Re: Bug: Appointments duration and effort sums in agenda column view [9.3.7 (release_9.3.7-700-ga1e5be @ ~/.emacs.d/straight/build/org/)]

2022-07-19 Thread Ihor Radchenko
Mamoru Miura writes: > Dear org community, > > I have also faced the problem and have made a patch to fix it. This patch > would > not be the best solution since I'm unfamiliar with Emacs Lisp and the detailed > implementation of org-mode. I'd appreciate that if you would review and merge > the

Re: org-cature-ref

2022-07-19 Thread Ihor Radchenko
Henrik Frisk writes: > A couple of questions more: > > 1. In the examples at the beginning of the project's github you have > examples that have a combination of prperties and bibtex source, with > preperties such as ID and CREATED. These could be helpful but I can't > figure out how to add

Re: Recent folding issues

2022-07-19 Thread Ihor Radchenko
Jack Kamm writes: > If I put the cursor on Headline 1 and call evil-open-below, I don't > immediately see a new line, and the buffer looks as above, but with the > pointer "inside" the elipses. As soon as I start typing, it will unfold > the last subheading of Headline 1, and the buffer looks

Re: [export to CSV]

2022-07-19 Thread Juan Manuel Macías
Uwe Brauer writes: > Regards (take care with the heat if you live in Spain (not sure though)) Yes, I live in the Sierra de Madrid, where we are always a few degrees below Madrid, and these days this is an oven. I guess that you are also in Spain, because of the mail from the UCM. If so, take

Re: org-set-properties for various (all) headings

2022-07-19 Thread Kaushal Modi
Check out org-map-entries. I have one example here: https://scripter.co/looping-through-org-mode-headings/#example-modifying-a-property-in-all-headings . On Tue, Jul 19, 2022, 4:16 AM Uwe Brauer wrote: > > > Now, I would add to all subheadings a new property, say > > :Received: [ ] > > Whose

org-set-properties for various (all) headings

2022-07-19 Thread Uwe Brauer
Hi I have * Over :PROPERTIES: :ID: ef19f286-8769-4fe7-8f95-8167691257a0 :COLUMNS: %5TODO(Status) %5NR(Nr) :END: ** TODO Test :PROPERTIES: :Sent: [X] :END: ** WAIT Test2 :PROPERTIES: :Sent: [X] :END: ** TODO Test3 :PROPERTIES: :Sent: [ ]

change the default items for enumerated lists

2022-07-19 Thread Uwe Brauer
Hi When I want to add a plain list, I usually use + C-c - + M- Now, I would like to have the 1) item as default not -, moreover, when I use org-metaright to make a sublist I would like to start this list with a). Howe can this be achieved? Thanks Uwe Brauer -- I strongly condemn

Re: no syntax highlighting for code blocks with org-publish

2022-07-19 Thread Tim Cross
"M. Pger" writes: > Thanks for your suggestion. I added the following: > > #+begin_src elisp :eval no :exports code > (setq my-var "org mailing list") > (message "Hello, %s" my-var) > #+end_src > > When exported with ~C-c C-e h o~, syntax highlighting is implemented (with > colors). When

Re: discovering export (and other) keywords?

2022-07-19 Thread Alain . Cochard
kevinbanjo writes on Mon 18 Jul 2022 05:10: > this page: > > https://orgmode.org/manual/Macro-Replacement.html#index-macro-replacement_002c-during-export > > says: > > Org also recognizes macro references in keywords, such as ‘CAPTION’, ‘TITLE’, > ‘AUTHOR’, ‘DATE’, *and for some

[export to CSV] (was: org-table with different conventions: decimals)

2022-07-19 Thread Uwe Brauer
>>> "JMM" == Juan Manuel Macías writes: Hi Juan Manuel > Uwe Brauer writes: >> Now if I want to switch to the convention used in Germany (that might be >> relevant if I want to export it later to csv, but this is a different >> topic) does work in a strange way, any comments? [...] > Hi, Uwe,