[Q] How to italicize without introducing a space?

2023-03-28 Thread General discussions about Org-mode.
Hello, I am working on a piece of CJK text, which requires italicization. --8<---cut here---start->8--- 任何一个章节可以通过增加例如 =TODO= 或者 =HOLD= 等关键词来被设置成 /待办/ 。 --8<---cut here---end--->8--- Note the spaces before and after the

[BUG] No font lock in src blocks for shells in org-babel-shell-names (was Re: Font lock for org-babel shell scripts?)

2023-03-28 Thread Matt
Of the shells given in `org-babel-shell-names' (that is, "sh" "bash" "zsh" "fish" "csh" "ash" "dash" "ksh" "mksh" "posh"), only "sh" and "bash" have font locking in source blocks. For example, #+begin_src sh if [ -z $TEST ]; then echo Fontified fi #+end_src #+begin_src bash if [

Re: Font lock for org-babel shell scripts?

2023-03-28 Thread Matt
On Tue, 28 Mar 2023 13:24:39 -0400 Derek Chen-Becker wrote --- > I'm trying to figure out whether there's a bug or just a misconfiguration on > my end with font lock for org-babel shell source blocks. If I run emacs 28.2 > (with -q) and open the following org file, I can evaluate

Font lock for org-babel shell scripts?

2023-03-28 Thread Derek Chen-Becker
Hi, I'm trying to figure out whether there's a bug or just a misconfiguration on my end with font lock for org-babel shell source blocks. If I run emacs 28.2 (with -q) and open the following org file, I can evaluate both source blocks but only the "bash" block has syntax highlighting. I've

Re: Table not expanded as I expect upon

2023-03-28 Thread Alain . Cochard
Ihor Radchenko writes on Mon 27 Mar 2023 11:19: > alain.coch...@unistra.fr writes: > > > Maybe it is normal, but if I put the cursor anywhere in the 1st line > > (say) of this table > > > > ||---+---| > > || x | x | > > > > and press , it becomes > > > > | | ---+--- | | > > | |

Re: How to suppress generation in export

2023-03-28 Thread Ihor Radchenko
David Diem writes: > is there a way to suppress the generation of a ... tag > when exporting to html? That would generate invalid html document. The relevant comment in our code: ;; Set title to an invisible character instead of leaving it ;; empty, which is invalid.

[BUG] Shifting timestamp hours around daylight transition (was: Clock dates - org-shiftdown not working)

2023-03-28 Thread Ihor Radchenko
Tebe Nigrelli writes: > On a clean configuration, applying org-shiftdown does not work for the > following date format, written as a clock. I want to reduce the number of > hours > on the second date from "03:" to "02:". This is what happens if I apply > org-shiftdown: > > Instructions to

Re: [BUG] columnview result depends on org-tags-match-list-sublevels [9.5.5 (release_9.5.5 @ /usr/share/emacs/28.2/lisp/org/)]

2023-03-28 Thread Ihor Radchenko
Martin Jambor writes: > I have found out that whether sub-headers are included in a columnview > table depends on org-tags-match-list-sublevels which I hope is a bug > because it is unexpected and interferes with the columnview > configuration. Yes, it does affect columnview and anything that

Re: Slightly OT

2023-03-28 Thread Ihor Radchenko
Henrik Frisk writes: > I've been having trouble with the deprecated function > consult-completing-read-multiple being undefined. This happens when I try > C-c C-c in org-mode to add a tag to a header. I know I fixed this issue on > my old computer, but not how. Check your org-ctrl-c-ctrl-c-hook

Slightly OT

2023-03-28 Thread Henrik Frisk
IHi, I've been having trouble with the deprecated function consult-completing-read-multiple being undefined. This happens when I try C-c C-c in org-mode to add a tag to a header. I know I fixed this issue on my old computer, but not how. Any ideas? Thanks /Henrik

Re: File generation from LaTeX src fails due to temporary PDF in wrong directory

2023-03-28 Thread Ihor Radchenko
Christian Moe writes: > I'm trying and failing to export images from TikZ code, apparently > because the temporary PDF is misplaced. Here is a minimal example just > exporting the PDF: > > #+LATEX_HEADER: \usepackage{tikz} > > #+header: :fit yes > #+begin_src latex :exports results :file

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

2023-03-28 Thread Tony Zorman
Hi, > After months of work, Karthink and I have prepared a rather large > patch-set completely overhauling the LaTeX preview system. I hope to > have a patch set shortly, but in the mean time it would be good to get > some more people testing this. thank you for this! I've been testing it (from

Re: [PATCH] Async evaluation in ob-shell

2023-03-28 Thread Ihor Radchenko
Matt writes: > -(session (assq :session params))) > +(sessionp (not (member (cdr (assq :session params)) '("no" > "none") > +(if (and async (not sessionp)) > + (error (org-babel-eval-error-notify 1 "ERROR: must use 'async' > with 'session'"))) This is

Source blocks are indented

2023-03-28 Thread c.buhtz
Hello, #+begin_src python import sys #+end_src This example shows a python source block in an org(roam) file. Org always does an indention here of two spaces. Is there a way to turn this of? It seems to me this is not the default behavior because I saw some youtube videos where there is no

Re: Source blocks are indented

2023-03-28 Thread c.buhtz
I did more research reducing my init.el and looking which line in it does cause that behavior. > (package-initialize) That is the one and only line in my init.el. The behavior is reproducible with this. Removing the line (init is empty then) the behavior is not there. I'm not sure what this

Clock dates - org-shiftdown not working

2023-03-28 Thread Tebe Nigrelli
On a clean configuration, applying org-shiftdown does not work for the following date format, written as a clock. I want to reduce the number of hours on the second date from "03:" to "02:". This is what happens if I apply org-shiftdown: - On the minutes :: from ":XX" minutes, there is a decrease

Re: Source blocks are indented

2023-03-28 Thread c.buhtz
It is solved. (setq org-edit-src-content-indentation 0) In the first place I used the help system wrong and couldn't find that variable in my system.

[BUG] columnview result depends on org-tags-match-list-sublevels [9.5.5 (release_9.5.5 @ /usr/share/emacs/28.2/lisp/org/)]

2023-03-28 Thread Martin Jambor
Hello, I have found out that whether sub-headers are included in a columnview table depends on org-tags-match-list-sublevels which I hope is a bug because it is unexpected and interferes with the columnview configuration. Please have a look at the attached file which demonstrates the problem.

How to suppress generation in export

2023-03-28 Thread David Diem
Hi, is there a way to suppress the generation of a ... tag when exporting to html? The title of the subtrees I am exporting is not set, the org file-wide title is not set either. Setting the file title to nothing (like so: #+title: ) does not help either. I tried setting

Re: [POLL] Should we accept breaking changes to get rid of Org libraries that perform side effects when loading?

2023-03-28 Thread Ihor Radchenko
Max Nikulin writes: > On 26/03/2023 00:45, Ihor Radchenko wrote: >> I am then CCing Bastien, as, despite the Elisp convention, following it >> will break https://bzg.fr/en/the-software-maintainers-pledge/ > > I hope, it may be mitigated to some degree, e.g. loading of > `org-modules' and

Re: [POLL] Should we accept breaking changes to get rid of Org libraries that perform side effects when loading? (was: org-ctags land grab)

2023-03-28 Thread Ihor Radchenko
"Dr. Arne Babenhauserheide" writes: >> This is convincing. >> I am then CCing Bastien, as, despite the Elisp convention, following it >> will break https://bzg.fr/en/the-software-maintainers-pledge/ > > Isn’t the problem that the behavior changed — so that org-ctags gets > loaded in Emacs 30 but

File generation from LaTeX src fails due to temporary PDF in wrong directory

2023-03-28 Thread Christian Moe
Hi, I'm trying and failing to export images from TikZ code, apparently because the temporary PDF is misplaced. Here is a minimal example just exporting the PDF: #+LATEX_HEADER: \usepackage{tikz} #+header: :fit yes #+begin_src latex :exports results :file ./test-tikz-triangle.png