From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: completion.el users? Date: Sat, 11 May 2013 22:31:47 +0400 Message-ID: <518E8E93.1010804@yandex.ru> References: <87vc6p8sdi@ch.ristopher.com> <87li7lo4p8.fsf@yandex.ru> <0BA3DA32EEC343739CFE4229CA94FD5B@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1368297117 1312 80.91.229.3 (11 May 2013 18:31:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 May 2013 18:31:57 +0000 (UTC) Cc: 'Christopher Schmidt' , emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 11 20:31:53 2013 Return-path: Envelope-to: ged-emacs-devel@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 1UbEaH-0005S7-LM for ged-emacs-devel@m.gmane.org; Sat, 11 May 2013 20:31:53 +0200 Original-Received: from localhost ([::1]:34873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbEaG-0003HM-Km for ged-emacs-devel@m.gmane.org; Sat, 11 May 2013 14:31:52 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53384) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbEaA-0003H8-83 for emacs-devel@gnu.org; Sat, 11 May 2013 14:31:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UbEa6-0007sH-CP for emacs-devel@gnu.org; Sat, 11 May 2013 14:31:46 -0400 Original-Received: from mail-la0-x236.google.com ([2a00:1450:4010:c03::236]:53521) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbEa6-0007sD-68 for emacs-devel@gnu.org; Sat, 11 May 2013 14:31:42 -0400 Original-Received: by mail-la0-f54.google.com with SMTP id fd20so4867616lab.41 for ; Sat, 11 May 2013 11:31:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding:x-antivirus:x-antivirus-status; bh=KRSWZKXOt9SROB+VQA+mnHfZ8QoatmzuUlm3uVtEN8E=; b=eBx4SttfffYEtRKgqHNk8v/vP12nll5S2XD+svS3QppzSmUML4sFtilgfi4p6ADjP2 l9ZkQbfVSydtFy2BK36x7PonsjhVzECX1s8Y0MdITwPe8rT0WsllNF8EvZHa2CfrVLt1 r8UQM8N4oZbEjdYVptbShqNHaXPn6nf3FR3rVyPHTotfF840ZRNp/47HWzF0L3ILRoRV O6aEP5tx33i0S4413mxqAodWg+/KhTFDfFFLeyDdpYwFBzOOc6gXLE9HRL/k1kncmHW0 9i1XPoXt1t6t/tgcUe7ITsHHxkNjhwnPFcuh/13vSOR6QmHBAH7FbtcXOAvEOmjo5gzm s1mA== X-Received: by 10.152.26.106 with SMTP id k10mr5521296lag.23.1368297101206; Sat, 11 May 2013 11:31:41 -0700 (PDT) Original-Received: from [127.0.0.1] ([178.252.98.87]) by mx.google.com with ESMTPSA id d3sm2704711lbe.13.2013.05.11.11.31.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 11 May 2013 11:31:39 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 In-Reply-To: <0BA3DA32EEC343739CFE4229CA94FD5B@us.oracle.com> X-Antivirus: avast! (VPS 130511-0, 11.05.2013), Outbound message X-Antivirus-Status: Clean X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::236 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:159515 Archived-At: On 11.05.2013 22:19, Drew Adams wrote: >>>> I think auto-complete-mode is superior to completion.el. >>> >>> Does it do what completion.el does (and more)? >> >> It has a similar feature: >> http://auto-complete.org/doc/manual.html#candidate-suggestion > > 1. Is auto-complete-mode part of Emacs? I don't think so. Let's not divert the > thread, if not. The question is whether Emacs already contains a reasonable > replacement for completion.el. You asked, I answered. Who's diverting what now? > 2. Looking at the auto-complete-mode doc and demo, it's not clear to me that it > is comparable to completion.el. It certainly does many things that > completion.el does not do. (It is also quite large - multiple directories and > files.) But I don't see that a-c-m actually does what completion.el does. Can > you confirm that it does? Like I said, the feature is similar, not identical. > I understand that you can create a dictionary for a-c-m of terms you use. And I > understand that a-c-m does lots of useful things wrt completing programming > entities that it knows about. And it records the counts and use times of > _completions_ that you use. Yes. > But what about the completion.el use case? Does a-c-m record ordinary words (as > well as programming constructs) that you type and thus consider them future > completion candidates? IOW, does simply typing text, or moving the cursor over > text, suffice to turn the words typed or traversed into completion candidates? It allows to use "word in buffer" and "words in buffers in the same mode" as sources of completions, so yes, to an extent. Similarly to `dabbrev-expand'. > E.g., if you were writing an essay or some documentation, does hitting a key > complete a word that you start typing, based on words you have used previously > (including during past sessions)? From the doc I couldn't tell. Past sessions? No.