From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Skip Montanaro Newsgroups: gmane.emacs.help Subject: Re: Indentation with spaces Date: Thu, 9 Jun 2022 04:51:17 -0500 Message-ID: References: <87fskezg7s.fsf@dataswamp.org> 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="38908"; mail-complaints-to="usenet@ciao.gmane.io" To: Help GNU Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 09 14:08:19 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 1nzGxW-0009wx-Tk for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 09 Jun 2022 14:08:18 +0200 Original-Received: from localhost ([::1]:57142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzGxU-0007eu-NS for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 09 Jun 2022 08:08:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52916) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzEpP-0006ir-3C for help-gnu-emacs@gnu.org; Thu, 09 Jun 2022 05:51:47 -0400 Original-Received: from mail-yb1-xb32.google.com ([2607:f8b0:4864:20::b32]:46859) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nzEpM-0004o2-GK for help-gnu-emacs@gnu.org; Thu, 09 Jun 2022 05:51:46 -0400 Original-Received: by mail-yb1-xb32.google.com with SMTP id r82so40814350ybc.13 for ; Thu, 09 Jun 2022 02:51:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=0k2jKH7d9OgJnoFjkLtpTtV+FL7CcIXryP/uQIbUrrs=; b=iZXaUHDODsvDj1SRqVDKDm2iuEziLNTX6sFeGPsf+89YxcWgc2rIpumnLkcEd5UnFW +t/YZKvIM5dl8MI0mso++amwVFT/BQHxJ2mPlO6jKr83+NjbnXcaglmbgZTjlovXFfas bhgMRSnZTWoGqqwohEADDKIZkjCzx1pJCL8pEv94/4SK80bBs6PXri2UkPBoxkz9tCQd s7XrmGeuP/cONbC6ZfWnXJlX4Wld6DE9KdB1vC2NBbKjHZVL/zAs8rgn2FQxT/JIdV39 ECRZif/oszz3XDGWnGrLfNfbwg/O5RH87k3G5h3S0FWwORTaxsIM39kcdmdksARA6djg 686A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=0k2jKH7d9OgJnoFjkLtpTtV+FL7CcIXryP/uQIbUrrs=; b=wq5Q6nrZCtfbDbFA3qdKKAuSrsIFFiCbw9cYtyZWWGjmqgZqgJERge57Mn3+tanX7d E6fyYRwEOQp5hTtqzhdfJ+bTqHuvZ193IDPuAUlXiJs05ZrXd3MqDdOE9Wevb0i1WOlC VLcBOCSvPqhr9xCc9iRqjKrKEhqoPDzHqxuon4qyRXPUlM3LRP8N1CjbtPoEtw5TPHdF w1wuu5Sb+HjkMGR9RqMCahapUktGXcM5E+NuvgGfS6Ob/1ZtuumrleMo8opWbmSgeMQv qPzTCJQCLMuphIhDyKQuD9o0/Rayw6k8r0K0K1B/es7uGgZLNREBn8RgP7run8PpkWH9 3y6A== X-Gm-Message-State: AOAM530upjp/Mxfdw1Y16nyW9eqmP+D4VPjW3IWGtCIKC6YqlkWd2VVZ 7b9RDS3JSSJp0Z6dYhV+vbXif/XyOBaYO/NV7aJ64f6Ywv36 X-Google-Smtp-Source: ABdhPJzjKsEoxTwTKph7fanAiGv9cUHOMaglCXeCMC8TMagnR2X1deJyMnNgpY8THs6t/X8BiLRboePHNXBVJUWWFI8= X-Received: by 2002:a25:cc56:0:b0:664:3e79:3800 with SMTP id l83-20020a25cc56000000b006643e793800mr968985ybf.220.1654768303359; Thu, 09 Jun 2022 02:51:43 -0700 (PDT) In-Reply-To: <87fskezg7s.fsf@dataswamp.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::b32; envelope-from=skip.montanaro@gmail.com; helo=mail-yb1-xb32.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:137549 Archived-At: > > As for TAB not inserting a literal TAB character, > > indentation is controlled by the major mode. I believe that > > for ELisp, the default indentation is just two spaces. > > (Don't quote me on that though.) > > Why is `indent-tabs-mode' t by default? Tabs should not > be used. We say that today. I've been using some version of Emacs since the early 1980s. Before the appearance of indentation-sensitive languages like Python, inserting a literal TAB when the TAB key was pressed made sense. I suspect it's a case of "old habits die hard." Skip