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#7229: 23.1; ido guess and ffap bug Date: Fri, 12 Jul 2013 09:20:33 +0800 Message-ID: References: <20101016200828.264940@gmx.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: message/rfc822 X-Trace: ger.gmane.org 1373592072 19792 80.91.229.3 (12 Jul 2013 01:21:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Jul 2013 01:21:12 +0000 (UTC) To: 7229@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 12 03:21:12 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 1UxS2l-0000PC-3y for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jul 2013 03:21:07 +0200 Original-Received: from localhost ([::1]:57941 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxS2k-0006Os-Cw for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 Jul 2013 21:21:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxS2h-0006Ok-8h for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2013 21:21:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UxS2g-00029L-Fa for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2013 21:21:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54656) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxS2g-00029A-Bg for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2013 21:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UxS2f-0004PL-TB for bug-gnu-emacs@gnu.org; Thu, 11 Jul 2013 21:21:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <20101016200828.264940@gmx.net> Resent-From: Leo Liu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Jul 2013 01:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7229 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7229-submit@debbugs.gnu.org id=B7229.137359205216922 (code B ref 7229); Fri, 12 Jul 2013 01:21:01 +0000 Original-Received: (at 7229) by debbugs.gnu.org; 12 Jul 2013 01:20:52 +0000 Original-Received: from localhost ([127.0.0.1]:48972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UxS2V-0004Or-1f for submit@debbugs.gnu.org; Thu, 11 Jul 2013 21:20:51 -0400 Original-Received: from mail-pa0-f43.google.com ([209.85.220.43]:46540) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UxS2S-0004Ob-8k for 7229@debbugs.gnu.org; Thu, 11 Jul 2013 21:20:49 -0400 Original-Received: by mail-pa0-f43.google.com with SMTP id hz11so8390148pad.30 for <7229@debbugs.gnu.org>; Thu, 11 Jul 2013 18:20:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:face:date:message-id:user-agent:mime-version :content-type:content-disposition; bh=naVXA80mgaQZuGkNcgX7HWHNjH/6Yfgz549T9HT0CG0=; b=nQz7EpGfmw0Mrsi+yACZHH4EPj8kkF7YEITgg9KP+3cthJAXdtE471oxgHRfYsnkin F8UjYzzhmwAj61gswd151f8uqge0GBGS+Sb6gYJ14z4mAf6SvJp6IT/7ej0qOGbmACSC q5LUCenTzyXDkrQo1vTdtqH8XGGSWAs3AIBCrbK8FXqy0236OXRVlW2/E8/rxN+DEJ+5 76Mk/eFcUQt+e5psqxSymubcDn1pQGWp+Unb/qrC5sV19WrAle3TWeixsP9WygGVWT4/ HigpJySWlauLw7m9IxgJgyAovfSfdaYBxjhEqo8znRQGOoWXPHpBtgZqHIf8D/0/0WLN J9ww== X-Received: by 10.68.95.66 with SMTP id di2mr38467106pbb.180.1373592042282; Thu, 11 Jul 2013 18:20:42 -0700 (PDT) Original-Received: from Zeuss-MacBook.local ([182.48.101.29]) by mx.google.com with ESMTPSA id tr10sm11026901pbc.22.2013.07.11.18.20.38 for <7229@debbugs.gnu.org> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 11 Jul 2013 18:20:41 -0700 (PDT) Face: iVBORw0KGgoAAAANSUhEUgAAACkAAAApAQAAAACAGz1bAAABKElEQVQYlWNg3NIt5FDPUPt7 4+X79Qyucz5/ugik+L2PBgKpyphaIK921q23QDnG0NBQoMr/vaWl9f8ZLL78uPv5PwN7RETfzXoG jhmFz27XM0RXmpuY/WfY+fv0Mc56BvFybfXA/wwL5t/wF61n2PU59axXPcOVzbmSW/8zrNt1benC /ww70hqUU/4zKCtrT9jwn8FhwynbufUMendE2aLqGRpdX9al1zM8eh17lKeeQcTMrdD5P8P3j/YT Q/8zXHSb7p1Qz/C4OM2JuZ7hgtI7K6AjqsMnf8j4z8C6xG1tw3+GqpqvsVn/GTzmpD9j/8/wP/oZ S/l/Bka+QO/g/wy15ueeFQL9N1O8mPU/g+umV3t1gdT0/1bTgHLqYVeXAlWKpMWt+w8Az82C9nHf X0cAAAAASUVORK5CYII= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (OS X 10.8.4) Content-Disposition: inline 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:76254 Archived-At: Delivered-To: sdl.web@gmail.com Received: by 10.68.241.133 with SMTP id wi5csp88969pbc; Thu, 11 Jul 2013 16:50:58 -0700 (PDT) X-Received: by 10.15.107.6 with SMTP id ca6mr43608636eeb.120.1373586657968; Thu, 11 Jul 2013 16:50:57 -0700 (PDT) Return-Path: Received: from mout.gmx.net (mout.gmx.net. [212.227.15.19]) by mx.google.com with ESMTP id u9si30665352eeg.141.2013.07.11.16.50.57 for ; Thu, 11 Jul 2013 16:50:57 -0700 (PDT) Received-SPF: pass (google.com: domain of thibault.kruse@gmx.de designates 212.227.15.19 as permitted sender) client-ip=212.227.15.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of thibault.kruse@gmx.de designates 212.227.15.19 as permitted sender) smtp.mail=thibault.kruse@gmx.de Received: from 3capp-gmx-bs54.server.lan ([172.19.170.138]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0MXTLc-1UiYmF0ZOQ-00WXfc for ; Fri, 12 Jul 2013 01:50:57 +0200 Received: from [92.231.51.19] by 3capp-gmx-bs54.server.lan with HTTP; Fri Jul 12 01:50:57 CEST 2013 Message-ID: From: "Thibault Kruse" To: "Leo Liu" Subject: Aw: Re: bug#7229: 23.1; ido guess and ffap bug Date: Fri, 12 Jul 2013 01:50:57 +0200 (CEST) Importance: normal Sensitivity: Normal In-Reply-To: References: <20101016200828.264940@gmx.net>, X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K0:bfB5AuvMA1M0eO0JarIWF6crEhcxF0C9IDG3MU+FLds UXu+LO+OCOL0CTwgr48ipkn7FsgkcUa747kMpOcW7z+KCgyH9q WZRCdRppL9qAfKs63F+/+srwv6xSS7YNv416o74/9QhRpoBUNh y4+yX2VEWaHTXA2EM+WXt0tXr9redmrKT3KclsC1daiv69L3cC R9v/YTWahK24Od2tRekhf/3G9GKMH6Mfbk3V9AEWWuMq5tIl4s HpyVp1VGt9NkfKM+Xs/NQ/0vwuv4hMy6FJyTGS7ay4a5/GKuzA X0SXnE= MIME-Version: 1.0 Content-Type: text/html; charset=utf-8 Wow, that's almost 3 years ago. Thanks for even rlooking into it.

