From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Liu Newsgroups: gmane.emacs.bugs Subject: bug#11906: 24.1; completion-at-point failures Date: Sat, 11 May 2013 09:50:43 +0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1368237117 4020 80.91.229.3 (11 May 2013 01:51:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 May 2013 01:51:57 +0000 (UTC) Cc: 11906@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 11 03:51:56 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 1UayyY-0000qg-Gn for geb-bug-gnu-emacs@m.gmane.org; Sat, 11 May 2013 03:51:54 +0200 Original-Received: from localhost ([::1]:38267 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UayyY-0003cy-7Y for geb-bug-gnu-emacs@m.gmane.org; Fri, 10 May 2013 21:51:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UayyU-0003cg-3o for bug-gnu-emacs@gnu.org; Fri, 10 May 2013 21:51:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UayyT-0003gi-7J for bug-gnu-emacs@gnu.org; Fri, 10 May 2013 21:51:50 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60169) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UayyT-0003ge-3C for bug-gnu-emacs@gnu.org; Fri, 10 May 2013 21:51:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Uayyf-00056K-P2 for bug-gnu-emacs@gnu.org; Fri, 10 May 2013 21:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Leo Liu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 May 2013 01:52:01 +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.136823707619408 (code B ref 11906); Sat, 11 May 2013 01:52:01 +0000 Original-Received: (at 11906) by debbugs.gnu.org; 11 May 2013 01:51:16 +0000 Original-Received: from localhost ([127.0.0.1]:36045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Uayxs-00052k-54 for submit@debbugs.gnu.org; Fri, 10 May 2013 21:51:16 -0400 Original-Received: from mail-pd0-f180.google.com ([209.85.192.180]:52479) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Uayxk-000522-R0 for 11906@debbugs.gnu.org; Fri, 10 May 2013 21:51:10 -0400 Original-Received: by mail-pd0-f180.google.com with SMTP id t10so3132340pdi.25 for <11906@debbugs.gnu.org>; Fri, 10 May 2013 18:50:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:references:face:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=+UBLl3usT0LPJnHmnzDCBcCAVLcCKFuNHL9u+rYtlSQ=; b=v3IDffmsm+SJJ4LNH/2u7EeAUdnlTq9HaXcqVNBnFtQu+Q1DssypdNyFUrXNxDRBob 4eQVjyFMND9bsItC7be6fxEhEftvPyVjsHydjmrvPUtANUXUCFXPl4OeCkKVzM5OQLyb u6duKqFKlP1E1E+7F/g5+mPFOwdU546oUoHti87CV0pWRgOLo3tNbPG4hK/FwGzD1zDN 2BuAiC/WSQtT+cjAnWWlphQS/4DS11C8Xh4ycQ/AnrrTVwwjkH7a1Gg0jgETZqwCPnXY ODi2bZpvI/QxDR7c8ypvVBZ5UhPiWd/DF0/4LoPE2gCfbd0Sa0FU0igG6BOgzrSNS+gZ gJIg== X-Received: by 10.66.144.233 with SMTP id sp9mr20000663pab.178.1368237050945; Fri, 10 May 2013 18:50:50 -0700 (PDT) Original-Received: from Zeuss-MacBook.local (li511-224.members.linode.com. [66.175.216.224]) by mx.google.com with ESMTPSA id pa2sm4921043pac.9.2013.05.10.18.50.48 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 10 May 2013 18:50:50 -0700 (PDT) Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoAgMAAADxkFD+AAAADFBMVEUvT09qWs3/pQD///+J kUVcAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMLOd3veKQA AACuSURBVBjTldE9CgIxEAXgB+lEyFUC2wo5ikdZ8DSypxhMY7H9VuIVwlqkGRgnm59VsHGafIQ3 CZlAtmKIRaHETgYa12lqvEsPYKf8wXHsPGfqPaUM0g9aJPKFXkmNQmSDqwzz4Fpgpz+6WAPY2z5o uPJJpu0uypcl4nyCibMLQ8lCiVjayLoQvw5LsVKQuHPRR958HZbOcVsKeepcLxpByjycGvnKmY+c MBvrtyjfe0vmuLvdq/kAAAAASUVORK5CYII= In-Reply-To: (Stefan Monnier's message of "Fri, 10 May 2013 16:36:05 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (OS X 10.8.3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:74150 Archived-At: On 2013-05-11 04:36 +0800, Stefan Monnier wrote: > > > Ah, OK. > so I should type RET before "history 10", so history shows me the last > commands run by octave. Sorry, I wasn't clear. > The difference between 2 and 3 calls shouldn't be sufficiently large to > go from "acceptable" to "terrible delay". It is a difference between 1 and 3 calls because a user can also run octave in terminal and find that how responsive it actually is. I noticed this long delay when completing empty strings (octave-completion-at-point used to allow empty strings). Emacs will be busy for a few seconds (something like 3 ~ 5 seconds in my laptop). Given how often I use the TAB key, it was terrible experience. > Using a cache is a good idea: when there's no completion, the completion > code may call the completion-table many more times than just 3 times > (typically, it will call it at least once per completion-style). I just want to point out these problems in the completion-at-point machinery. I think if completion-at-point can work well when there is a 2-second cost in a completion-at-point function, it can provide an excellent experience. > Stefan Thanks, Leo