From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#34787: New defcustom to govern TAB completion Date: Tue, 04 Jun 2019 21:50:11 -0400 Message-ID: <87y32g3ing.fsf@gmail.com> References: <87h8cdqlb3.fsf@gmail.com> <87a7favg3s.fsf@gmail.com> <87v9xy8xk0.fsf@gmail.com> <878suuvee1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="156572"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Cc: 34787@debbugs.gnu.org To: Alex Branham Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 05 03:51:17 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hYL5A-000edb-Mo for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Jun 2019 03:51:16 +0200 Original-Received: from localhost ([127.0.0.1]:34040 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYL59-0002bn-H8 for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Jun 2019 21:51:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hYL53-0002V2-GW for bug-gnu-emacs@gnu.org; Tue, 04 Jun 2019 21:51:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hYL51-0005Gp-C2 for bug-gnu-emacs@gnu.org; Tue, 04 Jun 2019 21:51:09 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60841) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hYL4v-0005BP-VM for bug-gnu-emacs@gnu.org; Tue, 04 Jun 2019 21:51:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hYL4v-0006N9-SG for bug-gnu-emacs@gnu.org; Tue, 04 Jun 2019 21:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Jun 2019 01:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34787 X-GNU-PR-Package: emacs Original-Received: via spool by 34787-submit@debbugs.gnu.org id=B34787.155969942424446 (code B ref 34787); Wed, 05 Jun 2019 01:51:01 +0000 Original-Received: (at 34787) by debbugs.gnu.org; 5 Jun 2019 01:50:24 +0000 Original-Received: from localhost ([127.0.0.1]:46150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYL4J-0006ME-FH for submit@debbugs.gnu.org; Tue, 04 Jun 2019 21:50:23 -0400 Original-Received: from mail-it1-f170.google.com ([209.85.166.170]:56158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hYL4E-0006Lt-LV for 34787@debbugs.gnu.org; Tue, 04 Jun 2019 21:50:19 -0400 Original-Received: by mail-it1-f170.google.com with SMTP id i21so1148648ita.5 for <34787@debbugs.gnu.org>; Tue, 04 Jun 2019 18:50:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=FP7IR4EI9gCIxO+G3Qde290hF8xEW61PUR7mSo4CeHQ=; b=fRhTzuJfCLcuIYXpnvxwLWyngrtO/r8IjZ4aI6w8Nc1gYUbVq5p7fxKc6kw3JAY8Ye HQ56P4Su19DMjuzHpk+E5ldIN+IaPjYSzIVehvbUhoOyaCv05V2fw1yNQyyKXd722mV0 yqnT3h6r6aeGVkNCxk0Cn2NKkumA2zUXPxpJDLl0uqEVj1QWCLGH2z56Xb5HsUh9lF5A c6HiPhT5bxhFA/sPoj7xtwrB27FoM1TVsRsawd0UEX4Jz/u79bUPUQnN9sri9A9aY61c A4Waf04XMfx70+DHjoyNJAqRiR8QINMyZ+hont3/DtxXoI8rlcn3EGRkAE8vamp4C1Ev 6KIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=FP7IR4EI9gCIxO+G3Qde290hF8xEW61PUR7mSo4CeHQ=; b=fF5X+YZbhM012hynXOM+1vPK1TDbit0spYMzLRdHPmqqM1H+d1QjWHirChMbikRwpG s2Nuy2rZGeACIs/94EVL/UWqPQhvuL+35+K/WLN9ghJUvkrNmBIcmE10RhsFoN5RnvKV 7wD8iqYWiEUC9ZwDZlD87tMNYU6x8QN7OhFnibxy2JjyBgYxa+4VnH0NWGz0sSHfKE45 tqctDqr6KN/9YInZ9NDoYJBIbs3mA2Um8IOroGoAh812eyYfVhz99omZcXwJB7uFrXa/ HxGvUMYa71qu18tg9b/Zbll8Lmmd7mw0MLk2yuZ/+c2S6B8HOP33Cc2DWNYROyItnS9U 9eng== X-Gm-Message-State: APjAAAWvdgqYQGvZ6KzXRITn4pirQlZ/37B6WDZ7BHeTTfz8g+WJ5WAg t1NELcAu02bKFXF4lvIedvr92MKX X-Google-Smtp-Source: APXvYqxjoy87e4QFvviKXYub8sU+BAn6y67l546wWbsOz9Q5eb5FNTlj6cuG+o3TUj6Pn1AROlYOyA== X-Received: by 2002:a24:5587:: with SMTP id e129mr17432169itb.72.1559699412747; Tue, 04 Jun 2019 18:50:12 -0700 (PDT) Original-Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id 69sm8307970itl.7.2019.06.04.18.50.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Jun 2019 18:50:12 -0700 (PDT) In-Reply-To: <878suuvee1.fsf@gmail.com> (Alex Branham's message of "Sat, 25 May 2019 08:43:02 -0500") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:160131 Archived-At: Alex Branham writes: > On Sat 25 May 2019 at 08:37, Noam Postavsky wrote: > >> Alex Branham writes: >> >>> As a quick reminder/TLDR - the proposal is to add a defcustom that >>> governs whether TAB offers completion when hit the first time. The >>> thinking is that if point is in the middle of a word, you may not want >>> completion. >> >> How would it interact with the existing tab-always-indent? Would it >> make sense to combine them? > > The way we have it in ESS currently is that they're two separate > variables. One (our version of tab-always-indent) governs whether TAB > offers completion and another (what I'm proposing adding to Emacs) > governs whether the first press of TAB should offer completion based on > context. Oh, I see, it only affects people who have already customized tab-always-indent to a non-default value (specifically, `complete'). So I guess the idea is that (setq tab-always-indent 'complete) triggers too many accidental completions to be a reasonable setting? I think it would be nicer if the option's values could be `(word paren)', `(word paren punct) instead of `word-or-paren', `word-or-paren-or-punct', etc.