From unknown Sat Sep 06 02:33:10 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#19884 <19884@debbugs.gnu.org> To: bug#19884 <19884@debbugs.gnu.org> Subject: Status: 24.3; Unimplemented `url-handler' functions Reply-To: bug#19884 <19884@debbugs.gnu.org> Date: Sat, 06 Sep 2025 09:33:10 +0000 retitle 19884 24.3; Unimplemented `url-handler' functions reassign 19884 emacs submitter 19884 Eli Barzilay severity 19884 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 17 00:19:29 2015 Received: (at submit) by debbugs.gnu.org; 17 Feb 2015 05:19:29 +0000 Received: from localhost ([127.0.0.1]:45789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNaZE-00061Q-PW for submit@debbugs.gnu.org; Tue, 17 Feb 2015 00:19:29 -0500 Received: from eggs.gnu.org ([208.118.235.92]:37865) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNaZC-00061C-2N for submit@debbugs.gnu.org; Tue, 17 Feb 2015 00:19:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNaZ5-0007gO-KE for submit@debbugs.gnu.org; Tue, 17 Feb 2015 00:19:20 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:59234) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNaZ5-0007gK-GX for submit@debbugs.gnu.org; Tue, 17 Feb 2015 00:19:19 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39587) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNaZ4-0005wd-4l for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2015 00:19:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNaZ0-0007fi-T9 for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2015 00:19:18 -0500 Received: from mail-wg0-f49.google.com ([74.125.82.49]:58090) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNaZ0-0007fV-N9 for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2015 00:19:14 -0500 Received: by mail-wg0-f49.google.com with SMTP id l18so33077895wgh.8 for ; Mon, 16 Feb 2015 21:19:13 -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:date:message-id:subject:from:to :content-type; bh=56NNfxNMZrXqvh3tYxoQK43fVfcDSggRjGCA5Cs0rqo=; b=AkLttWBU+IKbXMeFw0D9lHBlbLZ5svdeFy7YSp3ghhYTsVOvQfvMq/xSv8jPiOn/oa XklOJDlC1vvydLSYkrSJZvTAZEbaUZ2UVr+LBrbwqO1pK4EqX0AufPQuMW0JVm72VJKg YAsIChl2OSr/ERReDHDMMnlR2jHmNcg+9pPJtQS/LYBwG05qOrc9gjb9wAX62RssrTO1 ipSQR7uYOdJCC4UMSdH0BFIh1hbeLcHVHeXV8FtZMaEM7BOYNSgh0usDUdpyv6pmZx0r 5vdklDzBiJ1Xag9Q21QHjXbPKXpfi6f7BOn/hly4LPzZTAnImaF8rSIoMafOQ04jtxhd Q+2Q== X-Gm-Message-State: ALoCoQlZWsaHiWfZi3i8+ehxGxSo+ZEu104+1FQQwCKPz0Uey3zIJx156V+T3PGU2aVUgJPa696C MIME-Version: 1.0 X-Received: by 10.180.97.226 with SMTP id ed2mr19214293wib.4.1424150352999; Mon, 16 Feb 2015 21:19:12 -0800 (PST) Received: by 10.194.192.105 with HTTP; Mon, 16 Feb 2015 21:19:12 -0800 (PST) Date: Tue, 17 Feb 2015 00:19:12 -0500 Message-ID: Subject: 24.3; Unimplemented `url-handler' functions From: Eli Barzilay To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) I'm not sure what the intended use of `url-handler-mode' is, or how to get the `url-dav' thing to work -- but it seems that the only thing that stands in my way of loading a URL in Emacs is these two functions from "url-handlers.el": `url-file-name-completion' and `url-file-name-all-completions', both just throw an "Unimplemented" error. I have redefined them with trivial versions: (defun url-file-name-completion (_url _directory &optional _predicate) t) (defun url-file-name-all-completions (file _directory) (list file)) and with that I can now load remote files via HTTP. This is obviously limited in a way that makes a proper DAV client (with a matching server) better, but I suspect that for most people this is irrelevant, and I don't see any explanation why the error-throwing is needed. (It seems that the url-dav thing has its own functions anyway.) (I'm leaving the following information because of all those things that I'm not sure about, as I said in the beginning.) In GNU Emacs 24.3.1 (i386-mingw-nt6.2.9200) of 2013-03-17 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.2.9200 Configured using: `configure --with-gcc (4.7) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2' Important settings: value of $LANG: ENU locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Text Minor modes in effect: desktop-save-mode: t cua-mode: t display-time-mode: t minibuffer-electric-default-mode: t url-handler-mode: t tooltip-mode: t mouse-wheel-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t temp-buffer-resize-mode: t size-indication-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Features: (shadow mailalias vm-reply vm-rfaddons vm-menu vm-window vm-toolbar vm-folder vm-mime vm-undo vm-virtual vm-summary-faces vm-summary vm-mouse vm-page vm-motion vm-minibuf vm-message vm-misc vm-macro vm-autoloads vm-vars vm-version vm emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils misearch multi-isearch view apropos help-mode desktop filladapt scroll-in-place cua-base time edmacro kmacro minibuf-eldef electric paren mic-paren whitespace jka-compr uniquify warnings advice help-fns cl-lib advice-preload cal-x cal-menu easymenu calendar cal-loaddefs netrc url-handlers url-parse auth-source eieio byte-opt bytecomp byte-compile cconv gnus-util mm-util mail-prsvr password-cache url-vars time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32 multi-tty emacs) -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 17 16:53:36 2015 Received: (at 19884) by debbugs.gnu.org; 17 Feb 2015 21:53:36 +0000 Received: from localhost ([127.0.0.1]:46668 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNq5I-0001M2-Ii for submit@debbugs.gnu.org; Tue, 17 Feb 2015 16:53:36 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:46533 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNq5H-0001Lv-4k for 19884@debbugs.gnu.org; Tue, 17 Feb 2015 16:53:35 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YNq5F-0006Ak-SY; Tue, 17 Feb 2015 16:53:34 -0500 From: Glenn Morris To: Eli Barzilay Subject: Re: bug#19884: 24.3; Unimplemented `url-handler' functions References: X-Spook: CNCIS UOP STARLAN Dick Cheney DRM Defcon Albright Crypto X-Ran: ay^\]+$f=+*DrcNI^/EZ6%>e.deSIl&(Y#$$CRr;*9)I$IMlg'L%1Po&ki,EI8@|sr.1OC X-Hue: black X-Attribution: GM Date: Tue, 17 Feb 2015 16:53:33 -0500 In-Reply-To: (Eli Barzilay's message of "Tue, 17 Feb 2015 00:19:12 -0500") Message-ID: <4ud25819ya.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 19884 Cc: 19884@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 17 18:10:34 2015 Received: (at 19884) by debbugs.gnu.org; 17 Feb 2015 23:10:34 +0000 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 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 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 MIME-Version: 1.0 X-Received: by 10.180.92.226 with SMTP id cp2mr63049073wib.67.1424214625537; Tue, 17 Feb 2015 15:10:25 -0800 (PST) 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> References: <4ud25819ya.fsf@fencepost.gnu.org> Date: Tue, 17 Feb 2015 18:10:25 -0500 Message-ID: Subject: Re: bug#19884: 24.3; Unimplemented `url-handler' functions From: Eli Barzilay To: Glenn Morris Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 19884 Cc: 19884@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) 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! From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 17 19:26:56 2015 Received: (at submit) by debbugs.gnu.org; 18 Feb 2015 00:26:56 +0000 Received: from localhost ([127.0.0.1]:46722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNsTf-0006FF-Dm for submit@debbugs.gnu.org; Tue, 17 Feb 2015 19:26:55 -0500 Received: from eggs.gnu.org ([208.118.235.92]:58993) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNsTd-0006F2-E9 for submit@debbugs.gnu.org; Tue, 17 Feb 2015 19:26:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNsTX-0005NV-81 for submit@debbugs.gnu.org; Tue, 17 Feb 2015 19:26:48 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35834) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNsTX-0005NR-5J for submit@debbugs.gnu.org; Tue, 17 Feb 2015 19:26:47 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNsTW-0008Ld-1F for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2015 19:26:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNsTR-0005Le-2p for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2015 19:26:45 -0500 Received: from mail-pd0-f170.google.com ([209.85.192.170]:41047) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNsTQ-0005Kl-T6 for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2015 19:26:40 -0500 Received: by pdno5 with SMTP id o5so47415933pdn.8 for ; Tue, 17 Feb 2015 16:26:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:subject:in-reply-to:date:message-id:mime-version :content-type; bh=w16qQNhj3nj9cre+scYax34Z/Xapi8y/EX/ADuHBz3A=; b=jcjmq6WE/pLM0vSnXgdqFxIh8qXj/dFBLWeebNxiQ8giugrIeDiiH1elBCouyx/ozQ rxGtl6TGF9BULeLg7aEVJUOS1UXeuy7lyWd9ccAwpjQXquGcguWrhhBpdDt4yaN7GmZW ZJCws5cY9++1lV+C1oD4MDILclzqPNDr/UQF4XqGDbdr4Nrkl5dqsZPUf3jG1k4J4iIj 8OkRpg6EKwONNF3UUSqoGhskKg/dyGeYJY10GaaRLCZPyVExUpFUaAUsFdJ+dgfYEaBG 4uMGE2S914O0qhk+H/cRyL7YQzR79A6XwkhzY8HpQgtIyCRl3w7BppS3xyiHYtZ2TRYG PIgw== X-Received: by 10.66.119.172 with SMTP id kv12mr54245377pab.72.1424219200114; Tue, 17 Feb 2015 16:26:40 -0800 (PST) Received: from localhost (ppp118-209-226-212.lns20.mel8.internode.on.net. [118.209.226.212]) by mx.google.com with ESMTPSA id pi1sm18746748pdb.91.2015.02.17.16.26.37 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 17 Feb 2015 16:26:39 -0800 (PST) References: <4ud25819ya.fsf@fencepost.gnu.org> From: Alexis To: bug-gnu-emacs@gnu.org Subject: Re: bug#19884: 24.3; Unimplemented `url-handler' functions In-reply-to: Date: Wed, 18 Feb 2015 11:26:33 +1100 Message-ID: <87lhjwm5dy.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) On 2015-02-18T10:10:25+1100, Eli Barzilay said: EB> You're right -- I was too lazy to pinpoint the problem, but now I EB> did it. Here's a complete and exact sequence: EB> * Start a bare emacs: emacs -Q EB> * Change this option using `set-variable' or a plain `setq': EB> (setq read-file-name-completion-ignore-case t) EB> * Activate the url-handler mode M-x url-handler-mode RET EB> * Try to load some URL: C-x C-f C-a C-k http://barzilay.org/ RET EB> I get an "Unimplemented" error With a manually compiled Emacs 24.4.1 on Debian Wheezy(+updates) x86_64, and following the above steps, i'm unable to reproduce this error. (Instead i get an unrendered XHTML document in a buffer named "barzilay.org".) Might it perhaps have been an issue with 24.3 that was fixed by 24.4? Alexis. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 17 20:51:20 2015 Received: (at 19884) by debbugs.gnu.org; 18 Feb 2015 01:51:20 +0000 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 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 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 MIME-Version: 1.0 X-Received: by 10.180.97.226 with SMTP id ed2mr226207wib.4.1424224271583; Tue, 17 Feb 2015 17:51:11 -0800 (PST) Received: by 10.194.192.105 with HTTP; Tue, 17 Feb 2015 17:51:11 -0800 (PST) In-Reply-To: References: <4ud25819ya.fsf@fencepost.gnu.org> Date: Tue, 17 Feb 2015 20:51:11 -0500 Message-ID: Subject: Re: bug#19884: 24.3; Unimplemented `url-handler' functions From: Eli Barzilay To: Glenn Morris Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 19884 Cc: 19884@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) 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! From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 17 20:58:17 2015 Received: (at 19884) by debbugs.gnu.org; 18 Feb 2015 01:58:17 +0000 Received: from localhost ([127.0.0.1]:46819 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNtu4-0001Lf-MT for submit@debbugs.gnu.org; Tue, 17 Feb 2015 20:58:16 -0500 Received: from mail-wi0-f174.google.com ([209.85.212.174]:39129) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNtu2-0001LS-Vy for 19884@debbugs.gnu.org; Tue, 17 Feb 2015 20:58:15 -0500 Received: by mail-wi0-f174.google.com with SMTP id em10so37914790wid.1 for <19884@debbugs.gnu.org>; Tue, 17 Feb 2015 17:58:09 -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=WLp71/V3zLduz2j1320+QguBVivqSXykqGTM6PcJZMY=; b=BtHb1CrJ8KhWbDN2nPKZX31usAw4Uo2yyK8Oh18H6M475cvsI0cYcOmZkyHfSAC/0k NEWptyolyMCH54zDq0q7J8Y/7BqsKWomh94dCHORhwjEi5Xj75NLzjsaveaY6UfsQoiq NEnwhk2CKBufaTpc0Jmygt03dXLL97CaBRBOzWZ6L/QX/s8GK1gZX4lfvPba6YHfI1Uw a8A2uUH72Qa4YeT2O3+3xA91vTYoSW/ojHuhnI/cAy0lLAGy43d9YEx9XteVCuy+Z1aK g/6KUiq3OxIhMQanNID8uagoXmbv6WIWgjX9Oz/BLk9BttBzMUmSbrxqIhO6Tu7XKVwm FcJQ== X-Gm-Message-State: ALoCoQlr++1qudoxW1qUbHM4rU7nceNQ9jJeuqjibjR4N+PV9iQ5B9COQOGFPpD17cuppn7KyrIe MIME-Version: 1.0 X-Received: by 10.180.105.40 with SMTP id gj8mr52287wib.67.1424224689153; Tue, 17 Feb 2015 17:58:09 -0800 (PST) Received: by 10.194.192.105 with HTTP; Tue, 17 Feb 2015 17:58:09 -0800 (PST) In-Reply-To: References: <4ud25819ya.fsf@fencepost.gnu.org> Date: Tue, 17 Feb 2015 20:58:09 -0500 Message-ID: Subject: Re: bug#19884: 24.3; Unimplemented `url-handler' functions From: Eli Barzilay To: Glenn Morris , Stefan Monnier Content-Type: text/plain; charset=UTF-8 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 19884 Cc: 19884@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) On Tue, Feb 17, 2015 at 6:10 PM, Eli Barzilay wrote: > [...] *sigh* I just looked at the updated source tree, and the current code is different, and in fact, it's doing something close to what I suggested. Marked as a reply to bug #14806 which is pretty much an identical description to mine, and fixed by Stefan Monnier (CCed). So this can be closed as a duplicate of that one. But one note is that as far as I can tell, my version is looks more correct, since the doc of `file-name-completion' says: If there is only one and file matches it exactly, returns t. and the description of `file-name-all-completions' make it seem like returning a list with the url is more correct than returning nil. -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/ Maze is Life! From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 18 02:46:40 2015 Received: (at 19884-done) by debbugs.gnu.org; 18 Feb 2015 07:46:40 +0000 Received: from localhost ([127.0.0.1]:46890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNzLD-0003oM-Ob for submit@debbugs.gnu.org; Wed, 18 Feb 2015 02:46:39 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:58100 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNzLB-0003oE-RP for 19884-done@debbugs.gnu.org; Wed, 18 Feb 2015 02:46:38 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1YNzLA-0005yI-Jj; Wed, 18 Feb 2015 02:46:36 -0500 From: Glenn Morris To: 19884-done@debbugs.gnu.org Subject: Re: bug#19884: 24.3; Unimplemented `url-handler' functions References: <4ud25819ya.fsf@fencepost.gnu.org> X-Spook: Ft. Meade Putin Forte Gazprom NASA quiche ASPIC Geraldton X-Ran: !jkiL33LB&OPclmf~M5q#1eWj/FrmzqJ4\/*TGvB\|1-QYi5{GA>k0cF#C42X)oA/x;E{j X-Hue: yellow X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 18 Feb 2015 02:46:36 -0500 In-Reply-To: (Eli Barzilay's message of "Tue, 17 Feb 2015 18:10:25 -0500") Message-ID: <7jfva3zmoz.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 19884-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Version: 24.4 Eli Barzilay wrote: > 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 Thanks. By experiment, this was present in 24.3 but fixed in 24.4. From unknown Sat Sep 06 02:33:10 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 18 Mar 2015 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator