From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?windows-1252?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: Abbrevs for the most frequent elisp symbols Date: Thu, 25 Dec 2014 15:56:31 +0100 Message-ID: <549C259F.8080307@easy-emacs.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1419519435 18300 80.91.229.3 (25 Dec 2014 14:57:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Dec 2014 14:57:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 25 15:57:09 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 1Y49qf-0006Cb-JM for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Dec 2014 15:57:09 +0100 Original-Received: from localhost ([::1]:51092 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y49qe-0004gl-QC for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Dec 2014 09:57:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y49qT-0004gQ-Fo for help-gnu-emacs@gnu.org; Thu, 25 Dec 2014 09:56:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y49qQ-0005Ya-Af for help-gnu-emacs@gnu.org; Thu, 25 Dec 2014 09:56:57 -0500 Original-Received: from mout.kundenserver.de ([212.227.17.24]:65057) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y49qQ-0005YN-1W for help-gnu-emacs@gnu.org; Thu, 25 Dec 2014 09:56:54 -0500 Original-Received: from [192.168.178.32] ([77.12.78.78]) by mrelayeu.kundenserver.de (mreue104) with ESMTPSA (Nemesis) id 0Lecww-1XWjgw2yBq-00qQcp for ; Thu, 25 Dec 2014 15:56:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.3.0 In-Reply-To: X-Provags-ID: V03:K0:X4YA6MAPwoF8Ye/UK0DXImAxqTfsLwxHpPI4Li+msRJR4AckCks 9iG+L59WryOeleKSPWMgmTMoM9wi0KTgTthcDNhGnbxXoFPo5IZcTiJp053AKXIPA7iN3fA DENBIB+NEtKZAAM5qywFU+34DS0Z/wrVzNNiIZ2yVA1CyMQKUnwzNEi1UzzHQuIcrZdeaEz MMKUWxK0i8PXHa4VNrV6w== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.24 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:101723 Archived-At: On 19.12.2014 20:58, Tom wrote: > 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. > > > > Interesting item, thanks! The question is: does the occurrence inside the manual or the source provide indication WRT probability of personal usage? As being a heavy abbrevs-user, here my collection of emacs-lisp abbrevs defined: https://github.com/andreas-roehler/werkstatt/blob/master/teens-abbrevs.el Andreas