PATCH: don't emit empty attributes for lstlistings in LaTeX listings backend

2022-12-10 Thread Pedro Andres Aranda Gutierrez
Hi, attached is a small patch for the Latex export backend that suppresses emitting empty labels and captions when exporting src blocks using 'listings. This cleans up the emitted LaTeX. BR,/PA -- Fragen sind nicht da um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler

Re: [BUG] org-mouse is activated without explicit require

2022-12-10 Thread Samuel Wales
hi matt, superb bug report. happy human rights day. isn't there a policy someplace in the elisp manual that states that loading a package should have no major[tm] side effects? the emacs behavior of loading upon completion is new to me and a surprise. the org list of links behavior is new to

Re: [BUG] org-mouse is activated without explicit require

2022-12-10 Thread Greg Minshall
Matt, > I'm not too familiar with how emacs handles autoloads. However, I find > org-mouse is automatically loaded if I call describe-function and then > tab complete after typing "", "org-", "org-m", etc. This seems enough > to load the entirely of the org-mouse.el file. i'm also not an expert

Re: [MAINTENANCE] Do we have any backwards-compatibility policy for third-party packages?

2022-12-10 Thread Tim Cross
Ihor Radchenko writes: > Tim Cross writes: > >> I guess we are limited by what the packages we rely on support. For >> example, if geiser doesn't support Emacs 26 but org is supposed to, >> there isn't much we can do. We cannot afford to fork geiser and modify >> it to add the support and

[BUG] org-mouse.el breaks org-open-at-point

2022-12-10 Thread Matt Lundin
The org-mouse feature advises org-open-at-point in a way that overrides the desired behavior of calling "M-x org-open-at-point" on a headline. See the advice function org--mouse-open-at-point. It seems the intended behavior of this advice is to allow the user to click on headline stars and cycle

[BUG] org-mouse is activated without explicit require

2022-12-10 Thread Matt Lundin
I'm not too familiar with how emacs handles autoloads. However, I find org-mouse is automatically loaded if I call describe-function and then tab complete after typing "", "org-", "org-m", etc. This seems enough to load the entirely of the org-mouse.el file. The problem is that this adds a lambda

Re: [PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable

2022-12-10 Thread Max Nikulin
On 11/12/2022 03:28, Tom Gillespie wrote: Here is a patch that improves the ergonomics and thus hopefully the security for the recent changes to check evaluation for cells. Tom, thank you for the patch. Frankly speaking, I was expecting this kind of complains, but I could not suggest any

Re: Can org-attach attach a single file to multiple headlines?

2022-12-10 Thread Max Nikulin
On 11/12/2022 05:12, aroz...@gmail.com wrote: Using org-attach, is it possible to attach a single file to multiple headlines, so that each headline shares the same attachment folder (rather than having each headline have its own attachment folder with its own version of the file)? Headings

Re: Flyspell causes severe slowdown when manipulating footnotes

2022-12-10 Thread Rudolf Adamkovič
Ihor Radchenko writes: > I just pushed a slight optimization to the footnote sorting code. Unrelated to the footnotes mentioned above, but I noticed that Org starts and kills Ispell all the time. I see the following messages repeated over and over when working with Org: Starting new Ispell

Can org-attach attach a single file to multiple headlines?

2022-12-10 Thread arozbiz
Using org-attach, is it possible to attach a single file to multiple headlines, so that each headline shares the same attachment folder (rather than having each headline have its own attachment folder with its own version of the file)? Thanks, Alan

Re: [PATCH] lisp/org-expiry.el: Account for org-time-stamp-formats

2022-12-10 Thread Tom Gillespie
Here is an updated patch. Best! Tom On Thu, Dec 8, 2022 at 3:42 AM Ihor Radchenko wrote: > > Tom Gillespie writes: > > > Hi, > >Here is a patch for org-contrib/lisp/org-expiry.el to account for > > recent changes to org-time-stamp-formats. Best, > > Tom > > > > PS is this list still the

Re: Multiple versions of Org in load-path problem

2022-12-10 Thread Tom Gillespie
> I don't think there is any safe way to install an updated version of > org-mode other than I don't know whether it counts as safe, but since I don't see it mentioned anywhere else in the thread you can do the following. (require 'package) (unless package--initialized (package-initialize))

[PATCH] ob-core: add org-confirm-babel-evaluate-cell custom variable

2022-12-10 Thread Tom Gillespie
Hi, Here is a patch that improves the ergonomics and thus hopefully the security for the recent changes to check evaluation for cells. Full details in the commit message on the patch. Best! Tom From da3a88e2919ec5bac6328d55eb99b3352f25b9b4 Mon Sep 17 00:00:00 2001 From: Tom Gillespie Date:

