From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: What is the most useful potential feature which Emacs lacks? A: Autocompletion Date: Wed, 3 Jun 2020 16:10:53 +0300 Message-ID: <5f3891ac-29f5-f544-360c-384ff9608bd1@yandex.ru> References: <380db8f0-0e18-744f-d72a-a6e12c3b6e1d@yandex.ru> <8919f9382c738573f20d97e22f293d61866f99b8.camel@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="130838"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 To: Konstantin Kharlamov , ndame , Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jun 03 15:11:29 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jgTB2-000Xvq-Rw for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Jun 2020 15:11:28 +0200 Original-Received: from localhost ([::1]:36828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jgTB1-0006AB-Qe for ged-emacs-devel@m.gmane-mx.org; Wed, 03 Jun 2020 09:11:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgTAY-0005jB-F8 for emacs-devel@gnu.org; Wed, 03 Jun 2020 09:10:58 -0400 Original-Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:33658) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jgTAX-0003xd-N0 for emacs-devel@gnu.org; Wed, 03 Jun 2020 09:10:58 -0400 Original-Received: by mail-wr1-x429.google.com with SMTP id l11so2341128wru.0 for ; Wed, 03 Jun 2020 06:10:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=c/pV1K5IVvWj1jY10uRbjxt0HOFWcBOtFyxhZRKSJQU=; b=neL7eHwW08yS8W/nWnQ5wBAHbJ9Zte/ILggCGS4MVywvMGiQTdz3n21OWp/XeReXdE 5HbLcFpL6e5frrJE9HtLdQ/45rJXYg6Otm9YowbbRziyyPR+ty7ZHCi84XpkwR3gD8GP Te9r3CD+wIkSdsj/6VZHLi+OPZ41qeydWuIhM23EeYWRygrxHA/dif6J9r8DH0lfHy8K zp0XrH/6J0NPYWcl7nmBuCL/OgP1ZFx064Ap9JyEPA5uLdoOYKYsvMSpMh+KW8PEnk8r QgWifhbKTilkbHrrVA/TQ8mBk50Fv2995vIBXj901iicgcC+ewju1gYhv+aIPiP2vAw2 nJcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=c/pV1K5IVvWj1jY10uRbjxt0HOFWcBOtFyxhZRKSJQU=; b=uJcjlYAINsEWE9zCM0Irq0/sFllQ4xQTvkf13WRmmoKEnhBg46wFlBtZWp+qVexwC3 5zW7WxWVlPnmT8uf4S+80Hg2GD8KYBhzWS3R4UpVoD6Upht2pr5N4YDYAxQQ3kB7/5tN /mezt//zNpZ68FTSkhtxUVwsMAyC+bLAAia5mudZha2YAl8PngUwZZsa3+KnKMdPQH0+ dKV13KWKyvS/2x5OyqKr5B1hJrYk/Drgy8V5CfJliAYxIDCdSLfg7eujz+ECfecAj5xj /vAuruco0D388Sc/f1PgS3cL68r4jBxVxwbDHlzT2/lR0zrR7So+5GyXZQMYZnwWANWH tasA== X-Gm-Message-State: AOAM5323JnpSZbvLv3VhQHww1qRYAQeXpJZ/eSXOmg4hjQe1vLoqliII bRhnq+O5EG2LW/Dq+BPQJuWs+u+f X-Google-Smtp-Source: ABdhPJzKmftnpucFJGDOo+OAvIbnz+9AnV0qA/LZXmJtlijpSPNk33okiMosnmDIkWQ9qcXqjr4xSA== X-Received: by 2002:adf:dcd2:: with SMTP id x18mr30505734wrm.258.1591189855873; Wed, 03 Jun 2020 06:10:55 -0700 (PDT) Original-Received: from [192.168.0.3] ([66.205.73.129]) by smtp.googlemail.com with ESMTPSA id x205sm3215774wmx.21.2020.06.03.06.10.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Jun 2020 06:10:54 -0700 (PDT) In-Reply-To: <8919f9382c738573f20d97e22f293d61866f99b8.camel@yandex.ru> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=raaahh@gmail.com; helo=mail-wr1-x429.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:251802 Archived-At: On 03.06.2020 15:50, Konstantin Kharlamov wrote: > On Wed, 2020-06-03 at 15:36 +0300, Dmitry Gutov wrote: >> On 03.06.2020 14:39, Konstantin Kharlamov wrote: >>> Lack of such simple but immensely useful feature is so >>> disappointing >>> that some years ago I was trying to migrate over to some other >>> editor. >> >> What simple feature? Prediction? Is that like mind reading? > > You misunderstand what I say. In technical terms "prediction" here > means "the timeout set to 0". Timeout set to 0 means firing completion requests right after every user input. If completion is synchronous, that will of course lead to a slowdown (depending on how slow the backend is). For asynchronous ones, it could be fine, if the backing process can handle requests at such frequency. In general, the value of 0 seems wasteful to me, but it should work. >> As far a multithreading goes, try some backend that uses an external >> program (either of the LSP clients, or irony, rtags, etc). That's a >> basic kind of concurrency already available in Emacs. > > > Just to make sure: and it not gonna lag if I set timeout to 0? If yes, > then great to know, maybe I fell behind recent developments, I should > try it then. To be 100% sure, you should try it yourself (I don't do C/C++). Maybe someone else here can testify, though.