Re: [PATCH] ob-java: Define the list of all supported header arguments

2022-11-08 Thread Max Nikulin
Am I the only person who gets 3 unexpected results: FAILED ob-java/lint-header-args-block FAILED ob-java/lint-header-args-buffer FAILED ob-java/lint-header-args-heading Emacs-27.1. Example of failure: Test ob-java/lint-header-args-block backtrace: signal(ert-test-failed (((should-

Re: [PATCH] ob-java: Define the list of all supported header arguments

2022-11-08 Thread Ihor Radchenko
Max Nikulin writes: > Am I the only person who gets > > 3 unexpected results: > FAILED ob-java/lint-header-args-block > FAILED ob-java/lint-header-args-buffer > FAILED ob-java/lint-header-args-heading > > Emacs-27.1. Example of failure: Tests are passing on my side. -- Ihor Radc

[BUG] Freeze with org-adapt-indentation set to headline-data

2022-11-08 Thread David Lukeš
Hi all, I've hit a freeze when setting org-adapt-indentation to headline-data. I've bisected it to commit 0a6a56, "org-adapt-indentation: Fix 'headline-data checks". I can reproduce it in Emacs 28.2 on macOS with the following minimal init file: (add-to-list 'load-path "~/repos/org-mode/lisp") (r

Re: Interest in an Org video meetup?

2022-11-08 Thread Russell Adams
On Tue, Nov 08, 2022 at 07:44:21AM +, Ihor Radchenko wrote: > Russell Adams writes: > > > One of my concerns is the format. I used to goto user groups > > frequently, and we could break up into smaller groups working on many > > things. > I am not sure if we even need to worry about multiple

Re: [BUG] Freeze with org-adapt-indentation set to headline-data

2022-11-08 Thread Ihor Radchenko
David Lukeš writes: > > I've hit a freeze when setting org-adapt-indentation to headline-data. > I've bisected it to commit 0a6a56, "org-adapt-indentation: Fix > 'headline-data checks". I can reproduce it in Emacs 28.2 on macOS with > the following minimal init file: > Thanks for reporting!

Re: Typos on https://orgmode.org/manuals.html

2022-11-08 Thread Ihor Radchenko
"Loris Bennett" writes: > Under the heading > > Org Mode compact guide > > it says > > The Org Mode compact guide is a shorter introduction to the main > feature of Org Mode. > > This should probably be > > ... features of Org Mode. > > Under the heading > > Org manual for the GNU Emac

Suggestion: refer to other scheduled tasks in DEADLINE/SCHEDULE

2022-11-08 Thread hugo
Sorry if this has been asked on the list before -- I searched briefly and couldn't find anything. I use org mode for scheduling events (which are not tasks, and therefore do not have a TODO status) as well as for logging tasks (which do have a TODO status). Often, I find I want to set a deadline

Re: [BUG] Freeze with org-adapt-indentation set to headline-data

2022-11-08 Thread David Lukeš
Ihor Radchenko wrote: > Fixed on main. Confirmed, thank you very much for the lightning fast fix! David

Re: Interest in an Org video meetup?

2022-11-08 Thread Ihor Radchenko
Russell Adams writes: >> I am not sure if we even need to worry about multiple rooms. AFAIK, >> Emacs meetups generally do not gather more than a dozen of people max. > > I used to attend the Houston Linux User's Group for a decade, in > person. We were hosted in a computer lab, and we'd alternat

Re: Typos on https://orgmode.org/manuals.html

2022-11-08 Thread Bastien Guerry
Ihor Radchenko writes: > Thanks for reporting! > I am attaching tentative fix. Applied, thanks. > Bastien, I do not have access to orgweb repo. Now you do :) -- Bastien

Re: Document management system with Org?

2022-11-08 Thread Max Brieiev
Thank you. This was very useful. Seems like attachments will work for me. Also seems like I can use org capture templates to record metadata for different types of documents. Now I need to dig in to the Org manual...

Re: Document management system with Org?

2022-11-08 Thread Russell Adams
On Tue, Nov 08, 2022 at 06:32:32PM +0200, Max Brieiev wrote: > Thank you. This was very useful. > > Seems like attachments will work for me. > > Also seems like I can use org capture templates to record metadata for > different types of documents. > > Now I need to dig in to the Org manual... > Do

Re: Haskell code blocks

2022-11-08 Thread Bruno Barbier
Ihor Radchenko writes: > Applied onto main. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=0de063a52181bd96ac9bf023454781f07c3353b3 Thanks Ihor. Sorry, I'm still working on adding a 'test-ob-haskell.el', when I have some spare time, but I'm unable so far to find tests that I

[PATCH] lisp/ob-octave.el, was [PATCH] rfc: using ert-deftest with side-effects

2022-11-08 Thread Leo Butler
On Tue, Nov 08 2022, Ihor Radchenko wrote: > Leo Butler writes: > >> However, I would like feedback/suggestions on writing such a >> test. Issues include: >> >> 1. how to clean up the side-effects, including changes in the test >>buffer, filesystem and potentially creating an error buffer; >

[PATCH] ox-icalendar: Create export backend options for deadline/scheduled-summary-prefix defcustoms

2022-11-08 Thread Чернышов Илья
This patch will allow to customize `org-icalendar-deadline-summary-prefix', `org-icalendar-scheduled-summary-prefix' directly in the `ext-plist' arg of org-export-as function From d666147f919c91b48988f7c90d66ea85e9f1faaa Mon Sep 17 00:00:00 2001 From: Ilya Chernyshov Date: Mon, 7 Nov 2022 20:12:08

[PATCH] org-babel-insert-result: Fix wrong-type-argument markerp nil

2022-11-08 Thread Bruno Barbier
Hi, Here is a small patch for a corner case in `org-babel-insert-result'. Bruno >From 288e2631ef60eeaee32f1107754aeb521247d54b Mon Sep 17 00:00:00 2001 From: Bruno BARBIER Date: Sun, 6 Nov 2022 13:57:40 +0100 Subject: [PATCH] org-babel-insert-result: Fix wrong-type-argument markerp nil lisp/

[PATCH] lisp/ob-haskell.el: Fix org-babel-script-escape expects a string

2022-11-08 Thread Bruno Barbier
Hi, When running, for example, the following haskell block in ghci #+begin_src haskell v=2 #+end_src there is no result. The attached patch avoids calling `org-babel-script-escape' in such a case. Bruno. >From d508dbf18e8edb95543a11774702f2a9bd4116e6 Mon Sep 17 00:00:00 2001

extended background on org-block-end-line

2022-11-08 Thread Al Haji-Ali
I'll admit this "bug" is not critical, but it is visually annoying (at least to me). When hiding an org entry, source blocks with extended backgrounds remain visible. To re-produce: 0. Run `emacs -Q` 1. Create a buffer with this content and ensure `org-mode` is on ---

Can :packages and :headers arguments in latex SRC blocks be made affect EXPORT blocks of results?

2022-11-08 Thread hugo
tl;dr: can I have `:packages' and `:headers' arguments from LaTeX src block take effect, when I export those blocks as export blocks? I wanted a way to write tikz snippets inside org documents, preview them in the document as images, but have the tikz /code/ appear when I exported to LaTeX. So fa

Re: [PATCH] Re: Update Org to MathJax 3

2022-11-08 Thread Rudolf Adamkovič
Ihor Radchenko writes: > Then, you can `cl-letf'-bind the message function in a new macro added > to org-test.el. The binding will accumulate messages in some > list. Then, use that macro to test the messages. What a great piece of advice. Thank you, Ihor! See the 4th version of the patch atta

Re: [PATCH] Re: Update Org to MathJax 3

2022-11-08 Thread Rudolf Adamkovič
Rudolf Adamkovič writes: > See the 4th version of the patch attached below. And, of course, I forgot to update the commit message with the new macro. Please see the 5th version of the patch attached below. P.S. I also fixed a preposition in the documentation comment of the new macro, now sayin

Re: [PATCH] ob-java: Define the list of all supported header arguments

2022-11-08 Thread Rudolf Adamkovič
Max Nikulin writes: > Am I the only person who gets > > 3 unexpected results: > FAILED ob-java/lint-header-args-block > FAILED ob-java/lint-header-args-buffer > FAILED ob-java/lint-header-args-heading On `main' with Emacs 29 (5b9b393c61), I get: 8 unexpected results: FAILED o

Re: Interest in an Org video meetup?

2022-11-08 Thread Sacha Chua
Hello, Russell, all! > > > That's making a time and place for everyone to meet, but then do as > > they like among each other. > This is an interesting idea to try. (I am more used to presentation + > free-for-all discussions.) > > I'm happy to give a presentation, but would rather encourage a reg

Re: Interest in an Org video meetup?

2022-11-08 Thread Sacha Chua
On Tue, Nov 8, 2022, 20:45 Sacha Chua wrote: - first 5-15 minutes, people propose topics to talk about while you write > them down in a screenshared text editor (Emacs, of course). Might have > Oh, actually, we can make an Etherpad for you, and then participants can edit the list themselves. So

Re: [PATCH] ob-java: Define the list of all supported header arguments

2022-11-08 Thread Ihor Radchenko
Rudolf Adamkovič writes: > On `main' with Emacs 29 (5b9b393c61), I get: > > 8 unexpected results: > ... >FAILED test-org-num/max-level [...] >FAILED test-org-num/skip-numbering [...] >FAILED test-org-num/update [...] >FAILED test-org-table/sort-lines [...] >FAILED test-o

Re: extended background on org-block-end-line

2022-11-08 Thread Ihor Radchenko
Al Haji-Ali writes: > I'll admit this "bug" is not critical, but it is visually annoying (at least > to me). > When hiding an org entry, source blocks with extended backgrounds remain > visible. > > To re-produce: > ... > 5. Notice how the background colour now appears next to "One". > > Is the

Re: [PATCH] org-babel-insert-result: Fix wrong-type-argument markerp nil

2022-11-08 Thread Ihor Radchenko
Bruno Barbier writes: > Here is a small patch for a corner case in `org-babel-insert-result'. Thanks, but could you please explain a bit more about this corner case? > lisp/ob-core.el (org-babel-insert-result): Don't reset the marker > `end' if it is not defined. `end' must be always defined b

Re: [PATCH] lisp/ob-haskell.el: Fix org-babel-script-escape expects a string

2022-11-08 Thread Ihor Radchenko
Bruno Barbier writes: > When running, for example, the following haskell block in ghci > >#+begin_src haskell >v=2 >#+end_src > > there is no result. > > The attached patch avoids calling `org-babel-script-escape' in such a > case. Thanks! Applied onto main. https://git.savannah.

Re: [PATCH] ox-icalendar: Create export backend options for deadline/scheduled-summary-prefix defcustoms

2022-11-08 Thread Ihor Radchenko
Чернышов Илья writes: > This patch will allow to customize `org-icalendar-deadline-summary-prefix', > `org-icalendar-scheduled-summary-prefix' directly in the `ext-plist' arg of > org-export-as function Thanks! The patch looks good. Could you also update the relevant NEWS entry (New custom sett

Re: [PATCH] Re: Update Org to MathJax 3

2022-11-08 Thread Ihor Radchenko
Rudolf Adamkovič writes: >> Also, I think that conversion message may worth a warning. > > You have mentioned this twice, but you have never said why. I remain > open, but I need know the reason. To give you mine: > > We need to inform the user, not necessarily warn them. They can keep > using

Re: Haskell code blocks

2022-11-08 Thread Ihor Radchenko
Bruno Barbier writes: > Sorry, I'm still working on adding a 'test-ob-haskell.el', when I have > some spare time, but I'm unable so far to find tests that I can't > reliably break. > > I'll open a new thread when I think my 'test-ob-haskell.el' is worth > reviewing. Thanks for continued work on

Re: Document management system with Org?

2022-11-08 Thread Jean Louis
* Max Brieiev [2022-11-07 22:54]: > Org newbie here. > > Org advertizes itself as a note management and organizer system. > > How suitable is it to manage documents? That was my question too, when I tried to index 14000+ PDF pages. So I gave birth to Hyperscope for GNU Emacs. Problem is that I

[BUG] Cache warning [9.6-pre (release_9.5.5-1086-g7f7280 @ /usr/local/src/org-mode/lisp/)]

2022-11-08 Thread William Denton
I started Emacs fresh and it threw this warning. Below is a lot of ugly backtrace and configuration. Warning (org-element-cache): org-element--cache: Org parser error in l2a.org::71537. Resetting. The error was: (search-failed "|") Backtrace: " backtrace-to-string(nil) (progn (backtrace-

Re: Suggestion: refer to other scheduled tasks in DEADLINE/SCHEDULE

2022-11-08 Thread Ihor Radchenko
h...@heagren.com writes: > I think it would be great if other org headlines could be referenced in > DEADLINEs and SCHEDULEs. This would effectively solve my problem: I > could just add an id (or whatever identifier the implementation ends up > using) to the event headline, and then use that id in

Re: Can :packages and :headers arguments in latex SRC blocks be made affect EXPORT blocks of results?

2022-11-08 Thread Ihor Radchenko
h...@heagren.com writes: > tl;dr: can I have `:packages' and `:headers' arguments from LaTeX src > block take effect, when I export those blocks as export blocks? > > I wanted a way to write tikz snippets inside org documents, preview them > in the document as images, but have the tikz /code/ appe

Re: [BUG] Cache warning [9.6-pre (release_9.5.5-1086-g7f7280 @ /usr/local/src/org-mode/lisp/)]

2022-11-08 Thread Ihor Radchenko
William Denton writes: > I started Emacs fresh and it threw this warning. Below is a lot of ugly > backtrace and configuration. > > > Warning (org-element-cache): org-element--cache: Org parser error in > l2a.org::71537. Resetting. > The error was: (search-failed "|") Thanks for reporting!

Re: [PATCH] lisp/ob-octave.el, was [PATCH] rfc: using ert-deftest with side-effects

2022-11-08 Thread Ihor Radchenko
Leo Butler writes: > Ihor, > Thanks for your feeback and the pointer. I have revised the tests and > attach the revised patch. Thanks! Note that your patch is over 15LOC, which exceeds legally allowed contribution size for people without copyright assignment. Would you be interested to sign th

Re: [PATCH] Re: Update Org to MathJax 3

2022-11-08 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Rudolf Adamkovič writes: > >> See the 4th version of the patch attached below. > > And, of course, I forgot to update the commit message with the new > macro. Please see the 5th version of the patch attached below. Thanks! > with Org[fn:: By default Org loads MathJ

Re: Volunteering to maintain ob-asymptote.el within Org

2022-11-08 Thread Ihor Radchenko
Jarmo Hurri writes: > Greetings Bastien. > > Bastien writes: > >> Did you manage to get feedback from Luc, maintainer of ob-asymptote.el >> on org-contrib to decide who will maintain it, where to host it? It >> seems like having ob-asymptote.el on GNU ELPA would be very good. I am wondering wh

Re: [PATCH] org-babel-insert-result: Fix wrong-type-argument markerp nil

2022-11-08 Thread Bruno Barbier
Ihor Radchenko writes: > Bruno Barbier writes: > >> Here is a small patch for a corner case in `org-babel-insert-result'. > > Thanks, but could you please explain a bit more about this corner case? > `end' must be always defined because > (setq end (copy-marker (point) t)) > must be executed

Re: [PATCH] org-babel-insert-result: Fix wrong-type-argument markerp nil

2022-11-08 Thread Ihor Radchenko
Bruno Barbier writes: >> Thanks, but could you please explain a bit more about this corner case? > >> `end' must be always defined because >> (setq end (copy-marker (point) t)) >> must be executed. > > If the body of the unwind-protect throw an error, the variable 'end' > might still be nil. It's

Re: [PATCH] org-babel-insert-result: Fix wrong-type-argument markerp nil

2022-11-08 Thread Ihor Radchenko
Ihor Radchenko writes: > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=7f72807aead9c350d85513702deb04722b65a25b Oops. The right link is https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=620a96dd682191f49cbe83dee516bb566b9d0127 -- Ihor Radchenko // yantar92, Org

Re: [PATCH] org-babel-insert-result: Fix wrong-type-argument markerp nil

2022-11-08 Thread Bruno Barbier
Ihor Radchenko writes: > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=620a96dd682191f49cbe83dee516bb566b9d0127 Thanks Ihor.

Re: [patch] improved: add TTL as defcustom to ox-icalendar

2022-11-08 Thread Ihor Radchenko
Detlef Steuer writes: >> I think, it is better to wait for comments from an ox-icalendar user. > > Sure. Sorry for the late reply. I am not a user, but will the patch looks reasonable in general. >> I am afraid, you will be tired trying to convince me that TTL should >> be overridden for all us

Re: [patch] improved: add TTL as defcustom to ox-icalendar

2022-11-08 Thread Ihor Radchenko
[Adding Org ML back to CC; please use "Reply All" when replying in ML threads] Detlef Steuer writes: >> The patch is on the edge, probably still acceptable without copyright >> assignment. If you have it, it would be much better though. >> > > In the meantime I have the paperwork done and have