[PATCH] ox-html: Fix unbalanced list in TOC when document does not start with a Top-Level headline

2025-08-05 Thread Yue Yi
Hello Org-mode maintainers, I'd like to submit a patch to fix a bug in ox-html's Table of Contents (TOC) generation. The bug occurs when an Org document's first headline is not at level 1 (e.g., it starts with **), causing an unbalanced tag in the exported HTML. Try `C-c C-e h H' for text below:

Re: org element bug filling

2025-08-05 Thread Samuel Wales
thank you very much. i am not getting that error yet, but i am getting folding glitches upon folding/unfolding of headings and upon moving of list items. perhaps not related? might be in the past few git snapshots. On Mon, Aug 4, 2025 at 10:14 AM Ihor Radchenko wrote: > > Samuel Wales write

[no subject]

2025-08-05 Thread Thomas S. Dye
Aloha all, I'm seeing this message often: Invalid function: org-fold-core-suppress-folding-fix [91 times] Do I have a problem? Is there a fix? Org mode version 9.7.31 (9.7.31-4e6d38 @ /home/dk/.config/emacs/spacemacs/elpa/29.4/develop/org-9.7.31/) GNU Emacs 29.4.50 (build 1, x86_64-pc-lin

[PATCH] org-next-block: Ring the bell when no block is found

2025-08-05 Thread Rudolf Adamkovič
* lisp/org.el (org-next-block): Ring the bell right before throwing a user error for when no block is found, if called interactively. * testing/lisp/test-org.el (test-org/next-block): Test that the bell rings if and only if called interactively. * etc/ORG-NEWS (~org-next-block~ rings the bell if no

Re: [PATCH] Get org-map-region to properly set the point of first heading

2025-08-05 Thread Ihor Radchenko
dmg writes: > The current logic of org-map-region uses two searches. > ... Duplicate of https://orgmode.org/list/m2ikj2bmeu@turingmachine.org Canceled. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at

Re: [PATCH] Get org-map-region to properly set the point of first heading

2025-08-05 Thread Ihor Radchenko
dmg writes: > In the first, the point is left after the asterisks of the heading. > In the subsequent calls, the point is correctly set to the first > asterisk of the headline (this is done by outline-next-heading). > > Make sure the first header is processed the same way as the rest. > > * lis

Re: [PATCH] lisp/org.el: Add ability to sort tags by hierarchy

2025-08-05 Thread Ihor Radchenko
Morgan Smith writes: > ... > I updated the docstring. Please let me know if it looks better. I'm > not the greatest at documentation. > ... > Done > ... Thanks! Applied, onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=b02c34948 https://git.savannah.gnu.org/cgit/emacs

Fontification of dot code blocks

2025-08-05 Thread Thomas S. Dye
Aloha all, Dot code blocks aren't fontified correctly here. I get the following trace when I toggle debug on error: Debugger entered--Lisp error: (void-variable graphviz-dot) #f(compiled-function () #)() eval-after-load(flycheck #f(compiled-function () #0x1049c72a11e8e300>))

Re: Org FAQ design (Re: [PATCH] org-faq.org: Inline comments)

2025-08-05 Thread Ihor Radchenko
Max Nikulin writes: FAQ is probably fine. We may add a CSS there that will fold the answers by default. > ... >> They suggest a combination of to keep hidden text >> searchable. See >> https://developer.mozilla.org/en-US/docs/Web/HTML/Element/summary > > Unsupported by Firefox: > > ht

Re: LaTeX listings package setup for export of code blocks

2025-08-05 Thread Pedro Andres Aranda Gutierrez
Hi, the quickest way to diagnose is to make a minimal one slide presentation, export it to LaTeX and analyze from there. (IE post is here for us to take a look at) Best PA Enviado desde mi iPhone > El 5 ago 2025, a las 12:54, Naresh Gurbuxani > escribió: > >  > For documentclasses article a

[PATCH] Get org-map-region to properly set the point of first heading

2025-08-05 Thread dmg
The current logic of org-map-region uses two searches. In the first, the point is left after the asterisks of the heading. In the subsequent calls, the point is correctly set to the first asterisk of the headline (this is done by outline-next-heading). Make sure the first header is processed th

[PATCH] Get org-map-region to properly set the point of first heading

2025-08-05 Thread dmg
The current logic of org-map-region uses two searches. In the first, the point is left after the asterisks of the heading. In the subsequent calls, the point is correctly set to the first asterisk of the headline (this is done by outline-next-heading). Make sure the first header is processed th

Re: [PATCH] lisp/org.el: Add ability to sort tags by hierarchy

2025-08-05 Thread Morgan Smith
Ihor Radchenko writes: >> +This can also be a list of functions. If a function returns nil when >> +sorting two tags regardless of order (to indicate both tags are equal), > > Normally, comparison functions in Elisp return t when first argument > (tag) is less than second, and nil otherwise (whe

Re: Searching in column view

2025-08-05 Thread Lars Frantzen
Am 03.08.25 um 16:35 schrieb Ihor Radchenko: AFAIK, the best you can do is setting isearch-invisible to t. Otherwise, I do not think that isearch supports searching inside overlays with 'display property. For "isearch-invisible" it says "Not documented as a variable." I tried "isearch-toggle-i

LaTeX listings package setup for export of code blocks

2025-08-05 Thread Naresh Gurbuxani
For documentclasses article and beamer, I would like to use two different font sizes. I want to keep other settings in my init.el file. This is my set up in init.el: (require 'ox-latex) (setq org-latex-src-block-backend 'listings) (add-to-list 'org-latex-packages-alist '("" "listings")) (add-to