Re: [BUG] Setting export scope to subtree not working as expected [9.6 (9.6-gb3da42 @ /Users/apc/.emacs.d/straight/build/org/)]

2022-12-10 Thread Alejandro Perez Carballo
Thanks for the quick fix!! On Saturday, December 10, 2022, Kaushal Modi wrote: > Hi Alejandro, > > Thanks for reporting this issue. I was seeing the same issue and I wasn't > sure if this issue was in org-mode or the ox-hugo package. It was on my > to-debug list. > > Ihor: Thank you for the

Re: bash code block runs slow on org 9.6

2022-12-10 Thread Majzoub, Eric
Yes, the fix works! It reduces the run time from about 2s down to 0.1s. Thank you. On Sat, 2022-12-10 at 05:53 +, Ihor Radchenko wrote: > WARNING: This message has originated from an External Source. This > may be a phishing expedition that can result in unauthorized access > to our IT

Re: To convert and simplify units in tables (was:LIterate programming with calc (help))

2022-12-10 Thread ypuntot
Hi Ihor. I'm null at elisp. Could you please refer to me a simple example of math operation and unit simplification in elisp? Thanks :$ 10 dic 2022 14:51:39 Ihor Radchenko : > Ypo writes: > >> (defmath uconvert (v u) >>   "Convert value V to compatible unit U." >>   (math-convert-units v u))

Re: bug#59882: Multiple versions of Org in load-path problem

2022-12-10 Thread Ihor Radchenko
Eli Zaretskii writes: >> In my testing, I found a strange case where, in *scratch*, I get: >> >> (message "%s" org-version) >> ;; Error undefined >> ;; Do 'C-h v org-version' >> (message "%s" org-version) >> 9.3 >> >> So, 'describe-variable' on org-version causes Org to be loaded?!? > > Why is

Re: [BUG] org-table-blank-field keybinding [9.5.4 (N/A @ /gnu/store/sry9khwisaq1jnrjbfnhx6ki8qy2z0db-emacs-org-9.5.4/share/emacs/site-lisp/org-9.5.4/)]

2022-12-10 Thread Ihor Radchenko
Ihor Radchenko writes: > André A. Gomes writes: > Also, it might be worth mentioning in the manual that this command works when a region is selected. >>> >>> Indeed M-x org-table-blank-field does work when region is selected. Just >>> as documented. >> >> I meant in the manual, not in

Re: To convert and simplify units in tables (was:LIterate programming with calc (help))

2022-12-10 Thread Ihor Radchenko
Ypo writes: > (defmath uconvert (v u) >   "Convert value V to compatible unit U." >   (math-convert-units v u)) > > > But no luck, "cs" result is an ERROR. Is it feasible to get a value for > "cs" with no units? Note that apart from Calc formula notation, you can use Elisp. That will avoid

Re: [MAINTENANCE] Do we have any backwards-compatibility policy for third-party packages?

2022-12-10 Thread Ihor Radchenko
Tim Cross writes: > I guess we are limited by what the packages we rely on support. For > example, if geiser doesn't support Emacs 26 but org is supposed to, > there isn't much we can do. We cannot afford to fork geiser and modify > it to add the support and even if we provided a patch to add

Re: [HELP] Translate/extend `org-clock-clocktable-language-setup' for Spanish/Dutch/more languages

2022-12-10 Thread Ihor Radchenko
Jonathan Gregory writes: > Sure, patch attached. BTW there are some small differences between > pt and pt-BR (Brazilian Portuguese). I speak the latter, so that's > what I used. Thanks! Applied onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=a1607a360 -- Ihor

Re: [BUG] ob-R.el: extra empty data.frame columns generated from plain lists after recent change [9.6 (release_9.6-3-ga4d38e @ /usr/share/emacs/30.0.50/lisp/org/)]

2022-12-10 Thread Johan Tolö
Ihor Radchenko writes: Greg Minshall writes: [snipped] The time span is years and I do not recall any related bug reports. So, nobody seems to care. I do pass org plain lists to R source code blocks which is why I found the current issue. It is easy enough for me to adapt my R code

Re: [BUG] beamer export

2022-12-10 Thread Ihor Radchenko
Daniel Fleischer writes: > Hi, I'm on vacation for the next month. I can look at it when I'm back. There is no activity in this thread for over one month. Bumping. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development

Re: Pasting an image with org-download in org-capture buffer

2022-12-10 Thread Max Nikulin
On 10/12/2022 17:08, Ihor Radchenko wrote: Max Nikulin writes: ... but recently added `org--confirm-resource-safe' is affected by this kind of bugs. May you elaborate? `org--confirm-resource-safe' uses variable, not a function. I called `org-tree-to-inderect-buffer', switched to the

Re: LaTeX src block export

2022-12-10 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > ... because this greatly improves the copy-and-paste behaviour of my PDFs. > Now, > when exporting to laTeX, there are some extra parameters included, which > are not supported by fancyvrb. namely > `language=` > and > `caption.*= (take .* as a regexp)` >

LaTeX src block export

2022-12-10 Thread Pedro Andres Aranda Gutierrez
Hi I was wondering if there is a way to control which parameters are exported when translating a src block to LaTeX in a document-wide fashion. I.e. with a directive at the beginning of the .org file. The background: I have 'listings' to export src and example blocks and use ``` #+LATEX_HEADER:

