[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Links to C/C++ source code lines

From: Bastien
Subject: Re: [O] Links to C/C++ source code lines
Date: Fri, 21 Oct 2011 19:32:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux)

Hi Rafal,

Rafal <address@hidden> writes:

> I wrote a small hook for creating org-mode links to C/C++ source code lines 
> in 
> the form of a regexp so the links stay valid even if the source code changes
> eg. 
> a source line
>         while(ptr < ptr_end)
> has a link
> file:/home/user/src/example.cpp::/while[ \t]*([ \t]*ptr[ \t]*<[ \t]*ptr_end[ 
> \t]
> *)#1/
> The number after the hash is a sequence number in case there are more than 
> one 
> such line
> If you are interested: http://rafflo.w.interia.pl/org-c-link.el

Looks nice, thanks.  Just wondering: are you aware of the "A.3 Adding
hyperlink types" section in the manual?  You core uses advice instead 
of the `org-add-link-type' function -- is that on purpose?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]