Re: Bug: table odt export ignores relative column width hints [9.4.6 (9.4.6-13-g4be129-elpa @ /home/hp/.emacs.d/elpa/org-20210920/)]

2022-10-20 Thread Ihor Radchenko
hpgislero...@bluewin.ch writes: > Let the content of a file 'test.org' be the following: > > > | | | > |--+---| > | 2 | 10| > > > Observed behavior: > test.odt with identical column widths - note, that vs. seems to work > > > |+-

Re: org-return not being given 't' for INDENT parameter

2022-10-20 Thread Ihor Radchenko
jebb Bungo writes: > I am having an odd behavior with org-return. I use hard indents, and I have > set 'org-adapt-indentation' to t in my .emacs file. However, I have noticed > that sometimes when I press RET under a heading, instead of getting an > indent to match the indentation of the heading

Re: inconsistent behavior for completion of links inside [[ ]]

2022-10-20 Thread Ihor Radchenko
"Majzoub, Eric" writes: > emacs: 29.0.50 build 7 > org: 9.6-gcbe3f2 snapshot from 20220402 > I use company for completion. > > The issue is very simple to reproduce. Open a new .org file and > input (for example) > > [[/home/]] > > and see if an auto-complete menu pops up. > > Do this both INSIDE

Re: PATCH: Re: Reading the parameters of a special-block

2022-10-20 Thread Ihor Radchenko
[adding Org ML back to CC] Bruno Barbier writes: >> Thanks! LGTM. >> > >> Now, can you also make a patch against https://git.sr.ht/~bzg/worg >> adding the new parameter to >> https://orgmode.org/worg/dev/org-element-api.html? > > Sure. Let me know if the attached patch is good enough. Applied

Re: Weird behavior of org-element-object-lex

