[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21104: 25.0.50; relative paths are added to load-path without -nsl (
From: |
Glenn Morris |
Subject: |
bug#21104: 25.0.50; relative paths are added to load-path without -nsl (bug#21104) |
Date: |
Tue, 08 Dec 2015 14:21:20 -0500 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Anders Lindgren wrote:
> Yes, this works.
>
>
> However, I think it's a better solution to correct `decode_env_path' so
> that it returns nil when the string is empty and the `empty' parameter is 1.
I think you've jumped outside the scope of this report.
I would suggest just going with the simple solution, absent evidence of
some other problem.
> Also, I haven't investigated the cases where there is nothing between path
> separators, as in "foo::bar" (or when the string starts or ends with a
> separator). Today, it looks like it returns either `("foo" "." "bar)' or
> `("foo" nil "bar")' -- although I haven't verified this. A better solution
> would be to simply return `("foo" "bar")' -- path separators without
> anything in between are often simply a user mistake, we don't want to
> pollute system variables like `load-path' because of them.
The feature is intentional, see 17e0445be4a.
I won't claim it's perfect, but IIRC I did test such things at the time.
- bug#21104: 25.0.50; relative paths are added to load-path without -nsl (bug#21104), (continued)
- bug#21104: 25.0.50; relative paths are added to load-path without -nsl (bug#21104), Anders Lindgren, 2015/12/07
- bug#21104: 25.0.50; relative paths are added to load-path without -nsl (bug#21104), Glenn Morris, 2015/12/07
- bug#21104: 25.0.50; relative paths are added to load-path without -nsl (bug#21104), Glenn Morris, 2015/12/07
- bug#21104: 25.0.50; relative paths are added to load-path without -nsl (bug#21104), Eli Zaretskii, 2015/12/08
- bug#21104: 25.0.50; relative paths are added to load-path without -nsl (bug#21104), Andreas Schwab, 2015/12/08
- bug#21104: 25.0.50; relative paths are added to load-path without -nsl (bug#21104), Eli Zaretskii, 2015/12/08
- bug#21104: 25.0.50; relative paths are added to load-path without -nsl (bug#21104), Andreas Schwab, 2015/12/08
- bug#21104: 25.0.50; relative paths are added to load-path without -nsl (bug#21104), Glenn Morris, 2015/12/08
- bug#21104: 25.0.50; relative paths are added to load-path without -nsl (bug#21104), Eli Zaretskii, 2015/12/08
- bug#21104: 25.0.50; relative paths are added to load-path without -nsl (bug#21104), Anders Lindgren, 2015/12/08
- bug#21104: 25.0.50; relative paths are added to load-path without -nsl (bug#21104),
Glenn Morris <=
- bug#21104: 25.0.50; relative paths are added to load-path without -nsl (bug#21104), Anders Lindgren, 2015/12/08
- bug#21104: 25.0.50; relative paths are added to load-path without -nsl (bug#21104), Andreas Schwab, 2015/12/09
- bug#21104: 25.0.50; relative paths are added to load-path without -nsl (bug#21104), Eli Zaretskii, 2015/12/08
- bug#21104: 25.0.50; relative paths are added to load-path without -nsl (bug#21104), Eli Zaretskii, 2015/12/07