Diary sexp and comparing dates, agenda

2024-01-11 Thread David Rogers
Hello all I'm using the Org agenda to show when certain church occasions will happen. Mostly I've got them working correctly, after "stealing" the method used in holidays.el for finding the date of Easter, along with someone else's function that then uses that to find the difference between

Re: [PATCH] Set Python shell in Org edit buffer

2024-01-11 Thread Christopher M. Miles
Ihor Radchenko writes: > Now, the question is what to do with the existing implementation of > `org-src-associate-babel-session'. It only runs > org-babel--associate-session when > > (and session (not (string= session "none")) >(org-babel-comint-buffer-livep session) >(let ((f

Re: [PATCH v6] Re: Improve the performance of `org-set-tags-command` on large `org-tag-alist`

2024-01-11 Thread Christopher M. Miles
Thanks for updating, this patch looks great to me. -- [ stardiviner ] I try to make every word tell the meaning that I want to express without misunderstanding. Blog: https://stardiviner.github.io/ IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner GPG:

Re: [fr] org-copy-subtree or so with no header

2024-01-11 Thread Samuel Wales
idk if 2 is a bug vs. overly strict behavior. org-export-with-tasks is technically doing what it is documented to do. but only technically. it is not useful to me for it to fail to export when you explicitly try to export a subtree that is forbidden by the combinatin of o-e-w-t and the kw at

Re: Basic citations: should default citation style have a name and style code?

2024-01-11 Thread William Denton
On Thursday, January 11th, 2024 at 13:07, Ihor Radchenko wrote: > Another way is [cite/style-that-surely-does-not-exist:@friends] Useful, thanks. The same thing happens with cite_export: these don't match any real options so they fall through to the defaults. #+cite_export: basic stuff

ob-shell: proposal to remove "posh"

2024-01-11 Thread Matt
Hi, I would like people's thoughts on removing the "posh" language header. ob-shell.el supports a "posh" shell. What is "posh?" * Posh is not PowerShell "posh" was added to =ob-shell= in fb09863f with no commit message on December 13, 2013 (Friday the 13th!).

Re: bug#65734: [BUG] kill-whole-line on folded subtrees [9.6.8 (release_9.6.8-3-g21171d @ /home/w/usr/emacs/0/29/0/lisp/org/)]

2024-01-11 Thread Eli Zaretskii
> From: Ihor Radchenko > Cc: monn...@iro.umontreal.ca, emacs-orgmode@gnu.org, 65...@debbugs.gnu.org, > maniku...@gmail.com, i...@whxvd.name > Date: Thu, 11 Jan 2024 18:08:11 + > > Then, Org mode can instead have > > (setq-local kill-line-query-function #'org-kill-line-query) > (defun

Re: [TASK] Please help updating blog generator list on https://orgmode.org/tools.html

2024-01-11 Thread mbork
On 2024-01-11, at 14:08, Bruno Cardoso wrote: > - https://gitlab.com/mbork_mbork_pl/org-clive :: a simple and minimalistic > Org-based static weblog generator Wow, thanks for mentioning my little package! If anything more is needed (longer description, examples etc.), just drop me a line.

Re: [BUG]: unexpected behavior related to org-indent-block

2024-01-11 Thread Ihor Radchenko
gerard.vermeu...@posteo.net writes: >> This means that your Org mode git folder is not on main branch. >> You can try >> git checkout main >> >> or re-clone the Org repository: >> >> git clone https://git.savannah.gnu.org/cgit/emacs/org-mode.git/ >> > > This is the output of "git checkout"

Re: Basic citations: should default citation style have a name and style code?

2024-01-11 Thread Ihor Radchenko
William Denton writes: >> You can just use [cite/nil:@friends]. > > Huh! Thanks, I didn't see that at all. Looking again at the definition of > org-cite-basic-export-citation in oc-basic.el, I see the doc string says, > "Export CITATION object. STYLE is the expected citation style, as a pair

Re: [BUG]: unexpected behavior related to org-indent-block

2024-01-11 Thread gerard . vermeulen
On 11.01.2024 18:28, Ihor Radchenko wrote: gerard.vermeu...@posteo.net writes: You can also try cd /path/to/org/git make repro I get: Debugger entered--Lisp error: (void-function org-element-begin) (org-element-begin copy) This means that your Org mode git folder is not on main

Re: bug#65734: [BUG] kill-whole-line on folded subtrees [9.6.8 (release_9.6.8-3-g21171d @ /home/w/usr/emacs/0/29/0/lisp/org/)]

2024-01-11 Thread Ihor Radchenko
Eli Zaretskii writes: >> > How would kill-line know that it's about to kill a subtree? All it >> > knows is that it is killing some invisible text. >> >> I imagine the following: >> >> 1. `kill-*-line' function will, by default, test if invisible text of >>length size is killed and query

