From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pankaj Jangid Newsgroups: gmane.emacs.devel Subject: In go-ts-mode, tab-width 4 inserts two tabs instead of one Date: Tue, 26 Sep 2023 16:38:47 +0530 Message-ID: <87ttrhchts.fsf@codeisgreat.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19480"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: Emacs Development Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 26 13:09:39 2023 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 1ql5wh-0004sK-Dy for ged-emacs-devel@m.gmane-mx.org; Tue, 26 Sep 2023 13:09:39 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ql5vz-00056t-V1; Tue, 26 Sep 2023 07:08:55 -0400 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 1ql5vy-000562-67 for emacs-devel@gnu.org; Tue, 26 Sep 2023 07:08:54 -0400 Original-Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ql5vw-0000Hq-2b for emacs-devel@gnu.org; Tue, 26 Sep 2023 07:08:53 -0400 Original-Received: by mail-oi1-x22e.google.com with SMTP id 5614622812f47-3ae5e560583so11887b6e.0 for ; Tue, 26 Sep 2023 04:08:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeisgreat-com.20230601.gappssmtp.com; s=20230601; t=1695726530; x=1696331330; darn=gnu.org; h=mime-version:user-agent:message-id:date:mail-followup-to:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=3/oUP1dlvc+cZwmXyUKMRWvb2fTvRsuPArlxMmf/xJY=; b=KCUdmD12weqeJkM+QebCNVEIokour1uH8+RHDRnaKCi8a66MBEwIb2qbbwPTLs1gnK rbMZGIE7DLqYsV4vlVpYgRN+G68w2l/sOyueZNfZHtWWGgLGHyQtrGnBBESdOYreHsqz kpDUtfrNjNq84j+4l+iEcV8zlubiny4/3eT7cJOzOZ3rDegGx3JeBuQDQ+rUDHA1xD6p U/mc7ySh4QZJm4X7ITghbwz470BEQi2LmgQaOHUc5oWo/WNnmegpcte6o26zLnfH4fs7 yjblcIRzJPyVjRLa9igYhEdzUn/b2iJSixl5td+HDNieNCuAkfMCDElyzA3YyVQNB6I+ 4rpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695726530; x=1696331330; h=mime-version:user-agent:message-id:date:mail-followup-to:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3/oUP1dlvc+cZwmXyUKMRWvb2fTvRsuPArlxMmf/xJY=; b=Y3a02z749NHuxInh3+dj+X/fHhsX0XUr6kAO6EAC1+BVLG49zvtevunk3KEdx7UoNl lCO+M/HFcOb/w5s2UpcYlKWEWJxUv/uK5fAxTPPWLhux+RWUBIlyHsB35Xrb7CTyy6S2 dx/9MapdqJE9d6GFlLxuia/VZCyDYc0ci9v7AWEXVSzLhxAvWtxLM+2pdIm2bdlrmzLW Abq7/yfLIjJyhZLf61jEQp4E3YnRYiAnvfA3Ptwb5RtjRm4+/st9ivseYQsA+5dDZ87H X246uNOXiWGCtLHMps8oGvzGBYsHhkkLkKzCfky58ra5z79H1FvqeU/TZhIIJRWrxrXe CKyg== X-Gm-Message-State: AOJu0Ywwastpt/BdqXw3RuLO/lGNxXMhqforyxLvFgqDn5ytfVq5Xg0q wxXo6zFiwNJhAc9wKJJHnouD8Eea00e29zUmIkY= X-Google-Smtp-Source: AGHT+IHhRgY2JtvvtwFnKGHw7ez3iSorqkMND+mQ8644lOqP+ggf+zgYqfSI5reslWidZSuEWiHCwg== X-Received: by 2002:aca:2b12:0:b0:3a8:f3e7:d691 with SMTP id i18-20020aca2b12000000b003a8f3e7d691mr11470201oik.37.1695726530430; Tue, 26 Sep 2023 04:08:50 -0700 (PDT) Original-Received: from anant ([49.36.237.146]) by smtp.gmail.com with ESMTPSA id h5-20020aa786c5000000b006889511ab14sm9660641pfo.37.2023.09.26.04.08.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 04:08:49 -0700 (PDT) Mail-Followup-To: Emacs Development Received-SPF: none client-ip=2607:f8b0:4864:20::22e; envelope-from=pankaj@codeisgreat.com; helo=mail-oi1-x22e.google.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:311055 Archived-At: Suppose I have this struct, #+begin_src go package main type Message struct { Response Response Request Request ForAPI string } #+end_src If I keep default tab-width of 8, then it works fine. But when I change the buffer local variable tab-width to 4, /mostly/ it inserts two tab chars instead of one, /sometimes/ it works fine. I have one file where it works just fine. And in all other files, it inserts two tabs instead of one. I am on branch emacs-29 and built with tree-sitter and gtk. Language mode is go-ts-mode.