Re: [POLL] Should we enable or disable automatic tag alignment by default everywhere

2024-04-17 Thread Ihor Radchenko
Samuel Wales writes: > for some reason 9.6.22 says org-auto-align-tags is set to t by default. Hmm... That's a good reason. And I need to get some sleep. The default is really t. The change is still breaking though, but only for people who customized ~org-auto-align-tags~. -- Ihor Radchenko

Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2024-04-17 Thread Karthik Chikmagalur
> I've got problem when I use this version of org-latex preview: > > RUNNING: dvisvgm --page=1- --optimize --clipjoin --relative --no-fonts > --bbox=preview -o c\:/Users/artsi0m/AppData/Local/Temp/org-tex-DAJVTr-%9p.svg > c\:/Users/artsi0m/AppData/Local/Temp/org-tex-DAJVTr.dvi > > ERROR: can't op

org-persist-write slowing down kill-buffer

2024-04-17 Thread Karthik Chikmagalur
Hi, I've been noticing that kill-buffer blocks Emacs for a noticeable period when killing org buffers. Here are elp results obtained by instrumenting org-persist-* and kill-buffer: | Function name | Call count | Elapsed time | Average time | |-

Re: [POLL] Should we enable or disable automatic tag alignment by default everywhere

2024-04-17 Thread Samuel Wales
for some reason 9.6.22 says org-auto-align-tags is set to t by default. [btw, i use proportional fonts, so org-tags-column is 0.] -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com

Re: Using search options in HTTP-style links

