From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs 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 Message-ID: <9ttwnsn3v3.fsf@fencepost.gnu.org> References: <83mvtmcau2.fsf@gnu.org> <9aoae1wx8m.fsf@fencepost.gnu.org> <83h9jtc4eo.fsf@gnu.org> <6z4mfsu8pf.fsf@fencepost.gnu.org> <83wpsoby4s.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1449602543 17668 80.91.229.3 (8 Dec 2015 19:22:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Dec 2015 19:22:23 +0000 (UTC) Cc: Andreas Schwab , Keith David Bershatsky , 21104@debbugs.gnu.org To: Anders Lindgren Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 08 20:22:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a6Nq0-0005oL-Lh for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Dec 2015 20:22:12 +0100 Original-Received: from localhost ([::1]:33180 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6Npu-0006f3-Ob for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Dec 2015 14:22:06 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6Npr-0006ec-9P for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 14:22:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6Npq-00029l-Im for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 14:22:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6Npq-00029b-G5 for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 14:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a6Npq-0004mF-3t for bug-gnu-emacs@gnu.org; Tue, 08 Dec 2015 14:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Dec 2015 19:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21104 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21104-submit@debbugs.gnu.org id=B21104.144960249118295 (code B ref 21104); Tue, 08 Dec 2015 19:22:01 +0000 Original-Received: (at 21104) by debbugs.gnu.org; 8 Dec 2015 19:21:31 +0000 Original-Received: from localhost ([127.0.0.1]:43711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a6NpL-0004l0-3u for submit@debbugs.gnu.org; Tue, 08 Dec 2015 14:21:31 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37107) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a6NpJ-0004ks-AJ for 21104@debbugs.gnu.org; Tue, 08 Dec 2015 14:21:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a6NpI-0001xU-Fw for 21104@debbugs.gnu.org; Tue, 08 Dec 2015 14:21:29 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36300) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a6NpD-0001rb-Ut; Tue, 08 Dec 2015 14:21:23 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1a6NpA-0000l0-9j; Tue, 08 Dec 2015 14:21:20 -0500 X-Spook: U.S. Consulate Looting 9/11 Irish Republican Army Mole X-Ran: !Spb%sGQ2*RrM5zLxYau}dJtbJ.(yDE5RPOaQ+Jy4{[l?nB!aF (Anders Lindgren's message of "Tue, 8 Dec 2015 20:16:29 +0100") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:109794 Archived-At: 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.