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: paths are sensative to double separators Date: Fri, 20 Mar 2009 23:55:52 +0900 Message-ID: <87iqm4s0p3.fsf@xemacs.org> References: <20090319015037.GC6695@reforged> <87skl97og1.fsf@kobe.laptop> <87prgdsigb.fsf@xemacs.org> <87tz5p5xyo.fsf@kobe.laptop> <87ocvwsq0z.fsf@xemacs.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1237560509 20253 80.91.229.12 (20 Mar 2009 14:48:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Mar 2009 14:48:29 +0000 (UTC) Cc: Giorgos Keramidas , xah@xahlee.org, Mike Mattie , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 20 15:49:45 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lkg2Y-0005UR-1c for ged-emacs-devel@m.gmane.org; Fri, 20 Mar 2009 15:49:42 +0100 Original-Received: from localhost ([127.0.0.1]:52422 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lkg1B-0006Uq-Cj for ged-emacs-devel@m.gmane.org; Fri, 20 Mar 2009 10:48:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lkg14-0006UM-Kc for emacs-devel@gnu.org; Fri, 20 Mar 2009 10:48:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lkg0z-0006T3-QL for emacs-devel@gnu.org; Fri, 20 Mar 2009 10:48:10 -0400 Original-Received: from [199.232.76.173] (port=51317 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lkg0z-0006T0-MJ for emacs-devel@gnu.org; Fri, 20 Mar 2009 10:48:05 -0400 Original-Received: from mtps01.sk.tsukuba.ac.jp ([130.158.97.223]:51864) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lkg0z-0000TR-72 for emacs-devel@gnu.org; Fri, 20 Mar 2009 10:48:05 -0400 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps01.sk.tsukuba.ac.jp (Postfix) with ESMTP id DDAB81535AF; Fri, 20 Mar 2009 23:48:02 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id 751621A2F2B; Fri, 20 Mar 2009 23:55:52 +0900 (JST) In-Reply-To: X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta28) "fuki" 83e35df20028+ XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:109721 Archived-At: Stefan Monnier writes: > > I can't imagine anyone relies on having Emacs deliberately disobey > > "/foo/" C-q "/" and convert it to "/". > > C-q / doesn't say "mark this slash as a special slash that shouldn't > be magical. It only says "don't use the command bound to slash, but > instead just insert a slash char". My opinion is that slashes should not be magical at all, except as electric key strokes in UI. If the facility were implemented that way, I would automatically get the behavior I prefer (and at least some others seem to agree). > > N.B. This matters if you want to use URLs, because not only do you > > find-file does not work for URLs unless you enable url-handler-mode. > If you enable url-handler-mode, then "file:///foo" will not be converted > to "/foo". I.e. I think it works correctly, including for URLs. The question I asked is, will "hg://authority//foo" be converted to "hg://authority/foo"? Url-handler-mode is clearly broken in 22.1.1. It doesn't understand the hg: scheme, so after enabling url handler mode, C-x C-f C-a C-k "hg://" ==> "/" in the minibuffer, and even worse, C-x C-f C-a C-k "file:///Users/steve//.zshrc" RET ==> wrong type argument: stringp, nil. I hope/assume this works better in 23, but maybe you should check.