2024-04-17 Thread Joseph Turner
Ihor Radchenko writes: > Joseph Turner writes: > >> ... >> (eww "https://ushin.org/needs-list.org#%3A%3A%23care";) >> >> ...loads the file in eww-mode with point at the top of the file. >> >> I think it would be more useful to instead activate org-mode (or a mode >> which derives from it - "eww-

Re: [BUG] LaTeX preview should use a subdirectory in /tmp

2024-04-17 Thread Emmanuel Charpentier
Le mercredi 17 avril 2024 à 20:18 +, Ihor Radchenko a écrit : > Emmanuel Charpentier writes: [ Snip... ] > What if you do M-x trace-function org-compile-file-commands No such function : I just have org-compile-file , which I traced. > > and run the preview. > Then, a buffer should appe

Re: [BUG] LaTeX preview should use a subdirectory in /tmp

2024-04-17 Thread Ihor Radchenko
Emmanuel Charpentier writes: >> Assuming that your `org-preview-latex-default-process' is using the >> default value of 'dvipng, does it help if you change the image >> convertor >> command to use absolute path? > > I didn't know that one could do that : the placeholders are not well > documented

Re: [BUG] LaTeX preview should use a subdirectory in /tmp

2024-04-17 Thread Emmanuel Charpentier
Le mercredi 17 avril 2024 à 16:48 +, Ihor Radchenko a écrit : > Emmanuel Charpentier writes: > > > I have a case where the current way of forcing the temporary > > directory > > to me `/tmp` is wrong. Running emacs on Ubuntu **under WSL2**,, > > exporting latex snippets to ODT *as images* fai

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

2024-04-17 Thread Alexander Gogl
Dear Ihor, thank's for your advice! Here is the updated patch. Now it works. .. ox-latex: New option to customize LaTeX footnote command Some LaTeX classes define their own footnote commands. For example, kaobook (https://github

Re: [BUG] Org-Agenda leaves frame around [9.7-pre (release_9.6.8-785-g72bbf8.dirty @ /home/bidar/.local/private/etc/emacs/lib/org/lisp/)]

2024-04-17 Thread Ihor Radchenko
Björn Bidar writes: >>> E.g.: >>> 1. I capture a link using org-protocol >>> 2. Switch to the org-buffer >>> 3. C-c C-l >>> 4. RET <- frame closes however links isn't inserted into the target >>> org-buffer >> >> May you provide more details about how to reproduce? > > What do you miss after t

Re: [BUG] LaTeX preview should use a subdirectory in /tmp

2024-04-17 Thread Ihor Radchenko
Emmanuel Charpentier writes: > I have a case where the current way of forcing the temporary directory > to me `/tmp` is wrong. Running emacs on Ubuntu **under WSL2**,, > exporting latex snippets to ODT *as images* fails : the `.dvi` files > are correctly compiled and placed in `/tmp{, but the con

Re: [POLL] Should we enable or disable automatic tag alignment by default everywhere

2024-04-17 Thread Ihor Radchenko
William Denton writes: > On Wednesday, April 17th, 2024 at 06:21, Ihor Radchenko > wrote: > >> I'd like to ask you, Org mode users, whether we should flip the default >> value of ~org-auto-align-tags~ to t or leave it as nil > > I use proportional fonts for regular text (with the mixed-pitch pa

Re: [C-c C-q] org-set-tags-command completed tags does not contains current buffer local tags

2024-04-17 Thread Ihor Radchenko
"Christopher M. Miles" writes: > In the [C-c C-q] org-set-tags-command, I found it does not complete tags in > current buffer. > ... > Steps to reproduce: > > 1. create an empty Org mode file and open it as a Emacs buffer. > 2. Fill in Org content as bellowing > > #+begin_src org > * headline 1

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

2024-04-17 Thread Ihor Radchenko
Alexander Gogl writes: > I completed the patch (see attachment). Please let me know if I made any > mistake in the patch or if I should send the patch to another E-Mail-Address. Thanks! We use Org mailing list (public) to send patches and discuss Org mode development. I added Org mailing list

Re: PATCH allow explicit style= in #+cite_export: biblatex

2024-04-17 Thread Pedro Andres Aranda Gutierrez
BTW, I was thinking that maybe "\\`[^=]+=" may be better than matching style= anywhere in the options string... Open to discuss it... /PA On Wed, 17 Apr 2024 at 09:00, Pedro Andres Aranda Gutierrez < paag...@gmail.com> wrote: > Stop the press... I discovered a small bug in the last patch. > Attac

Re: [BUG] LaTeX preview should use a subdirectory in /tmp

2024-04-17 Thread Emmanuel Charpentier
On 25/03/2024 19:49, Max Nikulin wrote: > > (defun org-ensure-tmp-dir (dir-symbol prefix) > >   (let ((dir (symbol-value dir-symbol))) > >     ;; Temporary directory has not been cleaned. > >     (or (and dir (file-directory-p dir) dir) > > >`if' should be used instead of `or' here. > > > >> >>

Re: [BUG] LaTeX preview should use a subdirectory in /tmp

2024-04-17 Thread copropriete27ruemoret
On 25/03/2024 19:49, Max Nikulin wrote: > > (defun org-ensure-tmp-dir (dir-symbol prefix) > >   (let ((dir (symbol-value dir-symbol))) > >     ;; Temporary directory has not been cleaned. > >     (or (and dir (file-directory-p dir) dir) > > >`if' should be used instead of `or' here. > > > >> >>

Re: [POLL] Should we enable or disable automatic tag alignment by default everywhere

2024-04-17 Thread William Denton
On Wednesday, April 17th, 2024 at 06:21, Ihor Radchenko wrote: > I'd like to ask you, Org mode users, whether we should flip the default > value of ~org-auto-align-tags~ to t or leave it as nil I use proportional fonts for regular text (with the mixed-pitch package). In this situation, as far

Re: [PATCH v2] org-faq.org: Inline comments

2024-04-17 Thread Max Nikulin
On 15/04/2024 19:17, Ihor Radchenko wrote: +#+begin_src org +The following line may become a patagraph separator. +@@comment: might give unexpected effect @@ +Put some text before @@comment: a better variant +@@ and after instread. +#+end_src I am no longer able to reproduce the problem with

[C-c C-q] org-set-tags-command completed tags does not contains current buffer local tags

2024-04-17 Thread Christopher M. Miles
In the [C-c C-q] org-set-tags-command, I found it does not complete tags in current buffer. #+begin_src emacs-lisp (defun org-set-tags-command (&optional arg) ... (let* (... (local-table (or org-current-tag-alist (org-get-buffer-tags))) ;; the `org-current-tag-alist' is fro

Re: [BUG] query-replace breaks org-mode [9.6.6 (release_9.6.6 @ /Applications/Emacs.app/Contents/Resources/lisp/org/)]

2024-04-17 Thread Ihor Radchenko
Joe Gilder writes: > Noticed this a few times. When I run query-replace, it functions as usual. > However, when I’m done with the query-replace, it seems to break org-fold. I > can’t fold/unfold headings anymore. > > I had the same issue the other day with replace-string as well. > > Killing

Re: [POLL] Should we enable or disable automatic tag alignment by default everywhere

2024-04-17 Thread Gautier Ponsinet
Hello Ihor, Ihor Radchenko [2024-04-17 10:21 +]: > I'd like to ask you, Org mode users, whether we should flip the default > value of ~org-auto-align-tags~ to t or leave it as nil. I am voting for applying the change you propose and setting the default value of ~org-auto-align-tags~ to t. (

[POLL] Should we enable or disable automatic tag alignment by default everywhere

2024-04-17 Thread Ihor Radchenko
Dear all, We have ~org-auto-align-tags~ option that controls whether editing commands re-align the tags. However, this option is only respected by some editing commands, like changing the headline level. Many other editing commands re-align tags unconditionally. For example, when * typing righ

Re: PATCH allow explicit style= in #+cite_export: biblatex

2024-04-17 Thread Pedro Andres Aranda Gutierrez
Stop the press... I discovered a small bug in the last patch. Attached is a new version. /PA On Wed, 17 Apr 2024 at 08:22, Pedro Andres Aranda Gutierrez < paag...@gmail.com> wrote: > Hi again > > Rationale of the patch: > Currently, when the options to biblatex are _not_ xxx/xxx format, a style=