[BUG] ox-odt.el overrides auto-mode-alist defaults [9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp/org/)]

2023-12-08 Thread Peter Prevos
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list.

Re: [PATCH] Set Python shell in Org edit buffer

2023-12-08 Thread Liu Hui
Ihor Radchenko 于2023年12月8日周五 21:06写道: > > Liu Hui writes: > > >> What about displaying a yes/no query about starting a new session when > >> there is none? > > > > I think it is OK. I can add an option to allow users to disable the > > query. WDYT? > > I now have second thoughts about obsoleting

Re: oeg-add-note and double backslash ?

2023-12-08 Thread David Masterson
Ihor Radchenko writes: > David Masterson writes: > >> Hmm. glancing through the manual, there is a bit of assumption implicit >> about the use of '\\'. We had the problem with Unix Shell scripts that >> we would need a backslash at the end of a line to prevent the EOL as >> being interpreted

Re: [PATCH] Add new option 'org-imenu-flatten'

2023-12-08 Thread William Denton
On 8 December 2023, Morgan Smith wrote: Have you considered adding a "flatten" option to imenu itself? That way, you could automatically get the functionality for free everywhere, not just in Org mode. I have considered that but gave up with minimal investigation because it seemed harder then

Re: [PATCH] Add new option 'org-imenu-flatten'

2023-12-08 Thread Morgan Smith
Ihor Radchenko writes: > > Have you considered adding a "flatten" option to imenu itself? > That way, you could automatically get the functionality for free > everywhere, not just in Org mode. I have considered that but gave up with minimal investigation because it seemed harder then this

Re: [PATCH] Move files when using org-babel-tangle-publish

2023-12-08 Thread Antero Mejr
Ihor Radchenko writes: > Also, may I know if you have an FSF copyright assignment? If not, you > also need to add TINYCHANGE to the commit message - see > https://orgmode.org/worg/org-contribute.html#first-patch Yes I have assigned copyright to the FSF already. > May you please submit a patch

Re: How to use mpirun with C or C++ Org-babel?

2023-12-08 Thread Ihor Radchenko
Leo Butler writes: > I submitted an imperfect patch some time ago [1] that targeted your use > case: allow ob-C.el to create a named binary. Unfortunately, Ihor > dropped the issue due to lack of interest from other users. > > My goal was to enable something like this to work: > > #+begin_src

Re: [PATCH] Add new option 'org-imenu-flatten'

2023-12-08 Thread Ihor Radchenko
Morgan Smith writes: > * lisp/org/org-compat.el: Add definition of 'org-imenu-flatten'. > (org-imenu-get-tree): Use 'org-imenu-flatten'. > --- > > Hello! > > I've been using this patch for a bit and I quite like it. One would think > there would be an option in imenu itself to flatten trees but

Re: [FR] Please add custom command variable to org-latex-footnote-reference

