From: Richard Copley <rcopley@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>,
Stefan Monnier <monnier@iro.umontreal.ca>,
14513@debbugs.gnu.org
Subject: bug#14513: 24.3.50; Site load-path pieces differ in MSYS build
Date: Sat, 1 Jun 2013 19:00:03 +0100 [thread overview]
Message-ID: <CAPM58ohc2pgdCQbKkopoxx3=v626mZwv8EScyCYveo2EXNquGg@mail.gmail.com> (raw)
In-Reply-To: <8361xx20lb.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 2103 bytes --]
[Sorry, I dropped the list from the CC again.]
On 1 June 2013 18:29, Eli Zaretskii <eliz@gnu.org> wrote:
> > Date: Sat, 1 Jun 2013 18:25:14 +0100
> > From: Richard Copley <rcopley@gmail.com>
> >
> > No I won't, sorry. I'd forgotten: that's not possible without resorting
> to
> > heuristics, because ${locallisppath} is potentially a ":"-separated path.
>
> Is it possible to support only the Windows style? That's the least we
> can do, because the result _must_ be a Windows-style path, or else it
> won't work, since Emacs is a native Windows executable.
>
That might be more logical than supporting only MSYS style.
But note the result is a Windows-style path with the above patch, e.g.
"--enable-locallisppath=/c/emacs/site-lisp"
gives
#define PATH_SITELOADSEARCH "c:/emacs/site-lisp"
On 1 June 2013 18:38, Eli Zaretskii <eliz@gnu.org> wrote:
> > Date: Sat, 1 Jun 2013 18:25:14 +0100
> > From: Richard Copley <rcopley@gmail.com>
> >
> > > It does not, I'm afraid. I'll try and fix that, and send a replacement
> > > patch.
> > >
> >
> > No I won't, sorry. I'd forgotten: that's not possible without resorting
> to
> > heuristics, because ${locallisppath} is potentially a ":"-separated path.
>
> Btw, you need not resort to heuristics even if you don't know whether
> ${locallisppath} is MSYS style or Windows style. You can rely on the
> fact that MSYS transforms the path when it calls a native Windows
> application. Here's an example, using cpp.exe, which is an
> application you can rely on being available and on being a MinGW
> executable:
>
> $ cpp -dM -Dfoo=/d/usr/bin:/c/windows < /dev/null | fgrep foo
> #define foo d:\usr\bin;c:\windows
> $ cpp -dM -Dfoo='d:/usr/bin;c:/windows' < /dev/null | fgrep foo
> #define foo d:/usr/bin;c:/windows
>
> (You'd need to convert backslashes to forward slashes in the first
> example, but that's easy, right?)
>
> The only requirement is that the argument to --locallisppath uses one
> of the two styles consistently. But that is a reasonable requirement,
> I think.
>
Interesting, thanks.
I might have another patch later.
[-- Attachment #2: Type: text/html, Size: 3311 bytes --]
next prev parent reply other threads:[~2013-06-01 18:00 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-30 13:46 bug#14513: 24.3.50; Site load-path pieces differ in MSYS build Richard Copley
2013-05-30 16:40 ` Eli Zaretskii
2013-05-30 17:56 ` Richard Copley
2013-05-30 18:20 ` Eli Zaretskii
2013-05-30 19:02 ` Achim Gratz
2013-05-30 19:16 ` Eli Zaretskii
2013-05-30 19:57 ` Achim Gratz
2013-05-30 20:39 ` Eli Zaretskii
2013-05-30 21:21 ` Stefan Monnier
2013-05-31 19:01 ` Achim Gratz
2013-05-31 19:24 ` Eli Zaretskii
2013-05-30 19:06 ` Stefan Monnier
2013-05-30 19:18 ` Eli Zaretskii
2013-05-30 19:20 ` Richard Copley
[not found] ` <CAPM58ojwzkw8kxKc8P4G0mdsJgmYmo-ZxSbcN1F2J+QVyFaHMw@mail.gmail.com>
2013-05-30 19:29 ` Eli Zaretskii
2013-05-30 20:00 ` Stefan Monnier
2013-05-30 20:42 ` Eli Zaretskii
2013-05-30 21:43 ` Stefan Monnier
2013-05-31 6:20 ` Eli Zaretskii
2013-05-31 9:52 ` Richard Copley
2013-05-31 11:35 ` Eli Zaretskii
2013-05-31 12:55 ` Richard Copley
2013-06-01 16:04 ` Richard Copley
2013-06-01 16:38 ` Eli Zaretskii
2013-06-01 17:06 ` Richard Copley
[not found] ` <CAPM58og6ySbmR28vQH+m7dp-zYgVwrrYqthO6_ZfGodV9Si23w@mail.gmail.com>
[not found] ` <8361xx20lb.fsf@gnu.org>
2013-06-01 18:00 ` Richard Copley [this message]
2013-06-02 11:33 ` Richard Copley
2013-06-04 18:27 ` Richard Copley
2013-06-04 19:37 ` Eli Zaretskii
2013-06-04 20:14 ` Richard Copley
2013-06-04 20:21 ` Glenn Morris
2013-06-07 8:14 ` Eli Zaretskii
2013-06-07 17:48 ` Richard Copley
2013-06-04 23:55 ` Juanma Barranquero
2013-06-06 15:37 ` Eli Zaretskii
2013-06-07 1:49 ` Juanma Barranquero
2013-06-07 6:51 ` Eli Zaretskii
[not found] ` <83ip20469l.fsf@gnu.org>
2013-05-30 19:29 ` bug#14514: Fwd: " Richard Copley
2013-05-30 19:49 ` bug#14513: " Richard Copley
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAPM58ohc2pgdCQbKkopoxx3=v626mZwv8EScyCYveo2EXNquGg@mail.gmail.com' \
--to=rcopley@gmail.com \
--cc=14513@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.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).