unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* In go-ts-mode, tab-width 4 inserts two tabs instead of one
@ 2023-09-26 11:08 Pankaj Jangid
  2023-09-26 11:36 ` Augustin Chéneau (BTuin)
  0 siblings, 1 reply; 4+ messages in thread
From: Pankaj Jangid @ 2023-09-26 11:08 UTC (permalink / raw)
  To: Emacs Development

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.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-09-26 13:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-26 11:08 In go-ts-mode, tab-width 4 inserts two tabs instead of one Pankaj Jangid
2023-09-26 11:36 ` Augustin Chéneau (BTuin)
2023-09-26 12:31   ` Pankaj Jangid
2023-09-26 13:02     ` Augustin Chéneau (BTuin)

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).