From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Abbrevs for the most frequent elisp symbols Date: Mon, 29 Dec 2014 07:28:14 -0800 (PST) Message-ID: <3a6204ab-fd4e-48ed-a489-263a6691ab24@default> References: <878uhqpul7.fsf@wmi.amu.edu.pl> <(message> <29> <2014> <12:24:20> <+0100)> <87fvbyeh6e.fsf@robertthorpeconsulting.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1419866938 7956 80.91.229.3 (29 Dec 2014 15:28:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Dec 2014 15:28:58 +0000 (UTC) Cc: Emanuel Berg , Tom , Marcin Borkowski To: Robert Thorpe , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 29 16:28:51 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 1Y5cFV-0004EZ-GA for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Dec 2014 16:28:49 +0100 Original-Received: from localhost ([::1]:33719 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5cFU-0007IY-R1 for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Dec 2014 10:28:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41702) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5cF6-00079s-Gy for help-gnu-emacs@gnu.org; Mon, 29 Dec 2014 10:28:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y5cF3-00073K-Bp for help-gnu-emacs@gnu.org; Mon, 29 Dec 2014 10:28:24 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:46197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y5cF3-00073E-5Y for help-gnu-emacs@gnu.org; Mon, 29 Dec 2014 10:28:21 -0500 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id sBTFSHGv000397 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 29 Dec 2014 15:28:18 GMT Original-Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id sBTFSEvs014256 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 29 Dec 2014 15:28:15 GMT Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id sBTFSDQY014320; Mon, 29 Dec 2014 15:28:13 GMT In-Reply-To: <87fvbyeh6e.fsf@robertthorpeconsulting.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 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:101757 Archived-At: > There are the dynamic abbrevs facilities, M-\ and C-M-\. =20 And the little-known but there-forever and useful `dynamic-completion-mode, from built-in library `completions.el'. (The file Commentary is the doc.) The keys for it are, by default, `C-RET' and `M-RET'. > 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. The use is different, but yes, very useful. > 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. Yes. > 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. +1.