2023-12-08 Thread Ihor Radchenko
Alexander Gogl writes: > some LaTeX classes define their own footnote commands. For example, kaobook > (https://github.com/fmarotta/kaobook/blob/master/example_and_documentation.pdf) > has \footnotes and \sidenotes, whereby sidenotes (notes are put into the > outter margin) are the dominant

Re: Suggestion for org-agenda-list: pre-open org-agenda-files

2023-12-08 Thread Ihor Radchenko
"John Wiegley" writes: > Right away I discovered one of the reasons I had preferred properties at the > bottom: When I startup my Emacs and run org-agenda-list, and then hit RET on > an entry, no folding has been applied to the Org file and thus I see the full > property block at the beginning

Re: org-agenda and org-agenda-columns, display time text property

2023-12-08 Thread Ihor Radchenko
Richard Sent writes: > It would be nice if there was a way to display the time text property > while using org-columns in the agenda by modifying > org-local-columns-format (or similar variables). Something like > > ;; in appropriate hook or similar > (setq org-local-columns-format

Re: [PATCH] Move files when using org-babel-tangle-publish

2023-12-08 Thread Ihor Radchenko
Antero Mejr writes: > When publishing using org-babel-tangle-publish to the same directory > that contains the org files, copy-file will signal an error, since the > source and destination files refer to the same file. So use rename-file > instead. > > When publishing to a different directory,

Re: [PATCH] lisp/org-capture.el: use link ID's for %K

2023-12-08 Thread Ihor Radchenko
Kenny Ballou writes: > I'm currently struggling through modifying it to work with > `org-store-link'. Something, save-excursion -> org-clock-goto -> > org-store-link -> org-insert-link is what I'm trying for now, but that's > not quite working. I'll come back to this in a few hours. The last

Re: Tags right alignment with font-lock

2023-12-08 Thread Nicolas P. Rougier (inria)
The above code has problems when you try editing the heading near the end of the title (before the :align-to space). Especially when the window is narrow. Also, when `org-auto-align-tags' is nil. Not that they cannot be solved, but it is not just as trivial as the above code. Thanks, I

Re: How to use mpirun with C or C++ Org-babel?

2023-12-08 Thread Leo Butler
On Fri, Dec 08 2023, tbanelwebmin wrote: > Caution: This message was sent from outside the University of Manitoba. > > On 23-12-08 00:10, Edgar Lux wrote: > > Hello, I found [1][2] that it is possible to change the compiler for C > and C++ > source blocks. I would like to know if there

Re: Bug with "BEAMER_OPT: shrink" and links

2023-12-08 Thread Ihor Radchenko
Guillaume MULLER writes: > Unfortunately, thanks to your follow up I just realized this issue was > closed, so I opened a brand new one: > https://github.com/josephwright/beamer/issues/863 That's a wontfix on beamer side. And I see no sane way to work around the problem on Org side (we do not

Re: Tags right alignment with font-lock

2023-12-08 Thread Ihor Radchenko
"Nicolas P. Rougier (inria)" writes: > I'm using font lock to have tags right aligned with the following > code: > > ;; Right alignment (char wise) > (add-to-list 'font-lock-extra-managed-props 'display) > (font-lock-add-keywords 'org-mode > `(("^\\*+.*?\\( \\)\\(:[[:alnum:]_@#%:]+:\\)$" >

Re: [orgweb/zh-CN] [DRAFT PATCH v7] Tentative zh-CN translation

2023-12-08 Thread Ihor Radchenko
Ihor Radchenko writes: Double-dash only renders as a short dash on HTML, whereas quintuple-dash yields a long dash. This is more in the spirit of Chinese writing, because we usually use two full-width dashes as a "dash punctuation". >>> >>> Maybe just use \mdash entity then? >>

Re: [BUG] org-babel-load-file, org-babel-tangle-use-relative-file-links and :tangle header [9.6.11 (release_9.6.11 @ /opt/emacs/share/emacs/30.0.50/lisp/org/)]

2023-12-08 Thread TAKAHASHI Yoshio
Ihor Radchenko writes: > I followed your steps using the latest main. > The results are identical for me. Thank you for test. My current environment is [1], org-mode in emacs master branch. With the latest org-mode main branch as of today, I get identical results, too. I'm happy to know the

Re: [PATCH] lisp/org-capture.el: use link ID's for %K

2023-12-08 Thread Ihor Radchenko
Kenny Ballou writes: > * org-capture.el (org-capture-fill-template): fill %K values using org > ID's if `org-id-link-to-org-use-id' is non-nil. > * doc/ORG-NEWS: (Template variable expansion %K) Document new behavior. Thanks for the patch! > + (if org-id-link-to-org-use-id > +

Re: [PATCH] Set Python shell in Org edit buffer

2023-12-08 Thread Ihor Radchenko
Liu Hui writes: >> What about displaying a yes/no query about starting a new session when >> there is none? > > I think it is OK. I can add an option to allow users to disable the > query. WDYT? I now have second thoughts about obsoleting org-babel--associate-session. If we need a customization

Re: [BUG] org-babel-load-file, org-babel-tangle-use-relative-file-links and :tangle header [9.6.11 (release_9.6.11 @ /opt/emacs/share/emacs/30.0.50/lisp/org/)]

2023-12-08 Thread Ihor Radchenko
TAKAHASHI Yoshio writes: > TAKAHASHI Yoshio writes: > >>> This is because the default value of `org-babel-default-header-args' >>> already contains (:tangle . "no"). >> Your explanation is very clear. Thank you. > > I did some tests. Please check below transcript. I expect to have the > same

Re: How to use mpirun with C or C++ Org-babel?

2023-12-08 Thread tbanelwebmin
On 23-12-08 00:10, Edgar Lux wrote: Hello, I found [1][2] that it is possible to change the compiler for C and C++ source blocks. I would like to know if there is a way to add =mpirun -np 2= (where 2 can be any other number) to run the resulting

Re: [PATCH] Set Python shell in Org edit buffer

2023-12-08 Thread Liu Hui
Ihor Radchenko 于2023年12月7日周四 23:16写道: > > Liu Hui writes: > > > Ihor Radchenko 于2023年12月7日周四 18:33写道: > > > >> > +(defun org-babel-edit-prep:python (info) > >> > + "Set Python shell in Org edit buffer according to INFO." > >> > + (let ((session (cdr (assq :session (nth 2 info) > >> > +