From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Barzilay Newsgroups: gmane.emacs.bugs Subject: bug#19884: 24.3; Unimplemented `url-handler' functions Date: Tue, 17 Feb 2015 20:51:11 -0500 Message-ID: References: <4ud25819ya.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1424224341 11876 80.91.229.3 (18 Feb 2015 01:52:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Feb 2015 01:52:21 +0000 (UTC) Cc: 19884@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 18 02:52:10 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 1YNtoA-0007gz-7z for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Feb 2015 02:52:10 +0100 Original-Received: from localhost ([::1]:48076 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNto9-00045r-Fp for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Feb 2015 20:52:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNto5-00045h-V3 for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2015 20:52:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNto2-0003pe-Pa for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2015 20:52:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNto2-0003pY-MO for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2015 20:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YNto2-0001Cu-74 for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2015 20:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Barzilay Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Feb 2015 01:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19884 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19884-submit@debbugs.gnu.org id=B19884.14242242804589 (code B ref 19884); Wed, 18 Feb 2015 01:52:02 +0000 Original-Received: (at 19884) by debbugs.gnu.org; 18 Feb 2015 01:51:20 +0000 Original-Received: from localhost ([127.0.0.1]:46815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNtnL-0001Bx-N3 for submit@debbugs.gnu.org; Tue, 17 Feb 2015 20:51:20 -0500 Original-Received: from mail-we0-f170.google.com ([74.125.82.170]:37267) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNtnJ-0001Bh-6n for 19884@debbugs.gnu.org; Tue, 17 Feb 2015 20:51:18 -0500 Original-Received: by wesw55 with SMTP id w55so1875373wes.4 for <19884@debbugs.gnu.org>; Tue, 17 Feb 2015 17:51:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=VWngw4MkNSAmf6lCLJko0iL0lfsu7+U6a46+f8KpVfA=; b=Ze6MhS+u5IlfdHD3agGZ1ShbL3MCn+B+o4MMDXIBPR+SfZQZW67hphfvZTZxqope/b LWwBqRO/Nae0ILapUgmZKHndoza/J2aoMqLo5kTf898OiR/zXJzPqeMK05N9Y+YVgOF8 q4MdwMXtp6ZGCbFV15GJZ/lqktYxgpkaUE5CXGloGMQI/+YesqwgMnC+xSvpUSj+PzFi fiDqa41Mfq37u4U8KnvUxdYqypczsaWhIdEvVycwfzvg2rhejbVNfdgzkcJGrpblFYzs ckJPIwzhucUkaEyT1VgKKTVgIMlkdAby+LhmVjV+T7YBnHntefD+BOV0x6kMWB/5U7Vh BEVA== X-Gm-Message-State: ALoCoQn7EbdiHxfgN1bwC1Ivg0JLeBsKZzCN3KzqgNdUrraJRel9O1DNNMZTxY969zbte5tdm0jA X-Received: by 10.180.97.226 with SMTP id ed2mr226207wib.4.1424224271583; Tue, 17 Feb 2015 17:51:11 -0800 (PST) Original-Received: by 10.194.192.105 with HTTP; Tue, 17 Feb 2015 17:51:11 -0800 (PST) In-Reply-To: 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:99526 Archived-At: On Tue, Feb 17, 2015 at 6:10 PM, Eli Barzilay wrote: > On Tue, Feb 17, 2015 at 4:53 PM, Glenn Morris wrote: >> >> Please could you say exactly what you are trying to do. It's >> something to do with "loading a URL in Emacs", but you don't say >> precisely how. I think a complete recipe starting from emacs -Q would >> be helpful. > > You're right -- I was too lazy to pinpoint the problem, but now I did > it. Here's a complete and exact sequence: > > * Start a bare emacs: > emacs -Q > > * Change this option using `set-variable' or a plain `setq': > (setq read-file-name-completion-ignore-case t) > > * Activate the url-handler mode > M-x url-handler-mode RET > > * Try to load some URL: > C-x C-f C-a C-k http://barzilay.org/ RET > > I get an "Unimplemented" error, because the ignore-case option makes it > do one completion before loading the file -- and that fails since the > respective url-handler functions throw up. If I make them trivially > accept the curret path things work fine. > > I find that ...-completion-ignore-case option very useful (even in > Linux), and I don't think that there's a reasonable way to avoid that > completion-before-accepting-a-name behavior to get it to work. To have > a less-impactful change, the url-handler functions could throw up > *unless* this option is set, but I don't see any reasonable use for that > error. In fact, since HTTP always has some content to send you for any > URL -- as long as there is a server on the specified address/port you'll > get some 404 document -- and when dealing with just plain HTTP (no DAV) > it makes sense to just get you that 404 page. > > (And hopefully the utility of having the url-handler feature on is > clear: saving you a silly save-to-temp-file-then-open-in-emacs > roundtrip, and allowing you to just open it directly.) > > -- > ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: > http://barzilay.org/ Maze is Life! -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life!