From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Marius Kjeldahl Newsgroups: gmane.emacs.bugs Subject: bug#74386: Tree-sitter javascript indentation Date: Sun, 17 Nov 2024 00:26:55 +0100 Message-ID: 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="32255"; mail-complaints-to="usenet@ciao.gmane.io" To: 74386@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 17 00:28:19 2024 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 1tCSDD-0008GN-Jq for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 Nov 2024 00:28:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tCSCz-0004DV-GD; Sat, 16 Nov 2024 18:28:05 -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 1tCSCx-0004DM-5V for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2024 18:28:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tCSCw-0007zJ-TT for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2024 18:28:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:MIME-Version:To:Subject; bh=4TvNOnW3sxiZBQ4ispr8DjbGMw86POFP+VLy1CGsubY=; b=MkyaIScntWLq4Qh0IdcC4gaf6JIEWBTfu1rxA4QkofSRkvqZo6FHNT+mKOrnqA7u8IPvUCc9IIJt8GsaCEG+JPbGPzBwTmfJxvHKUf69+pUt63/UEdLjm/5Bvu5BuPAYl1MzA38o8J20CsvifabzQ/2E776jQhaaiZybfdgT8s3VHAg4C4A+LZYyeb3+vM12EW7V6c2zg71Yv0fvdCeK0IWBq1OBb+ZgDDs6Bg1bC4I/Chi3lI6fAx7bCkn1KaOik8WYiv0VU4BTJAHdwT7lYQJcC991PTCM1OajG6FaIC8oDdwdRGPhYZecAtOeNTMVqXYEl50qzND0zq0KwnrCFA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tCSCw-0005Py-C7 for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2024 18:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Marius Kjeldahl Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Nov 2024 23:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74386 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.173179963220752 (code B ref -1); Sat, 16 Nov 2024 23:28:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Nov 2024 23:27:12 +0000 Original-Received: from localhost ([127.0.0.1]:55159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCSC8-0005Oe-5I for submit@debbugs.gnu.org; Sat, 16 Nov 2024 18:27:12 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:55776) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCSC6-0005OV-6N for submit@debbugs.gnu.org; Sat, 16 Nov 2024 18:27:10 -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 1tCSC5-0004Bc-Vn for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2024 18:27:10 -0500 Original-Received: from mail-oi1-x235.google.com ([2607:f8b0:4864:20::235]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tCSC4-0007Zv-Ib for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2024 18:27:09 -0500 Original-Received: by mail-oi1-x235.google.com with SMTP id 5614622812f47-3e5f86e59f1so1099641b6e.1 for ; Sat, 16 Nov 2024 15:27:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731799626; x=1732404426; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=4TvNOnW3sxiZBQ4ispr8DjbGMw86POFP+VLy1CGsubY=; b=VnFgDI0m6dveSzK97Hj4moMD6aL9eyoIKsYRTtUx+42zkhkN93i9BBoPn45R02ND0K swNI3P9uc8MN+h5DToTLHPKf5D7Jero5r3lre/Hac1GQpsjB3JL3krAdE0IFrzcR5xZR QaI8VGYt+a3rm0b8G7q3EOwIbkSW4ZOFRw/irY3oFHO6s5bvlPEJaYTwux1+ZzVmgIhh 38LUnN3pTltCr4iDq0lSMaG27bCnmikAvqt+PBg1e4WEf3GCIxZeksYVLC8DS6Rw9kyy EvkjsQih00NGftXLhYbqA5yYZW6ZWYCiD51QscpPj/PS4Dk52+LTWyQ7tjgUWXxt7P2/ urEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731799626; x=1732404426; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=4TvNOnW3sxiZBQ4ispr8DjbGMw86POFP+VLy1CGsubY=; b=vaMGT7PqhJmwR35qLGhIesng/lJWEM1NFyPoyMuXDFt2tP6LqWa9q2FeY7GGtaHZcd mRF1fwdmq0Z/vwoX327SyKV89FXm16E7iiAzkrercf+fyVw0+hFnioSoZFo0LLqUgLQN 2fmu9eB28OvnDRK8g2XWSg16eIdM3a+OTrW/a2M2WLqTkhgsQs8c/2PPsn/b1Nct7xzh zUmy4EJ6T5EXzKd250vmafjHyiT0kQXUeQ2daleNtJtT107iRm+qsWst4rx89AK13hiy sppmbX/0fjo587Q8vfQ3KSlC4cUFPBE5hQg3zDEGUmgQQhYpw9VUPsCQITAVO1qrrBWy EZTg== X-Gm-Message-State: AOJu0YyMMOY/dFLxG4xPxY+j4N59zXrwFbPczs8g5Bssz0AT6Qpe4kSY kNJ8TXzLTcdkrhRvRK24iE953DDNV42BgivEJQXRKsKrRhpiIU5E/DISiA9ePC8Velt1TZTLRjc CwurpBV8TG3zZ+5MXxk2PddkkDRnskA== X-Google-Smtp-Source: AGHT+IEQxLXPUVLRCnMkJEWOtiVZ5Xtc903HNkftz1Pfk5pNw9juAKU4j5gsG0pjvWB7LILF3ohrBnLJK5QQEV5mGdQ= X-Received: by 2002:a05:6870:7f01:b0:288:563b:e48d with SMTP id 586e51a60fabf-2962df98a35mr6488171fac.10.1731799626456; Sat, 16 Nov 2024 15:27:06 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::235; envelope-from=marius.kjeldahl@gmail.com; helo=mail-oi1-x235.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:295501 Archived-At: When using js-ts-mode, after multiline function parameter lists, or multiline if clauses, Emacs typically adds two spaces indentation after where the previous line ends. But because that line is already indented, the effective indentation becomes four spaces (compare to where the function definition or if clause starts). I would like this to be only two. This is most likely a preference, but still. I haven't been able to figure out if it is possible to customize Emacs to do what I want. Or even learn where I can dig in and figure out what I need to change to accomplish it. I've tried a reddit group and also posted an issue on the tree-sitter github repo. But was told the correct place to report it is as an Emacs bug. So any pointers or suggestion? Thanks, Marius K.