[O] regexp link on windows problem

2011-03-08 Thread Rafal Florek
Hello, While writing custom function to set regexp search string for c/c++ code I stumbled upon a backslash to slash translation problem. The `org-insert-link' function destroys my regexp by changing all backslashes to slashes. (I construct the regexp like this: (concat token1 "[ \\t]*" token2

Re: [O] regexp link on windows problem

2011-03-11 Thread Bastien
Hi Rafal, "Rafal Florek" writes: > The `org-insert-link' function destroys my regexp by changing all > backslashes to slashes. Can you give an example? > (I construct the regexp like this: (concat token1 "[ \\t]*" token2)) > It happens only under windows, under linux it is ok. > The culprit

Re: [O] regexp link on windows problem

2011-03-11 Thread Rafal
Bastien altern.org> writes: Hi Bastien, > > Can you give an example? > So I'm trying to write a custom function to set regexp search string for c/c++ code by writing org-create-file-search-functions hook. (code #1 below ) After using the hook by issuing org-store-link in c/c++ buffer, and or

Re: [O] regexp link on windows problem

2011-03-20 Thread David Maus
At Fri, 11 Mar 2011 13:41:45 + (UTC), Rafal wrote: > > Bastien altern.org> writes: > > Hi Bastien, > > > > > Can you give an example? > > > > So I'm trying to write a custom function to set regexp search string for c/c++ > code by writing org-create-file-search-functions hook. (code #1 below )