emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: find-file-literally-at-point


From: Juri Linkov
Subject: Re: find-file-literally-at-point
Date: Tue, 10 Nov 2009 02:49:37 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu)

>>> Below is a patch that implements `ffap-literally' using
>>
>> `ffap-literally' seems like the most horrible name ever tho...
>
> There are two naming conventions in ffap.el: one where the function name
> ends with the `-at-point' suffix, and another where the function name
> begins with the `ffap-' prefix.
>
> The problem with adding the `-at-point' suffix is that it will create
> more horrible names than using the `ffap-' prefix.  Currently
> the `-at-point' suffix is used only for relatively short names like
> `find-file-at-point' and `dired-at-point'.  But using it for other
> names will create names like `find-file-read-only-other-window-at-point'
> (41 characters!) instead of the current `ffap-read-only-other-window'
> (27 characters).
>
> That's because the name `ffap' compresses 18 characters of
> `find-file-at-point' into 4 characters of `ffap'.

Since `ffap' is an alias of `find-file-at-point', perhaps we should
add abbreviated versions that begin with the `ffap-' prefix as
aliases of full versions with long names:

                                            ALIAS
find-file-at-point                          ffap
dired-at-point                              ffap-dired
list-directory-at-point                     ffap-list-directory

find-file-read-only-at-point                ffap-read-only
find-alternate-file-at-point                ffap-alternate
find-file-literally-at-point                ffap-literally

find-file-other-window-at-point             ffap-other-window
find-file-read-only-other-window-at-point   ffap-read-only-other-window
dired-other-window-at-point                 ffap-dired-other-window
find-alternate-file-other-window-at-point   ffap-alternate-other-window

find-file-other-frame-at-point              ffap-other-frame
find-file-read-only-other-frame-at-point    ffap-read-only-other-frame
dired-other-frame-at-point                  ffap-dired-other-frame

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]