From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#18310: 24.3.93; relative links don't work in eww and Windows 7 Date: Thu, 21 Aug 2014 19:17:55 +0300 Message-ID: <83lhqhbyvg.fsf@gnu.org> References: <83wqa2aqgu.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT X-Trace: ger.gmane.org 1408637966 26065 80.91.229.3 (21 Aug 2014 16:19:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Aug 2014 16:19:26 +0000 (UTC) Cc: 18310@debbugs.gnu.org To: joaotavora@gmail.com (=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?=) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 21 18:19:19 2014 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 1XKV55-0005qr-Cb for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Aug 2014 18:19:19 +0200 Original-Received: from localhost ([::1]:33240 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKV54-0005GJ-T2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Aug 2014 12:19:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKV4w-0005FL-6h for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2014 12:19:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKV4p-00054e-9Y for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2014 12:19:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42147) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKV4p-00054T-5p for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2014 12:19:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XKV4o-0007xc-A3 for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2014 12:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Aug 2014 16:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18310 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18310-submit@debbugs.gnu.org id=B18310.140863788730511 (code B ref 18310); Thu, 21 Aug 2014 16:19:02 +0000 Original-Received: (at 18310) by debbugs.gnu.org; 21 Aug 2014 16:18:07 +0000 Original-Received: from localhost ([127.0.0.1]:49090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XKV3t-0007w1-Q3 for submit@debbugs.gnu.org; Thu, 21 Aug 2014 12:18:07 -0400 Original-Received: from mtaout25.012.net.il ([80.179.55.181]:34085) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XKV3q-0007vS-8z for 18310@debbugs.gnu.org; Thu, 21 Aug 2014 12:18:03 -0400 Original-Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NAN00200Z6NMS00@mtaout25.012.net.il> for 18310@debbugs.gnu.org; Thu, 21 Aug 2014 19:12:46 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NAN00JSMZPAX790@mtaout25.012.net.il>; Thu, 21 Aug 2014 19:12:46 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il 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: 140.186.70.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:92574 Archived-At: > From: joaotavora@gmail.com (João Távora) > Cc: 18310@debbugs.gnu.org > Date: Thu, 21 Aug 2014 16:43:48 +0100 > > Something other than `default-directory' seems to be influencing it. I > did some tests: Like I said: Emacs uses the current drive to complete the missing drive letter. That is what you see. > Finally > > (let ((default-directory "\\\\")) > (expand-file-name "../" "/something/bla")) > > Crashed the Emacs process on my machine. It's not a crash, it's a deliberate abort. "\\\\" (i.e., 2 backslashes in a row without anything after that) is an invalid file name on Windows. Just don't do that. > The docstring should explain its relationship with the > `default-directory' variable, which in the current version sounds like > it's shadowed completely by the DEFAULT-DIRECTORY parameter. Perhaps a > sentence could be added. > > If DEFAULT-DIRECTORY is nil or missing, the current buffer's value of > `default-directory' is used. Even if DEFAULT-DIRECTORY is non-nil, > `default-directory' may still be used to help canonicalize the > resulting name for the current platform. How does that obscure hint help? It doesn't tell anything that mere mortals could understand. Once again, you are talking about semi-invalid use cases. IMO, complicating the doc string (which is not at all simple as it is) on behalf of those use cases is not TRT. > PS: Had a look at `url-expand-file-name': isn't it doing to much for > `shr-expand-url''s purposes? I have no idea, but as long as you need to resolve relative URLs, it is your friend.