RE: [BUG] Warning (org-element): ‘org-element-at-point’ cannot be used in non-Org buffer # (org-agenda-mode) [9.7.11 (release_9.7.11 @ /Applications/Emacs.app/Contents/Resources/l

2025-04-16 Thread Rob Davenport
It would seem I'm experiencing an issue reported against org-super-agenda: https://github.com/alphapapa/org-super-agenda/issues/247 and related to a known change in Org-9.7 org-element-at-point behavior which has affected a number of packages. (I'm not sure why you are seeing it, Mark.) Since

Re: [PATCH v2] ox-texinfo: Preserve source block language fields during export

2025-04-16 Thread Rudolf Adamkovič
Ihor Radchenko writes: > Maybe an alist? Either way is fine. Yup, exactly what Org LaTeX does; it solves virtually the same problem. > Then, it is probably Richard's turn to update the patch. Go, Richard, go! :) Rudy -- "Mathematics takes us still further from what is human into the region o

Re: [PATCH v2] ox-texinfo: Preserve source block language fields during export

2025-04-16 Thread Rudolf Adamkovič
Rudolf Adamkovič writes: > Yes, this is all we need: > > 1. Look up BACKEND in `org-latex-src-block-backend' > 2. Look up LANG in `org-latex-BACKEND-langs' Correction: `org-texinfo-*' instead of `org-latex-*', of course. TL;DR We mirror what Org LaTeX does. Rudy -- "We shall not cease fro

Re: [RFC] Org syntax: "." in citation keys

2025-04-16 Thread Marvin Gülker
Am 16. April 2025 um 12:29 Uhr -0400 schrieb Zac E: I should add that exporting to PDF via LaTeX is the main use-case for those requiring any of this functionality. I disagree. I export excessively to ODT with footnote-based citation styles, because the legal publishers I need to work with onl

Re: org-latex-preview and font-locking

2025-04-16 Thread Leo Butler
On Tue, Apr 15 2025, Karthik Chikmagalur wrote: > `org-cdlatex-mode' provides several ways to quick-insert environments > and LaTeX macros. With this mode enabled, there are many equivalents of > C-c C-e in LaTeX buffers: > > - C-c { > - Type in "beg" and press TAB > - Type in "env" and press TA

Re: Parsing of incomplete LaTeX environments

2025-04-16 Thread Karthik Chikmagalur
> I fear you may be over-committed to a certain way of thinking about > this: that is, you are convinced it is the job of a preview tool to > compensate for ill-formed LaTeX code. That is a really large demand. If org-latex-preview provides a live-updating preview feature, it has to compensate for

Re: Parsing of incomplete LaTeX environments

2025-04-16 Thread Leo Butler
On Tue, Apr 15 2025, Karthik Chikmagalur wrote: >>> Basically, we need a specialized parser that will guess that a given >>> paragraph of text is actually an incomplete or broken latex fragment. >>> You may try writing one. For example, by additionally checking paragraph >>> elements to be latex-

Re: [RFC] Org syntax: "." in citation keys

2025-04-16 Thread Zac E
Christian, thank you for those suggestions. There are two major problems with trying to resolve this via the use of explicit footnotes, whether in-line or at the document’s end. In both cases, when exporting to PDF via LaTeX, the second reference will not be recognized as a reference at all. Ins

Re: bug#76025: [PATCH] ob-sql: session + sql.el w/o prompt

2025-04-16 Thread Phil Estival
* [2025-04-15 16:29 +] Ihor Radchenko : > Ihor Radchenko writes: > >> May you please update your latest patch for ob-sql.el, converting it >> into (1) patch to sql.el; (2) patch for ob-sql.el that assumes changes >> to sql.el? > > It has been a while since the last message in this thread. > Ph

Re: R code block with Cairo graphics

2025-04-16 Thread Naresh Gurbuxani
For cairo, I used this header and same code as below. #+begin_src R :exports results :results output :type cairo Running code block gives this output. #+RESULTS: : null device : 1 Now I can insert a link using [[file:figures/cairoplot.png]] Is it possible to input file name as heade

Re: Question about getting properties of org entry

2025-04-16 Thread Doerthous
org-id-find10005.451268 0.0054512689 org-entry-get 10000.460270 0.0004602709 x/org-id-prop 10000.007889 7.889...e-06 265 70% - org-entry-get 261 69% - org-id-find ... 257 68%- org-id-find-id-in-file 257 68% - cond 249 6

Re: R code block with Cairo graphics

2025-04-16 Thread Christian Moe
Try this: :type cairo See: https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-R.html Yours, Christian Naresh Gurbuxani writes: > How can I set up a code block which uses R code to output a cairo > graphics file? In below example, code block for simple R graph uses > header argumen

R code block with Cairo graphics

2025-04-16 Thread Naresh Gurbuxani
How can I set up a code block which uses R code to output a cairo graphics file? In below example, code block for simple R graph uses header argument to input filename. Is it possible to create a similar set up when cairo is used? When exported to pdf, my graphs look similar with and without c

Re: [RFC] Org syntax: "." in citation keys

2025-04-16 Thread Christian Moe
Ihor Radchenko writes: > Zac E writes: > [cite:@cohen2003consum-repub.;@trentmann2016empire-things] > >>> This is ambiguous. "." can be a part of citation key. >>> There is no bug here. Just a limitation that we cannot easily force end >>> of citation key in Org syntax. [...] >> It is absolu

[BUG] org-element API, extra newlines inserted at predictable location (and some removed)

2025-04-16 Thread chris
Hello, *Environment:* - *Emacs version:* 30.1 - *Org-mode version:* commit e49e630c6d - *Invocation:* Tested with `emacs -Q` *Steps to Reproduce:* 1. Start Emacs with a minimal configuration: ```shell emacs -Q ``` 2. Open a new buffer (for example, the `*scratch*` buffer) and have the buffer c

Re: [BUG] org-element API, extra newlines inserted at predictable location (and some removed)

2025-04-16 Thread chris
On Wednesday, 16 April 2025 10:12:58 UTC chris wrote: > Hello, > > *Environment:* > > - *Emacs version:* 30.1 > - *Org-mode version:* commit e49e630c6d > - *Invocation:* Tested with `emacs -Q` > > *Steps to Reproduce:* > > 1. Start Emacs with a minimal configuration: > ```shell > emacs -Q > ```