* Inserting property drawers and comments
@ 2014-12-09 20:40 RCY
2014-12-09 21:05 ` Subhan Michael Tindall
2014-12-09 21:14 ` Kyle Meyer
0 siblings, 2 replies; 4+ messages in thread
From: RCY @ 2014-12-09 20:40 UTC (permalink / raw)
To: Emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 437 bytes --]
Hi,
I can insert a property drawer using the 'C-u C-c C-x d' key sequence. Is
there a way to do so by directly calling the org-insert-property-drawer
function? I get a 'Wrong type argument: commandp, org-insert-property
drawer error' when I try to call it using a shortcut command. I have a
similar problem with org-insert-comment and org-insert-item, but others
like org-insert-link, org-insert-todo-heading, etc work fine.
Thanks
RC
[-- Attachment #2: Type: text/html, Size: 536 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Inserting property drawers and comments
2014-12-09 20:40 Inserting property drawers and comments RCY
@ 2014-12-09 21:05 ` Subhan Michael Tindall
2014-12-09 21:14 ` Kyle Meyer
1 sibling, 0 replies; 4+ messages in thread
From: Subhan Michael Tindall @ 2014-12-09 21:05 UTC (permalink / raw)
To: RCY, Emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 1407 bytes --]
You probably need to specify arguments, which can’t be done with M-x <func>
Try M-: (<func> <arg1> <arg2>…)
From: emacs-orgmode-bounces+subhant=familycareinc.org@gnu.org [mailto:emacs-orgmode-bounces+subhant=familycareinc.org@gnu.org] On Behalf Of RCY
Sent: Tuesday, December 09, 2014 12:40 PM
To: Emacs-orgmode@gnu.org
Subject: [O] Inserting property drawers and comments
Hi,
I can insert a property drawer using the 'C-u C-c C-x d' key sequence. Is there a way to do so by directly calling the org-insert-property-drawer function? I get a 'Wrong type argument: commandp, org-insert-property drawer error' when I try to call it using a shortcut command. I have a similar problem with org-insert-comment and org-insert-item, but others like org-insert-link, org-insert-todo-heading, etc work fine.
Thanks
RC
This message is intended for the sole use of the individual and entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you.
[-- Attachment #2: Type: text/html, Size: 4605 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Inserting property drawers and comments
2014-12-09 20:40 Inserting property drawers and comments RCY
2014-12-09 21:05 ` Subhan Michael Tindall
@ 2014-12-09 21:14 ` Kyle Meyer
2014-12-09 21:26 ` R C
1 sibling, 1 reply; 4+ messages in thread
From: Kyle Meyer @ 2014-12-09 21:14 UTC (permalink / raw)
To: RCY; +Cc: Emacs-orgmode
RCY <recif@yahoo.com> wrote:
> I can insert a property drawer using the 'C-u C-c C-x d' key
> sequence. Is there a way to do so by directly calling the
> org-insert-property-drawer function? I get a 'Wrong type argument:
> commandp, org-insert-property drawer error' when I try to call it
> using a shortcut command.
It's not an interactive function. If you prefer to bind it directly to
a key, you can wrap it in a command and then bind that to a key.
(defun my/org-insert-property-draw ()
(interactive)
(org-insert-property-drawer))
--
Kyle
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Inserting property drawers and comments
2014-12-09 21:14 ` Kyle Meyer
@ 2014-12-09 21:26 ` R C
0 siblings, 0 replies; 4+ messages in thread
From: R C @ 2014-12-09 21:26 UTC (permalink / raw)
To: emacs-orgmode
Kyle Meyer <kyle <at> kyleam.com> writes:
> It's not an interactive function. If you prefer to bind it directly to
> a key, you can wrap it in a command and then bind that to a key.
>
> (defun my/org-insert-property-draw ()
> (interactive)
> (org-insert-property-drawer))
>
Thanks! That worked.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-12-09 21:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-09 20:40 Inserting property drawers and comments RCY
2014-12-09 21:05 ` Subhan Michael Tindall
2014-12-09 21:14 ` Kyle Meyer
2014-12-09 21:26 ` R C
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).