From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#34787: New defcustom to govern TAB completion Date: Mon, 24 Aug 2020 12:22:20 -0700 Message-ID: References: <87h8cdqlb3.fsf@gmail.com> <87a7favg3s.fsf@gmail.com> <87v9xy8xk0.fsf@gmail.com> <878suuvee1.fsf@gmail.com> <87y32g3ing.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39288"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 34787@debbugs.gnu.org, Alex Branham To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 24 21:23:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1kAI3i-000A6b-Kg for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Aug 2020 21:23:10 +0200 Original-Received: from localhost ([::1]:38954 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAI3h-0007qE-Fw for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Aug 2020 15:23:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAI3a-0007oL-Lp for bug-gnu-emacs@gnu.org; Mon, 24 Aug 2020 15:23:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47765) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kAI3a-0006xS-2L for bug-gnu-emacs@gnu.org; Mon, 24 Aug 2020 15:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kAI3Z-0007wm-US for bug-gnu-emacs@gnu.org; Mon, 24 Aug 2020 15:23:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Aug 2020 19:23: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.159829694830493 (code B ref 34787); Mon, 24 Aug 2020 19:23:01 +0000 Original-Received: (at 34787) by debbugs.gnu.org; 24 Aug 2020 19:22:28 +0000 Original-Received: from localhost ([127.0.0.1]:59311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAI32-0007vl-1w for submit@debbugs.gnu.org; Mon, 24 Aug 2020 15:22:28 -0400 Original-Received: from mail-yb1-f169.google.com ([209.85.219.169]:43865) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAI2z-0007vJ-Nu for 34787@debbugs.gnu.org; Mon, 24 Aug 2020 15:22:26 -0400 Original-Received: by mail-yb1-f169.google.com with SMTP id m200so5781116ybf.10 for <34787@debbugs.gnu.org>; Mon, 24 Aug 2020 12:22:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=oyTIkrxB79bSQd28uD9fNGlzULMv+L5zf9IJkZhTFnk=; b=XLzexYyCtlNF3wpM8pnI66infG2fEAC6OYJ3qXpytwrYFEAz9ja8NZsgi8VrkZJjDb YyEk4+LV4nCUiWaNgVevCrsZ1DaS+vo4mdy6JQG08yKbNnjFyGnxRl/FoV7auI2g6i8U dQRhduwjU4gwjTB4ldzWW4CU7/+Pef7gpxKa5y3qBeMnqmpFJDh50OA1xKjpkMnCzOJp L5Uuz+Vx7kJjqUX6v2yKmu3Yalc8kZUQ8pRVBwWzZ6ieq7lhRX5OK0wgEvN+UuSDFdzA azslkIzFRMLMwN+wN64V9WmQ2SuJ7MQVdRloJZODIYalj0e4UNdIKkbquonc4UwbPPdT wCBQ== X-Gm-Message-State: AOAM532eDSNMYfXf+NHKJxvB36zqglt7m7CsIgOr6S9UCQO1uVYTy0Up Q4B4TwU60rvJPLlvY0GYG1IlPqS6s1PCv47Aks9H+e8vJ1yB/w== X-Google-Smtp-Source: ABdhPJyGYlScXQfY0AOJT5xMm5Rlf8mW5vaH4c4CvRVm9w7t2z4M+q9hnY+sYuDWav1PcgKjQScAilX8C48TBmZKNb8= X-Received: by 2002:a25:9843:: with SMTP id k3mr9842270ybo.466.1598296940341; Mon, 24 Aug 2020 12:22:20 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 24 Aug 2020 12:22:20 -0700 In-Reply-To: <87y32g3ing.fsf@gmail.com> (Noam Postavsky's message of "Tue, 04 Jun 2019 21:50:11 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:186211 Archived-At: Noam Postavsky writes: > 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. (That was one year ago.) Are you still working on this? Best regards, Stefan Kangas