[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FFAP
From: |
Juri Linkov |
Subject: |
Re: FFAP |
Date: |
Mon, 09 Nov 2009 02:52:28 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) |
>> I forgot that we already have a clean and small counterpart of ffap
>> that can be preloaded instead of ffap.el. It is thingatpt.el.
>> With (thing-at-point 'filename) it returns the filename at point,
>> and with (thing-at-point 'url) it returns the URL at point.
>
> I think it'd be important to make it mode-aware, so that when you're on
> a (require 'foo) or on a #include "bar", it can find the relevant file.
> So (thing-at-point 'filename) wouldn't quite cut it as it stands.
FFAP is already mode-aware, but IMHO its code is ugly. It puts
all supported modes into `ffap-alist'. Maybe we should reimplement
this in `thing-at-point' exposing a generic interface for modes
to be able to add their mode-specific settings (like e.g. imenu does
with `imenu-generic-expression').
--
Juri Linkov
http://www.jurta.org/emacs/
- Re: find-file-literally-at-point, (continued)
- Re: find-file-literally-at-point, Juri Linkov, 2009/11/05
- Re: FFAP, Stefan Monnier, 2009/11/06
- Re: FFAP, Juri Linkov, 2009/11/06
- Re: FFAP, Stefan Monnier, 2009/11/06
- Re: FFAP,
Juri Linkov <=
- Re: FFAP, Stefan Monnier, 2009/11/09
- read-file-name (was: FFAP), Juri Linkov, 2009/11/09
- Re: read-file-name, Stefan Monnier, 2009/11/09
- Re: read-file-name, Juri Linkov, 2009/11/09
- Re: read-file-name, Stefan Monnier, 2009/11/10
- dired-read-dir-and-switches (was: FFAP), Juri Linkov, 2009/11/09
- find-file-read-args (was: FFAP), Juri Linkov, 2009/11/09
- Re: find-file-read-args, Stefan Monnier, 2009/11/09
- Re: find-file-read-args, Juri Linkov, 2009/11/09
- Re: find-file-read-args, Juri Linkov, 2009/11/12