From: Samuel Wales <samologist@gmail.com>
To: Lawrence Bottorff <galaxybeinglambda@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Creating live elisp link
Date: Tue, 19 Mar 2013 20:15:23 -0700 [thread overview]
Message-ID: <CAJcAo8sKYYmJ5RVo8nN70JJR5f5tw1QpsONkEqCdthbzYFN_7g@mail.gmail.com> (raw)
In-Reply-To: <CAOPJoVrci1dmJtq6-msY7wk3e-hwGw4x0qVhurVNGsAcK4jm1g@mail.gmail.com>
On 3/19/13, Lawrence Bottorff <galaxybeinglambda@gmail.com> wrote:
> Link: elisp:(with-output-to-temp-buffer "scratch" (eval
> '(lisp-interaction-mode)))
C-h f:
===
This construct makes buffer BUFNAME empty before running BODY.
It does not make the buffer current for BODY.
Instead it binds `standard-output' to that buffer, so that output
generated with `prin1' and similar functions in BODY goes into
the buffer.
===
Try with-current-buffer.
> (with-output-to-temp-buffer "scratch" (eval '(lisp-interaction-mode))) =>
(eval '(x)) means (x).
Samuel
--
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
The disease DOES progress. MANY people have died from it. ANYBODY
can get it. There is NO hope without action. This means YOU.
prev parent reply other threads:[~2013-03-20 3:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-20 2:44 Creating live elisp link Lawrence Bottorff
2013-03-20 3:15 ` Samuel Wales [this message]
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=CAJcAo8sKYYmJ5RVo8nN70JJR5f5tw1QpsONkEqCdthbzYFN_7g@mail.gmail.com \
--to=samologist@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=galaxybeinglambda@gmail.com \
/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).