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 18:10:25 -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 1424214679 26282 80.91.229.3 (17 Feb 2015 23:11:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Feb 2015 23:11:19 +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 00:11:11 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 1YNrIL-0004bP-2i for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Feb 2015 00:11:09 +0100 Original-Received: from localhost ([::1]:47707 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNrIK-0004pX-Cn for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Feb 2015 18:11:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNrIH-0004pF-Cd for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2015 18:11:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNrIE-0003sV-6l for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2015 18:11:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNrIE-0003sJ-3s for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2015 18:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YNrID-000397-NQ for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2015 18:11:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Barzilay Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Feb 2015 23:11:01 +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.142421463412058 (code B ref 19884); Tue, 17 Feb 2015 23:11:01 +0000 Original-Received: (at 19884) by debbugs.gnu.org; 17 Feb 2015 23:10:34 +0000 Original-Received: from localhost ([127.0.0.1]:46693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNrHl-00038Q-G1 for submit@debbugs.gnu.org; Tue, 17 Feb 2015 18:10:33 -0500 Original-Received: from mail-wi0-f171.google.com ([209.85.212.171]:53285) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNrHj-00038C-7r for 19884@debbugs.gnu.org; Tue, 17 Feb 2015 18:10:32 -0500 Original-Received: by mail-wi0-f171.google.com with SMTP id hi2so37280311wib.4 for <19884@debbugs.gnu.org>; Tue, 17 Feb 2015 15:10:25 -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=1XwYqDhcgI3ruNC8qBG1pyDizs/zHOlQl0LjfIwCtuI=; b=NSbECusqFTSTVhfnZdFEyW985i/HwiXhUVDuLJcp2HPnHebXQDO4/fsz70IOgiwKJ1 AXggfDmehS7ondTXFyqzWy7K1c4kPk3BOdXoeMdySxXrdMpJ39oulA7HUmmmlRwqQRa/ Tgvia2QqiMt7LEW/fRescDgDXyCATNp9kqQ6OJoqYvvIlKkpJ8LiAsXR2MX+A+ALRmG/ i3aRt/LxEjPaADzY6L3uKlgiUg/3n3VjCBbfWhE6naAaMcraNQPuo3zVGlm33/jR+uKu Yid7phbm1IjiNagnbXjULv17jZv9XDFLTqnAEKNiKRIgVJDjUwAROemzuwJrclrNnRcx 0ZFg== X-Gm-Message-State: ALoCoQmxSFcqa8tm1rEMAj+TtgycqBmhhlwSUzUo/bbNXwNsBgBPounfZcVmTkvVjpt/xS9+DlqG X-Received: by 10.180.92.226 with SMTP id cp2mr63049073wib.67.1424214625537; Tue, 17 Feb 2015 15:10:25 -0800 (PST) Original-Received: by 10.194.192.105 with HTTP; Tue, 17 Feb 2015 15:10:25 -0800 (PST) In-Reply-To: <4ud25819ya.fsf@fencepost.gnu.org> 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:99514 Archived-At: 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!