From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Bausch Subject: Re: Problem with links whose description looks like a link Date: Thu, 20 Nov 2014 08:50:42 +0100 Message-ID: <87lhn6cnu5.fsf@gelnhausen.dvs.informatik.tu-darmstadt.de> References: <87389fegnf.fsf@gelnhausen.dvs.informatik.tu-darmstadt.de> <87y4r7dyz7.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrMW5-0005VM-IG for emacs-orgmode@gnu.org; Thu, 20 Nov 2014 02:51:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrMW0-0008OY-Ah for emacs-orgmode@gnu.org; Thu, 20 Nov 2014 02:51:01 -0500 Received: from plane.gmane.org ([80.91.229.3]:46024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrMW0-0008Mc-3h for emacs-orgmode@gnu.org; Thu, 20 Nov 2014 02:50:56 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XrMVx-0005ct-NS for emacs-orgmode@gnu.org; Thu, 20 Nov 2014 08:50:53 +0100 Received: from gelnhausen.dvs.informatik.tu-darmstadt.de ([130.83.166.167]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Nov 2014 08:50:53 +0100 Received: from bausch by gelnhausen.dvs.informatik.tu-darmstadt.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Nov 2014 08:50:53 +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: emacs-orgmode@gnu.org Hello and thanks for the answer! Nicolas Goaziou writes: > Daniel Bausch writes: > >> I'm using Org from Git master. If I have a link like, e.g. >> >> [[file:somefile.c::int whatsoever][file:somefile.c::int whatsoever]] >> >> and a a file somefile.c with the lines >> >> int some; >> int whatsoever; >> >> then opening the link with the cursor before the space jumps to the >> first line, while opening the link on the word "whatsoever" jumps to the >> second line. It seems like Org detects a link within the link as if the >> brackets were missing. > > This is correct. > > Org allows plain links (e.g. file:foo.org) within bracket links. This is > the sole way to have, for example, an inline image as a link. Hmm, ok, I understand the intention regarding the detection and display of inline images as part of a link description; however, even for inline images following the link jumps to the target of the outer link and not the image itself -- as long as inline images are toggled on. Without showing inline images following the link opens the image regardless of the original link target. I think that the effective target of a link should never be affected by its description. Even fontification and mouse hovering info thinks that the link still targets at its target, i.e. when hovering over the link the whole link gets highlighted and not just the inner one and the tooltip shows the whole target of the outer link, while clicking jumps to the link contained within the description. If there is a real application/need for nested links (besides inline images used as part of link description) I would rather expect them to be written explicitly by typing another pair of brackets nested within the description; however, this syntax is currently not parsed as such. Regards, Daniel -- MSc. Daniel Bausch Research Assistant (Computer Science) Technische Universität Darmstadt http://www.dvs.tu-darmstadt.de/staff/dbausch