From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Newsgroups: gmane.emacs.help Subject: Re: Abbrevs for the most frequent elisp symbols Date: Wed, 31 Dec 2014 09:50:11 +0000 (UTC) Message-ID: References: <549C259F.8080307@easy-emacs.de> <54A1A064.3020602@easy-emacs.de> 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 1420019454 14302 80.91.229.3 (31 Dec 2014 09:50:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Dec 2014 09:50:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 31 10:50:48 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 1Y6FvS-000162-Lx for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Dec 2014 10:50:46 +0100 Original-Received: from localhost ([::1]:39663 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y6FvR-0003Xh-Vc for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Dec 2014 04:50:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y6FvF-0003XZ-97 for help-gnu-emacs@gnu.org; Wed, 31 Dec 2014 04:50:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y6FvB-0002if-Jd for help-gnu-emacs@gnu.org; Wed, 31 Dec 2014 04:50:33 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:40320) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y6FvB-0002hy-2F for help-gnu-emacs@gnu.org; Wed, 31 Dec 2014 04:50:29 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Y6Fv7-0000pX-Oi for help-gnu-emacs@gnu.org; Wed, 31 Dec 2014 10:50:25 +0100 Original-Received: from 217-197-181-96.pool.digikabel.hu ([217.197.181.96]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 31 Dec 2014 10:50:25 +0100 Original-Received: from adatgyujto by 217-197-181-96.pool.digikabel.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 31 Dec 2014 10:50:25 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 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: 217.197.181.96 (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:101784 Archived-At: Stefan Monnier iro.umontreal.ca> writes: > > If you use the `initials' completion style, "wcb" will match > "with-current-buffer" (along with various others), so if we add a good > sorting based on known usage frequency (as suggested by the OP), the > cycling completion will behave very similarly to his abbrevs. I wonder if it is possible to combine abbrevs with completion. I feel the most convenient completion is abbrevs, because then you don't have to press anything to complete, it just happens. But if we use initials then there can be collisions. What if we could use initial-abbrevs to type lisp symbols, but when there is more possible completions for the abbrev (e.g. if there is an other completion for wcb than with-current-buffer) then at abbrev expansion it would pop up a completion menu like company, etc. so right below the line) with the possible completions sorted by frequency with the most frequent at the top. This would be the most convenient solution, because then you could just type initials and completions would pop up without pressing anything, or if there is no collision then it would expand immediately like any other abbrev.