emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Creating live elisp link


From: Samuel Wales
Subject: Re: [O] Creating live elisp link
Date: Tue, 19 Mar 2013 20:15:23 -0700

On 3/19/13, Lawrence Bottorff <address@hidden> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]