[ODT?] (was: how to export an org file, to 2 different locations (in to different formats))

2022-05-27 Thread Uwe Brauer
> Hi Uwe, > Uwe Brauer writes: > One (pedestrian) way to achieve it, with this function: I tried the following #+begin_example #+EXPORT_FILE_NAME: myfile-office #+begin_src emacs-lisp :exports none :eval never-export :results silent (my-org/export-to-path 'html "~/Desktop/" "html") #+end_s

Re: how to export an org file, to 2 different locations (in to different formats)

2022-05-27 Thread Uwe Brauer
>>> "JMM" == Juan Manuel Macías writes: > Juan Manuel Macías writes: >> One (pedestrian) way to achieve it, with this function: > I think it can be done better this way, defining an advice around > 'org-export-output-file-name'. > In your org file you should add these two local variables: > #

Re: how to export an org file, to 2 different locations (in to different formats)

2022-05-27 Thread Uwe Brauer
> Hi Uwe, > Uwe Brauer writes: > One (pedestrian) way to achieve it, with this function: > (defun my-org/export-to-path (backend export-path extension) > (org-element-map (org-element-parse-buffer) 'keyword > (lambda (k) > (when (string= (org-element-property :key k) "EXPORT_FILE_NA

Org mode together with bug-reference-mode

2022-05-27 Thread Paul Kaletta
Hi, I'm using GNU Emacs 27.2 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.30, cairo version 1.17.4) of 2021-08-07. This Emacs comes with Org mode version 9.4.4 (release_9.4.4 @ /usr/share/emacs/27.2/list/org). I want to use Emacs bug-reference-mode together in my Org mode setup. Here'

Re: Eev-wconfig.el etc etc, or: "Exercise: Learn Org!"

2022-05-27 Thread Ihor Radchenko
Eduardo Ochs writes: > On Fri, 27 May 2022 at 11:30, Ihor Radchenko wrote: >> You are discussing too many things at once in one video. > > Yes - that's why I made an index for the video: > > (find-1stclassvideoindex "2022eevwconfig") > http://angg.twu.net/.emacs.videos.html#2022eevwconfig H

Re: Proposal: 'executable' org-capture-templaes

2022-05-27 Thread Ihor Radchenko
Arthur Miller writes: > Simplicity comes from the org-templates. Me, and I guess other people are > familiar with org-catpure templates already, and I mean, can it be simpler to > create a menu of choices then a simple list: > > '(("key1" "label1" exec (lambda () ...)) > ("key2" "label2" exec (

Re: [PATCH] Re: Change in `org-cycle-hook' breaks behavior

2022-05-27 Thread Ihor Radchenko
Tor Kringeland writes: >> A more efficient way could be introducing a new customization similar to >> org-cycle-hide-block-startup. Say, it can be >> org-cycle-hide-drawer-startup. See the attached patch. > > I can always hide the > drawers by adding `org-cycle-hide-drawers' to `org-cycle-hook'

Re: [BUG] 67275f4 broke evil-search Re: [PATCH 10/35] Implement link folding

2022-05-27 Thread Ihor Radchenko
Tom Gillespie writes: > I think we might want to update the documentation to mention > issue with evil for now We can, but it will only be required if evil devs don't fix the issue in a reasonable time frame. Best, Ihor

Re: [BUG] 67275f4 broke evil-search Re: [PATCH 10/35] Implement link folding

2022-05-27 Thread Ihor Radchenko
Tom Gillespie writes: >> Note that if evil were to comply with the canonical isearch >> implementation and respect isearch-mode-end-hook, there would be no >> issue. > > I think we might want to update the documentation to mention > issue with evil for now, and alert the evil devs about this chan

Re: [tip] org-publish to work with (very) large books

2022-05-27 Thread Ihor Radchenko
Juan Manuel Macías writes: > Ihor Radchenko writes: > >> I am not sure if I understand correctly. Do you mean that you only >> preview the book parts you are currently working on via latexmk -pvc? >> What kind of more control are you referring to? > > The -pvc flag means that if latexmk detects a

Re: [BUG] 67275f4 broke evil-search Re: [PATCH 10/35] Implement link folding

2022-05-27 Thread Tom Gillespie
The workaround from the other thread to (setq org-fold-core-style 'overlays) is perfect. > The whole point of the patch is _not_ using overlays. For performance > reasons. Yep, the workaround is sufficient for now, and the note on performance for large files in the docstring makes it clear what

Re: [PATCH] Re: No mathematics in Texinfo exports

2022-05-27 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Ihor Radchenko writes: > >> Do not wait one month. Just 5 working days. Then, do not hesitate to >> follow up. > > And ... done! So, what happens next? We are back to the previous comments on the patch itself. You need to address the problem with older versions of te

Re: [BUG] 67275f4 broke evil-search Re: [PATCH 10/35] Implement link folding

2022-05-27 Thread Ihor Radchenko
Tom Gillespie writes: > Might restoring the invisible overlay text property restore > the old behavior? Is there a reason it was removed? The whole point of the patch is _not_ using overlays. For performance reasons. You can, however, switch to the old behavior by setting org-fold-core-style to

Re: [PATCH] org-refile.el: show refile targets with doc. title

2022-05-27 Thread Ihor Radchenko
Mikhail Skorzhinskii writes: > Thank you for reviewing the changes. Sorry for the sloppy patch, I've > retested everything and added a few additional fixes, there were more > problems. Thanks! And sorry for the slow review. Your email was lost near the tail of the todo list. > I've added a coup

Re: org-persist-gc and tramp

2022-05-27 Thread Tom Gillespie
> Off topic: Did you report the issue to evil devs? Not yet. Needed to understand what is going on. > alternative workaround could be setting org-fold-core-style to > 'overlays. Yes! This fixes the issue, and is consistent with my observations in the other thread (I will respond with more there)

Re: [BUG] markdown blocks remain visible when they should be folded

2022-05-27 Thread Tom Gillespie
Confirming fixed. Many thanks! Tom

Re: [BUG] Setting compile command causes fontification error [9.5 (release_9.5-661-g5e0afb @ /home/quintus/.emacs.d/org-mode/lisp/)]

2022-05-27 Thread Ihor Radchenko
"Christopher M. Miles" writes: > From the backtrace, seems (buffer-file-name) returned nil, I guess you > first created a new buffer and have not saved it to file. That caused it > return nil. Not Org Mode problem. Not saving file is a common problem in > young programmer as I experienced. No off

Re: [BUG] 67275f4 broke evil-search Re: [PATCH 10/35] Implement link folding

2022-05-27 Thread Tom Gillespie
> It appears to respect isearch-filter-predicate, but not > isearch-mode-end-hook. This is true only when isearch is used as the module via (evil-select-search-module 'evil-search-module 'isearch), and indeed, when using evil search in that way headings no longer refold. When using evil-search, th

Re: [BUG] Setting compile command causes fontification error [9.5 (release_9.5-661-g5e0afb @ /home/quintus/.emacs.d/org-mode/lisp/)]

2022-05-27 Thread Christopher M. Miles
From the backtrace, seems (buffer-file-name) returned nil, I guess you first created a new buffer and have not saved it to file. That caused it return nil. Not Org Mode problem. Not saving file is a common problem in young programmer as I experienced. No offence. Marvin Gülker writes: > Remembe

Re: [BUG] markdown blocks remain visible when they should be folded

2022-05-27 Thread Ihor Radchenko
Tom Gillespie writes: > The markdown blocks remain visible and have the invisible > text property set to nil, when folded #+end_src will turn into > ... but the markdown remains visible. The whole block will > be left open if any of the markdown list or heading chars are > present in the block. >

[BUG] markdown blocks remain visible when they should be folded

2022-05-27 Thread Tom Gillespie
One of the commits between ffdc508429c58716272743c0e0650bb721fd906a (good) and 67275f4664ce00b5263c75398d78816e7dc2ffa6 (bad) a change was introduced that broke folding for markdown blocks. I'm not sure of the exact commit because folding is completely broken for all the commits in between. Lookin

Re: how to export an org file, to 2 different locations (in to different formats)

2022-05-27 Thread Juan Manuel Macías
Juan Manuel Macías writes: > One (pedestrian) way to achieve it, with this function: I think it can be done better this way, defining an advice around 'org-export-output-file-name'. In your org file you should add these two local variables: # my-latex-export-path: "~/path/to/myfile.tex" # my-ht

Re: org-persist-gc and tramp

2022-05-27 Thread Ihor Radchenko
Tom Gillespie writes: > I was running a version from back in december due to the evil > search issues I was having. Off topic: Did you report the issue to evil devs? Note that an alternative workaround could be setting org-fold-core-style to 'overlays. Best, Ihor

Re: org-persist-gc and tramp

2022-05-27 Thread Tom Gillespie
> Can you confirm that you are using the latest version of Org? I was running a version from back in december due to the evil search issues I was having. Updating to the latest version resolves indeed resolves the org-persist issue. Thanks! Tom

Re: Eev-wconfig.el etc etc, or: "Exercise: Learn Org!"

2022-05-27 Thread Eduardo Ochs
Hi Ihor! Thanks for your questions! On Fri, 27 May 2022 at 11:30, Ihor Radchenko wrote: > You are discussing too many things at once in one video. Yes - that's why I made an index for the video: (find-1stclassvideoindex "2022eevwconfig") http://angg.twu.net/.emacs.videos.html#2022eevwconfig

Re: org-persist-gc and tramp

2022-05-27 Thread Ihor Radchenko
Tom Gillespie writes: > While debugging an unrelated issue I noticed that > tramp was initiating a new connection every time > save-buffers-kill-emacs ran. I eventually tracked it > down to org-persist-gc running on kill-emacs-hook. > ... > I see a couple potential fixes. > - skip gc for remote f

org-persist-gc and tramp

2022-05-27 Thread Tom Gillespie
While debugging an unrelated issue I noticed that tramp was initiating a new connection every time save-buffers-kill-emacs ran. I eventually tracked it down to org-persist-gc running on kill-emacs-hook. It turns out that org-persist--index held a record for a remote file, and the transparency of t

Re: how to export an org file, to 2 different locations (in to different formats)

2022-05-27 Thread Juan Manuel Macías
Hi Uwe, Uwe Brauer writes: > Hi > > Currently I use > #+EXPORT_FILE_NAME: /home/oub/Desktop/some-stuff.html > > To export my org file in html format to that location. > > But I would also like to export it as a latex file to a different > location, without modifying the above line, or to be more

how to export an org file, to 2 different locations (in to different formats)

2022-05-27 Thread Uwe Brauer
Hi Currently I use #+EXPORT_FILE_NAME: /home/oub/Desktop/some-stuff.html To export my org file in html format to that location. But I would also like to export it as a latex file to a different location, without modifying the above line, or to be more precise to add a different location, lik

Re: [BUG] org-open-file immediately termininates when calling xdg-open that calls emacsclient

2022-05-27 Thread Ihor Radchenko
Max Nikulin writes: >> With this exact init.el, trying to run >> (let ((process-connection-type nil)) >>(start-process-shell-command "1" nil "xdg-open ~/.bashrc")) > > Does it mean that you can not reproduce it with emacsclient instead of > xdg-open? Anyway I can not reproduce it with Emacs-

Re: Allow Currency Symbols and Grouping Commas in Table Numbers

2022-05-27 Thread Ihor Radchenko
"Daniel E. Doherty" writes: > | Description | Amount | > |--+| > | Mortage | 125,000.26 | > | Credit Cards | 6,325.00 | > | Auto Loan| 14,853.00 | > |--+| > | Total| 1323.26| > #+TBLFM: @5$2=vsum(@I..@II) > > Note that t

Re: Proposal: 'executable' org-capture-templaes

2022-05-27 Thread Max Nikulin
On 27/05/2022 19:17, Arthur Miller wrote: Ihor Radchenko writes: Is there any reason why you dislike transient (now part of Emacs core)? It is not about me disliking transient, I am sure it is a great library. It is more about simplicity and efficiency. Entire org-capture is ~2/3 of the size

Re: Eev-wconfig.el etc etc, or: "Exercise: Learn Org!"

2022-05-27 Thread Ihor Radchenko
Eduardo Ochs writes: > I made a video that is mainly for people who are new to Emacs and who > are using M$ Windows, and it ends with an exercise that is roughly > this: "...now download a .zip file with Rainer Koenig's videos from > , unpack it som

Re: Custom beamer blocks for pros and cons list

2022-05-27 Thread andrés ramírez
Hi Ihor. > "Ihor" == Ihor Radchenko writes: Ihor> Axel Kielhorn writes: >> #+begin_problock Pros @@latex:{Probloc}@@ - New. - Other Pro. - Additional Pro. >> #+end_problock Ihor> Also, there is #+attr_latex: Ihor> #+attr_latex: :options {Problock} #+begin_problock #+

Re: Custom beamer blocks for pros and cons list

2022-05-27 Thread andrés ramírez
Hi. Axel. > "Axel" == Axel Kielhorn writes: [...] >> #+LaTeX_Header: \newenvironment<>{problock}[1]{% Axel> The =problock= environment takes 1 argument, but you supply none. Thanks. That part would have been very difficult to realize for a latex-beginner. Axel> You can suppl

Re: Allow Currency Symbols and Grouping Commas in Table Numbers

2022-05-27 Thread Daniel E. Doherty
On Fri, May 27 2022, Ihor Radchenko wrote: Ihor, thanks for your thoughts, but this does not solve my problem. Here is an sample org table that exemplifies the problem: == #+begin_SRC emacs-lisp (setq org-calc-default-modes '(calc-internal-

Re: [PATCH] Re: Change in `org-cycle-hook' breaks behavior

2022-05-27 Thread Tor Kringeland
Ihor Radchenko writes: > I assume that you have org-startup-folded set to 't. Then, what you are > seeing is caused by org-cycle-set-startup-visibility that folds all the > drawers unless org-startup-folded is set to 'showeverything. Yes, that is my customization :) > A more efficient way could

Re: Proposal: 'executable' org-capture-templaes

2022-05-27 Thread Arthur Miller
Ihor Radchenko writes: > Arthur Miller writes: > >> I was playing with org-capture today, and it strike me that it could be used >> as >> a simple and lightweight alternative to create GUIs for user options, >> somewhat >> resembling the use of well-known hydra/transient or built-in help macro

Re: [BUG] org-open-file immediately termininates when calling xdg-open that calls emacsclient

2022-05-27 Thread Max Nikulin
On 27/05/2022 13:19, Ihor Radchenko wrote: I managed to narrow down the reproducer with the following minimal configuration: ~/.emacs.d/init.el --- (require 'server) (unless (server-running-p) (server-start)) (setenv "DISPLAY" ":0.0") (define-key input-decode-map (kbd "C-[")

Re: Allow Currency Symbols and Grouping Commas in Table Numbers

2022-05-27 Thread Eric S Fraga
On Friday, 27 May 2022 at 19:17, Ihor Radchenko wrote: > You are right. However, non-letter symbols do not work. Try, € or ☺️. Interesting. Seems rather strange but definitely the case. :-( I guess I've only ever used Greek symbols if not ASCII. -- : Eric S Fraga, with org release_9.5.3-511-g8e

Re: [tip] org-publish to work with (very) large books

2022-05-27 Thread Juan Manuel Macías
Ihor Radchenko writes: > I am not sure if I understand correctly. Do you mean that you only > preview the book parts you are currently working on via latexmk -pvc? > What kind of more control are you referring to? The -pvc flag means that if latexmk detects any modification to any document involv

Re: Opening org-cite links with different application

2022-05-27 Thread Alessandro Bertulli
Thanks to all for your answers! Max wrote: > I mean >(call-process "xdg-open" nil 0 nil url) > with "sioyek" instead of "xdg-open" if you do not like to set the > application as the default handler for PDF files. It will allow to avoid > additional settings for shell buffers. Of course, you

Re: Allow Currency Symbols and Grouping Commas in Table Numbers

2022-05-27 Thread Ihor Radchenko
Eric S Fraga writes: > On Friday, 27 May 2022 at 16:22, Ihor Radchenko wrote: >> However, calc does not appear work with unicode. > > Are you sure? This works just fine for me with embedded Calc: > ... > δx := (b - a) / n => 0.01 > ... > Note use of δ. I use Greek characters all the time in my

Re: Allow Currency Symbols and Grouping Commas in Table Numbers

2022-05-27 Thread Eric S Fraga
On Friday, 27 May 2022 at 16:22, Ihor Radchenko wrote: > However, calc does not appear work with unicode. Are you sure? This works just fine for me with embedded Calc: --8<---cut here---start->8--- n := 100 a := 0 b := 1.0 δx := (b - a) / n => 0.01 i :=

[BUG] Setting compile command causes fontification error [9.5 (release_9.5-661-g5e0afb @ /home/quintus/.emacs.d/org-mode/lisp/)]

2022-05-27 Thread Marvin Gülker
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: Custom beamer blocks for pros and cons list

2022-05-27 Thread Ihor Radchenko
Axel Kielhorn writes: > #+begin_problock Pros > @@latex:{Probloc}@@ > - New. > - Other Pro. > - Additional Pro. > #+end_problock Also, there is #+attr_latex: #+attr_latex: :options {Problock} #+begin_problock #+end_problock Best, Ihor

Re: Allow Currency Symbols and Grouping Commas in Table Numbers

2022-05-27 Thread Ihor Radchenko
"Daniel E. Doherty" writes: > I often use org table to perform calculations and export those tables > to LaTeX documents. > > One thing I always wished I could do with org tables is get it to > allow numbers to be decorated with currency symbols, the dollar, euro, > yen, etc., as well as grouping

Re: Custom beamer blocks for pros and cons list

2022-05-27 Thread Axel Kielhorn
> Am 26.05.2022 um 23:32 schrieb Andrés Ramírez : > You want something like this as the resulting LaTeX code: \begin{frame}[label={sec:org5359014}]{Comparisson} \begin{columns} \begin{column}{0.45\columnwidth} \begin{block}{Pros}% <- superfluous environment \begin{problock}{Problock} %

Re: Help with my first elisp

2022-05-27 Thread Orm Finnendahl
Am Mittwoch, den 25. Mai 2022 um 10:24:01 Uhr (+0200) schrieb to...@tuxteam.de: > > Just to avoid confusion: Emacs Lisp does distinguish case. Traditional > Lisp doesn't. I know you know, but people could misunderstand the above. Yes, that was a bit imprecise ;-) Best, Orm --

[PATCH] Re: Change in `org-cycle-hook' breaks behavior

2022-05-27 Thread Ihor Radchenko
Tor Kringeland writes: > In Org 9.5, `org-cycle-hook' includes `org-cycle-hide-drawers', which > hides the drawer after opening the contents of a headline with > `org-cycle'. However, if you removed `org-cycle-hide-drawers' from the > hook, `org-cycle' would show you the drawers (at least the PR

Re: [PATCH] Re: No mathematics in Texinfo exports

2022-05-27 Thread Rudolf Adamkovič
Ihor Radchenko writes: > Do not wait one month. Just 5 working days. Then, do not hesitate to > follow up. And ... done! So, what happens next? Rudy -- "The whole science is nothing more than a refinement of everyday thinking." -- Albert Einstein, 1879-1955 Rudolf Adamkovič [he/him] Studeno