Re: Keys to Category Filter Agenda

2022-12-10 Thread Ihor Radchenko
Colin Baxter writes: > Indeed. I understand that, but the question was about '>' not '<'. The > initial agenda buffer has > > < Buffer, subtree/region restriction > > Remove restriction > > If I remove the restriction with >, as suggested by the initial buffer, > I get the date prompt. I

Re: Keys to Category Filter Agenda

2022-12-10 Thread Colin Baxter
> Ihor Radchenko writes: > Colin Baxter writes: >> In agenda, you can filter by category by pressing '<' when point >> on that particular category. To remove filtering, press '<' >> again. All this is explained in the org-mode info. However the >> initial agenda buffer,

Re: [BUG] Setting export scope to subtree not working as expected [9.6 (9.6-gb3da42 @ /Users/apc/.emacs.d/straight/build/org/)]

2022-12-10 Thread Kaushal Modi
Hi Alejandro, Thanks for reporting this issue. I was seeing the same issue and I wasn't sure if this issue was in org-mode or the ox-hugo package. It was on my to-debug list. Ihor: Thank you for the quick response and fix! On Sat, Dec 10, 2022, 4:47 AM Ihor Radchenko wrote: > Alejandro Pérez

Re: Flyspell causes severe slowdown when manipulating footnotes

2022-12-10 Thread Ihor Radchenko
aroz...@gmail.com writes: > Thanks Ihor for the response. Unfortunately, setting > org-element--cache-self-verify to nil didn't work. Profile report attached. Thanks! I just pushed a slight optimization to the footnote sorting code. Can you try again using the latest main?

Re: How to prevent emacs from asking “file is read only on disk make buffer read only, too?”

2022-12-10 Thread Ihor Radchenko
Alexei Gilev writes: > Basically that :) This comes up in helm-ag searches a lot. Very annoying! > Thank you! Is it related to Org? I also don't see this phrase coming in Emacs 29 sources. Maybe from some package? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode

Re: Pasting an image with org-download in org-capture buffer

2022-12-10 Thread Ihor Radchenko
Max Nikulin writes: > ... but recently added > `org--confirm-resource-safe' is affected by this kind of bugs. May you elaborate? `org--confirm-resource-safe' uses variable, not a function. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at

Re: Images generated by R code blocks do not display

2022-12-10 Thread Ihor Radchenko
Ihor Radchenko writes: > I now reported this to Emacs upstream. > I do not see anything wrong on Org side in this case. > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59902 Since the bug will affect older Emacs versions, I pushed a workaround to bugfix.

Re: [BUG] Setting export scope to subtree not working as expected [9.6 (9.6-gb3da42 @ /Users/apc/.emacs.d/straight/build/org/)]

2022-12-10 Thread Ihor Radchenko
Alejandro Pérez Carballo writes: > If point is on a heading followed by a subheading without any text in > between, the export process is using the tree starting with the subheading > instead of the tree starting from point position. If instead you have some > text after the first heading and

Re: Keys to Category Filter Agenda

2022-12-10 Thread Ihor Radchenko
Colin Baxter writes: > In agenda, you can filter by category by pressing '<' when point on that > particular category. To remove filtering, press '<' again. All this is > explained in the org-mode info. However the initial agenda buffer, > viewed by 'C-c a', gives the keys '<' for filtering but

Re: [BUG] issue with texmathp [9.6 (release_9.6-22-g78d283 @ /home/jds6696/.emacs.d/straight/build/org-mode/)]

2022-12-10 Thread Ihor Radchenko
Justin Silverman writes: > texmathp when used in org-mode seems to have problems with multiline align* > environments. > > Consider the following math environment: > > > \begin{align*} > y_{i} &\sim f(\mu_{i}) \\ > | > \end{align*} > > where cursor is at `|'. With cursor at this point try

Re: [BUG] org-ctrl-c-ctrl-c on keyword makes entire buffer visible

2022-12-10 Thread Ihor Radchenko
Matt Lundin writes: > After upgrading to org 9.6, I find that refreshing the org buffer with > org-ctrl-c-ctrl-c causes the entire buffer (including drawers and other > folded items) to become visible. > > I've tested this with a minimal config and the following org file: Thanks for reporting!