Re: Turn Emacs holidays into Org appointments?

2022-02-07 Thread Richard Lawrence
Hi David and all, David Rogers writes: > Is there a way that I can use something like the Emacs holiday > forms ... but from inside an Org-mode appointment timestamp Yes, this should be possible. > Here's a mock example of what I'm trying to do: > > * Easter > <(holiday-easter-etc 0)> > **

Turn Emacs holidays into Org appointments?

2022-02-07 Thread David Rogers
Hello I'm using Org-mode to organize readings and music for Christian church services. These services are scheduled according to certain holidays, and Emacs already "knows" all of the holidays that matter for this discussion - they're viewable by selecting the appropriate settings for the

Re: Org for non-users, part 2: `C-c C-e', a.k.a. `org-export-dispatch'

2022-02-07 Thread Eduardo Ochs
On Mon, 7 Feb 2022 at 10:55, Ihor Radchenko wrote: > > What are the recommended ways to abort org-export-dispatch without > > letting it destroy the "*Org Export Dispatcher*" window and its > > buffer? > > You cannot. That window acts similarly to transient, but simpler. You > can think of

Re: Lazy load of org-protocol

2022-02-07 Thread Jim Porter
On 2/7/2022 6:57 AM, Max Nikulin wrote: Maybe another option would be to add an --apply argument that really *does* consume the other command-line args and turns them into a properly-quoted function call. Roughly speaking, it would turn this:    emacs --apply func foo bar baz into this:   

Re: [PATCH] Fix FAQ entry about mailto links.

2022-02-07 Thread Max Nikulin
Robert, Thank you for pointing out that `org-link-mailto-program' should not be recommended in FAQ any more. I prepared an alternative patch that recommends to customize Emacs variables at first. I hope, an example is safer now, however I can not test it on MacOS. Could you, please, review

Re: Suggestion: convert dispatchers to use transient

2022-02-07 Thread Anders Johansson
I agree that transient dispatchers would be great and consistent. What is not so great with transient currently is it’s lacking support for lisp-variable/option workflows. Transient is good for command-line arguments, but setting options for emacs functions is not as streamlined (this would

Re: Lazy load of org-protocol

2022-02-07 Thread Max Nikulin
On 06/02/2022 09:40, Tianshu Wang wrote: (defadvice server-execute (before enable-org-protocol activate) (unless (featurep 'org-protocol) (require 'org-protocol))) Thank you, such approach, unlike mine example, does not have code duplication. On the other hand it loads org-protocol on any

Re: Org for non-users, part 2: `C-c C-e', a.k.a. `org-export-dispatch'

2022-02-07 Thread Ihor Radchenko
Eduardo Ochs writes: > a few weeks ago I recorded a video called "Org for non-users" - > link: > > http://angg.twu.net/2021-org-for-non-users.html Also, feel free to read commentary inside source code. There are a number of common concepts described in the top comments in the core Org files,

Re: Conversion to Jupyter notebooks

2022-02-07 Thread John Kitchin
I use ox-ipynb pretty regularly to make lecture notebooks. It isn't quite like most exporters, e.g. it doesn't support all kinds of links to sections, There is support for making different versions of the notebooks though, e.g. with/without solutions, or without sections that are just for you.

Re: [BUG] org-todo (C-c C-t) bad negative prefix behavior [9.5.2 (9.5.2-gfbff08 @ /home/ionasal/.emacs.d/elpa/org-9.5.2/)]

2022-02-07 Thread Ihor Radchenko
Allen Li writes: > On Sat, Jan 1, 2022 at 9:31 AM Allen Li wrote: > >> It seems like the right fix here is to make - behave the same as -1, and >> raise a user error for any other negative numeric prefix, since it is >> likely not doing whatever the user wanted. >> > > Attached a small patch

Re: [PATCH] org-list-send-item: allow dest to be a buffer position

