[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is function 'org-insert-property-drawer' usable?
From: |
Max Nikulin |
Subject: |
Re: Is function 'org-insert-property-drawer' usable? |
Date: |
Wed, 4 Jan 2023 18:53:21 +0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
On 31/12/2022 23:24, Alain.Cochard@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 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 interactive, so you wouldn't be able to M-x it.
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 documentation.
* org.el (org-insert-property-drawer): Not an interactive
command anymore.
(org-insert-drawer): With a prefix argument, insert a property
drawer. Check for headline within the region before inserting
the drawer. Don't include special drawers in the completion
table.
(org-mode-map): New keybinding `C-c C-x d' for
`org-insert-drawer'.
* org.texi (Drawers): How to insert/complete drawers.
Thanks to Nicolas Goaziou for the discussion and the patch.