From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Thorpe Newsgroups: gmane.emacs.help Subject: Re: Abbrevs for the most frequent elisp symbols Date: Mon, 29 Dec 2014 13:09:29 +0000 Message-ID: <87fvbyeh6e.fsf@robertthorpeconsulting.com> References: <878uhqpul7.fsf@wmi.amu.edu.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1419858600 6378 80.91.229.3 (29 Dec 2014 13:10:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Dec 2014 13:10:00 +0000 (UTC) Cc: Tom , Emanuel Berg , Marcin Borkowski To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 29 14:09:53 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 1Y5a53-0008It-6x for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Dec 2014 14:09:53 +0100 Original-Received: from localhost ([::1]:33336 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5a52-0006ov-Aw for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Dec 2014 08:09:52 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5a4o-0006ok-NL for help-gnu-emacs@gnu.org; Mon, 29 Dec 2014 08:09:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y5a4k-0004YR-LP for help-gnu-emacs@gnu.org; Mon, 29 Dec 2014 08:09:38 -0500 Original-Received: from outbound-smtp06.blacknight.com ([81.17.249.39]:47954) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5a4k-0004Y4-GH for help-gnu-emacs@gnu.org; Mon, 29 Dec 2014 08:09:34 -0500 Original-Received: from mail.blacknight.com (pemlinmail05.blacknight.ie [81.17.254.26]) by outbound-smtp06.blacknight.com (Postfix) with ESMTPS id 5687599218 for ; Mon, 29 Dec 2014 13:09:31 +0000 (UTC) Original-Received: (qmail 27470 invoked from network); 29 Dec 2014 13:09:31 -0000 Original-Received: from unknown (HELO RTLaptop) (rt@robertthorpeconsulting.com@[86.185.23.72]) by 81.17.254.9 with ESMTPSA (DHE-RSA-AES128-SHA encrypted, authenticated); 29 Dec 2014 13:09:31 -0000 In-Reply-To: <878uhqpul7.fsf@wmi.amu.edu.pl> (message from Marcin Borkowski on Mon, 29 Dec 2014 12:24:20 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 81.17.249.39 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:101750 Archived-At: There are the dynamic abbrevs facilities, M-\ and C-M-\. They search through the open buffers looking for completion candidates. They're included by default in hippie-expand's completers. Personally, I prefer that style of completion to abbrev. You could use a similar strategy with normal abbrev though. Load up a set of Elisp files that are typical of your personal usage. You could then use the code in dabbrev-expand or dabbrev-completion to find the completions you want. You could wrap that in a bit of Elisp and run it once to generate a table, then decide on the abbrevs manually or by taking a prefix. Martin mentions that the Emacs sources themselves contain some code that's frowned upon these days. That's true, there are many old parts of Emacs. The parts that are new are a good guide though. There are some peculiarities even there though, Emacs code doesn't use certain features to avoid loading them when Emacs starts, easymenu for example. BR, Robert Thorpe