Re: [BUG] No newline at end of exported HTML file [9.6.6 (release_9.6.6 @ /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/org/)]

2023-10-09 Thread Ihor Radchenko
Max Nikulin writes: > On 09/10/2023 18:29, Ihor Radchenko wrote: >> Not ending is also not uncommon though. And causes no harm (no bug >> reports during all the >10 years when ox-html is a thing). > > Ihor, it changed between Org-9.5 and 9.6. Are you sure? I tried Org 9.5 and there is no

Re: [FR] A more general case than footnotes

2023-10-09 Thread Ihor Radchenko
Maske writes: > I propose links to arbitrary points in different files. > > Furthermore, I think it would be a very nice new feature, probably more > opinions than mine should be heard. See: - https://list.orgmode.org/orgmode/118435e8-0b20-46fd-af6a-88de8e19f...@app.fastmail.com/ -

Re: Exporting elisp: and shell: links

2023-10-09 Thread Max Nikulin
On 08/10/2023 16:48, Ihor Radchenko wrote: +++ b/lisp/ol.el @@ -1377,7 +1377,29 @@ (defun org-link--open-elisp (path _) (call-interactively (read path (user-error "Abort"))) -(org-link-set-parameters "elisp" :follow #'org-link--open-elisp) +(defun

Re: Exporting elisp: and shell: links

2023-10-09 Thread Ihor Radchenko
Max Nikulin writes: >> +(defun org-link--export-code (path description _ info lang) > > I think, the fragment above should be a public function that is a > building block for users who want to override export of links having > descriptions. Sure, but that's minor. >> + (when description

Re: [BUG] [PATCH] Add yank-media and DND handler [9.6.7 (9.6.7-g6eb773 @ /home/viz/lib/emacs/straight/build/org/)]

2023-10-09 Thread Ihor Radchenko
Thanks! > +(defun org--dnd-attach-file (url action) > ... > +(insert > + (org-link-make-string > + (concat (if separatep > + "file:" > +"attachment:") > + (if separatep > + (expand-file-name (file-name-nondirectory

Re: [BUG] No newline at end of exported HTML file [9.6.6 (release_9.6.6 @ /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/org/)]

2023-10-09 Thread Max Nikulin
On 09/10/2023 18:29, Ihor Radchenko wrote: Not ending is also not uncommon though. And causes no harm (no bug reports during all the >10 years when ox-html is a thing). Ihor, it changed between Org-9.5 and 9.6.

Re: [BUG] No newline at end of exported HTML file [9.6.6 (release_9.6.6 @ /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/org/)]

2023-10-09 Thread Ihor Radchenko
Max Nikulin writes: >>> Ihor, it changed between Org-9.5 and 9.6. >> >> Are you sure? I tried Org 9.5 and there is no newline. > > Org mode version 9.5.5 (release_9.5.5 @ /usr/share/emacs/28.2/lisp/org/) > > and the same for uncompiled release_9.5.5 from git > > a test file containing just

Re: [BUG] [PATCH] Add yank-media and DND handler [9.6.7 (9.6.7-g6eb773 @ /home/viz/lib/emacs/straight/build/org/)]

2023-10-09 Thread Visuwesh
[திங்கள் அக்டோபர் 09, 2023] Ihor Radchenko wrote: > Thanks! > >> +(defun org--dnd-attach-file (url action) >> ... >> +(insert >> + (org-link-make-string >> + (concat (if separatep >> + "file:" >> +"attachment:") >> + (if separatep >> +

Re: [BUG] No newline at end of exported HTML file [9.6.6 (release_9.6.6 @ /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/org/)]

2023-10-09 Thread Bruno Barbier
Hi Ye, Ihor, Max, The change seems to come from this commit: commit d7a55bbd537314d2776b082bd92a1a08b3edc84e Date: Wed Sep 28 12:07:14 2022 +0800 org-latex-export-to-latex: Do not suppress major modes in babel It replaces 'write-file' with 'write-region', but, according to the

Re: [BUG] No newline at end of exported HTML file [9.6.6 (release_9.6.6 @ /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/org/)]

2023-10-09 Thread Ihor Radchenko
Bruno Barbier writes: > The change seems to come from this commit: > >commit d7a55bbd537314d2776b082bd92a1a08b3edc84e >Date: Wed Sep 28 12:07:14 2022 +0800 >org-latex-export-to-latex: Do not suppress major modes in babel > > It replaces 'write-file' with 'write-region', but,

Re: [BUG] No newline at end of exported HTML file [9.6.6 (release_9.6.6 @ /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/org/)]

2023-10-09 Thread Ihor Radchenko
YE writes: >> May you please explain why missing newline is a problem? > > It's not necessarily a problem, since HTML parser implementations are > permissive. Still, a couple of arguments for adding it by default: > > 1. diff tools output "\ No newline at end of file" message when a > newline is

Re: [BUG] No newline at end of exported HTML file [9.6.6 (release_9.6.6 @ /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/org/)]

2023-10-09 Thread Max Nikulin
On 09/10/2023 18:46, Ihor Radchenko wrote: Max Nikulin writes: On 09/10/2023 18:29, Ihor Radchenko wrote: Not ending is also not uncommon though. And causes no harm (no bug reports during all the >10 years when ox-html is a thing). Ihor, it changed between Org-9.5 and 9.6. Are you sure?

Re: [BUG] Warning when creating preview

2023-10-09 Thread Edgar Lux
On Oct 9, 2023 > #--- bug.org > \(a = 1\) > #--- further, if you stay "inside" the equation and do C-u C-c C-x C-l (to remove the preview) and try to show it again with C-c C-x C-l, the preview is not regenerated, but the minibuffer shows =Creating LaTeX previews in section... done.= --

Re: Bug in org-insert-link?

2023-10-09 Thread Guillaume MULLER
Hi, Thanks for the answer... I'll have a look at your links. However, since I wrote the email, I've seen the behavior occur without changing (at least voluntarily) the cursor position in the Org buffer... On 10/5/23 12:18, Ihor Radchenko wrote: Guillaume MULLER writes: ... - Switch back

Re: org beamer strange behaviour

2023-10-09 Thread Fraga, Eric
I haven't looked at your file but do consider running org-lint on the file to see if it picks up anything. -- : Eric S Fraga, with org release_9.6.6-418-g294a4d in Emacs 30.0.50

Re: org beamer strange behaviour

2023-10-09 Thread Guillaume MULLER
On 10/9/23 17:09, Fraga, Eric wrote: I haven't looked at your file but do consider running org-lint on the file to see if it picks up anything. Thanks! I didn't know about org-lint!!! Running it, I got these "errors": 221 low Unknown source block language: 'latex' 252 low Unknown

Re: [BUG] Warning when creating preview

2023-10-09 Thread Edgar Lux
On Oct 9, 2023 at 3:59 PM if I comment out the (add-hook 'org-mode-hook #'org-indent-mode), the error is gone -- Sent with https://mailfence.com Secure and private email -- Sent with https://mailfence.com Secure and private email

org beamer strange behaviour

2023-10-09 Thread Guillaume MULLER
Hi, I'm writing a lot of my courses in Org with a final export to Beamer/PDF. Recently, I tried to improve the slides for a course I gave last year. When I opened the org file, I got a very weird coloring, as if a section was not closed correctly. You can find the org file and a screenshot of

Logging previous SCHEDULED property before changing TODO state of a habit

2023-10-09 Thread Ilya Chernyshov
Hi. Is there anything I can do with my Org config so that every time I change the TODO state of my habit (example below), Org logs inactive timestamp from SCHEDULED property before TODO state change? For example, I have this habit, which I have been forgetting to mark as DONE/MISSED/WHATEVER

Event management

2023-10-09 Thread Rainer Hansen
Hi, I wonder if somebody has used Org mode to plan and manage a webinar where all participants register via LinkedIn? I am running a webinar together with a friend. She will be the main presenter and I will be the host and invite people to the webinar and make people aware of it, which includes

Inconsistent text markup handling when double-nesting markers

2023-10-09 Thread Tom Alexander
I used the following test document: ``` __foo__ **foo** ``` I'd expect the two to behave the same but the first one parses as: ``` (paragraph "_" (subscript "foo") "__" ) ``` Whereas the second parses as: ``` (paragraph (bold (bold "foo" ) ) ) ``` This pattern