Re: Feature request: kill-buffer for org-capture-finalize

2023-09-10 Thread Eduardo Suarez
On Sun, Sep 10, 2023 at 10:57:46AM +, Ihor Radchenko wrote: > Then, what you can do is > > (defun my-org-capture-finalize (arg) > "Like `org-capture-finalize', but kill Org buffer with double prefix arg." > (interactive "P") > (if (equal arg '(16)) > (save-excursion >

Re: [patch] Fixes and improvements in org-latex-language-alist

2023-09-10 Thread Juan Manuel Macías
Ihor Radchenko writes: > For context, I plan to provide a global language-identifier alist that > will link human-readable language names to abbreviations like "de", > "de-de", etc. These abbreviations are not unique to LaTeX, but also used > elsewhere, so there is no guarantee that babel .ini

Re: [patch] Fixes and improvements in org-latex-language-alist (was: ox-latex language handling in Org-9.5 vs 9.6)

2023-09-10 Thread Ihor Radchenko
Max Nikulin writes: > On 09/09/2023 16:11, Ihor Radchenko wrote: >> I am not sure if making a breaking change to public constant is the best >> approach. >> What about simply adding an extra entry: >> ("de" ) >> ("de-de" ) > > Ideally it should not be a public constant. Values should be

Re: [patch] Fixes and improvements in org-latex-language-alist (was: ox-latex language handling in Org-9.5 vs 9.6)

2023-09-10 Thread Max Nikulin
On 09/09/2023 16:11, Ihor Radchenko wrote: I am not sure if making a breaking change to public constant is the best approach. What about simply adding an extra entry: ("de" ) ("de-de" ) Ideally it should not be a public constant. Values should be accessed using a helper that returns "de"

Re: Suggestions for Text-To-Speech (TTS) from Org sources?

2023-09-10 Thread Jens Lechtenboerger
On 2023-09-10, Ihor Radchenko wrote: > Jens Lechtenboerger writes: > >> does someone here produce audio via Text-To-Speech (TTS) from Org >> sources? I plan to do that in the context of emacs-reveal to >> generate voice-over for reveal.js presentations, with open questions >> [1] concerning my

Re: Suggestions for Text-To-Speech (TTS) from Org sources?

2023-09-10 Thread Jens Lechtenboerger
On 2023-09-09, briangpowell wrote: > I've turned OrgMode files into audio desktops > > It was pretty simple > > Just find the code that reveals what an icon is when you hover over it & > pipe it to some text-to-speech engine & then on to usual routes Thank you for the reply. In my case

Re: [patch] Fixes and improvements in org-latex-language-alist

2023-09-10 Thread Ihor Radchenko
Juan Manuel Macías writes: > The fact of avoiding copy/paste is already an advantage. New patch > attached with your suggestions. Thanks! Applied, onto main. I amended the commit message, removing the statement about list of language identifiers and adding a link to this discussion.

Re: Literate programming with calc (help)

2023-09-10 Thread Ypo
I have discovered, taking a look at the Org Manual, that exists an embedded mode for Calc. https://www.gnu.org/software/emacs/manual/html_mono/calc.html#Assignments-in-Embedded-Mode Using "C-x * e" it solves this kind of formula with units: a := 3 m / s t := 7 s a t => > From:     Ihor

Erratum in "The Org Manual" 9.6

2023-09-10 Thread Maske
There are some links, that I am afraid don't work: 17.14.1 Packages that Org cooperates with ‘calc.el’ by Dave Gillespie [...] See Section “Embedded Mode” in calc. # that link doesn't work, it seems it tries to open the file calc.pdf ‘constants.el’ by Carsten Dominik [...]

Re: [patch] Fixes and improvements in org-latex-language-alist

2023-09-10 Thread Juan Manuel Macías
Ihor Radchenko writes: > It is not that complex, really. I suggested the above approach because: > 1. It is easy to read - clearly, ,@de-plist and ,@de-plist are the same >thing. > 2. If we ever need to change de-plist, we should only do it in a single >place. The fact of avoiding

Re: Feature request: kill-buffer for org-capture-finalize

2023-09-10 Thread Ihor Radchenko
Eduardo Suarez writes: > On Sun, Sep 10, 2023 at 08:19:25AM +, Ihor Radchenko wrote: >> (defun my-org-capture-kill-buffer () >> (when (equal current-prefix-arg '(16)) >> (save-excursion >> (org-capture-goto-last-stored) >> (kill-buffer > > Thanks for the

Re: Feature request: kill-buffer for org-capture-finalize

2023-09-10 Thread Eduardo Suarez
On Sun, Sep 10, 2023 at 08:19:25AM +, Ihor Radchenko wrote: > (defun my-org-capture-kill-buffer () > (when (equal current-prefix-arg '(16)) > (save-excursion > (org-capture-goto-last-stored) > (kill-buffer Thanks for the proposed solution. I have tried it and

Re: Suggestions for Text-To-Speech (TTS) from Org sources?

2023-09-10 Thread Ihor Radchenko
Jens Lechtenboerger writes: > does someone here produce audio via Text-To-Speech (TTS) from Org > sources? I plan to do that in the context of emacs-reveal to > generate voice-over for reveal.js presentations, with open questions > [1] concerning my initial, experimental approach. Emacspeak is

Re: Feature request: kill-buffer for org-capture-finalize

2023-09-10 Thread Ihor Radchenko
Eduardo Suarez writes: > I have tried something simple like > > (defun my-org-capture-kill-buffer () >(when (equal current-prefix-arg '(16)) > (kill-buffer))) > > as an after-finalize hook. It seems to recognize the 'current-prefix-arg' > variable. > > However, > > 1. it looks to me

Re: Help me contribute to org

2023-09-10 Thread Ihor Radchenko
em...@supporter.mailer.me writes: > Hello everyone and thank you yantar for the response, > > I did just that: > I have added a Polish translation for everything that I could find and > corrected one existing one. > > I have also attached the diff file to this message. > > Is that alright? Yup.

Re: [patch] Fixes and improvements in org-latex-language-alist

2023-09-10 Thread Ihor Radchenko
Juan Manuel Macías writes: >> (let ((de-plist '(...))) >> `(... >>("de" ,@de-plist) >>("de-de" ,@de-plist) >>...)) >> >> This is copy-paste-proof and does not require breaking changes in the >> value structure. > > I like the idea because it avoids errors, but I don't know if > it's

Re: [BUG] org-export-with-broken-links not respected for (org-icalendar-combine-agenda-files t) [9.6.9 ( @ /home/jorge/.config/emacs/elpa/org-9.6.9/)]

2023-09-10 Thread Ihor Radchenko
"Jorge P. de Morais Neto" writes: > Hi. I am on Gentoo. I wrote the following Elisp function: > > --8<---cut here---start->8--- > (defun J-org-icalendar-agenda-no-babel ( async) > "Invoke `org-icalendar-combine-agenda-files' without babel, maybe ASYNC. > >

Re: Org mode version 9.7-pre (9.7-pre-n/a-g2030c1 @ /home/n/.emacs.d/elpaca/builds/org/); org--get-expected-indentation: useless cond clause

2023-09-10 Thread Ihor Radchenko
No Wayman writes: > When compiling Org, I get the following warning: > > In org--get-expected-indentation: > org.el:19192:8: Warning: Useless clause following default ‘cond’ > clause > > I looked at the source and confirmed it is not a false positive. > The following code is unreachable due to