2022-02-07 Thread Ihor Radchenko
Sacha Chua writes: > Ihor Radchenko writes: > >>> Passing an integer representing a buffer position to org-list-send-item >>> was failing because of the string-match-p, so here's something that lets >>> integers skip that part. I have copyright assignment papers on file. >> LGTM! Would you mind

Re: Shell SRC blocks under Windows

2022-02-07 Thread Matt
On Sun, 06 Feb 2022 12:51:49 -0500 H. Dieter Wilhelm wrote > Matt writes: > > > On Sat, 05 Feb 2022 17:22:29 -0500 Matt wrote > > > > > > > > But I'm not sure if I'm halfway there with "sh"? I need to run the > > > > following MSYS2 command AND switch

[RFC PATCH 1/2] org-babel-tangle-single-block: Do not create comment link when not requested

2022-02-07 Thread Ihor Radchenko
* lisp/ob-tangle.el (org-babel-tangle-single-block): Do not spend extra time creating link to source block when :comments is set to "no". --- lisp/ob-tangle.el | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/lisp/ob-tangle.el b/lisp/ob-tangle.el

[RFC PATCH 2/2] org-babel-expand-noweb-references: Cache block info

2022-02-07 Thread Ihor Radchenko
* lisp/ob-core.el (org-babel-expand-noweb-references--cache): (org-babel-expand-noweb-references--cache-buffer): New variables storing info cache. (org-babel-expand-noweb-references): Make use of global info cache to avoid extra parsing. Use `cl-macrolet' instead of defining transient lambda

[RFC PATCH 0/2] Make org-babel-tangle usable in after-save-hook on large org buffers

2022-02-07 Thread Ihor Radchenko
I would like to send an experimental patch improving performance of org-babel-tangle. The patch contains two major changes: 1. org-babel-tangle-single-block will not try to parse LINK to src block when :comments is set to "no" and simple return nil in relevant slot of the parsed src block

Re: Test failure in test-org-colview

2022-02-07 Thread Ihor Radchenko
Marco Wahl writes: > Is this just me or does anybody else see these failures with the latest > checkout of main? All the tests are passing on my side when testing using Emacs 26,27,28, and 29 (build 1, x86_64-pc-linux-gnu, cairo version 1.16.0) of 2022-01-29. FYI, more often than not

Test failure in test-org-colview

2022-02-07 Thread Marco Wahl
Hello! Is this just me or does anybody else see these failures with the latest checkout of main? #v+ make test ... Ran 908 tests, 903 results as expected, 5 unexpected (2022-02-07 12:23:35+0100, 55.200528 sec) 16 expected failures 5 unexpected results: FAILED

Re: Conversion to Jupyter notebooks

2022-02-07 Thread Joost Kremers
On Mon, 7 Feb 2022, at 10:14, Ihor Radchenko wrote: > ox-ipynb is being maintained at > https://github.com/jkitchin/ox-ipynb Ah, great! I had somehow missed that... -- Joost Kremers Life has its moments

Re: Conversion to Jupyter notebooks

2022-02-07 Thread Ihor Radchenko
"Joost Kremers" writes: > All I could find on the internet was a script by John Kitchin[1] that's from > 2017 and it's apparently not entirely compatible with current Emacs and/or > Org mode, as it throws errors when I try to use it. I'm sure I could fix the > errors, but before I invest the

Re: [CLOSED] TEC fixed this problem.

2022-02-07 Thread Bastien
Hi Christopher, "Christopher M. Miles" writes: > Today, I found the Org Agenda sorting strategy problem is fixed by > commit "1b675f0ca84d637a3780cf3590308116e232fcfd". thanks for confirming and thanks to TEC for fixing it! Best, -- Bastien

Conversion to Jupyter notebooks

2022-02-07 Thread Joost Kremers
Hi list, I was wondering if anyone here has experience converting Org files to Jupyter notebooks, keeping the python source blocks as code blocks and correctly identifying the =#+RESULTS:=. Just dropping the results would be fine as well. I realise there are several ways to interact with