From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#18643: 25.0.50; elisp--expect-function-p Date: Thu, 09 Oct 2014 10:17:32 +0400 Message-ID: <5436287C.3080805@yandex.ru> References: <86oatmq7lc.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1412835511 29794 80.91.229.3 (9 Oct 2014 06:18:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Oct 2014 06:18:31 +0000 (UTC) Cc: 18643@debbugs.gnu.org To: Leo Liu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 09 08:18:24 2014 Return-path: Envelope-to: geb-bug-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 1Xc73M-0002mz-Nr for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Oct 2014 08:18:20 +0200 Original-Received: from localhost ([::1]:40706 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xc73M-0007ix-7b for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Oct 2014 02:18:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xc73C-0007ig-Jv for bug-gnu-emacs@gnu.org; Thu, 09 Oct 2014 02:18:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xc735-0004EA-2k for bug-gnu-emacs@gnu.org; Thu, 09 Oct 2014 02:18:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xc734-0004DZ-U3 for bug-gnu-emacs@gnu.org; Thu, 09 Oct 2014 02:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xc734-0002AS-9e for bug-gnu-emacs@gnu.org; Thu, 09 Oct 2014 02:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Oct 2014 06:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18643 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18643-submit@debbugs.gnu.org id=B18643.14128354578300 (code B ref 18643); Thu, 09 Oct 2014 06:18:02 +0000 Original-Received: (at 18643) by debbugs.gnu.org; 9 Oct 2014 06:17:37 +0000 Original-Received: from localhost ([127.0.0.1]:38438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xc72e-00029n-BO for submit@debbugs.gnu.org; Thu, 09 Oct 2014 02:17:36 -0400 Original-Received: from mail-la0-f41.google.com ([209.85.215.41]:47815) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xc72c-00029e-EY for 18643@debbugs.gnu.org; Thu, 09 Oct 2014 02:17:35 -0400 Original-Received: by mail-la0-f41.google.com with SMTP id pn19so518280lab.0 for <18643@debbugs.gnu.org>; Wed, 08 Oct 2014 23:17:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=l/QnZLPj2vVRl3ZLxZElItutmUvGTtXDSyJ+tv6A6pc=; b=KKaBThaDO6HFaJsxXq8Ya6GyQEZOBFrV18FxGoESUfemk9fm7OpCoax8sm8Rp3kqby 9vZWe2M5Koqno/d/Ns+PN7z5tt4W5dBOqUddn0eAH1T82sewfWYIZtk4Hyh1CAAhsUMs 6Odg3CJjk7PZ0hzwCu+osMMhI1p153NrLc6EJeLm49n6+wbDgqRv35hxM4ZonuQNSGr3 FvFCKnJoTjnLwbb2LG8uw3gwq4TCx9Hcda6TQgxci1z1ez/fFRw7FdT2TRo4fzFrWH/5 PCxT/ih/NaUWa4jF8YIwgJBKeN3pEDZ3n8WXahE91I4rm56IvJatptSDlaVAo6EnvYvW tLzQ== X-Received: by 10.112.149.2 with SMTP id tw2mr15458993lbb.21.1412835453314; Wed, 08 Oct 2014 23:17:33 -0700 (PDT) Original-Received: from [192.168.1.3] ([178.252.98.87]) by mx.google.com with ESMTPSA id z5sm680523lae.21.2014.10.08.23.17.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Oct 2014 23:17:32 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94322 On 10/09/2014 07:31 AM, Leo Liu wrote: > It is the false negatives that kill its usefulness in the case of elisp. I disagree with the word "kill" here. Somewhat diminish, maybe. > For example, (ert-deftest |) and (defun |) no longer have the > completions I need. These would be trivial to improve. >> I'm pretty sure writing a new variable definition is a much less >> frequent operation than referring to a variable in a function, or >> writing a function call. And code completion is most useful when one is >> referring to existing variables and functions. > > I won't jump to such conclusions so soon. You are guessing users' > editing habits too much. In which part? The lower frequency of new definitions is self-evident, I think. > What is hard is having a good algorithm to determine completion types > correctly. Unfortunately what we have has too many false negatives. I'd > much prefer offering multiple candidates instead of showing no > completions and with completion-cycling I can get to most completions in > under a second. In that case, I guess you'll have to add a user option. `lisp-completion-at-point-uses-context', or something like that. > My bug report is not based on anything other than completion-at-point, Does that mean my suggestions can't be based on anything else? > the plain/standard emacs completion UI, which is what I use for elisp > for a long while and I am quite content with it. It can be less optimal > for other languages. but for elisp it has worked well in the past. I've been using it for a while as well, and I wouldn't say it was, or is, perfect.