Re: When is a function an interactive function? [was Re: Is function 'org-insert-property-drawer' usable?]

2023-02-03 Thread Ihor Radchenko
alain.coch...@unistra.fr writes: > For example, with the cursor on 'org-capture-finalize' in the manual, > 'C-h f ' gives nothing right away; 'C-h f org-capture' does > not offer 'org-capture-finalize' as a completion; 'C-h f > org-capture-fin' does complete and says that > 'org-capture-finalize'

Re: When is a function an interactive function? [was Re: Is function 'org-insert-property-drawer' usable?]

2023-01-07 Thread Jean Louis
* alain.coch...@unistra.fr [2023-01-06 02:16]: :ATTACH: :PROPERTIES: :ID: 51b2af8b-b2b1-45a7-ab74-1d8e7d8fce7e :END: > so I was trying to understand if there is a way to deduce whether or > not a particular function is a command. Based on several examples > such as > >‘M-’ (‘org-do-de

Re: Is function 'org-insert-property-drawer' usable?

2023-01-06 Thread Ihor Radchenko
Bastien Guerry writes: >> If not making `org-insert-property-drawer' a command back, we can amend >> the manual, as suggested. > > Yes, I think amending the manual is good enough! Applied, onto bugfix. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=28a966484 -- Ihor Radchenko

Re: When is a function an interactive function? [was Re: Is function 'org-insert-property-drawer' usable?]

2023-01-05 Thread Max Nikulin
On 06/01/2023 06:13, Alain.Cochard wrote: For example, with the cursor on 'org-capture-finalize' in the manual, 'C-h f ' gives nothing right away; 'C-h f org-capture' does not offer 'org-capture-finalize' as a completion; 'C-h f org-capture-fin' does complete and says that 'org-capture-finalize'

When is a function an interactive function? [was Re: Is function 'org-insert-property-drawer' usable?]

2023-01-05 Thread Alain . Cochard
Max Nikulin writes on Wed 4 Jan 2023 18:53: > I suppose, the idea is to invoke it like > > C-u M-x org-insert-drawer Yes, I got it. Let me enlarge the scope (hence the new title). The manual says, in 1.5 Typesetting Conventions Used in this Manual (Key bindings and commands): In

Re: Is function 'org-insert-property-drawer' usable?

2023-01-05 Thread Bastien Guerry
Hi, Ihor Radchenko writes: > I still don't understand why it was turned into a function since I > cannot find the relevant discussion. C-u C-c C-x d will call org-insert-property-drawer - I don't think this function needs to be a command with its own keybinding. The discussion is here: https

Re: Is function 'org-insert-property-drawer' usable?

2023-01-05 Thread Ihor Radchenko
Max Nikulin writes: >> I guess we can just make it into a command. I see no downsides. > > At least it was an intentional change: > > commit 471ddbd14e2bb3e7689cdca5e6a461e54b8be9d8 > Author: Bastien Guerry > Date: Thu Jan 26 09:18:10 2012 +0100 > > Improve `org-insert-drawer' and related

Re: Is function 'org-insert-property-drawer' usable?

2023-01-04 Thread Max Nikulin
On 31/12/2022 23:24, alain.coch...@unistra.fr wrote: For me, C-u C-c C-x d does insert a 'PROPERTIES' drawer, but M-x org-insert-property-drawer does not. I suppose, the idea is to invoke it like C-u M-x org-insert-drawer On 01/01/2023 20:23, Ihor Radchenko wrote: Ruijie Yu via

Re: Is function 'org-insert-property-drawer' usable?

2023-01-01 Thread Alain . Cochard
Ihor Radchenko writes on Sun 1 Jan 2023 13:23: > I guess we can just make it into a command. For me, that would be ideal. Otherwise, I think it would help a bit to change the manual from ... this command calls ‘org-insert-property-drawer’ ... to ... this command calls the non interact

Re: Is function 'org-insert-property-drawer' usable?

2023-01-01 Thread Ihor Radchenko
Ruijie Yu via "General discussions about Org-mode." writes: > According to the source code of `org-insert-drawer', I think the manual > is saying that when ARG is non-nil, the function simply calls > `org-insert-property-drawer'. However, `org-insert-property-drawer' is > not declared interactiv

Re: Is function 'org-insert-property-drawer' usable?

2022-12-31 Thread General discussions about Org-mode.
alain.coch...@unistra.fr writes: > The manual says: > >You can interactively insert a drawer at point by calling >‘org-insert-drawer’, which is bound to ‘C-c C-x d’. [...] With a >prefix argument, this command calls ‘org-insert-property-drawer’, >which creates a ‘PROPERTIES’ dra

Is function 'org-insert-property-drawer' usable?

2022-12-31 Thread Alain . Cochard
The manual says: You can interactively insert a drawer at point by calling ‘org-insert-drawer’, which is bound to ‘C-c C-x d’. [...] With a prefix argument, this command calls ‘org-insert-property-drawer’, which creates a ‘PROPERTIES’ drawer right below the current headline. Fo