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: Short to long form expansion? Date: Fri, 24 Feb 2006 14:04:15 -0800 Message-ID: References: <87u0aq13nw.fsf-monnier+gnu.emacs.help@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1140853209 4709 80.91.229.2 (25 Feb 2006 07:40:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 25 Feb 2006 07:40:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 25 08:40:04 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FCu25-0002GM-G0 for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Feb 2006 08:40:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FCu26-0006A9-0G for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Feb 2006 02:40:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FCl3F-0007yx-PO for help-gnu-emacs@gnu.org; Fri, 24 Feb 2006 17:04:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FCl3A-0007s9-7X for help-gnu-emacs@gnu.org; Fri, 24 Feb 2006 17:04:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FCl38-0007nc-24 for help-gnu-emacs@gnu.org; Fri, 24 Feb 2006 17:04:30 -0500 Original-Received: from [148.87.113.118] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1FCl3K-0001Mc-Bh for help-gnu-emacs@gnu.org; Fri, 24 Feb 2006 17:04:42 -0500 Original-Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by rgminet01.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id k1OM4Rnv016961 for ; Fri, 24 Feb 2006 15:04:27 -0700 Original-Received: from rgmsgw300.us.oracle.com (localhost [127.0.0.1]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id k1OM4Qov008151 for ; Fri, 24 Feb 2006 15:04:26 -0700 Original-Received: from dradamslap (dradams-lap.us.oracle.com [130.35.177.126]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k1OM4QUW008145 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Fri, 24 Feb 2006 15:04:26 -0700 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Importance: Normal In-Reply-To: <87u0aq13nw.fsf-monnier+gnu.emacs.help@gnu.org> X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:33404 Archived-At: > Is there a mode that allows completion of words by taking a > short form, and comparing it with text in the buffer to > deduce a longer form? e.g. in a buffer with complete_text > some-variable-name c_t M-RET -> complete_text > s-v-n M-RET -> some-variable-name Anything like that? > I use pabbrev-mode which helps alot with code editing, > but this little extra would be icing on the cake. I use dabbrev for that, with the following patch... You might also be interested in `icicles.el', which enhances `dabbrev.el' by providing `dabbrev-completion' (bound to `M-C-/') with cycling of completion candidates (in addition to completion). It also lets you complete using a regexp and provides some other features. http://www.emacswiki.org/cgi-bin/emacs/icicles.el