From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: Collecting shells on Saint Helena Date: Thu, 08 Mar 2007 04:24:20 -0500 Message-ID: References: <20070307122006.GA1361@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1173346008 26009 80.91.229.12 (8 Mar 2007 09:26:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Mar 2007 09:26:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 08 10:26:42 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HPEtW-0007iZ-7P for ged-emacs-devel@m.gmane.org; Thu, 08 Mar 2007 10:26:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPEth-0002ay-AN for ged-emacs-devel@m.gmane.org; Thu, 08 Mar 2007 04:26:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HPEtA-0002ai-9e for emacs-devel@gnu.org; Thu, 08 Mar 2007 04:26:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HPEt9-0002aW-75 for emacs-devel@gnu.org; Thu, 08 Mar 2007 04:26:19 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPEt9-0002aT-2j for emacs-devel@gnu.org; Thu, 08 Mar 2007 04:26:19 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HPEsw-0004JO-VH for emacs-devel@gnu.org; Thu, 08 Mar 2007 04:26:07 -0500 Original-Received: from [127.0.0.1] (helo=localhost) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HPErE-0002dm-PZ; Thu, 08 Mar 2007 04:24:20 -0500 X-Spook: subversive BLU-97 A/B CIDA digicash LABLINK SHA South X-Ran: g-.F\hm(Ji\q?<++tuBn?TCKmZ%A=uX;8PMWvxh(Z"0$!ty'Aku[P)ypr56P3nV?MfO2v: X-Hue: magenta X-Attribution: GM User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:67568 Archived-At: Alan Mackenzie wrote: > Start Emacs22 with -Q. Into buffer *scratch* type "foobaz.sh". Place > point over the text and do "M-x ffap". > > Emacs replies with "Pinging foobar.sh (Saint Helena)...". ????? > > This seems a wierd sort of message to give somebody who wants to > ffap his file foobar.sh, but has mistyped the name. I suppose something which tries to guess what you mean is always going to make some mistakes, which is the price you pay for convenience. The behaviour is customizable, eg (setq ffap-machine-p-known 'reject) would get you the behaviour you want. I don't think there's any way for ffap to tell the difference between a host you might want to ping and a file you might want to open, so it comes down to a question of what the defaults are. Maybe in future ffap could check for a "fuzzy" match for a mis-typed filename.