2022-10-20 Thread Ihor Radchenko
Damien Cassou writes: > (defun ox-linuxmag--item (item contents info) > ... > The reason `ox-linuxmag--item` has to parse ITEM again is because > CONTENTS contains "item 1 ;" > which misses the initial dash "-" character: i.e., I would like "- item > 1 ;" in the paragraph instead. Just use ITE

Re: [BUG] ox-odt fails for org-id links (e.g., from org-roam v2) [9.5.2 (9.5.2-gfbff08 @ /home/moritz/.emacs.d/elpa/27.2/develop/org-9.5.2/)]

2022-10-20 Thread Max Nikulin
On 19/10/2022 17:36, Ihor Radchenko wrote: --- a/lisp/ox-odt.el +++ b/lisp/ox-odt.el @@ -2737,6 +2737,12 @@ (defun org-odt-link (link desc info) (format "%s" (org-export-get-reference destination info) (or desc (org-export-get-ordinal destination

Re: [BUG] S- Overridden by windmove.el [9.5.2 (release_9.5.2-3-geb9f34 @ /usr/local/share/emacs/28.0.91/lisp/org/)]

2022-10-20 Thread Yingnan Cui
What if I want to use windmove outside of org-mode? Yingnan On Wed, Oct 19, 2022 at 11:38 PM Ihor Radchenko wrote: > Yingnan Cui writes: > > > It seems that org-mode's S- is overriden by windmove.el even > > though I'm adding the following configurations according to the org > > manual: > > ``

Re: Weird behavior of org-element-object-lex

2022-10-20 Thread Damien Cassou
Ihor Radchenko writes: > Damien Cassou writes: >> (defun ox-linuxmag--item (item contents info) >> ... >> The reason `ox-linuxmag--item` has to parse ITEM again is because >> CONTENTS contains "item 1 ;" >> which misses the initial dash "-" character: i.e., I would like "- item >> 1 ;" in the p

Re: Weird behavior of org-element-object-lex

2022-10-20 Thread Damien Cassou
Damien Cassou writes: > Ihor Radchenko writes: >> Damien Cassou writes: >>> (defun ox-linuxmag--item (item contents info) >>> ... >>> The reason `ox-linuxmag--item` has to parse ITEM again is because >>> CONTENTS contains "item 1 ;" >>> which misses the initial dash "-" character: i.e., I woul

Re: [BUG] Mention #+PRINT_BIBLIOGRAPHY in the Org manual

2022-10-20 Thread Rudolf Adamkovič
Ihor Radchenko writes: > For record, the manual now contains a dedicated section for printing > the bibliography and additional options that can passed to it. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/doc/org-manual.org#n17095 Oh, fantastic! Thank you for letting me know. BTW

Re: Line breaks and brackets in LaTeX export

2022-10-20 Thread Juan Manuel Macías
Max Nikulin writes: > I have started a discussion requesting for a \\-like command without > optional arguments. Maybe somebody will suggest a better workaround > instead. > https://github.com/lvjr/tabularray/discussions/321 I've had a look at the thread. What do you think of that \NewTableComman

Re: Line breaks and brackets in LaTeX export

2022-10-20 Thread Juan Manuel Macías
Max Nikulin writes: > A workaround for tabularray: > > \NewTableCommand\empty{} > > I am unsure if we should use it. Ah, I had just commented on this in the email I just sent... >> By the way, now I remember that the package verse adds a series of >> extra >> arguments to \\ (p. 6 in the doc

Re: Weird behavior of org-element-object-lex

2022-10-20 Thread Max Nikulin
On 20/10/2022 21:15, Damien Cassou wrote: After a quick chat with yantar92 on IRC, I understood that the easiest solution is to fix the paragraph transcoder to inject the "- " when its parent is an item. The item transcoder can just return CONTENTS. Why are you trying to avoid item list marker

Re: Line breaks and brackets in LaTeX export

2022-10-20 Thread Max Nikulin
An argument in favor of \\[0pt] escaping. Unlike \empty, [0pt] is rather artificial, so such pattern may be removed (I hope in a safe way) by an export filter if it is not followed by a bracket or a star. On 20/10/2022 12:07, Ihor Radchenko wrote: When transcoding children (e.g. table rows), t

Re: Error during PDF export but the PDF file is exported

2022-10-20 Thread Max Nikulin
On 20/10/2022 12:12, Ihor Radchenko wrote: What I wanted to say is that `current-time' is good enough if we export to local file. Since the patch was not posted to the mailing list, I may be wrong due to some rather wild assumption. Paul Eggert convinced me that generally it is a bad idea t

Re: size restriction on columnview?

2022-10-20 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko writes: > Uwe Brauer writes: >> The following columnview will indeed display all the properties of all >> the headings in table form. >> >> #+BEGIN: columnview :maxlevel 2 :skip-empty-rows t :hlines 1 :indent >> nil :format "%5TODO(Status) %SUMMARY(Sum) %5NR(Nr) %5ITE

[PATCH] ob-java: Define the list of all supported header arguments

2022-10-20 Thread Rudolf Adamkovič
Hello smart folks! The Org linter warns about *correct* Java source block arguments. The attached patch fixes that. P.S. I originally had two regression tests, not one. The other test checked the '#+property:' version, e.g. #+property: header-args:java+ :dir /tmp #+property: header-args:java+

org-persist-write slow when pp-use-max-width is t

2022-10-20 Thread Michael Eliachevitch
I was wondering why kill-emacs emacs takes over a minute and after some profiling I found out that the call to org-persist-write-all takes long when pp-use-max-width is set to t and pp-max-width is also set (in my case to t, the window-width), which enables line folding in pp. The pp-call happe

Re: Problems running ob-julia tests (testing/test-ob-julia.el)

2022-10-20 Thread Christian Köstlin
On Wed, Oct 19, 2022 at 3:32 AM Ihor Radchenko wrote: > > Pedro Bruel writes: > > > I believe the ob-julia version we have on orgmode does not support sessions. > > There is definitely session support in lisp/ob-julia.el. ob-julia does > define org-babel-load-session:julia and org-babel-prep-sess

Re: Haskell code blocks

2022-10-20 Thread Ihor Radchenko
Bruno Barbier writes: > I've attached the patch that I've used to fix ob-haskell. > > Should I submit a patch for ob-haskell ? > > Bruno > > > From f2e91a62469e84ce1d3036216ae3eca4084f3b94 Mon Sep 17 00:00:00 2001 > From: Bruno BARBIER > Date: Wed, 19 Oct 2022 19:44:42 +0200 > Subject: [PATCH] o

Re: [BUG] ox-odt fails for org-id links (e.g., from org-roam v2) [9.5.2 (9.5.2-gfbff08 @ /home/moritz/.emacs.d/elpa/27.2/develop/org-9.5.2/)]

2022-10-20 Thread Ihor Radchenko
Max Nikulin writes: > I am apologizing if my comments make no sense. I remember a thread on > improper handling on id links in ox-html, so I am a bit surprised that a > link to the whole file (if I got the goal of the patch correctly, of > course) is the only problem with ODT. It is likely no

Re: [BUG] Mention #+PRINT_BIBLIOGRAPHY in the Org manual

2022-10-20 Thread Ihor Radchenko
Rudolf Adamkovič writes: > BTW, speaking of citations, I wonder why Org inserts > [cite/text:@author-year] and not [cite/text: @author-year], with a space > character, to avoid strangely filled paragraphs (as seen here). Feel free to submit a patch for org-cite-make-insert-processor. -- Ihor R

Re: [PATCH v2] org-macs.el: Do not compare wall time and file modification time

2022-10-20 Thread Ihor Radchenko
Max Nikulin writes: > Subject: [PATCH v2] org-macs.el: Do not compare wall time and file > modification time > To: emacs-orgmode@gnu.org Applied onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=deb1517fe909fe9ba2b753c0a7fd6146a0550460 Thanks for the reminder. -- Iho

Re: Error during PDF export but the PDF file is exported

2022-10-20 Thread Ihor Radchenko
Max Nikulin writes: > On 20/10/2022 12:12, Ihor Radchenko wrote: >> >> What I wanted to say is that >> `current-time' is good enough if we export to local file. > > Since the patch was not posted to the mailing list, I may be wrong due > to some rather wild assumption. > > Paul Eggert convinced

Re: Line breaks and brackets in LaTeX export

2022-10-20 Thread Ihor Radchenko
Juan Manuel Macías writes: > I've had a look at the thread. What do you think of that > \NewTableCommand\empty{} workaround mentioned at > https://github.com/lvjr/tabularray/discussions/321#discussioncomment-3920957? > > Since the \empty option only has problems in tabularray, maybe we could > ke

Re: Line breaks and brackets in LaTeX export

2022-10-20 Thread Ihor Radchenko
Max Nikulin writes: > On 20/10/2022 12:07, Ihor Radchenko wrote: >> When transcoding children (e.g. table rows), the sibling rows can always >> be accessed using org-export-get-previous-element and >> org-export-get-next-element. > > Decision if escaping is necessary should be based on export res

Re: [PATCH] ob-java: Define the list of all supported header arguments

2022-10-20 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Hello smart folks! > > The Org linter warns about *correct* Java source block arguments. The > attached patch fixes that. Thanks! Applied onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=ee3dbb0fdb6e119207f13a165e90b878b741cf49 > P.S. I orig

Re: org-persist-write slow when pp-use-max-width is t

2022-10-20 Thread Ihor Radchenko
Michael Eliachevitch writes: > I was wondering why kill-emacs emacs takes over a minute and after some > profiling I found out that the call to org-persist-write-all takes long when > pp-use-max-width is set to t and pp-max-width is also set (in my case to t, > the window-width), which enables

Re: [BUG] S- Overridden by windmove.el [9.5.2 (release_9.5.2-3-geb9f34 @ /usr/local/share/emacs/28.0.91/lisp/org/)]

2022-10-20 Thread Ihor Radchenko
Yingnan Cui writes: > What if I want to use windmove outside of org-mode? How do you enable windmove? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at

Re: Org 9.6-pre and Bash sessions

2022-10-20 Thread Ihor Radchenko
Ihor Radchenko writes: > Rudolf Adamkovič writes: > >> : >> : > > hello >> >> on the subsequent runs. >> >> Better than the new version but still wrong. :) > > And this is what drove me crazy during debugging. I do not understand > the logic of all that ob-comint code. > > I have identified that

Re: Bug: ODT export of Chinese text inserts spaces for line breaks

2022-10-20 Thread Ihor Radchenko
Ihor Radchenko writes: > I am attaching the fix that leverages `fill-region' to handle all the > complexities for us. It is the easiest way and I see no reason to look > deeper. Applied onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3502ce2dbb29b70cdbb978d144322d48cb0

Re: [BUG] org-timer-start doesn't seem to take the timer string at point [9.5.5 (release_9.5.5 @ z:/emacs-i686/share/emacs/28.2/lisp/org/)]

2022-10-20 Thread Ihor Radchenko
Ihor Radchenko writes: > From 1efdf049475dfa9d4cdf219d665c4afcb32ed7cc Mon Sep 17 00:00:00 2001 > Message-Id: > <1efdf049475dfa9d4cdf219d665c4afcb32ed7cc.1664765817.git.yanta...@gmail.com> > From: Ihor Radchenko > Date: Mon, 3 Oct 2022 10:55:33 +0800 > Subject: [PATCH] org-manual: Clarify `org-

Re: Bug: org-clock-select-task reuses reserved characters [9.3 (release_9.3 @ /home/unhammer/PREFIX/emacs/share/emacs/28.0.50/lisp/org/)]

2022-10-20 Thread Ihor Radchenko
Kevin Brubeck Unhammer writes: > If your org-clock-history has 44 or more elements, then the "c" > character will no longer go to the current task, but to the 44th clocked > in task. Similarly for [d]efault and [i]nterrupted. > > The function first adds (?c . marker-to-current-task) to the sel-li

Re: Bug: Incorrect indentation in Org Babel list output with multiline text [9.4.4 (release_9.4.4 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)]

2022-10-20 Thread Ihor Radchenko
Vikas Kumar writes: > Here is a patch with the fix. Thanks, and sorry for the late reply. Applied onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=e7005787993f521f76e99f00e8a04d87703c493f You are now listed as an Org contributor https://git.sr.ht/~bzg/worg/commit/d0d32

Re: [BUG] Beamer export fails with async export [9.5.3 (9.5.3-g4197fc @ /home/thomas/.emacs.d/straight/build/org/)]

2022-10-20 Thread Ihor Radchenko
Thomas Freeman writes: > When exporting a LaTeX beamer presentation as an asynchronous process > (by using C-a prior to selecting the export option), the export fails with > the following error: > > (error "Unknown \"nil\" back-end: Aborting export") Could you please provide detailed steps how

Re: Export of deadline status via ~org-batch-agenda-csv~

2022-10-20 Thread Ihor Radchenko
"Stefan van der Walt" writes: > I am trying to process all of my TODOs in a script, and therefore use > ~org-batch-agenda-csv~ to export them to CSV. > > I am running into two problems: > > 1. It seems to be impossible to get deadline/schedule information for tasks > that have been marked as DO