From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Newsgroups: gmane.emacs.help Subject: Abbrevs for the most frequent elisp symbols Date: Fri, 19 Dec 2014 19:58:58 +0000 (UTC) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1419019191 9146 80.91.229.3 (19 Dec 2014 19:59:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Dec 2014 19:59:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 19 20:59:43 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y23iA-0007cU-8G for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Dec 2014 20:59:42 +0100 Original-Received: from localhost ([::1]:60367 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y23i9-0002oe-J0 for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Dec 2014 14:59:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y23hl-0002lh-Jh for help-gnu-emacs@gnu.org; Fri, 19 Dec 2014 14:59:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y23hf-0006ZL-BC for help-gnu-emacs@gnu.org; Fri, 19 Dec 2014 14:59:17 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:32815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y23hf-0006Yi-3x for help-gnu-emacs@gnu.org; Fri, 19 Dec 2014 14:59:11 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Y23hc-0007LL-6z for help-gnu-emacs@gnu.org; Fri, 19 Dec 2014 20:59:08 +0100 Original-Received: from 94-21-76-180.pool.digikabel.hu ([94.21.76.180]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Dec 2014 20:59:08 +0100 Original-Received: from adatgyujto by 94-21-76-180.pool.digikabel.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Dec 2014 20:59:08 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 94.21.76.180 (Mozilla/5.0 (Windows NT 6.1; rv:34.0) Gecko/20100101 Firefox/34.0) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101681 Archived-At: The other day it occurred to me I could use simple abbrevs for elisp programming, but defining these manually is tiresome, so I did some automation. 1. I collected all elisp symbols from the manual 2. Generated abbrevs for those which have multiple parts in the name from the first letters (e.g. goto-char -> gc) 3. There can be collisions (e.g. gc maps to both goto-char and garbage-collect), so I collected the usage statistics of all elisp symbols from the emacs lisp sources and in case of a collision I used that one which occurs more frequently (in the above case: goto-char). The result is an automated abbrev table for elisp symbols based on frequency. So, for example, you can use wcb for with-current-buffer, bol for beginning-of-line, mb for match-beginning, etc. Here's the list of abbrevs, you can try it in a buffer: http://pastebin.com/D7Lrg3WA The idea is trivial, so probably somebody has done something like this already, but I thought I'd share it in case someone else finds it useful.