From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: How to change a link? Date: Wed, 15 Oct 2014 18:17:27 +0200 Message-ID: <877g01joiw.fsf@wmi.amu.edu.pl> References: <87a94yjia9.fsf@wmi.amu.edu.pl> <87zjcxzttn.fsf@gmail.com> <878ukhk6f1.fsf@wmi.amu.edu.pl> <87iojlzm4k.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeRGg-0000uj-VB for emacs-orgmode@gnu.org; Wed, 15 Oct 2014 12:17:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XeRGc-0002dL-9K for emacs-orgmode@gnu.org; Wed, 15 Oct 2014 12:17:42 -0400 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:33525) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeRGc-0002d7-2k for emacs-orgmode@gnu.org; Wed, 15 Oct 2014 12:17:38 -0400 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 5F7C65B877 for ; Wed, 15 Oct 2014 18:17:35 +0200 (CEST) Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id un+dsqQkgKmQ for ; Wed, 15 Oct 2014 18:17:35 +0200 (CEST) Received: from localhost (99-229.echostar.pl [213.156.99.229]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 0F1445B874 for ; Wed, 15 Oct 2014 18:17:34 +0200 (CEST) In-reply-to: <87iojlzm4k.fsf@gmail.com> 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 On 2014-10-15, at 12:02, Thorsten Jolitz wrote: > Marcin Borkowski writes: > >> Thanks, but... >> >> 1. I have no org-dp-contents function in my Org. (Org-mode version >> 8.2.5f (8.2.5f-elpa @ /home/marcin/.emacs.d/elpa/org-20140116/)). > > org-dp.el (and org-dp-lib.el) are libraries of mine that aim to make > local programming with org-elements (org-element-at-point) as convenient > as global programming (org-element-parse-buffer), see > https://github.com/tj64/org-dp. I find them very useful, unfortunately > they have been widely ignored so far ;) I see. Unfortunately, I'll ignore them, too, for the simple reason that I do not want to introduce additional dependencies (and I have to walk through the whole document anyway). >> 2. What about internal links like >> >> [[My Target][Find my target]] >> >> (taken from the manual)? >> >> In fact, I don't care about /external/ links at all; I'm /only/ >> interested in links pointing to the file they are in. > > This was just an example (using local parsing for convenience), giving > the hint that you could put some links of interest in an Org file, parse > it, and look at the (link (:type ...)) alists in the parse tree to see > the properties you need to get and set. The internal link representation > is the same for all types anyway. I see. What is the most interesting for me is the idea of getting/setting properties, that's what I was looking for. Thanks, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University