From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: [PATCH] ox-extra.el: Fix filtering of latex header blocks Date: Tue, 10 Nov 2015 10:11:01 -0500 Message-ID: <877flp51q2.fsf@kyleam.com> References: <87oaf3it1c.fsf@kyleam.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47352) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwAZj-0006ld-CR for emacs-orgmode@gnu.org; Tue, 10 Nov 2015 10:11:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZwAZf-0004HM-7l for emacs-orgmode@gnu.org; Tue, 10 Nov 2015 10:11:11 -0500 Received: from mail-qk0-x230.google.com ([2607:f8b0:400d:c09::230]:36705) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwAZf-0004H9-2e for emacs-orgmode@gnu.org; Tue, 10 Nov 2015 10:11:07 -0500 Received: by qkcl124 with SMTP id l124so86368459qkc.3 for ; Tue, 10 Nov 2015 07:11:06 -0800 (PST) In-Reply-To: (Sebastian Christ's message of "Tue, 10 Nov 2015 10:54:59 +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: Sebastian Christ Cc: emacs-orgmode@gnu.org Sebastian Christ writes: [...] > >> + (let* ((beg (third pos)) > >> + (end (second pos)) > >> + (post-affiliated (first pos)) > Kyle> > Kyle> Hmm, the pos items are constructed as > Kyle> > Kyle> (list (org-element-property :begin block) > Kyle> (org-element-property :end block) > Kyle> (org-element-property :post-affiliated block))))))) > Kyle> > Kyle> so shouldn't beg be the first element and post-affiliated the third? > > I thought it would be better to change as little as > possible. Rearranging the list is obviously the cleaner solution. I'll > change that. Sorry, my question wasn't clear. I wasn't concerned about arrangement, but about whether you're accessing the correct element of the list. If the list is constructed as (:begin :end :post-affiliated), why does your let-binding above take the third element as beg and the first element as post-affiliated? -- Kyle