Re: [BUG]: unexpected behavior related to org-indent-block

2024-01-11 Thread Ihor Radchenko
gerard.vermeu...@posteo.net writes: >> You can also try >> cd /path/to/org/git >> make repro >> > I get: > > Debugger entered--Lisp error: (void-function org-element-begin) >(org-element-begin copy) This means that your Org mode git folder is not on main branch. You can try git checkout

Re: [TASK] Please help updating blog generator list on https://orgmode.org/tools.html

2024-01-11 Thread Bruno Cardoso
On 2024-01-11, 14:55 +, Ihor Radchenko wrote: > Hello, > > Org mode website has a page listing various third-party tools that work > with Org mode. > > However, that page is now severely outdated. There is a number of dead > links and projects last updated 10+ years ago. > > For example,

Re: bug#65734: [BUG] kill-whole-line on folded subtrees [9.6.8 (release_9.6.8-3-g21171d @ /home/w/usr/emacs/0/29/0/lisp/org/)]

2024-01-11 Thread Eli Zaretskii
> From: Ihor Radchenko > Cc: monn...@iro.umontreal.ca, emacs-orgmode@gnu.org, 65...@debbugs.gnu.org, > maniku...@gmail.com, i...@whxvd.name > Date: Thu, 11 Jan 2024 16:15:13 + > > Eli Zaretskii writes: > > >> So, I'd like some way to configure `kill-whole-line'/`kill-line' to warn > >>

Re: [BUG]: unexpected behavior related to org-indent-block

2024-01-11 Thread gerard . vermeulen
On 11.01.2024 17:01, Ihor Radchenko wrote: gerard.vermeu...@posteo.net writes: Try using released Emacs version. Emacs master builds are a subject of unexpected bugs sometimes. I get exactly the same results on Emacs-29.1 as on Emacs master. For Emacs-29.1 (tar.xy) and Emacs master I

Re: Basic citations: should default citation style have a name and style code?

2024-01-11 Thread William Denton
On Thursday, January 11th, 2024 at 07:30, Ihor Radchenko wrote: > > As far as I can tell, there's nothing that can be done to the first > > citation object to make it use the "default" style. The > > document-level setting makes a new default, and because the original > > "default" has no name

Re: bug#65734: [BUG] kill-whole-line on folded subtrees [9.6.8 (release_9.6.8-3-g21171d @ /home/w/usr/emacs/0/29/0/lisp/org/)]

2024-01-11 Thread Ihor Radchenko
Eli Zaretskii writes: >> So, I'd like some way to configure `kill-whole-line'/`kill-line' to warn >> user about killing hidden text when we detect that we are deleting a >> folded heading. Something like: >> >>(y-or-n-p "Kill hidden subtree along with headline? ") >> >> I believe that it

Re: bug#65734: [BUG] kill-whole-line on folded subtrees [9.6.8 (release_9.6.8-3-g21171d @ /home/w/usr/emacs/0/29/0/lisp/org/)]

2024-01-11 Thread Eli Zaretskii
> From: Ihor Radchenko > Cc: monn...@iro.umontreal.ca, emacs-orgmode@gnu.org, 65...@debbugs.gnu.org, > maniku...@gmail.com, i...@whxvd.name > Date: Thu, 11 Jan 2024 15:50:10 + > > Eli Zaretskii writes: > > >> Then, we discussed that Emacs commands to not always provide enough > >>

Re: [BUG]: unexpected behavior related to org-indent-block

2024-01-11 Thread Ihor Radchenko
gerard.vermeu...@posteo.net writes: >> Try using released Emacs version. Emacs master builds are a subject of >> unexpected bugs sometimes. > > I get exactly the same results on Emacs-29.1 as on Emacs master. > > For Emacs-29.1 (tar.xy) and Emacs master I have done (nothing special): >

Re: [fr] org-copy-subtree or so with no header

2024-01-11 Thread Ihor Radchenko
Samuel Wales writes: > [there is more that could in principle be discussed as an /analogous/ > topic, perhaps for the picky sake of keeping orthogonality across org > features in mind, but i don't have it in me to cover. to adumbrate: > 1] allowing choosing exporting a subtree with or without

Re: [fr] org-copy-subtree or so with no header

2024-01-11 Thread Ihor Radchenko
Samuel Wales writes: > * top top > ^*** my example header > text > this is an entry > it's also a subtree > it is an example of an almost trivial subtree, i.e. text but no child entries. > > > with point at ^, i press c, which copies the whole example entry > including the header/heading. great

Re: [BUG]: unexpected behavior related to org-indent-block

2024-01-11 Thread gerard . vermeulen
On 11.01.2024 16:04, Ihor Radchenko wrote: gerard.vermeu...@posteo.net writes: I cannot reproduce. ... This is strange: I pulled the latest main and created a clean org-emacs directory where I put a minimal init.el reading: ... I have no idea what I can do now. My Emacs is also recent main

Re: bug#65734: [BUG] kill-whole-line on folded subtrees [9.6.8 (release_9.6.8-3-g21171d @ /home/w/usr/emacs/0/29/0/lisp/org/)]

2024-01-11 Thread Ihor Radchenko
Eli Zaretskii writes: >> Then, we discussed that Emacs commands to not always provide enough >> toggles. So, I am asking to add one in this thread. > > I don't think I understand what kind of toggle are we talking about. What I would like to request is a way to handle the following situation:

Re: bug#65734: [BUG] kill-whole-line on folded subtrees [9.6.8 (release_9.6.8-3-g21171d @ /home/w/usr/emacs/0/29/0/lisp/org/)]

2024-01-11 Thread Ihor Radchenko
Stefan Monnier writes: >>> I said that remapping widely-used keys to commands that behave >>> significantly differently places a non-trivial burden on users, >>> especially on those who use the remapping mode relatively rarely. >> >> Sure. From which I concluded that Org mode should avoid

Re: [BUG]: unexpected behavior related to org-indent-block

2024-01-11 Thread Ihor Radchenko
gerard.vermeu...@posteo.net writes: >> I cannot reproduce. > ... > This is strange: > I pulled the latest main and created a clean org-emacs directory > where I put a minimal init.el reading: >... > I have no idea what I can do now. > My Emacs is also recent main and built by me with minimal

[TASK] Please help updating parser list on https://orgmode.org/tools.html

2024-01-11 Thread Ihor Radchenko
Hello, Org mode website has a page listing various third-party tools that work with Org mode. However, that page is now severely outdated. There is a number of dead links and projects last updated 10+ years ago. If you know any actively developed Org mode parsers, please share them. -- Ihor

[TASK] Please help updating blog generator list on https://orgmode.org/tools.html

2024-01-11 Thread Ihor Radchenko
Hello, Org mode website has a page listing various third-party tools that work with Org mode. However, that page is now severely outdated. There is a number of dead links and projects last updated 10+ years ago. For example, o-blog is no longer maintained. If you know any actively developed

Re: [BUG]: unexpected behavior related to org-indent-block

2024-01-11 Thread gerard . vermeulen
On 11.01.2024 13:37, Ihor Radchenko wrote: gerard.vermeu...@posteo.net writes: Below, I show 2 commands to be run with point on a source block. I expect that those commands modify an Org file identically, but they do not. It fails when `org-indent-block' is called in a loop after each

Re: Why not enable extra keys by default?

2024-01-11 Thread Ihor Radchenko
Rudolf Adamkovič writes: > I have the 'org-use-extra-keys' customization enabled to avoid reaching > for the arrow keys, but the variable needs to be set before loading Org, > which makes literate configuration a bit more complex. > Other Emacs commands have alternative keys bound by default,

Re: [BUG]: unexpected behavior related to org-indent-block

2024-01-11 Thread Ihor Radchenko
gerard.vermeu...@posteo.net writes: > Below, I show 2 commands to be run with point on a source block. > I expect that those commands modify an Org file identically, but > they do not. It fails when `org-indent-block' is called in a > loop after each `(insert (org-element-interpret-data copy))'

Re: Basic citations: should default citation style have a name and style code?

2024-01-11 Thread Ihor Radchenko
William Denton writes: > "Most scholarly works have citations and a bibliography or reference > section," wrote a computer scientist [cite:@friends]. > As far as I can tell, there's nothing that can be done to the first > citation object to make it use the "default" style. The >

[BUG]: unexpected behavior related to org-indent-block

2024-01-11 Thread gerard . vermeulen
Below, I show 2 commands to be run with point on a source block. I expect that those commands modify an Org file identically, but they do not. It fails when `org-indent-block' is called in a loop after each `(insert (org-element-interpret-data copy))' and it works when `org-indent-block' is