emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Max Nikulin <manikulin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Is function 'org-insert-property-drawer' usable?
Date: Wed, 4 Jan 2023 18:53:21 +0700	[thread overview]
Message-ID: <tp3pbi$dk$1@ciao.gmane.io> (raw)
In-Reply-To: <87v8lq75id.fsf@localhost>

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.




  parent reply	other threads:[~2023-01-04 11:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-31 16:24 Is function 'org-insert-property-drawer' usable? Alain.Cochard
2022-12-31 16:36 ` Ruijie Yu via General discussions about Org-mode.
2023-01-01 13:23   ` Ihor Radchenko
2023-01-01 16:43     ` Alain.Cochard
2023-01-04 11:53     ` Max Nikulin [this message]
2023-01-05  9:41       ` Ihor Radchenko
2023-01-05 10:15         ` Bastien Guerry
2023-01-06 13:32           ` Ihor Radchenko
2023-01-05 23:13       ` When is a function an interactive function? [was Re: Is function 'org-insert-property-drawer' usable?] Alain.Cochard
2023-01-06  4:45         ` Max Nikulin
2023-01-07 20:33         ` Jean Louis
2023-02-03 11:23         ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='tp3pbi$dk$1@ciao.gmane.io' \
    --to=manikulin@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).