How to export to markdown programmatically without the table of contents?

2022-05-01 Thread Marcin Borkowski
Hi fellow Orgers, I'd like to export a Org-mode formatted string to markdown, but without the table of contents. (org-export-string-as my-string 'md t '(toc nil)) didn't work (the ToC was still there). What am I missing? TIA, -- Marcin Borkowski http://mbork.pl

Re: [BUG] Documentation errata [9.5.2 (release_9.5.2-25-gaf6f12 @ /usr/share/emacs/28.1/lisp/org/)]

2022-05-01 Thread Alessandro Bertulli
I feel like it's still not completely clear, but I assume it's just a problem of mine: if I have been the only one having the problem, then it's on me, I suppose. Anyway, your patch is an improvement, and you are certainly more expert than me in producing user documentation, so green light for me!

Re: [PATCH] speed commands: error message when a key is not associated with a command

2022-05-01 Thread Juan Manuel Macías
Ihor Radchenko writes: > This would not solve the problem of shadowing. > It may be better idea to provide a custom variable controlling > org-babel-speed-command-activate: do nothing or throw an error. > This custom variable should also be described in the docstring of > org-speed-command-hook to

Re: [Bug] incorrect indent of next heading after org-paste-subtree

2022-05-01 Thread Max Nikulin
On 01/05/2022 09:31, Ihor Radchenko wrote: Max Nikulin writes: Another old bug with org-paste-subtree. It make indentation of next heading wrong. Consider the following document and follow described steps: I am unable to reproduce on the latest Org. Thank you, Ihor. I have checked it once

Emacs launched from Firefox

