From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: using info in a filter Date: Mon, 28 Mar 2016 11:16:56 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43373) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akYub-0007yi-Hg for emacs-orgmode@gnu.org; Mon, 28 Mar 2016 11:17:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akYuY-0004Za-C7 for emacs-orgmode@gnu.org; Mon, 28 Mar 2016 11:17:01 -0400 Received: from mail-qk0-x22e.google.com ([2607:f8b0:400d:c09::22e]:35567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akYuY-0004ZW-8M for emacs-orgmode@gnu.org; Mon, 28 Mar 2016 11:16:58 -0400 Received: by mail-qk0-x22e.google.com with SMTP id o6so115498685qkc.2 for ; Mon, 28 Mar 2016 08:16:58 -0700 (PDT) Received: from Johns-MacBook-Air.local (KITCHIN-TIMEMACHINE.CHEME.CMU.EDU. [128.2.54.215]) by smtp.gmail.com with ESMTPSA id b6sm12139488qkh.12.2016.03.28.08.16.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Mar 2016 08:16:56 -0700 (PDT) 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: Org Mode Mailing List How does one use the info in a filter? e.g. in (defun my-block-filter (data backend info)) data is the transcoded block string, and I want to add something to it based on say the type of block, name and header of the corresponding block. Is it possible to get to that from the info? Or is this a case where it is easier to make a custom backend with a function like: (defun sb-format (sb contents info)) that builds up the output string? -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu