From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: how to handle backend-specific types as fuzzy link targets during export Date: Tue, 24 Jun 2014 06:59:53 -0400 Message-ID: <87pphyefo6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzOT8-00088E-IX for emacs-orgmode@gnu.org; Tue, 24 Jun 2014 07:00:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzOT2-0003Bl-Jh for emacs-orgmode@gnu.org; Tue, 24 Jun 2014 07:00:54 -0400 Received: from mail-qg0-x22f.google.com ([2607:f8b0:400d:c04::22f]:47927) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzOT2-0003Bc-GG for emacs-orgmode@gnu.org; Tue, 24 Jun 2014 07:00:48 -0400 Received: by mail-qg0-f47.google.com with SMTP id q108so87753qgd.20 for ; Tue, 24 Jun 2014 04:00:47 -0700 (PDT) Received: from bagel (pool-74-111-105-28.pitbpa.fios.verizon.net. [74.111.105.28]) by mx.google.com with ESMTPSA id j79sm8667248qge.34.2014.06.24.04.00.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Jun 2014 04:00:46 -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 Hello, In the function `org-export-resolve-fuzzy-link' at line 4078 of ox.el the `org-element-all-elements' variable is used to map over all elements in the parse tree when looking for a possible link target. However some trees hold valid backend-specific types which are not members of the `org-element-all-elements' variable (e.g., `latex-fragment'). This results in named targets not being resolved during export. I'm currently working around this locally by let-binding `org-element-all-elements' in line 1967 of ox-latex.el, but I imagine there should be a more general solution. Thoughts? Thanks, Eric -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D (see https://u.fsf.org/yw)