From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: install org-element, org-db
Date: Fri, 28 Aug 2015 14:21:03 -0400 [thread overview]
Message-ID: <87io7zw9yo.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: CAFAhFSVZkjk+E-yADfbO=orriT__adKXArTjLbK9RkLAs7pKNA@mail.gmail.com
Lawrence Bottorff <borgauf@gmail.com> writes:
> Yes, I got confused when I did M-x org-element-interpret-data and got nothing. I used it in a code block
> and it worked fine. Beginner question for sure: Why do these functions not work as M-x commands, rather,
> just in elisp code?
>
It's the difference between "commands" and functions. Commands are
functions that contain an (interactive) form and can be executed with
M-x <command> RET. Functions need to be evaluated with M-: (<function>
<args>...) RET.
See the "command" entry in
(info "(elisp) What is a function")
and references therein. I should say that the above is not quite
accurate but it captures 99% of what you need to know. Read the
references for the whole story.
> BTW, how would I run org-element-interpret-data and have it just place the output directly into my
> buffer without placing it in the #+RESULTS: output format? I see I can customize the #+RESULTS: word
> itself, and, of course, :results raw almost gets it, but still puts the #+RESULTS: label at the top.
>
M-: (org-element-interpret-data) RET
would evaluate the function, but any results would go to the echo area,
not your buffer. Adding a prefix argument would do what you want:
C-u M-: (org-element-interpret-data) RET
> On Fri, Aug 28, 2015 at 4:27 PM, Rasmus <rasmus@gmx.us> wrote:
>
> Lawrence Bottorff <borgauf@gmail.com> writes:
>
> > What's the best way to install latest org-element and org-db? They're not
> > default, are they? They're not in ELPA.
>
> Don't know what org-db is. Re org-element you should probably use the one
> that comes with your org-package. IOW, you general org version and your
> org-element version should be in sync.
>
> Hope it helps,
> Rasmus
>
> --
> Tack, ni svenska vakttorn. Med plutonium tvingar vi dansken på knä!
Nick
next prev parent reply other threads:[~2015-08-28 18:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-28 16:12 install org-element, org-db Lawrence Bottorff
2015-08-28 16:27 ` Rasmus
2015-08-28 18:02 ` Lawrence Bottorff
2015-08-28 18:17 ` Rasmus
2015-08-28 18:21 ` Nick Dokos [this message]
2015-08-28 18:34 ` Nick Dokos
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87io7zw9yo.fsf@alphaville.usersys.redhat.com \
--to=ndokos@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.