From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: Creating live elisp link Date: Tue, 19 Mar 2013 20:15:23 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UI9Us-0002P1-04 for emacs-orgmode@gnu.org; Tue, 19 Mar 2013 23:15:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UI9Ur-0007VB-3U for emacs-orgmode@gnu.org; Tue, 19 Mar 2013 23:15:25 -0400 Received: from mail-we0-x230.google.com ([2a00:1450:400c:c03::230]:60603) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UI9Uq-0007Uz-PI for emacs-orgmode@gnu.org; Tue, 19 Mar 2013 23:15:25 -0400 Received: by mail-we0-f176.google.com with SMTP id s43so947435wey.7 for ; Tue, 19 Mar 2013 20:15:24 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Lawrence Bottorff Cc: emacs-orgmode@gnu.org On 3/19/13, Lawrence Bottorff 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.