From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Liu Newsgroups: gmane.emacs.bugs Subject: bug#16747: 24.3.50; ido-find-file with ido-use-filename-at-point in dired inserts directory at point twice Date: Sat, 15 Feb 2014 17:36:28 +0800 Message-ID: References: <871tz61b6b.fsf@yandex.ru> <52FE09A8.7050504@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1392457037 3515 80.91.229.3 (15 Feb 2014 09:37:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Feb 2014 09:37:17 +0000 (UTC) Cc: 16747@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 15 10:37:22 2014 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 1WEbgW-0005On-L7 for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Feb 2014 10:37:20 +0100 Original-Received: from localhost ([::1]:55461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEbgW-0001Mg-A5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Feb 2014 04:37:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEbgL-0001Ld-OP for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 04:37:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEbgE-0002yg-Ef for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 04:37:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51755) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEbgE-0002yc-B4 for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 04:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WEbgE-0000ki-0u for bug-gnu-emacs@gnu.org; Sat, 15 Feb 2014 04:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Leo Liu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Feb 2014 09:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16747 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 16747-submit@debbugs.gnu.org id=B16747.13924570002851 (code B ref 16747); Sat, 15 Feb 2014 09:37:01 +0000 Original-Received: (at 16747) by debbugs.gnu.org; 15 Feb 2014 09:36:40 +0000 Original-Received: from localhost ([127.0.0.1]:52937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEbfs-0000jv-2f for submit@debbugs.gnu.org; Sat, 15 Feb 2014 04:36:40 -0500 Original-Received: from mail-pb0-f53.google.com ([209.85.160.53]:44497) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEbfp-0000jd-UZ for 16747@debbugs.gnu.org; Sat, 15 Feb 2014 04:36:38 -0500 Original-Received: by mail-pb0-f53.google.com with SMTP id md12so13245538pbc.26 for <16747@debbugs.gnu.org>; Sat, 15 Feb 2014 01:36:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:face:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=NRfR+lpRceLr789lWGlDtes2bFXGZjCvmXalOXCAjHA=; b=mtYZ10O2vMwEUnEU612BF8WBJ513b2TCaCwrrF9mhYUjciMdm6e3saxeHqBzOivf39 T2jqs+x/lZtF8llrlEOPJYiphmNMF0yCkzgV/KMbKf5UWtIrRnIVHWxZMirz/igvbvZE bktGF6OOSnf2Ve7yHphyhogZtZ8UnIoMrXb/qT7nEn/mRkIEZhrDUcMGE0LtxebutU2B 8VJkE288rIno6lnOw8u3xH3Jk7EnerOPAOKgNshPgKAJkkMiCuXpvDpKzTwDiQN8FORP omIlYNn3wIB32wvFHKF5Co/RQiDU+Cx4aIbq5JOgzApNISbjBNvnjKK5YclA73TM0NGY 5Z7A== X-Received: by 10.66.122.36 with SMTP id lp4mr14608890pab.82.1392456991961; Sat, 15 Feb 2014 01:36:31 -0800 (PST) Original-Received: from Zeuss-MacBook.local ([221.220.19.204]) by mx.google.com with ESMTPSA id u6sm25504834pbu.16.2014.02.15.01.36.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Feb 2014 01:36:31 -0800 (PST) Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoAgMAAADxkFD+AAAADFBMVEUvT09qWs3/pQD///+J kUVcAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMLOd3veKQA AACuSURBVBjTldE9CgIxEAXgB+lEyFUC2wo5ikdZ8DSypxhMY7H9VuIVwlqkGRgnm59VsHGafIQ3 CZlAtmKIRaHETgYa12lqvEsPYKf8wXHsPGfqPaUM0g9aJPKFXkmNQmSDqwzz4Fpgpz+6WAPY2z5o uPJJpu0uypcl4nyCibMLQ8lCiVjayLoQvw5LsVKQuHPRR958HZbOcVsKeepcLxpByjycGvnKmY+c MBvrtyjfe0vmuLvdq/kAAAAASUVORK5CYII= In-Reply-To: <52FE09A8.7050504@yandex.ru> (Dmitry Gutov's message of "Fri, 14 Feb 2014 14:18:48 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (OS X 10.9.1) 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:85619 Archived-At: On 2014-02-14 20:18 +0800, Dmitry Gutov wrote: > But then in the case of ffap, the file-finding dialog wouldn't use > ido, would it? ffap conflates file and url reading into ffap-read-file-or-url, which bypasses read-file-name (it goes directly to read-file-name-internal) and thus not using ido. So currently ido treats url and file differently, it handles file itself and delegates url to ffap. Maybe that separation should be done in ffap, which would make the glue code in ido minimal. But maybe this is for another bug. Feel free to install your fix ;) > `find-file-at-point' also behaves differently from the current ido > when point is at a directory: ido enters the directory if it exists, > ffap treats it just like any other file. Leo