From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jacob Gerlach Subject: Re: Possible bug: Can not search for text in links - only description Date: Mon, 23 Mar 2015 08:57:36 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60732) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ya1vI-0004Og-Pw for emacs-orgmode@gnu.org; Mon, 23 Mar 2015 08:57:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ya1vF-0001Bn-Nk for emacs-orgmode@gnu.org; Mon, 23 Mar 2015 08:57:40 -0400 Received: from mail-qg0-x22c.google.com ([2607:f8b0:400d:c04::22c]:35273) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ya1vF-0001Bd-K0 for emacs-orgmode@gnu.org; Mon, 23 Mar 2015 08:57:37 -0400 Received: by qgf74 with SMTP id 74so18373692qgf.2 for ; Mon, 23 Mar 2015 05:57:37 -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: Org-mode On Mon, Mar 23, 2015 at 8:45 AM, Rainer M Krug wrote: > First I must say it makes sense to give the error message, although I > was quite surprised. > > But the message should contain a string one can easily search for. And I > guess the most used search function is C-s I think the message should be > changes to the description of the link and the target in brackets. This > would make searching easier. FWIW, I completely agree. I would be happy to provide a patch for this, but I'm not sure how to get the link's description inside org-export-resolve-fuzzy-link. AFAICT, the `link' object passed to this function has properties as determined by `org-element-link-parser'. The properties listed in the docstring don't include the description. Could anyone provide a hint on how to get the link's description? Regards, Jake