Re: Reproducible work with natively compiled Emacs

2024-03-15 Thread Pedro Andres Aranda Gutierrez
Hi Ihor, Answer inline... On Fri, 15 Mar 2024 at 18:08, Ihor Radchenko wrote: > Pedro Andres Aranda Gutierrez writes: > > > I have added the eln version to the patch... > > > > Best, /PA > > PS: Just as an example, I recompiled master today and the version number > > for eln changed, so the 'o

Principled Handling of Breaking Changes

2024-03-15 Thread Rudi C
The recent upgrades to Org mode have been a source of great frustration for me. Many of the configurations I had previously set up stopped working as intended, and it took me several days to properly identify the issues, debug them, and find suitable workarounds. I believe that Org mode would benef

Forcing tab-width to be 8 makes using Python source blocks very difficult

2024-03-15 Thread Rudi C
Recently, a breaking change has been introduced in Org mode that sets the default tab-width to 8 spaces ( https://list.orgmode.org/orgmode/8734y5d2gs.fsf@localhost/). This change has made using Python source blocks in Org mode challenging, as operations like `evil-org->` rely on `tab-width`, and Py

[PATCH] Add support for tables in Calc src block :var

2024-03-15 Thread Visuwesh
Attached patch adds support for passing tables as matrices (or vector) to a Calc source block through the :var parameter. There might be a better way to do it than manually construct the data structure expected by Calc for a matrix but given that it rarely sees changes in this area, it shouldn't b

Re: [PATCH] lisp/ob-shell.el: Also override explicit-shell-file-name

2024-03-15 Thread Aaron Zeng
Thanks for the merge! On Fri, Mar 15, 2024, at 17:38, Matt wrote: > Finally had time to commit it. > > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=0e2a9524dc6da8b4d60672e85aba74076baac211 > > Nice catch and thanks for your contribution! > > -- > Matt Trzcinski > Emacs Org cont

Re: [PATCH] lisp/ob-shell.el: Also override explicit-shell-file-name

2024-03-15 Thread Matt
Finally had time to commit it. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=0e2a9524dc6da8b4d60672e85aba74076baac211 Nice catch and thanks for your contribution! -- Matt Trzcinski Emacs Org contributor (ob-shell) Learn more about Org mode at https://orgmode.org Support Org de

Re: The org--math-p advice around texmathp

2024-03-15 Thread Tony Zorman
On Fri, Mar 15 2024 14:14, Ihor Radchenko wrote: > Tony Zorman writes: > >>> Because Org mode syntax is not LaTeX and `texmathp' assumes that we are >>> inside >>> LaTeX buffer. So, we first check using Org syntax whether the point is >>> inside latex fragment in Org sense. >> >> But isn't what O

[BUG] org-babel-execute-subtree removes all overlays (org-fold-save-outline-visibility) [9.7-pre, gfb61e8]

2024-03-15 Thread Bruno Barbier
Hi, Org removes all overlays when calling org-babel-execute-subtree. Here is a way to reproduce: #+begin_src elisp (with-temp-buffer (let (ovl (statuses nil) (live-p (lambda (xo) (or (and (overlay-buffer xo) "alive") "dead" (insert

Re: Things got very slow: profiler output

2024-03-15 Thread Bruno Cardoso
On 2024-03-15, 17:18 +, Ihor Radchenko wrote: > Bruno Cardoso writes: > > May you do the following: > > 1. (require 'elp) > 2. (elp-instrument-function #'org-fold-core--property-symbol-get-create) > 3. Do actions in Org file > 4. (elp-results) > 5. See *ELP Profiling Results* > 6. (elp-res

Re: `:export' attribute?: Re: Experimental public branch for inline special blocks

2024-03-15 Thread Max Nikulin
On 15/03/2024 20:10, Juan Manuel Macías wrote: Max Nikulin writes: 1. "-" is a valid backend name and valid last character of backend name I had not thought of it. Can + also be a valid character? https://orgmode.org/worg/org-syntax.html#Affiliated_Keywords BACKEND A string consisting o

Re: Things got very slow: profiler output

2024-03-15 Thread Ihor Radchenko
Bruno Cardoso writes: > See attached the profiler-report in emacs -Q and Org mode version 9.7-pre > (release_9.6.20-1281-gfb61e8). > > In a new org file I created some headings, fold/unfold, and did some typing > while recording. This does not make sense. The profiler trace implies org-activa

Re: Reproducible work with natively compiled Emacs

2024-03-15 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > I have added the eln version to the patch... > > Best, /PA > PS: Just as an example, I recompiled master today and the version number > for eln changed, so the 'old' files from yesterday were not removed ;-) Yeah. Not ideal. The whole system with emacs -Q

Re: Things got very slow: profiler output

2024-03-15 Thread Bruno Cardoso
On 2024-03-15, 14:24 +, Ihor Radchenko wrote: > > May you share the full profile via M-x profiler-report-write-profile then? Hi Ihor, See attached the profiler-report in emacs -Q and Org mode version 9.7-pre (release_9.6.20-1281-gfb61e8). In a new org file I created some headings, fold/un

