all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Collecting shells on Saint Helena
@ 2007-03-07 11:03 Alan Mackenzie
  2007-03-08  9:24 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Mackenzie @ 2007-03-07 11:03 UTC (permalink / raw)
  To: emacs-devel

Hi, Emacs!

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.  Is this really the right
thing to do?

-- 
Alan Mackenzie (Ittersbach, Germany).

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Collecting shells on Saint Helena
  2007-03-07 11:03 Collecting shells on Saint Helena Alan Mackenzie
@ 2007-03-08  9:24 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2007-03-08  9:24 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: emacs-devel

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-08  9:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-07 11:03 Collecting shells on Saint Helena Alan Mackenzie
2007-03-08  9:24 ` Glenn Morris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.