From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: file url question Date: Mon, 13 Apr 2009 13:31:25 +1000 Organization: Rapt Technologies Message-ID: <87vdp9jkky.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1239594052 8145 80.91.229.12 (13 Apr 2009 03:40:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Apr 2009 03:40:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 13 05:42:11 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LtD3i-0002Ls-Hh for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Apr 2009 05:42:10 +0200 Original-Received: from localhost ([127.0.0.1]:46469 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LtD2K-0003ol-17 for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Apr 2009 23:40:44 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!newshub.sdsu.edu!news.astraweb.com!border1.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) Cancel-Lock: sha1:q8E0OGtzntXQ/bwmR+q39xWy3o0= Original-Lines: 45 Original-NNTP-Posting-Host: 9e4fc7df.news.astraweb.com Original-X-Trace: DXC=mQk2U]QChALRm_f?\>0G3FL?0kYOcDh@J; >GTR`=ZX:BFX0m^Ug[IEIC9=j4_RHMjBjdG:4m8Fj^C Original-Xref: news.stanford.edu gnu.emacs.help:168424 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63702 Archived-At: Dear all, just a quick question regarding url formats for a local file. I encountered problems when using browse-url to view a local file. Looking into it, it seems that the format of the url being passed to browse-url may be incorrect and I wanted to see whether others agreed and therefore if it should be posted to the emacs dev group as a bug. Browse url uses the variable browse-url-filename-alist to work out how to transform certain filenames into a standard url format. In this alist, the entry for local files is ("^/+" . "file:/") This doesn't look right to me. I changed it to be ("^/+" . "file://") and the problem I was getting with handling local files appears to be fixed. This problem seems to have appeared after a recent upgrade of w3m-el . I'm running Debian unstable and emacs from cvs (GNU Emacs 23.0.92.1 (i686-pc-linux-gnu, GTK+ Version 2.14.7) of 2009-04-13 on lion) and the w3m-el-snapshot package (Version: 1.4.344+0.20090405-1). My guess is that recent changes in w3m-el have made it a little more strict on how it handles local file URLs. There is a note that the function that processes local files has been updated to include files of the format file://c:/ in addition to file:///c:/. However, this is just a guess. Regardless of this change, it would seem to me that the correct mapping in browse-url-fl\ilename-alist should be 'file://' rather than 'file:/'. Is my reasoning correct or is there something I'm overlooking? Just wanted to get others opinion prior to logging a bug report. Tim -- tcross (at) rapttech dot com dot au