Re: `:export' attribute?: Re: Experimental public branch for inline special blocks

2024-03-15 Thread Juan Manuel Macías
Max Nikulin writes: > (ignore > (pp > (let ((rules > (org-export--inline-special-block-make-backend-alist > (org-split-string "latex/ html./ ascii+ *" > (mapcar (lambda (backend) > (list backend > (org-export--inline-special-block-exp

Re: [BUG] "\fC" macro in ox-man.el [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.2/lisp/org/)]

2024-03-15 Thread Jeremy Sowden
On 2024-03-13, at 11:25:23 +, Ihor Radchenko wrote: > On 2024-03-11, at 17:06:17 -0700, Xiyue Deng wrote: > > Ihor Radchenko writes: > > > Xiyue Deng writes: > > > > (This was first reported to Emacs at > > > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=69483) > > > > > > > > "mu4e"[1] (a po

Re: `:export' attribute?: Re: Experimental public branch for inline special blocks

2024-03-15 Thread Juan Manuel Macías
Thank you for your comments. Max Nikulin writes: > On 15/03/2024 09:19, Juan Manuel Macías wrote: >> The attribute supports one or more elements separated by a space. Each >> element can be any of the following signs: "*" (export only the >> content), "-" (do not export), "=" (export the rest nor

Re: Things got very slow: profiler output

2024-03-15 Thread Ihor Radchenko
Bruno Cardoso writes: >> I am getting (0.178426995 0 0.0) as a result - takes almost no CPU time. >> > Thanks Ihor. Indeed I get a similar result from benchmark-run. May you share the full profile via M-x profiler-report-write-profile then? -- Ihor Radchenko // yantar92, Org mode contributor,

Re: `:export' attribute?: Re: Experimental public branch for inline special blocks

2024-03-15 Thread Ihor Radchenko
Max Nikulin writes: >> I am not following this branch of the discussion closely, but what about >> not inviting a new DSL here and instead using Elisp sexps here? >> Something like (latex body) (html none) ((not (or latex html)) contents) > > I do not mind in general. Just a couple of questions:

Re: Reproducible work with natively compiled Emacs

2024-03-15 Thread Pedro Andres Aranda Gutierrez
HI Igor having more than one 30.0.50 means that you are trying emacs master as often as me. Only that I tend to cleanup more often :-D I think I could make it delete the current version only. It will not delete the org .eln files shipped with a package you install: that's what the first line in th

Re: The org--math-p advice around texmathp

2024-03-15 Thread Ihor Radchenko
Tony Zorman writes: >> Because Org mode syntax is not LaTeX and `texmathp' assumes that we are >> inside >> LaTeX buffer. So, we first check using Org syntax whether the point is >> inside latex fragment in Org sense. > > But isn't what Org calls LaTeX math pretty equivalent to what would > coun

Re: `:export' attribute?: Re: Experimental public branch for inline special blocks

2024-03-15 Thread Max Nikulin
On 15/03/2024 21:00, Ihor Radchenko wrote: Max Nikulin writes: 1. "-" is a valid backend name and valid last character of backend name I am not following this branch of the discussion closely, but what about not inviting a new DSL here and instead using Elisp sexps here? Something like (latex

Re: Reproducible work with natively compiled Emacs

2024-03-15 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > +# This is where Emacs stores the .eln files > +ELNDIR := $(shell $(EMACS) --batch --eval '(when (native-comp-available-p) > (princ (car native-comp-eln-load-path)))') > ... > +cleaneln: > + @$(foreach elnf,$(patsubst %.eln, %-*.eln, $(LISPN)), \ > +

Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink

2024-03-15 Thread Ihor Radchenko
Leo Butler writes: >> Leo, may you improve the patch to avoid defining >> `org-beamer-frame-environment' when it is not used in all the frames? > > "all the" should be "any of" in that last sentence. Indeed. > How about the attached patch? > ... > +(defvar org-beamer--frame-environment-used nil

Re: `:export' attribute?: Re: Experimental public branch for inline special blocks

2024-03-15 Thread Ihor Radchenko
Max Nikulin writes: > 1. "-" is a valid backend name and valid last character of backend name I am not following this branch of the discussion closely, but what about not inviting a new DSL here and instead using Elisp sexps here? Something like (latex body) (html none) ((not (or latex html)) co

Re: [DISCUSSION] Face priority in Org fontification (was: [BUG] org dates, radio links, and special keywords override heading backgrounds [9.7 (9.7-??-902dacb @ /home/st/.config/emacs/.local/straight/

2024-03-15 Thread Ihor Radchenko
Protesilaos Stavrou writes: > Now the tricky part is to figure out which combinations can work this > way. Headings and source blocks are two obvious ones. Maybe there are > more, but I cannot think of one right now. This is relevant to any greater element that can contain markup inside and wher

Re: `:export' attribute?: Re: Experimental public branch for inline special blocks

2024-03-15 Thread Max Nikulin
On 15/03/2024 09:19, Juan Manuel Macías wrote: The attribute supports one or more elements separated by a space. Each element can be any of the following signs: "*" (export only the content), "-" (do not export), "=" (export the rest normally), "=*" (export the rest, but only the content), "=-" (

Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command

2024-03-15 Thread Ihor Radchenko
Max Nikulin writes: > On 12/03/2024 20:03, Ihor Radchenko wrote: >> Max Nikulin writes: >>> It is trivial to cause shell failure when single quotes are used around >>> %i. I am in doubts concerning double quotes. Perhaps stripping them is >>> more reliable. >> >> May you list the cases to you pr