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 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.



Reply via email to