From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: HTML Export of Links to Source Blocks seems broken Date: Mon, 20 Jun 2016 22:23:54 +0200 Message-ID: <877fdjbodh.fsf@saiph.selenimh> References: <874m8sxngx.fsf@saiph.selenimh> <87r3bwvxke.fsf@saiph.selenimh> <87fus82fai.fsf@saiph.selenimh> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bF5jq-0008G3-An for emacs-orgmode@gnu.org; Mon, 20 Jun 2016 16:24:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bF5jo-0005oH-JM for emacs-orgmode@gnu.org; Mon, 20 Jun 2016 16:24:05 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:47876) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bF5jo-0005nj-CY for emacs-orgmode@gnu.org; Mon, 20 Jun 2016 16:24:04 -0400 In-Reply-To: (timor's message of "Mon, 20 Jun 2016 15:07:53 +0200") 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" To: timor Cc: emacs-orgmode@gnu.org timor writes: > The thing is, I have a lot of code blocks that define functions, which > are named exactly after that function. And as I frequently want to > reference one of those in the text, I don't want to say > > [[test_fun][test_fun]] .. > [[another_long_function][another_long_function]]... > > everytime, since [[test_fun]] already contains all the information > needed to generate the link, and the description. The description is > always the same as the link target. That is why I would want to > change the way that the default link description is generated in the > case that none is provided. You can use a hook, which will work at the Org level, or a filter, to work at the HTML level. See, e.g., (info "(org) Advanced configuration"). > I think that would make sense, given that the way the default > description is generated at the moment does not seem to provide any > benefit. It does, but not in your example. See (info "(org) Internal links") for details. Regards,