2022-05-01 Thread Max Nikulin
On 01/05/2022 11:53, Samuel Wales wrote: [firefox did not offer to allow a command line to run my shell script which sets up emacs correctly, and idk if it even ran with my .emacs. does it do -q? not sure because emacs is too unusable to even find that out. so firefox fails to be accessible in

Re: [PATCH] Add make target to ease creating reproducers and testing them

2022-05-01 Thread Christopher M. Miles
I agree this idea, this could unify the reproduce steps and help some user save time and help org-mode maintainer get information they want. Ihor Radchenko writes: > Hi, > > In the Feedback section of the manual, we provide instructions on how to > create reproducers: https://orgmode.org/manua

Re: bug#54764: encode-time: make DST and TIMEZONE fields of the list argument optional ones

2022-05-01 Thread Max Nikulin
On 01/05/2022 09:32, Paul Eggert wrote: On 4/30/22 04:22, Max Nikulin wrote: I posted a corrected version of my `org-encode-time' macro, but I did not add you to Cc (I sent reply through news.gmane.io), and it has no special case to check whether `encode-time' supports 6 elements list argume

Org as a workspace (an impromptu reflection)

2022-05-01 Thread Ypo
Same here, I attach a screenshot that leaves an idea of my daily life at work. I can't withstand Windows shortcuts now.

Re: How to export to markdown programmatically without the table of contents?

2022-05-01 Thread Jeremie Juste
Hello Marcin, On Sunday, 1 May 2022 at 11:20, Marcin Borkowski wrote: | Optional argument EXT-PLIST, when provided, is a property list | with external parameters overriding Org default settings, but | still inferior to file-local settings. Sorry I don't fully understand what doc means by overri

Re: How to export to markdown programmatically without the table of contents?

2022-05-01 Thread Berry, Charles
> On May 1, 2022, at 2:20 AM, Marcin Borkowski wrote: > > Hi fellow Orgers, > > I'd like to export a Org-mode formatted string to markdown, but without > the table of contents. > > (org-export-string-as my-string 'md t '(toc nil)) > > didn't work (the ToC was still there). What am I missin

Re: How to export to markdown programmatically without the table of contents?

2022-05-01 Thread Jeremie Juste
Hello Chuck, > On Sunday, 1 May 2022 at 20:01, Berry, Charles wrote: > It does seem odd that BODY-ONLY as `t' gives a toc. With latex it does not > regardless of `:with-toc'. > > : (org-export-string-as my-string 'md t '(:with-toc nil)) > > seems to give what you want. Many thanks for the insig

[BUG] folding error during capture

2022-05-01 Thread Skip Collins
Recently, I get an error message when invoking custom capture templates like this one: ("n" "Note" entry (file "~/Documents/org/beorg/capture.org") "* %^{note} :note: %(org-set-property \"Created\" (org-time-stamp-inactive '(16)))" :immediate-finish t) I invoke the template from the ca

[PATCH] Re: [BUG] folding error during capture

2022-05-01 Thread Ihor Radchenko
Skip Collins writes: > Recently, I get an error message when invoking custom capture > templates like this one: > ("n" "Note" entry > (file "~/Documents/org/beorg/capture.org") > "* %^{note} :note: %(org-set-property \"Created\" > (org-time-stamp-inactive '(16)))" :immediate-finish t)

Re: [PATCH] Re: [BUG] folding error during capture

2022-05-01 Thread Skip Collins
> > ("n" "Note" entry > > (file "~/Documents/org/beorg/capture.org") > > "* %^{note} :note: %(org-set-property \"Created\" > > (org-time-stamp-inactive '(16)))" :immediate-finish t) > ... > This is quite a hacky capture template... I'll take that as a compliment. The general ability t

Re: [Bug] incorrect indent of next heading after org-paste-subtree

2022-05-01 Thread Samuel Wales
fwiw [idk if this is useful but here just in case] iirc, outline mode does not include the final newline for subtrees in at least one case. yet, many users and much code assume or ensure that lines are terminated with a final newline. this can result in unexpected behavior. it required code to

Re: Emacs launched from Firefox

2022-05-01 Thread Samuel Wales
thank you. there is no emacs in my ~/.config/mimeapps.list. where are those desktop files found or put? i use fluxbox. [i realize this is not org related. non-list email ok.] On 5/1/22, Max Nikulin wrote: > On 01/05/2022 11:53, Samuel Wales wrote: >> >> [firefox did not offer to allow a comm

Re: [PATCH] Re: [BUG] folding error during capture

2022-05-01 Thread Ihor Radchenko
Skip Collins writes: >> > ("n" "Note" entry >> > (file "~/Documents/org/beorg/capture.org") >> > "* %^{note} :note: %(org-set-property \"Created\" >> > (org-time-stamp-inactive '(16)))" :immediate-finish t) >> ... >> This is quite a hacky capture template... > > I'll take that as a co

Re: proposed additions to org-collector code

2022-05-01 Thread Ihor Radchenko
Charles Millar writes: > First, I thank Slava Barinov for his proposed patch to appending a > #+tblfm line to an org-collector table. Date: 17 Mar 2019 13:22:58 +0300 > Message-ID: <87sgvl4wes@gmail.com> (raw) > > Attached is my, in all modesty named, cm-org-collector.el in which I > have a

Re: [PATCH] speed commands: error message when a key is not associated with a command

2022-05-01 Thread Ihor Radchenko
Juan Manuel Macías writes: > Ok, I agree that this is the most reasonable direction. What do you > think about the idea that I outlined in the last post of this thread > (https://list.orgmode.org/87v8uqmkc0@posteo.net/)?: it consists in > defining a new hook (by default with value nil) where

[BUG] Org 9.5.3 fails to display agenda (error "rx form ‘regexp’ requires args satisfying ‘stringp’")

2022-05-01 Thread Edmund Christian Herenz
Dear Developers, thank you for the hard work on Org-mode. I recently updated to 9.5.3 using elpa on GNU Emacs 26.1 and suddenly org-mode fails to display the agenda (Debug message below). This is not a smooth upgrade experience, and some tests on core-functionality on supported emacs versions wo

Re: [Bug] incorrect indent of next heading after org-paste-subtree

2022-05-01 Thread Ihor Radchenko
Max Nikulin writes: >> I am unable to reproduce on the latest Org. > > Thank you, Ihor. I have checked it once more for current main HEAD > 2bd34edb64. I can reproduce it using the provided steps in Emacs-26, but > not in Emacs-27. > > Unless there is a reason to suspect something weird underne

Re: [BUG] Org 9.5.3 fails to display agenda (error "rx form ‘regexp’ requires args satisfying ‘stringp’")

2022-05-01 Thread Ihor Radchenko
Edmund Christian Herenz writes: > thank you for the hard work on Org-mode. I recently updated to 9.5.3 > using elpa on GNU Emacs 26.1 and suddenly org-mode fails to display > the agenda (Debug message below). This is not a smooth upgrade > experience, and some tests on core-functionality on sup

Re: [BUG] Warning (org-element-cache): org-element--cache: Org parser error in suma-por-fila.tex::1585. Resetting. [9.5.3 (release_9.5.3-465-gd7dc62 @ /home/oub/emacs/site-lisp/packages/org/)]

2022-05-01 Thread Ihor Radchenko
Uwe Brauer writes: > Org-mode git version. > a3dac4d20a37c51393f191d01e0ec2170bb260a3 > > Opening a tex file I receive the following error message > , > | Warning (org-element-cache): org-element--cache: Org parser error in > suma-por-fila.tex::1585. Resetting. > | The error was: (error "rx

Re: How to export to markdown programmatically without the table of contents?

2022-05-01 Thread Daniel Fleischer
Jeremie Juste [2022-05-01 Sun 22:29] wrote: > I know where to look now: > > (info "(org) Publishing options") That's a good resource!

Re: [BUG] Warning (org-element-cache): org-element--cache: Org parser error in suma-por-fila.tex::1585. Resetting. [9.5.3 (release_9.5.3-465-gd7dc62 @ /home/oub/emacs/site-lisp/packages/org/)]

2022-05-01 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko writes: > Uwe Brauer writes: >> Org-mode git version. >> a3dac4d20a37c51393f191d01e0ec2170bb260a3 >> >> Opening a tex file I receive the following error message >> , >> | Warning (org-element-cache): org-element--cache: Org parser error in >> suma-por-fila.tex::1

Re: [BUG] Warning (org-element-cache): org-element--cache: Org parser error in suma-por-fila.tex::1585. Resetting. [9.5.3 (release_9.5.3-465-gd7dc62 @ /home/oub/emacs/site-lisp/packages/org/)]

2022-05-01 Thread Ihor Radchenko
Uwe Brauer writes: >> This is most likely done by your personal customisation or by >> third-party package (`link-message' function). > > I see, most likely orglink (available in melpa) > ;; Homepage: https://github.com/tarsius/orglink > > Was the culprit, I upgraded the package and have not seen

Re: [BUG] Warning (org-element-cache): org-element--cache: Org parser error in suma-por-fila.tex::1585. Resetting. [9.5.3 (release_9.5.3-465-gd7dc62 @ /home/oub/emacs/site-lisp/packages/org/)]

2022-05-01 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko writes: > Uwe Brauer writes: >>> This is most likely done by your personal customisation or by >>> third-party package (`link-message' function). >> >> I see, most likely orglink (available in melpa) >> ;; Homepage: https://github.com/tarsius/orglink >> >> Was the cu