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#11906: 24.1; completion-at-point failures Date: Fri, 06 Dec 2013 15:15:09 +0200 Message-ID: <52A1CDDD.1050808@yandex.ru> References: <87li776gym.fsf@yandex.ru> <87pppcasli.fsf@yandex.ru> <52A1221D.90501@yandex.ru> <52A1534D.3000902@yandex.ru> 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 1386335778 11948 80.91.229.3 (6 Dec 2013 13:16:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Dec 2013 13:16:18 +0000 (UTC) Cc: 11906@debbugs.gnu.org To: Leo Liu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 06 14:16:23 2013 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 1VovGW-0008Fn-T2 for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Dec 2013 14:16:21 +0100 Original-Received: from localhost ([::1]:58921 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VovGW-0003I5-BS for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Dec 2013 08:16:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VovGM-0003Gp-4x for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2013 08:16:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VovGE-0001KD-QV for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2013 08:16:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VovGE-0001K9-MX for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2013 08:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VovGE-0001Cv-Do for bug-gnu-emacs@gnu.org; Fri, 06 Dec 2013 08:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Dec 2013 13:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11906 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11906-submit@debbugs.gnu.org id=B11906.13863357164584 (code B ref 11906); Fri, 06 Dec 2013 13:16:02 +0000 Original-Received: (at 11906) by debbugs.gnu.org; 6 Dec 2013 13:15:16 +0000 Original-Received: from localhost ([127.0.0.1]:33366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VovFT-0001Bs-SL for submit@debbugs.gnu.org; Fri, 06 Dec 2013 08:15:16 -0500 Original-Received: from mail-wi0-f180.google.com ([209.85.212.180]:55582) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VovFS-0001Bk-94 for 11906@debbugs.gnu.org; Fri, 06 Dec 2013 08:15:14 -0500 Original-Received: by mail-wi0-f180.google.com with SMTP id hn9so795061wib.1 for <11906@debbugs.gnu.org>; Fri, 06 Dec 2013 05:15:13 -0800 (PST) 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=T3BeSgosCH5UKXwsWg2Oo7BFTlgQk5dopvefZ3qSuHU=; b=ex3S+5XYY0UDML4mUt8qcaMiElnhf5EYf/2GDsGwD7gNaG+OdmALrkv5s+XlSoG/Zn vntD8dVCOHow5EQdKN7f9SIhZMVGJm48wSG+F9wjN1n7gJpSWQp9KmkPYPdDERUdQcp6 gwUmr0JwTqCcanM+6ySvywBn2sBvqywoz9H4Acycwy7krsCXVGF3ncSMtJ3TaxHjGLHU mjOTrTs/RJu1OhfY9xqIcAid8mkBi28ldeIXF4l+W8Wl+GXoB4L+fYccvjQG+A+EB26X CONUcxzAe00MDyWNqFTA6R0sK27HeRKpZgWivzFwmP6oQQVMb2rPQXA/J4C1ZjG/C6g5 6/9Q== X-Received: by 10.194.84.72 with SMTP id w8mr22074922wjy.55.1386335713306; Fri, 06 Dec 2013 05:15:13 -0800 (PST) Original-Received: from [192.168.10.48] (93-245-142.netrun.cytanet.com.cy. [93.109.245.142]) by mx.google.com with ESMTPSA id d2sm6114423wik.11.2013.12.06.05.15.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Dec 2013 05:15:12 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 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:81520 Archived-At: On 06.12.2013 07:36, Leo Liu wrote: > See completion-at-point: > > (let ((newstart (car-safe (funcall hookfun)))) > (and newstart (= newstart start))) > > so basically every command following completion-at-point calls HOOKFUN > to check if start matches, in this case it doesn't need the completion > table. But that function is fast! Compared to doing the actual completion, the time it takes to `(funcall hookfun)' should be negligible: ELISP> (js2-time (setq ocap (with-current-buffer "*Inferior Octave*" (octave-completion-at-point)))) 0.0 ELISP> (js2-time (with-current-buffer "*Inferior Octave*" (funcall (nth 2 ocap) "a" nil t))) 0.0055