Then maybe call it sub-optimal default behavior instead of a bug.
If that kind of consistency is most important, then my request is invalid.
However IMHO, out of 1000 times a user presses C-x f after "/**", he will in 1000 cases not intent to open a file called /**, even if such a file could exist. So I would tend towards making the tool do what the user wants, not what is most consistent in theory, but that may just be me.

In the second case, the cursor is not on '/', but on '/>'. Suggesting '/' instead of nothing, ignoring the '>' character seems bad to me, though maybe it is consistent with some other behavior. Close as "wont fix" by all means if my position is not persuasive.

Gesendet: Donnerstag, 11. Juli 2013 um 18:23 Uhr
Von: "Leo Liu" <sdl.web@gmail.com>
An: "Thibault Kruse" <thibault.kruse@gmx.de>
Cc: 7229@debbugs.gnu.org
Betreff: Re: bug#7229: 23.1; ido guess and ffap bug
On 2010-10-17 04:08 +0800, Thibault Kruse wrote:
> enter /**
> cursor at the end of that line
> M-x ido-find-file (or C-x f): ido suggests /**, instead of pwd
> enter <test />
> cursor at the end of that line
> M-x ido-find-file (or C-x f): ido suggests /, instead of pwd
>
> same for M-x ffap

I don't see any bugs here. ido and ffap seem working consistently per
your request (/** and / are valid file names).

Leo