From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#14806: 24.3.50; Enabling read-file-name-completion-ignore-case breaks url-handler-mode Date: Thu, 11 Jul 2013 00:20:56 +0200 Message-ID: <87d2qqjbuf.fsf@gmx.net> References: <871u7bzckm.fsf@rosalinde.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1373494934 22015 80.91.229.3 (10 Jul 2013 22:22:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Jul 2013 22:22:14 +0000 (UTC) Cc: 14806@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 11 00:22:15 2013 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 1Ux2m3-0003Hb-4i for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Jul 2013 00:22:11 +0200 Original-Received: from localhost ([::1]:47648 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ux2m2-0003o3-Kz for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Jul 2013 18:22:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56221) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ux2lx-0003jF-EA for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2013 18:22:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ux2lu-0003nm-SX for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2013 18:22:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ux2lu-0003ni-PX for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2013 18:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Ux2lu-0003Ot-Eg for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2013 18:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Jul 2013 22:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14806 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14806-submit@debbugs.gnu.org id=B14806.137349486912976 (code B ref 14806); Wed, 10 Jul 2013 22:22:02 +0000 Original-Received: (at 14806) by debbugs.gnu.org; 10 Jul 2013 22:21:09 +0000 Original-Received: from localhost ([127.0.0.1]:46178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ux2l2-0003N9-7V for submit@debbugs.gnu.org; Wed, 10 Jul 2013 18:21:08 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:58048) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ux2kz-0003MT-8b for 14806@debbugs.gnu.org; Wed, 10 Jul 2013 18:21:06 -0400 Original-Received: from rosalinde ([89.245.104.175]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MVrQS-1UhaHR2mNs-00X7Ws; Thu, 11 Jul 2013 00:20:58 +0200 In-Reply-To: (Glenn Morris's message of "Wed, 10 Jul 2013 16:41:39 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Provags-ID: V03:K0:fepFPBn+eHgn7GehkoDBzMbkAEN6XrB+2NQc5wtxEZwb+I3POxu iW6l/pZKNBSBZnZs8BNB6EMflclxD67j9+zjfkUJ83FtyTbUqsZmcKdquc8YUq2Al3ZcB/l nu3443Ao2q6SbsRK/DKNGvktesMKGQw/381xvUgUwIrijqa7ALpMGpPVybwVO4QoPYxEstj FQ+HDgqrTgZQny+qPq4cg== 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:76202 Archived-At: On Wed, 10 Jul 2013 16:41:39 -0400 Glenn Morris wrote: > Stephen Berman wrote: > >> 0. emacs -Q >> 1. M-: (setq read-file-name-completion-ignore-case t) (or customize it, >> or use set-variable) >> 2. M-x url-handler-mode >> 3. C-x C-f http://www.gnu.org RET >> => error "Unimplemented" > > RET actually runs minibuffer-complete-and-exit, when > completion-ignore-case is non-nil it tries to complete the input, > completion is (obviously) not implemented for URLs. > Dunno what to do about that. To prevent the problem I reported, we could either change (defun url-file-name-completion (url directory &optional predicate) (error "Unimplemented")) to (defun url-file-name-completion (url directory &optional predicate) (ignore)) or replace (put 'file-name-completion 'url-file-handlers 'url-file-name-completion) by (put 'file-name-completion 'url-file-handlers 'ignore) url-handlers.el already does the latter for "operations that we do not support yet (DAV!!!)". If the user tries to complete with TAB, url-file-name-all-completions errors with "Unimplemented". If we use 'ignore here too, then trying to complete gives "[No match]". But as long as the URL is valid and real, the page gets downloaded, so this certainly seems better than the current state. Is there some other reason not to do this? Steve Berman