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

2011-10-29 Thread Rafal
Bastien altern.org> writes: > > > >> 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? > > > > No, I missed that paragraph. That would be

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

2011-10-28 Thread Bastien
Hi Rafal, Rafal writes: > Bastien altern.org> writes: > >> 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? > > No, I missed that paragrap

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

2011-10-24 Thread Rafal
Bastien altern.org> writes: > > 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? > No, I missed that paragraph. That would be a cleaner sol

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

2011-10-21 Thread Bastien
Hi Rafal, Rafal 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::/whi

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

2011-10-13 Thread Rafal
Hi, 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[