From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 4d3a595: `load-path' should contain only directory names Date: Wed, 28 Oct 2015 13:21:39 +0900 Message-ID: <22064.19795.871747.612643@turnbull.sk.tsukuba.ac.jp> References: <20151023135532.11512.53356@vcs.savannah.gnu.org> <83mvv8wejc.fsf@gnu.org> <86bnboeymw.fsf@stephe-leake.org> <83wpuadc9k.fsf@gnu.org> <86d1w1ahsy.fsf@stephe-leake.org> <562E2A8A.1030601@yandex.ru> <83wpu9bns4.fsf@gnu.org> <83r3khbhz7.fsf@gnu.org> <83eggg419o.fsf@gnu.org> <834mhc3yu5.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1446006130 6092 80.91.229.3 (28 Oct 2015 04:22:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Oct 2015 04:22:10 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 28 05:22:05 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZrIFR-00077b-7b for ged-emacs-devel@m.gmane.org; Wed, 28 Oct 2015 05:22:05 +0100 Original-Received: from localhost ([::1]:35509 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrIFQ-00043y-Go for ged-emacs-devel@m.gmane.org; Wed, 28 Oct 2015 00:22:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrIFF-00043r-Et for emacs-devel@gnu.org; Wed, 28 Oct 2015 00:21:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrIFE-0003oB-RJ for emacs-devel@gnu.org; Wed, 28 Oct 2015 00:21:53 -0400 Original-Received: from turnbull.sk.tsukuba.ac.jp ([130.158.96.25]:42676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrIFA-0003m3-R5; Wed, 28 Oct 2015 00:21:49 -0400 Original-Received: from steve by turnbull.sk.tsukuba.ac.jp with local (Exim 4.86) (envelope-from ) id 1ZrIF1-0007IB-TM; Wed, 28 Oct 2015 13:21:39 +0900 In-Reply-To: X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta34) "kale" 698a9aa86de4 XEmacs Lucid (x86_64-apple-darwin14.5.0) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: steve@turnbull.sk.tsukuba.ac.jp X-SA-Exim-Scanned: No (on turnbull.sk.tsukuba.ac.jp); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 130.158.96.25 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:192774 Archived-At: Stefan Monnier writes: > > I see nothing wrong with recommending best practices in doc strings. > > I don't see why "foo/bar" is better than "/foo/bar/", really. So it's > not a question of best practice. Actually, usually it's the other way around (unless you think it's a good idea to make an effort to break risky code): (find-file (concat "/foo/bar/" "baz")) and (find-file (concat "/foo/bar/" "/" "baz")) both have the same semantics (at the file system level) as (find-file (expand-file-name "baz" "/foo/bar")) while (find-file (concat "/foo/bar" "baz")) and (find-file (concat "/foo/bar" "/" "baz")) are always different from each other, and only the latter is equivalent to the recommended use of expand-file-name. That's XEmacs's rationale for ensuring that our additions to load-path (and other foo-path variables) are slash-terminated.