From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Anders Munch Newsgroups: gmane.emacs.help Subject: Re: Disabling automatic reindentation of the current line after a newline Date: Tue, 25 Oct 2022 10:23:05 +0000 Message-ID: References: <9CF323F7-2802-4182-9C7C-385A83F763DB@abou-samra.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30636"; 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 Tue Oct 25 12:32:10 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 1onHE9-0007o4-69 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 25 Oct 2022 12:32:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onHAV-00067Y-Iz; Tue, 25 Oct 2022 06:28:23 -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 1onHAP-0005Gw-7p for help-gnu-emacs@gnu.org; Tue, 25 Oct 2022 06:28:17 -0400 Original-Received: from mail-vi1eur04on062e.outbound.protection.outlook.com ([2a01:111:f400:fe0e::62e] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1onHAK-0000YH-6j for help-gnu-emacs@gnu.org; Tue, 25 Oct 2022 06:28:15 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EWpNdxH1McmSLFTpOV7LJh0tA7ii/1H7qFVj6usqTMzL/ZmwGHbcPJDn58OI3vGdiRD7TO6mSPk40LdO7l8NOH+SZg3wxu+/kAR6tv/lCJY1hIepMtfB9VKO0UXLDmIV/81sPXvhxjlu4emUsOKcYrx0EjAzhwefEDh6O2kzs14AwuqpGAkYETAePOIZY+gOHj5DpR5QgpWBdcnlDlmu4BkRiWN+6syrbvVjKdNH+oAgo9heTAtl/5JVaBvuNL3oApdQrK55Bw9+F9s9jk7r6mnF1Ze7QxmoAcZX3D0u1iVzg+USDd0gZlZC6JtuBZ+wjHrDV4NGwbp04DMf1H7KBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=7/+/VIF/UnZoGi0WvdratkfF/pvXgjebFJPovvL3Skw=; b=NdIqZxZyDFHcuvnTjAgCdgaRHhE2NOEjBbPcLeTySfnSn9q17Au+dJB4pfq4yW+8kz6UkwqmIqTxZFBohR/XXvxizDPD7rS43FSMlbmy1t6g5tsE9rPfjyCmRhcrQDiMnKesXhxudvCq84WuMpqq8c9wf0ClTQh1hL5fO63yCj3dB0XrJB9921xkaOqJ2hhXUFeVU4roeFlKqMNy13f5jl3bjAuWOe83xkeicNHoh4b6s1Aq6r3fu1fDTrR78CqkUGhTaYH73Lvnk+eANy5N1HTxjIa5xO6F5/2ek+ZQELe3oUOW6/Z+EIND5UxoNuGH1V3TsoBQScyJSSOUkOeHuQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=flonidan.dk; dmarc=pass action=none header.from=flonidan.dk; dkim=pass header.d=flonidan.dk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=FlonidanAS.onmicrosoft.com; s=selector2-FlonidanAS-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7/+/VIF/UnZoGi0WvdratkfF/pvXgjebFJPovvL3Skw=; b=lOR8xCPr4qW77Dl6F5Oo2VXgaaL3K4L0A88SREp6rn5wWNWCb/JesaCQlDNw86XQimztO5iVqfNsoB2RreIAWPrqlbrBWxAZpub3tlFqxHluL5PU1om8ne0A6Pvcr7vNiuD7lR6R5+gnrjcSzOPuMm+oKgm0gp7PWTYwlOCJD8o= Original-Received: from HE1PR0502MB3004.eurprd05.prod.outlook.com (2603:10a6:3:d7::21) by AM8PR05MB7203.eurprd05.prod.outlook.com (2603:10a6:20b:1d2::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.21; Tue, 25 Oct 2022 10:23:05 +0000 Original-Received: from HE1PR0502MB3004.eurprd05.prod.outlook.com ([fe80::a5c5:c2fb:7963:bee9]) by HE1PR0502MB3004.eurprd05.prod.outlook.com ([fe80::a5c5:c2fb:7963:bee9%7]) with mapi id 15.20.5746.028; Tue, 25 Oct 2022 10:23:05 +0000 Thread-Topic: Disabling automatic reindentation of the current line after a newline Thread-Index: AQHY55C5K58+nRs9dU2tEGAH3FySl64d3aJmgAEKxMA= In-Reply-To: Accept-Language: en-US Content-Language: da-DK authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=flonidan.dk; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: HE1PR0502MB3004:EE_|AM8PR05MB7203:EE_ x-ms-office365-filtering-correlation-id: d41c8139-9f45-4a8f-27c9-08dab672e7a5 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 5B5RFk7QxvUnPJhRu+yw1CLAQHFnwpNFh4+0E0rsL95gQCkYAmKM4xnIUtEgEKfOoF+iXxEYQFv9Xz5fakWF30cHI8xwP+aBiDxCqf3Ke7WCId9V1gS2ZPTPYq3NHFvWDLnPkOxqv+QiKgzn3T0KCQBBqfv8kgG05JtoUY/VxYKJbAS5X1qGvuYzetHnyERWdQ2dC7L+4QLcqoqZgHvAge8i0cSGv/dm61egiCmgjIcnUNL4H0+UnACcvG/l3zNhNzMfwn1Km0zThSFHd+h/5GmwIxRnhxy5AA2rOVbsWdLSxhM/XXBfTpgsGucFfYJsoB4pOzBBumLeo34ZkGVSi+xjDrbhD4Qp50GX8fzQhxloUWqp10peFQ1ovs5tTTeWrkAPjIrOVY2vfStxqggJ0xU/n/HjpseFnqgf+tuPdVWq4C4PDme7SspA3uXpvEZB5lSQcokPTOjut4jG5cPReSCTqsRKq5O2DycZAatBaT4GdiV1vERKyUAZWsniyW01ZNnLPHW2RhzlWkJ9XeD4sWj2N7/M3aE2KBwjOLdfhOPhcfAu73mETAQVrVwaKZMU/+dESyh26e1JUJR/BoN+fJ9aJWJucH4JgM2sPrWHBW0cSW3cM9k2cmwtoLdoGxD4dWzsdDhg9Ktu16XUYe01ZGrX9w4EEcj7KqN72w6fbX4nYmXgsCruM7BkdsfCp74X5baOk5rlXEjwOXOy4sl7s3kj3pNJ0q1LKbzeA5znm2XAvKoJPaOk7Ou7zG0Km c/FSFL2HmdayLry2D0sGl4TxQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0502MB3004.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(366004)(396003)(136003)(39840400004)(346002)(376002)(451199015)(41300700001)(66476007)(8676002)(66946007)(38070700005)(76116006)(7696005)(6506007)(66446008)(64756008)(66556008)(122000001)(316002)(6916009)(55016003)(4744005)(9686003)(26005)(5660300002)(52536014)(33656002)(86362001)(8936002)(2906002)(478600001)(186003)(71200400001)(38100700002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?UxOC8tktOy7wavY1GjpF52qK0VbNlRgAD62IE1Y63AkNjzYjxehE/uR/6tX9?= =?us-ascii?Q?bIpk8OfEDEimRSEHtbOEdlhrLjOz/leQkor0ZnNljYppaJe+ds0Vw4Zh68yV?= =?us-ascii?Q?esr7G5UcxSXwg1VU6jkLIHd9ar27HXxclxlDdyZta8MzxHF1N6jNqHYXG5HL?= =?us-ascii?Q?TPX/lsdVqVV6xy0hxOygrmub/MMQq0I+NAtaV3F0yKmMB0tvWkquG0ZFPuB/?= =?us-ascii?Q?R/abvJiNxkC3F1kf93pXN6fbrcX5DWc2CrDDm2DZ0xhK3x75U4O8AhfV0IlC?= =?us-ascii?Q?+m+V9zAFRpjllxiZCoZZequS87DuZf2vhDfYSFNkOPSIVtLn9fP0x5mEilWd?= =?us-ascii?Q?WxQMpmTQ1bSL/C9tkpJ0UtRgmS9ag5gGDDGRv0oS25CH8hhbF/MNwfdG4SKD?= =?us-ascii?Q?892Dl2DOleSoxBBd9PWvmsXqbTB2iXs2a6VHLFoRbbtW2aU5ntDVIIG08ELO?= =?us-ascii?Q?QMreklhsMN71rF7Z5byuh97+s0rDNnqC7ZCDXKlikbASqs7hCo6uR13OZoyD?= =?us-ascii?Q?MqgxVuISoFKMnizM3Bu7nk8WciFvbopYH2d4mPOmYcZR/Eukq2K0p9iPa2DS?= =?us-ascii?Q?AvpbMd45cgOZxSADwCVx8MHQUOMqkNFRadREXWO2wczn0ej/3raT6yVf7w22?= =?us-ascii?Q?eY X-OriginatorOrg: flonidan.dk X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: HE1PR0502MB3004.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d41c8139-9f45-4a8f-27c9-08dab672e7a5 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Oct 2022 10:23:05.4921 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 66f919b0-b207-4d78-ae72-d81c18f86ec5 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: sOjiLJva93N3QJBLZlg3pJlOguiwj2ye6x4oCMeNYJtVLcAz6dyaT4e/Ke+YoGNx X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR05MB7203 Received-SPF: pass client-ip=2a01:111:f400:fe0e::62e; envelope-from=ajm@flonidan.dk; helo=EUR04-VI1-obe.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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: , Original-Sender: "help-gnu-emacs" Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:140353 Archived-At: Stefan Monnier wrote: >> line when I press RET. What I'd like is for Emacs to auto-insert the=20 >> number of spaces it deems necessary for the new, still blank line=20 >> whenever I press RET, without also reindenting the previous line, > > Set `electric-indent-inhibit` to t. How do you do that when electric-indent-inhibit automatically becomes buffer-local when set? > Tho if it's only for the cases where Emacs's choice of indentation is wro= ng [..] I'm with Jean. I find it an unpleasant experience when keybindings that I e= xpect to insert text to the right of the cursor, suddenly also changes text to th= e left of the cursor. I do use C-q C-j, but I'd like to reserve that for when I don't want the ne= xt line indented. TAB usually works fine for reindenting the current line. Is there any reason that having electric-indent-inhibit set to t globally i= s not viable?=20 regards, Anders