Re: Seeing all the steps when I run an R code block

2024-04-09 Thread William Denton
On Tuesday, April 9th, 2024 at 09:03, Ihor Radchenko wrote: > > Here's one big problem. I have a file, /home/wtd/books/reading/test-r.org, > > and > > in it is this R block: > > > > # - > > > > #+begin_src R :session R:testing :results value > > 1 > > #+end_src > > > > # - > > > > I

Re: Using org-latex-preview in other major modes

2024-04-09 Thread Tony Zorman
On Sun, Apr 07 2024 23:36, Karthik Chikmagalur wrote: > You can ignore `org-latex-preview-live--src-buffer-setup', this is for > previewing when using `org-edit-special' (C-c '), which does not apply > to any other major mode. So `org-latex-preview-live--ensure-overlay' is > the only function you

Re: [Q] startup hook: How do I detect if the current buffer has been opened programmatically?

2024-04-09 Thread Rudi C
`find-file-hook` seems not to have false negatives, at least. Using `(window-live-p (get-buffer-window (current-buffer) 'visible))` has false negatives for me (i.e., it returns nil for some interactive buffers). Thanks, everyone. On Tue, Apr 9, 2024 at 11:06 PM Karthik Chikmagalur < karthikchikma

Re: [Q] startup hook: How do I detect if the current buffer has been opened programmatically?

2024-04-09 Thread Karthik Chikmagalur
>> Org-mode occasionally opens files automatically, for instance, when >> inserting or opening ID links, or during certain searches. I need to >> determine if a buffer was opened programmatically or manually by the user >> within the startup hooks. This distinction is important because, e.g., I >>

Re: When src block result is an image, how to define caption, html and latex attributes ?

2024-04-09 Thread Ihor Radchenko
Sébastien Gendre writes: >> P.S. >> >> We should really indicate the difference between normal and affiliated >> keywords better. > > What do you mean ? You are not the first person stumbling upon this exact wrinkle with src block results. So, it would be nice to address it somehow. -- Ihor Ra

Re: When src block result is an image, how to define caption, html and latex attributes ?

2024-04-09 Thread Sébastien Gendre
Ihor Radchenko writes: > P.S. > > We should really indicate the difference between normal and affiliated > keywords better. What do you mean ?

Re: When src block result is an image, how to define caption, html and latex attributes ?

2024-04-09 Thread Ihor Radchenko
Sébastien Gendre writes: > Example, before regenerate the source block result: > > > > #+CAPTION: Test image > #+HTML_ATTR: :width 30px > #+RESULTS: > [[file:images/simple-test.png]] You have a typo in one of the affiliated keywords. Should be #+ATTR_HTML: :width 30px #+HTML_ATTR: is a very di

Re: When src block result is an image, how to define caption, html and latex attributes ?

2024-04-09 Thread Sébastien Gendre
If I name the source block, it work. Is it because: * When a source block is named, it's result is also named * When a result is named, Org-mode can locate it and replace its value * But when a result is not named, Org-mode insert a #+RESULTS: just after the block and create a new one if it c

Re: When src block result is an image, how to define caption, html and latex attributes ?

2024-04-09 Thread Sébastien Gendre
If I place the #+CAPTION: and #+HTML_ATTR before the #+RESULTS:, then generate again the result of the source block, I got a new #+RESULTS: on top of the previous and its caption and html attributes. Example, before regenerate the source block result: #+CAPTION: Test image #+HTML_ATTR: :width 3

Re: [BUG] org-element-at-point warning with org-timer in agenda [9.7-pre, release_N/A-N/A-b45b39 @ /home/bhavin/.emacs.d/elpa/org-9.7pre0.20240405.140341/, ]

2024-04-09 Thread Bhavin Gandhi
Here is a patch which fixes the problem. From d34e2cd1a1e830acc6d1575a32522f8e9e5b4d99 Mon Sep 17 00:00:00 2001 From: Bhavin Gandhi Date: Mon, 8 Apr 2024 23:33:29 +0530 Subject: [PATCH] org-timer-set-timer: Don't run `org-entry-get' in non Org buffers * lisp/org-timer.el (org-timer-set-timer): A

Link to #ID-id:

2024-04-09 Thread Daniel Clemente
Hi, after updating org-mode and emacs to latest commits, I have seen that some links to IDs in different files are exported like this: some link: link Shouldn't it be?: otherfile.html#c5m2je81pue0 I didn't have time to debug this yet or see if it's from my setup. I may do it in the next d

Re: When src block result is an image, how to define caption, html and latex attributes ?

2024-04-09 Thread Fraga, Eric
On Tuesday, 9 Apr 2024 at 16:11, Sébastien Gendre wrote: > If I add them manually after the result generation, and generate again > the result, the #+CAPTION, #+LATEX_ATTR and #+HTML_ATTR are moved after > the result. Does this happen if your src block is NAMEd? -- : Eric S Fraga, with org rele

Re: When src block result is an image, how to define caption, html and latex attributes ?

2024-04-09 Thread Ihor Radchenko
Sébastien Gendre writes: > When a source block create a result who is an image, how can I define > the #+CAPTION, #+LATEX_ATTR and #+HTML_ATTR of this image ? > > If I add them manually after the result generation, and generate again > the result, the #+CAPTION, #+LATEX_ATTR and #+HTML_ATTR are m

Re: Using org-latex-preview in other major modes

2024-04-09 Thread Ihor Radchenko
Karthik Chikmagalur writes: >> We may go even further, and extend the previews to be not just for >> LaTeX. Might as well preview html/image links/pdf links/etc. > > I agree in principle but I think this is difficult to do with > org-latex-preview because the async process chain and overlay handl

Re: [Q] startup hook: How do I detect if the current buffer has been opened programmatically?

2024-04-09 Thread Ihor Radchenko
Rudi C writes: > Org-mode occasionally opens files automatically, for instance, when > inserting or opening ID links, or during certain searches. I need to > determine if a buffer was opened programmatically or manually by the user > within the startup hooks. This distinction is important because

Re: Update contact info

2024-04-09 Thread Ihor Radchenko
Amy Grinn writes: > I would like to update my old contact info in this project. > ... > +Amy Grinn Tyler Grinn We have one commit under your name: https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=e268e479718e04f590324a29036f081a3f80f208 Bastien, may you check which name is used

Re: Experimental public branch for inline special blocks

2024-04-09 Thread Ihor Radchenko
Max Nikulin writes: > On 09/04/2024 15:52, Ihor Radchenko wrote: >> Aside: It looks like your public branch is not up-to-date as the time >>of writing this email - I do not see commits changing the syntax to >>@foo{...} and @@{...} yet, > > Do you have in your local copy the following? >

When src block result is an image, how to define caption, html and latex attributes ?

2024-04-09 Thread Sébastien Gendre
Hello, When a source block create a result who is an image, how can I define the #+CAPTION, #+LATEX_ATTR and #+HTML_ATTR of this image ? If I add them manually after the result generation, and generate again the result, the #+CAPTION, #+LATEX_ATTR and #+HTML_ATTR are moved after the result. In

Re: Persisting the current working directory in an org-babel session

2024-04-09 Thread Ihor Radchenko
Ihor Radchenko writes: >> For example, consider the following: >> >> * Literate programming in a single session >> :PROPERTIES: >> :header-args: :var DIR="/Users/adam/Desktop/test" >> :END: >> >> #+BEGIN_SRC emacs-lisp :session *elisp* >> (cd DIR) >> #+END_SRC >

Re: Seeing all the steps when I run an R code block

2024-04-09 Thread Ihor Radchenko
William Denton writes: > Here's one big problem. I have a file, /home/wtd/books/reading/test-r.org, > and > in it is this R block: > > # - > > #+begin_src R :session R:testing :results value > 1 > #+end_src > > # - > > If I execute that with C-c C-c, the R session buffer starts, but in

Re: columnview over file not working

2024-04-09 Thread Ihor Radchenko
Vlastimil Vondra writes: > OK, I found out that it is not working if the file (reading_list.org) is > not opened in the buffer. If opened then it works all right. > > I guess it should be working like that. Fixed, on bugfix. The not-yet-open file will be automatically opened. https://git.savann

Re: Experimental public branch for inline special blocks

2024-04-09 Thread Max Nikulin
On 09/04/2024 15:52, Ihor Radchenko wrote: Aside: It looks like your public branch is not up-to-date as the time of writing this email - I do not see commits changing the syntax to @foo{...} and @@{...} yet, Do you have in your local copy the following? latest commit ba2fc870c 2024-03-1

Re: [BUG] Partially broken Org mode when remote setupfile is unavailable

2024-04-09 Thread Max Nikulin
On 09/04/2024 15:07, Ihor Radchenko wrote: Ihor Radchenko writes: #+setupfile: http://localhost:8000/setup-http-987.org * Heading [[https://orgmode.org/][Link]] [...] See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=5 The Emacs bug has been fixed. There is no workaround we can employ

Re: Experimental public branch for inline special blocks

2024-04-09 Thread Ihor Radchenko
Juan Manuel Macías writes: > Finally, I have made public on GitLab my experimental branch for the new > (possible) inline-special-block element: > > I have finally finished my review of the previous related discussions. See my comments and proposals

Re: [BUG] Partially broken Org mode when remote setupfile is unavailable

2024-04-09 Thread Ihor Radchenko
Ihor Radchenko writes: >> --- 8< --- >> #+setupfile: http://localhost:8000/setup-http-987.org >> >> * Heading >> >> [[https://orgmode.org/][Link]] >> --- >8 --- >> >> I expect that inaccessible setupfiles are just ignored and Org should >> work as without "#+setupfile:" lines. > > This is becaus