GNU bug report logs - #19884
24.3; Unimplemented `url-handler' functions

Previous Next

Package: emacs;

Reported by: Eli Barzilay <eli <at> barzilay.org>

Date: Tue, 17 Feb 2015 05:20:02 UTC

Severity: normal

Found in version 24.3

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Barzilay <eli <at> barzilay.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 19884 <at> debbugs.gnu.org
Subject: bug#19884: 24.3; Unimplemented `url-handler' functions
Date: Tue, 17 Feb 2015 20:51:11 -0500
On Tue, Feb 17, 2015 at 6:10 PM, Eli Barzilay <eli <at> barzilay.org> wrote:
> On Tue, Feb 17, 2015 at 4:53 PM, Glenn Morris <rgm <at> gnu.org> 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!




This bug report was last modified 10 years and 175 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.