From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Extract source code /with/ captions Date: Mon, 13 Jan 2014 12:06:21 -0500 Message-ID: <87ob3fn75e.fsf@alphaville.bos.redhat.com> References: <3cbde2bd-2dba-4c2f-85b7-62fd2a9daffc@dewdrop-world.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2kyS-00068m-6n for emacs-orgmode@gnu.org; Mon, 13 Jan 2014 12:06:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2kyK-0004ME-UF for emacs-orgmode@gnu.org; Mon, 13 Jan 2014 12:06:52 -0500 Received: from plane.gmane.org ([80.91.229.3]:56006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2kyK-0004M6-OM for emacs-orgmode@gnu.org; Mon, 13 Jan 2014 12:06:44 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W2kyE-0005cZ-DQ for emacs-orgmode@gnu.org; Mon, 13 Jan 2014 18:06:38 +0100 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Jan 2014 18:06:38 +0100 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Jan 2014 18:06:38 +0100 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: emacs-orgmode@gnu.org James Harkins writes: > ELEMENT: > (((#("25% coin toss in SuperCollider" 0 30 (:parent #2))))) > > This is correct, and I also see that I can use (plist-get ... :value) > to get the code string. > > Here, I'm hung up on some (large?) gaps in my elisp knowledge. I have > no idea what #(...) signifies, or what functions I can use to get the > string out of it. "#" Is not an especially useful search term in > google, bing etc... > > Can anyone help with my next step? > Not sure whether this will help but these are basically just strings with text properties. See (info "(elisp) Text Properties in Strings") > Also, big thanks to Nicolas for org-element. The fact that an elisp > novice can extract captions for source blocks in about half an hour of > tinkering is nothing short of criminally easy. Spectacular. > Oh, yes indeed! Nick