From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Spaces rather than tabs by a major mode hook Date: Fri, 10 Jun 2022 22:44:30 +0300 Message-ID: <83h74sz4kh.fsf@gnu.org> References: <837d5p10m0.fsf@gnu.org> <83y1y5yn2r.fsf@gnu.org> <1Qq0hFFvO9sxfxs3_9pMdP6KDhb1FPNvSMdecSbjkriiidHBUK22Q_ZjHRHRoG97PIW0jr0F4yq311wLGn2EO_sgCWceZJ9aM_7IhxpVpoM=@protonmail.com> <83wndoztbi.fsf@gnu.org> <83k09oz52i.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39107"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 10 21:45:00 2022 Return-path: Envelope-to: geh-help-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 1nzkYz-0009su-Kf for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 10 Jun 2022 21:44:57 +0200 Original-Received: from localhost ([::1]:59832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzkYy-0007O0-69 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 10 Jun 2022 15:44:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzkYY-0007Nq-7r for help-gnu-emacs@gnu.org; Fri, 10 Jun 2022 15:44:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35832) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzkYX-0007ru-Vw for help-gnu-emacs@gnu.org; Fri, 10 Jun 2022 15:44:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=suw2oKRheaDaBzkx505KkIh8mBC4G/3xoicJTWBmkEI=; b=PcAXklyOf76a X3JcII/ZPcPdQTWNKa7BBpL7Uh6xXQ3ndEV7MrRkhIUlc/POMe3GTfcE0ltPVG8rSvj6XSDBHqc9z VgOar6GF83mbEpHzH8bJuOgDDHoXAOjhVEUrofzNIiRypx8kzRC08lqv7FZY2EJloAOumHxOyTHzK ha6mW3CfV0NwQVjbipu/vlAhObt0vZ56YUsx1akWKBlmS4yk2h2oXto9vu4dMfERLmeRKDrqlhTqx hq86AAx5LNthKzq5lQjmweEgtmkOoQtFHBl8z7VAM+yxrAXuYi/s3FnFKs7YjTszpt0lqEvh9Kr1Z JZkBZQDMPX06dF6JpK0LMQ==; Original-Received: from [87.69.77.57] (port=3223 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzkYX-0000gB-FY for help-gnu-emacs@gnu.org; Fri, 10 Jun 2022 15:44:29 -0400 In-Reply-To: (message from goncholden on Fri, 10 Jun 2022 19:40:59 +0000) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:137633 Archived-At: > Date: Fri, 10 Jun 2022 19:40:59 +0000 > From: goncholden > Cc: help-gnu-emacs@gnu.org > > > ------- Original Message ------- > On Saturday, June 11th, 2022 at 7:33 AM, Eli Zaretskii wrote: > > > > > Date: Fri, 10 Jun 2022 18:10:15 +0000 > > > From: goncholden goncholden@protonmail.com > > > Cc: help-gnu-emacs@gnu.org > > > > > > > > Have attached a file. When I press tab, the tab actually gets removed > > > > > and the code ends up in column 1. Strange things are happening with tab. > > > > > > > > In what line do you see this? And in which version of Emacs? > > > > > > I am using version 27.2 > > > > > > For instance, it happens when I go to the beginning of each line in the Arguments Section. Pressing TAB on the first column removed the tab. > > > > > > Doesn't happen here with Emacs 27.2 invoked as "emacs -Q". Did you > > try that in "emacs -Q"? > > With "emacs -Q" I can only introduce a single tab. If a tab already exists, the cursor goes to the start of the first character. That's the intended and correct behavior of TAB in programming-language modes. What is the problem with it?