emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: Rafal Florek <raf@irmak.com.pl>
Cc: emacs-orgmode@gnu.org
Subject: Re: regexp link on windows problem
Date: Fri, 11 Mar 2011 09:45:01 +0100	[thread overview]
Message-ID: <87r5aenj02.fsf@gnu.org> (raw)
In-Reply-To: <dc1f6674edc6f4d1cc905a2a8a35a506.qmail@home.pl> (Rafal Florek's message of "Tue, 08 Mar 2011 15:54:50 +0100")

Hi Rafal,

"Rafal Florek" <raf@irmak.com.pl> 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 is the `expand-file-name' function, eg.
>
> for a C source line - a_struct.a_field = 1;
>
> on linux:
> (expand-file-name "~/file.h::/a_struct[ \\t]*\\.[ \\t]*a_field[ \\t]*=[ 
> \\t]*1[ \\t]*;/"))
> becomes:
> /home/user/file.h::/a_struct[ \t]*\.[ \t]*a_field[ \t]*=[ \t]*1[ \t]*;/
>
> on windows:
> d:/Profiles/user/Application Data/file.h::/a_struct[ /t]*/.[ /t]*a_field[ 
> /t]*=[ /t]*1[ /t]*;/

AFAIK expand-file-name doesn't take a regexp as its argument.

HTH,

-- 
 Bastien

  reply	other threads:[~2011-03-11  8:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-08 14:54 regexp link on windows problem Rafal Florek
2011-03-11  8:45 ` Bastien [this message]
2011-03-11 13:41   ` Rafal
2011-03-20 17:01     ` David Maus
2011-03-21  7:28       ` Rafal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r5aenj02.fsf@gnu.org \
    --to=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=raf@irmak.com.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).