From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: find-file-literally-at-point Date: Tue, 10 Nov 2009 02:49:37 +0200 Organization: JURTA Message-ID: <87iqdjkzpa.fsf@mail.jurta.org> References: <3b31caf90911051613w80af4cu61352a29ce5dcd77@mail.gmail.com> <87vdhoe73d.fsf@mail.jurta.org> <87ocnc8tuj.fsf@mail.jurta.org> <87bpjc1lqz.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1257814851 8052 80.91.229.12 (10 Nov 2009 01:00:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Nov 2009 01:00:51 +0000 (UTC) Cc: Edward O'Connor , emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 10 02:00:43 2009 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 1N7f67-0002Oy-Gc for ged-emacs-devel@m.gmane.org; Tue, 10 Nov 2009 02:00:39 +0100 Original-Received: from localhost ([127.0.0.1]:37661 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7f66-0007zb-Ty for ged-emacs-devel@m.gmane.org; Mon, 09 Nov 2009 20:00:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7f3X-0006iv-RC for emacs-devel@gnu.org; Mon, 09 Nov 2009 19:57:59 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7f3S-0006g1-89 for emacs-devel@gnu.org; Mon, 09 Nov 2009 19:57:59 -0500 Original-Received: from [199.232.76.173] (port=51921 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7f3S-0006fw-2d for emacs-devel@gnu.org; Mon, 09 Nov 2009 19:57:54 -0500 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:54595 helo=mx1.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N7f3P-0005Iy-C6; Mon, 09 Nov 2009 19:57:51 -0500 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (62.65.211.91.cable.starman.ee [62.65.211.91]) by mx1.starman.ee (Postfix) with ESMTP id 87FAA3F417C; Tue, 10 Nov 2009 02:57:45 +0200 (EET) In-Reply-To: <87bpjc1lqz.fsf@mail.jurta.org> (Juri Linkov's message of "Mon, 09 Nov 2009 04:11:27 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/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:116772 Archived-At: >>> 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/