From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#59617: 29.0.50; Add indent styles to all tree-sitter modes Date: Mon, 28 Nov 2022 13:38:30 +0100 Message-ID: <87y1rv9ruh.fsf@thornhill.no> References: <87r0xp4k4p.fsf@thornhill.no> <87r0xo0xz0.fsf@thornhill.no> <87tu2jo98h.fsf@thornhill.no> <83v8mznu3b.fsf@gnu.org> Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25964"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, 59617@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 28 13:39:56 2022 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 1ozdQR-0006X5-5P for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 28 Nov 2022 13:39:55 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ozdQ1-0002Cn-DO; Mon, 28 Nov 2022 07:39:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozdPa-000296-KO for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2022 07:39:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ozdPa-0003WA-BA for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2022 07:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ozdPa-0003ta-74 for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2022 07:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Nov 2022 12:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59617 X-GNU-PR-Package: emacs Original-Received: via spool by 59617-submit@debbugs.gnu.org id=B59617.166963912214956 (code B ref 59617); Mon, 28 Nov 2022 12:39:02 +0000 Original-Received: (at 59617) by debbugs.gnu.org; 28 Nov 2022 12:38:42 +0000 Original-Received: from localhost ([127.0.0.1]:48354 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozdPF-0003tA-VQ for submit@debbugs.gnu.org; Mon, 28 Nov 2022 07:38:42 -0500 Original-Received: from out2.migadu.com ([188.165.223.204]:35033) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozdPD-0003t3-LJ for 59617@debbugs.gnu.org; Mon, 28 Nov 2022 07:38:40 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1669639118; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1eKdhF64PpiRqmKjGicoUSUmcfaWPbAkLdLYSauVYMM=; b=kOS9pQeXgBfv13o3ZxZog7U36atEal7tDybQX4PO50x0cZ94bbmYNF33V57G7kt3JSIrlu Us4JRtf8oDNNNhGodLVZmhoROPuDcXSL08bXXcOTyjiKUHrCLK4wqXem+SiQDJcivCz0DV k+fYq9J2FEzNKNsD/LK+vHGjsufltd0LoyQ3L4nHcAkAJ+yaIxGHo0pIN0w/qehBCmtM3W XCnflvK/+jyLRO//fRYWFLLph1HAExkygG6NUXZhc73ZUUczpG60e7G3Tnmpfxs8F+gRha 23cRIaaGtJU1mr2VXX9g+zQi3XweOXyAAH1qq2p3w1EonzKSDw/gcqnni0btjg== In-Reply-To: <83v8mznu3b.fsf@gnu.org> X-Migadu-Flow: FLOW_OUT 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:249288 Archived-At: Eli Zaretskii writes: >> Cc: Yuan Fu >> Date: Mon, 28 Nov 2022 07:59:10 +0100 >> From: Theodor Thornhill via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >> >> Theodor Thornhill writes: >> >> > Fixed a typo - see this patch: >> > >> >> Rebased the patch on top of origin/master: >> >> What do you think, Yuan? > > FWIW, I consider user options that require functions as values not a good > UI. Many users, especially newbies, will not be able to use such options, > because they cannot come up with functions that do what they want. > > It is okay to have a function value as one of N alternatives, where N > 5, > say, so that such users could still choose from "simpler" values, where the > "function" was pre-arranged by us for them. But having just the default and > a function is definitely not good enough IMO. > > Cannot we come up with a couple of popular styles for each language, and > have those styles ready to be selected by simple atom values in the > defcustom? > I guess we could, but most other languages provided here have a pretty standard coding style, IIRC. Not saying it's not any variations. This is meant mostly as an escape hatch if needed, so that a user _can_ provide their own indentation style should they need it. > > P.S. Btw, what about other indentation-related facilities, like "C-c C-q" in > CC Mode? I'm planning on making those, yes