[PATCH] test-ox: no superfluous newline in exported comments

2022-05-31 Thread Phil Estival
* testing/lisp/test-ox.el (test-org-export/comments) test updated according to behavior change when exporting a comment: a single line of comment no longer insert a blank line TINYCHANGE ---  testing/lisp/test-ox.el | 2 +-  1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/lis

[PATCH] ox: fix comment exported as a blank line

2022-05-31 Thread Phil Estival
* lisp/ox.el (org-export--skip-p): no longer export single-line comments as blank lines which did break paragraphs in two. TINYCHANGE ---  lisp/ox.el | 2 +-  1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox.el b/lisp/ox.el index 9a8e63046..2c50fba0c 100644 --- a/lisp/ox.el ++

RE: Proposal: 'executable' org-capture-templaes

2022-05-31 Thread arthur miller
Hi Max, thank you for the answer. I have abandoned the idea 😀. Yes, org-mks is the one that does the lifting, you can see my other answers to Ihor., where I am playing with an example "usage pattern", that uses org-select-template which uses org-mks underto achieve a similar goal as you present

Re: Proposal: 'executable' org-capture-templaes

2022-05-31 Thread Max Nikulin
On 30/05/2022 09:04, Arthur Miller wrote: Ihor Radchenko writes: Arthur Miller writes: Simplicity comes from the org-templates. Me, and I guess other people are familiar with org-catpure templates already, and I mean, can it be simpler to create a menu of choices then a simple list: '(("key1"

Re: [PATCH] Re: tangle option to not write a file with same contents?

2022-05-31 Thread Max Nikulin
On 30/05/2022 10:14, Ihor Radchenko wrote: I applied the discussed two patches onto main via 1525a5a64 and f6f26d4ce. The suggested amendments were incorporated. So Greg's feature request is implemented and it is great. I am less confident with `org-babel-load-file' though. Due to poor error

Re: [BUG] org-element--cache: Unregistered buffer [9.5.3 (9.5.3-g4dda0d @ c:/Users/scott/.emacs.d/straight/build/org/)]

2022-05-31 Thread Scott Otterson
Hi Ihor, With straight.el, it's Org mode version 9.5.3. If I open the file with emacs -Q, I'm surprised to see that I get a different warning message: File mode specification error: (void-variable org-fold-core-style) This is on emacs 28.1, which uses Org mode version 9.5.2 On Mon, May 30, 202

Re: how to export an org file, to 2 different locations (in to different formats)

2022-05-31 Thread Nick Dokos
Uwe Brauer writes: > Hi > > Currently I use > #+EXPORT_FILE_NAME: /home/oub/Desktop/some-stuff.html > > To export my org file in html format to that location. > > But I would also like to export it as a latex file to a different > location, without modifying the above line, or to be more precise

Re: [PATCH v3] Re: Bug in 9.5.3 org--file-default-apps

2022-05-31 Thread Max Nikulin
On 30/05/2022 22:38, Max Nikulin wrote: (let* ((file-executable (executable-find "file"))    (mime-type-file     (and file-executable (shell-command-to-string   (format "%s --brief --mime-type --dereference %s 2>/dev/null" ; ...     )))   

Re: Opening org-cite links with different application

2022-05-31 Thread Max Nikulin
On 25/05/2022 23:24, Alessandro Bertulli wrote: P.S. I'm afraid I can't follow you: what's the point with mailcap? The idea is to keep associations between file types and handlers in a single place. Emacs does not have support of XDG handlers (at least out of the box) but pretends to have su

Re: Proposal: 'executable' org-capture-templaes

2022-05-31 Thread Arthur Miller
Ihor Radchenko writes: > Arthur Miller writes: > >> Instead of hardcoding the actual work in the conditional statement, there >> should >> be a function to be called, so org-capture would setup its own work, some >> random >> "exec" menu like here would setup its own and so on. I haven't look

Re: Timestamp with repeater interval AND END DATE?

2022-05-31 Thread Angel de Vicente
Hello, Eric S Fraga writes: > On Tuesday, 31 May 2022 at 14:46, Angel de Vicente wrote: >> Did I miss something in the manual? > > No, you did not miss anything. What you want cannot be done with a > single time stamp. Instead, there are two alternatives: > > 1. use a diary s-exp (see info man

Re: Allow Currency Symbols and Grouping Commas in Table Numbers

2022-05-31 Thread Daniel E. Doherty
Ihor, Again, thanks for your thoughts. All, however, ruin the look of the tables. Could you, perhaps, point me to where in the vast org code, strings are converted to numbers in preparation for sending to calc? I could then play with overriding the function and come up with a work-around. Rega

Re: Timestamp with repeater interval AND END DATE?

2022-05-31 Thread Eric S Fraga
On Tuesday, 31 May 2022 at 14:46, Angel de Vicente wrote: > Did I miss something in the manual? No, you did not miss anything. What you want cannot be done with a single time stamp. Instead, there are two alternatives: 1. use a diary s-exp (see info manual) which does allow this or 2. use org-c

Re: [PATCH] lisp/org.el: Fix `org-fill-paragraph' in lists when `mark-active'

2022-05-31 Thread Sébastien Miquel
Hi, Renato Ferreira writes: I stumbled upon a bug introduced by it: filling lists with active region. # MRE: Go to start of list, `org-mark-element`, then `org-fill-paragraph`. The first item does not get filled. ```org * This is a test - Aliquam erat volutpat. Nunc eleifend leo vitae magn

Timestamp with repeater interval AND END DATE?

2022-05-31 Thread Angel de Vicente
Hello, I have plenty of timestamps with a repeater interval (https://orgmode.org/manual/Timestamps.html), but on reading the manual I couldn't find how to specify an END DATE, so for example, "prepare homework for students" gets repeated every week, but not beyond June (the last month of the schoo

Re: [PATCH] lisp/org.el: Fix `org-fill-paragraph' in lists when `mark-active'

2022-05-31 Thread Renato Ferreira
Considering the change 91b239829 that fixes this bug: https://list.orgmode.org/87d04zm7gm@fastmail.fm/ I stumbled upon a bug introduced by it: filling lists with active region. # MRE: Go to start of list, `org-mark-element`, then `org-fill-paragraph`. The first item does not get filled. ``

Re: export a org table to ascii format (tabs) are not conserved, culprit orgtbl-to-tsv?

2022-05-31 Thread Uwe Brauer
> Uwe Brauer writes: > I think you might be working under a false expectation. A quick look at > the exported table example and it looks to be correct to me - values are > tab separated, with is what a tsv format is. There is no requirement > that the columns should be aligned, only that they a

[PATCH] lisp/org.el: Fix `org-fill-paragraph' in lists when `mark-active'

2022-05-31 Thread Renato Ferreira
* org.el (org-fill-paragraph): Fill also the paragraph at `region-beginning' when filling plain lists with active region. TINYCHANGE --- lisp/org.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 6842bfe9b..8ba5f4590 100644 --- a/lisp/org.

Re: [patch] ox-html.el: add html attribute (verse numbers) to verse blocks

2022-05-31 Thread Juan Manuel Macías
Ihor Radchenko writes: > The default switches syntax was originally designed for code block and > it generally supports continuous numbering across several subsequent > code blocks or starting the numbering from certain line. Will such > features be useful for verses? > [...] > Do you know if cust