Re: Mouse interface to M-.

Bob Rogers <[email protected]>
Newsgroups gmane.lisp.ilisp.devel
Message-ID <[email protected]>
   From: Matthias Koeppe <[email protected]>
   Date: Fri, 11 Apr 2003 18:38:17 +0200

   Bob Rogers <[email protected]> writes:

   >    I have just committed a patch that includes a mouse interface to a
   > generalized M-., plus changes to compile and load this along with ilisp.
   > Depending upon what you click (and various internal switches), you can
   > invoke find-file, dired, ange-ftp, find-tag, your favorite WWW browser
   > (via the browse-url package), and (of course) the ilisp and eli M-. Lisp
   > definition finders.

   This sounds a lot like the find-file-at-point (ffap) facility of
   Emacs.

It does indeed.

   FFAP-AT-MOUSE is bound to Shift + right mouse.

Maybe this would be a better default gesture?  But in that case I'd
better be sure that ilisp-mouse.el is a strict superset of ffap.  (And
in any case, I'd be sorry to see the traditional Meta-Left go.)

   So maybe you can simply integrate your new EDIT-DEFINITION code into
   ffap?

Actually, my original patch uses ffap-file-at-point in order to leverage
ffap's parsing cleverness.  But I see now that I should be calling
ffap-guesser instead.  Thanks for the heads-up.

   As you can see, I'm not familiar with the innards of ffap; I've used
it for quite a while, but only superficially.  However, I do note that
the grunt lexing work is done by ffap-string-at-point, which seems to be
biased toward identifier-like tokens.  Since I can't see an easy way to
integrate the ilisp-mouse.el code that deals with S-expression names, it
is probably easier to keep it as a wrapper around ffap.  In any case, I
will look into better integration with ffap, at least at the level of
customization.

					-- Bob Rogers


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.