Publish to HTML and LaTeX/PDF with cross-file links?

2022-06-14 Thread Jens Lechtenboerger
Hi all, I publish OER (https://oer.gitlab.io/) from Org sources and wonder about links to local files as documented at [1]. That page only talks about HTML export. How can I achieve similar behavior for LaTeX/PDF export? More precisely: For HTML export, a link like [[file:foo.org::#custom-id][e

Cusom special block export, similar org org-link :export parameter (was: Org mode and Emacs)

2022-06-14 Thread Ihor Radchenko
Robert Pluim writes: > Ihor> However, we have special blocks for this purpose. They are > extendable, > Ihor> as I descibed above. Though some improvements in Org core might be > Ihor> needed if we have to use this extensibility more frequently. > > My first thought here was Org macr

Re: Org mode and Emacs (was: Convert README.org to plain text README while installing package)

2022-06-14 Thread Ihor Radchenko
Forwarding a relevant message from emacs-devel on examples of markup nesting in texinfo: Eli Zaretskii writes: > From: Ihor Radchenko > > Eli Zaretskii writes: > > >> Can someone please prepare a small example texi file containing examples > >> of various texi features that are commonly need

Re: More Worg build workflow

2022-06-14 Thread Ihor Radchenko
Tim Cross writes: > Based on only a few hours going through worg and Org mode's support for > generating static web content, there are 3 very broad goals I would like > to achieve > > 1. Improve worg's presentation layer to > ... > 2. Make it easier for users to contribute new content, updates

Re: Orgmode plain list bullet : change automatically with list depth

2022-06-14 Thread Ihor Radchenko
DEBRY.Edouard writes: > But it breaks the org file. What do you mean by "breaks the org file"?

Re: [PATCH] #+begin_example lang used in manual and worg (was: [DISCUSSION] Refactoring fontification system)

2022-06-14 Thread Max Nikulin
On 10/06/2022 09:06, Ihor Radchenko wrote: Max Nikulin writes: Side note: I can not say that #+begin_example with language is widely used, but one case may be found in org-manual.org and a dozen in worg. Which should probably be fixed. LANG parameter is ignored on export anyway. See the attac

you to copy .org-id-locations from one machine to another

2022-06-14 Thread Uwe Brauer
Hi My .org-id-locations file contain relative path like this ("~/ALLES/HGs/HG-Org/answer.org" "5dc7a5e5-aebd-432a-8156-c69d9c0e4740" "ce79da39-8158-4df2-aca0-c2697bda168a" "70b317ce-2786-45d0-a72e-99d5fad8") I copied a particular directory from one machine to another so the ID concide, ho

Re: [PATCH] Re: New source block results option for attaching file to node

2022-06-14 Thread Ryan Scott
Awesome! Thanks again for all the help. It's been a crash course in org internals and the contribution process. Well prepared for next time to go much smoother. Cheers, -ryan On Tue, Jun 14, 2022 at 6:47 AM Ihor Radchenko wrote: > Ryan Scott writes: > > > I put together a clean setup in dock

Orgmode plain list bullet : change automatically with list depth

2022-06-14 Thread DEBRY . Edouard
When making a plain list in orgmode, I would like to change of bullet autmatically depending on the list depth. Currently, I use this to prettify bullets : (font-lock-add-keywords 'org-mode '(("^ *\\([-]\\) " (0 (prog1

Re: [PATCH] Don't quote symbols in defcustom types

2022-06-14 Thread Ihor Radchenko
Robert Pluim writes: > >> What's a TINYCHANGE? > > Ihor> See https://orgmode.org/worg/org-contribute.html#first-patch > Ihor> We need to put this word at the end of commit messages for > contributors > Ihor> without FSF copyright assignment. > > The first patch I sent last week i

Re: [PATCH] org.el (org-format-latex-header): put DEFAULT-PACKAGES before PACKAGES

2022-06-14 Thread Sébastien Miquel
Hi, Ihor Radchenko writes: We actually have 2 options here: 1. Change the docstring 2. Change the template Can moving [PACKAGES] up break the existing configs? It might. I am inclined to change the docstring instead. Thanks for having a look at this. It makes more sense for a package in PACK

Re: [PATCH] Don't quote symbols in defcustom types

2022-06-14 Thread Robert Pluim
> On Tue, 14 Jun 2022 22:19:23 +0800, Ihor Radchenko > said: Ihor> Robert Pluim writes: >>> On Tue, 14 Jun 2022 22:04:10 +0800, Ihor Radchenko said: >> Ihor> Daniel Fleischer writes: >> >> Thanks for the patch, merged. >> Ihor> BTW, should it be a T

Re: [PATCH] Don't quote symbols in defcustom types

2022-06-14 Thread Ihor Radchenko
Robert Pluim writes: >> On Tue, 14 Jun 2022 22:04:10 +0800, Ihor Radchenko >> said: > > Ihor> Daniel Fleischer writes: > >> Thanks for the patch, merged. > > Ihor> BTW, should it be a TINYCHANGE? > > What's a TINYCHANGE? See https://orgmode.org/worg/org-contribute.html#fi

Re: [BUG] Cursor is moved after changing list bullets

2022-06-14 Thread Daniel Fleischer
Ihor Radchenko [2022-06-14 Tue 21:30] wrote: > I am unable to reproduce using any of the supported Emacs versions. > Could you please provide more concrete steps? Or better a test. Create a file called `list.org` with the following: * Test - Hello. - hi. - bye. Then call:

Re: [PATCH] Don't quote symbols in defcustom types

2022-06-14 Thread Robert Pluim
> On Tue, 14 Jun 2022 22:04:10 +0800, Ihor Radchenko > said: Ihor> Daniel Fleischer writes: >> Thanks for the patch, merged. Ihor> BTW, should it be a TINYCHANGE? What's a TINYCHANGE? Robert --

Re: [BUG] org-copy-subtree in a file with local variables marks buffer as modified [9.5.3 (release_9.5.3-6-gef41f3 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-06-14 Thread Ihor Radchenko
Ignacio Casso writes: >>> + (setq buffer-undo-list >>> + (seq-drop-while 'identity buffer-undo-list))) >> >> This looks fragile and can be disasterous when buffer-undo-list is >> large. > > I agree that it is very fragile, but could you explain why is it also > probl

Re: [PATCH] Don't quote symbols in defcustom types

2022-06-14 Thread Ihor Radchenko
Daniel Fleischer writes: > Thanks for the patch, merged. BTW, should it be a TINYCHANGE? Best, Ihor

Re: [BUG] org-capture autoload bug? [9.5.2 (9.5.2-gfbff08 @ /home/ignacio/.emacs.d/elpa/org-9.5.2/)]

2022-06-14 Thread Ihor Radchenko
Ignacio Casso writes: >> Please don't use ditto. (what does it even mean?) > > It means the same thing again. I saw it in the message of the Emacs > commit I referenced earlier in this thread, so I assumed it was standard > practice. I have replaced it with "The same". But if the problem is that

Re: [PATCH] Re: New source block results option for attaching file to node

2022-06-14 Thread Ihor Radchenko
Ryan Scott writes: > I put together a clean setup in docker for running the tests and believe > I've gotten to the source of the problem. > However I've thought that a few times now. Would you be interested to share it? It might be helpful for other people trying to develop on Windows. > This v

Re: [BUG] Cursor is moved after changing list bullets

2022-06-14 Thread Ihor Radchenko
Daniel Fleischer writes: > Hi, there is a regression introduced in: > > ed6f8dc67 org-list: Do not move point and change space when > promoting/demoting items > > When calling `org-cycle-list-bullet' (e.g. using S-right or S-left) the > cursor moves to the beginning of the text

Re: [PATCH] org.el (org-format-latex-header): put DEFAULT-PACKAGES before PACKAGES

2022-06-14 Thread Ihor Radchenko
Sébastien Miquel writes: > The attached patch puts DEFAULT-PACKAGES before PACKAGES in > org-format-latex-header, as per org-latex-packages-alist's and > org-latex-classes' documentations. > ... > -\[PACKAGES] > \[DEFAULT-PACKAGES] > +\[PACKAGES] Thanks! We actually have 2 options here: 1. C

[BUG] Cursor is moved after changing list bullets

2022-06-14 Thread Daniel Fleischer
Hi, there is a regression introduced in: ed6f8dc67 org-list: Do not move point and change space when promoting/demoting items When calling `org-cycle-list-bullet' (e.g. using S-right or S-left) the cursor moves to the beginning of the text after changing the bullet type. It used

More Worg build workflow

2022-06-14 Thread Tim Cross
apologies if these questions about worg are becoming a little tiresome - still just trying to work out how things all work and more importantly, what level of comfort the community has with change. i As I'm digging more and more into understanding worg, I'm finding things which I think need to b

Re: [PATCH] Don't quote symbols in defcustom types

2022-06-14 Thread Daniel Fleischer
Thanks for the patch, merged. Daniel Fleischer

Re: [Patch] ob-tangle.el: New value 'ascii' for the header argument ':comments'

2022-06-14 Thread Ihor Radchenko
Juan Manuel Macías writes: > On the other hand, I have a curiosity. I understand that the behavior of > the `:comments org' option should be left intact to ensure backwards > compatibility. But I've always wondered if there is any use case where > this value, as it behaves, might be practical. I

Re: [Patch] ob-tangle.el: New value 'ascii' for the header argument ':comments'

2022-06-14 Thread Juan Manuel Macías
Ihor Radchenko writes: > I think that the existing code can be improved. Relying on the > undocumented behavior of (org-back-to-heading) is not ideal. Not to > mention code blocks before first headline. > > It would be great if you rewrite the existing code to suite both the > defaults and the pro

Re: [PATCH] Don't quote symbols in defcustom types

2022-06-14 Thread Robert Pluim
> On Tue, 14 Jun 2022 13:12:54 +0300, Daniel Fleischer > said: Daniel> Robert Pluim [2022-06-14 Tue 11:28] wrote: >> A couple of places in org main quoted symbols in defcustom types, but >> the type itself is already quoted, so thatʼs not necessary. Daniel> Is it harmful

Re: [PATCH] Don't quote symbols in defcustom types

2022-06-14 Thread Daniel Fleischer
Robert Pluim [2022-06-14 Tue 11:28] wrote: > A couple of places in org main quoted symbols in defcustom types, but > the type itself is already quoted, so thatʼs not necessary. Is it harmful though? > - (const :tag "Overlays" 'overlays) > - (const :tag "Text properties" 'text-p

Re: [PATCH] New remote resource download policy

2022-06-14 Thread Robert Pluim
> On Sun, 12 Jun 2022 22:43:07 +0800, Timothy said: Timothy> Hi All, Timothy> As was raised in the `#+include: URL' thread Timothy> (), currently Org will Timothy> automatically download files without confirmation in various

[PATCH] Don't quote symbols in defcustom types

2022-06-14 Thread Robert Pluim
A couple of places in org main quoted symbols in defcustom types, but the type itself is already quoted, so thatʼs not necessary. Thanks Robert -- >From 3163652a7eecbf84c767c6740822e00cf842e607 Mon Sep 17 00:00:00 2001 From: Robert Pluim Date: Mon, 13 Jun 2022 16:15:10 +0200 Subject: [PATCH] D

[PATCH] Escape single left quotes in docstrings

2022-06-14 Thread Robert Pluim
The emacs-29 byte compiler now complains about unescaped single left quote. Patch attached. Robert -- >From d86ba4e5522a33f6960207327f6a84b58caa3d04 Mon Sep 17 00:00:00 2001 From: Robert Pluim Date: Tue, 14 Jun 2022 11:29:12 +0200 Subject: [PATCH] Escape single left quotes in docstrings * lisp

Re: [PATCH] Re: New source block results option for attaching file to node

2022-06-14 Thread Ryan Scott
I put together a clean setup in docker for running the tests and believe I've gotten to the source of the problem. However I've thought that a few times now. This version of the patch has all tests passing. The problem was in org-results-to-file and the attach dir detection. It both had problems w

Re: [BUG] org-capture autoload bug? [9.5.2 (9.5.2-gfbff08 @ /home/ignacio/.emacs.d/elpa/org-9.5.2/)]

2022-06-14 Thread Ignacio Casso
>> Subject: [PATCH] use `set-default-toplevel-value' in `defcustom' setters >^Use > >> * lisp/ob-lilypond.el (org-babel-lilypond-commands): use >^Use >> `set-default-toplevel-value' instead of `set' or `set-default' in >>

Re: [BUG] org-copy-subtree in a file with local variables marks buffer as modified [9.5.3 (release_9.5.3-6-gef41f3 @ /home/ignacio/repos/emacs/lisp/org/)]

2022-06-14 Thread Ignacio Casso
>> - (delete-and-extract-region (point) (point-max))) >> + (undo-boundary) > >> + (setq buffer-undo-list >> + (seq-drop-while 'identity buffer-undo-list))) > > This looks fragile and can be disasterous when buffer-undo-list is > large.

Re: Org default is Left-to-right

2022-06-14 Thread Daniel Fleischer
Ihor Radchenko [2022-06-14 Tue 13:17] wrote: > The Emacs devs reply was that 'right-to-left global setting is preferred > for such users while nil being preferred setting for other users and it > should not be something Org decides. > > Hence, I just applied a patch removing Org setting > bidi-par

Re: [BUG] Info JS does not work [9.5.3 (release_9.5.3-467-g2bd34e @ /Users/salutis/src/org-mode/lisp/)]

2022-06-14 Thread Bastien
Hi Ihor, Ihor Radchenko writes: > Great! Will it be linked at orgmode.org? Good idea, I just added a link to orgmode.org front page. > Org contribute page is lacking > links to all the repositories (which someone already complained about). > Addition link at the frontpage might also make sens

Re: [BUG] incorrect cached element under native-comp [9.5.4 (9.5.4-ga8b322 @ /Users/jabrahms/.emacs.d/straight/build/org/)]

2022-06-14 Thread Ihor Radchenko
"Justin Abrahms" writes: > All of that is correct, yes. Which means that you are trying to use Org functions before Org is loaded. A cursory look across your config yields: (add-hook 'find-file-hook #'vulpea-project-update-tag) wich is likely the cause. Will the warning disappear when you comm

Formatting in citation locator

2022-06-14 Thread Marvin Gülker
Dear list, is it possible to apply formatting within the citation locator? It is sometimes useful to me. For example, when I want to cite a dissenting opinion contained in a judgment of the German Constitutonal Court, it is helpful to highlight that the cited location is a dissenting opinion and n

Re: Old user needs help

2022-06-14 Thread Ihor Radchenko
Peter Gragert writes: > For example I have a juni2022.org file and would like that that org-file is > opened automatically on a click on the emacs desktop short-cut icon. > (years ago something in init.el (load-file "..." )if I remember correctly You can put (find-file "...") near the end of yo

Re: Indenting a blank definition list item leaves point at beginning of line

2022-06-14 Thread Ihor Radchenko
JD Smith writes: > Org 9.5.4 (point at `X’): > > - foo :: bar X [M-Ret] > - X :: [M-right] > > leaves point at beginning of line: > > - foo :: bar > X - :: > > If you add content first, point stays put. Duplicate of https://orgmode.org/list/878rq6hstt.fsf@localhost

Re: [BUG] incorrect cached element under native-comp [9.5.4 (9.5.4-ga8b322 @ /Users/jabrahms/.emacs.d/straight/build/org/)]

2022-06-14 Thread Justin Abrahms
All of that is correct, yes. On Mon, Jun 13, 2022, at 11:59 PM, Ihor Radchenko wrote: > "Justin Abrahms" writes: > > > I saw this error when opening emacs.org via (counsel-find-file &optional > > INITIAL-INPUT INITIAL-DIRECTORY) > > > > Slightly different error now (same style, different elemen

Re: [BUG] incorrect cached element under native-comp [9.5.4 (9.5.4-ga8b322 @ /Users/jabrahms/.emacs.d/straight/build/org/)]

2022-06-14 Thread Ihor Radchenko
"Justin Abrahms" writes: > I saw this error when opening emacs.org via (counsel-find-file &optional > INITIAL-INPUT INITIAL-DIRECTORY) > > Slightly different error now (same style, different element), but I didn't > get a backtrace. > > https://gist.github.com/justinabrahms/4bc97379cb8d8e317ca9