From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: [External] : indentation Date: Tue, 27 Apr 2021 15:01:57 +0000 Message-ID: References: <20210427090348.67C9B5D0@centrum.cz> 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="8606"; mail-complaints-to="usenet@ciao.gmane.io" To: "ptlo@centrum.cz" , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 27 17:08:10 2021 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 1lbPJq-0001zR-My for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 27 Apr 2021 17:08:10 +0200 Original-Received: from localhost ([::1]:44484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lbPJp-00019U-Pj for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 27 Apr 2021 11:08:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52762) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbPF1-000662-3g for help-gnu-emacs@gnu.org; Tue, 27 Apr 2021 11:03:11 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:60680) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lbPEy-0007Hp-34 for help-gnu-emacs@gnu.org; Tue, 27 Apr 2021 11:03:10 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 13REuADj092686; Tue, 27 Apr 2021 15:02:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=0RBBmMBnM9PhrUt1mSlH4gbd0cX1qiRpFmBqe3n3w1g=; b=X/kjREXKErgUkcxO+RI7R4ot/I2wrqmCQBgfhn0jllyjgvjJE8JGtgYB1DzBih3HsslV sW5owlu1tGX7WEADzoJ6mUMGoz9+vawuVrr+bveIijCL0WsL2OQSmXAd1/bpsUImfaP2 YlLTcqCcpWgb/NU0b8XVsD1Qd4ICpME+4g1un39tGe0GPcfQ2+kJ8i375MYGk/bTAgCJ 7atKKCXqJXDe1iujCL6QW6n4csNcN7xGfw51ngcXsNu83NLCtRgtndQYANeeWLZxv8/e gFoUIGevKnAbu9hx6s601SwCTKsKXXCe1I8ejEp0Edg90lmfMlpMUXteOl7VlmwrIUqr GA== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2130.oracle.com with ESMTP id 385afswt66-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 27 Apr 2021 15:02:00 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 13REupnK116365; Tue, 27 Apr 2021 15:01:59 GMT Original-Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2108.outbound.protection.outlook.com [104.47.70.108]) by aserp3030.oracle.com with ESMTP id 3849cewngd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 27 Apr 2021 15:01:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HV9WbekchdDKl69EalH2CjkW1g2SYfNPvDIC1Lv/qvI3nDYq6SF1pwv2a6uOm9yaZ+8jdQiiRo9teNtuR5IX/Pl/EGY3uGY/rucz94pY0mhfDbnBS+97ooG0vn9jrRfaasrOzQ7xShVMvy/cEkuM2UjMJUHprHW4JGB5SL8ChGmAjwTvRDhVIae12E6d2WPieAvX+Q3pS0+0y7YZ26nTbjs/eqb71R36Waj2HQDqPgveEP/cf+QfiOLkyGJ7ckEKbyxAlC5ZsB6cZtUVKrPpW748YnkqPkloX3dLVziPRfmflLgz19E78G9rf+Py7IdFjYGQr7afXnJcfMZqsKFVVA== 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-SenderADCheck; bh=0RBBmMBnM9PhrUt1mSlH4gbd0cX1qiRpFmBqe3n3w1g=; b=izoKBfju1QeGMEubMeSq9P3WkIXVZpJlTndpOEtQzpUeuncYuEuR9oY6mSAI6WZF0KSL2Nuh/v3iprzRcxlfWVt7gtMilg4w/I4UDPHHeL7qCANbNmU9kInDDl2j5W/Ys3pfP2Oggme35gxkGDSMkZLJDFZI1qbuGWXrJu9NB4I/V/lx4CbFlNM6Nu6Q7UqzI4iLuY0hqUqiAvkE+r71pRsHj/wsuFrSysO93JwgP474fB9nXDWacN+H7gc/5L8n+10alKAM6k1iHhoVUjbxhtTcmgPVt9O3+gp8Ufk6tIpS0WoT2mf5ql7xejStbLb2seYyznrrXte3YkHNnImM7A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0RBBmMBnM9PhrUt1mSlH4gbd0cX1qiRpFmBqe3n3w1g=; b=AwiH8u0t/hzFidrBVfBEA6gfqpEBDyx/XNzJsWJLozaLqhxD8JA6P6OAUu9kGdhiygW02sUB1i2mwWPipLWuxyoCpC4V0DPmYqR5dT3cxtfkc9QJOlwqm3Tou12FVhdPaxtxk8E48SzlaQ//iCzLZmTuZ5xPIw6fzL6E084ye4o= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SA2PR10MB4761.namprd10.prod.outlook.com (2603:10b6:806:112::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.23; Tue, 27 Apr 2021 15:01:57 +0000 Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::2109:9725:fd4a:6494]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::2109:9725:fd4a:6494%6]) with mapi id 15.20.4087.025; Tue, 27 Apr 2021 15:01:57 +0000 Thread-Topic: [External] : indentation Thread-Index: AQHXOzOHu7JqZn9OBUGETu/+u7X7U6rIc+iA In-Reply-To: <20210427090348.67C9B5D0@centrum.cz> Accept-Language: en-US Content-Language: en-US authentication-results: centrum.cz; dkim=none (message not signed) header.d=none;centrum.cz; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c2bd9147-1a8d-40de-5ce1-08d9098d6729 x-ms-traffictypediagnostic: SA2PR10MB4761: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 7ZBtuXyboKul4azmxTpl9tiv7KKuf7F1NlF1TNYafJpdsd/FgpgjpCbEgUV/jaRGUym6M5Ye0WPacWunAaKwehOU+mQWZm9Ox+yO2rUGs5TxT+m/InY2NegIG24R67W6Lf5WLs2PpVjaTXPqxKvBV4cmn20zv57sVx3G3nVckkizfFBvvMlB+qISxrvC1tvO76ZFOXPLj+UX8lJu0UVW9faUcpUhVC3nRK7qWcmDcRxWf8LppMu+0xbEYTeX11PpT1m8/VVvrvPVMkMIQu3gA2DWatACv7WOMsxi2kH8DjI/mvXsAnUxK1OHqpRxKj73YCHr2kY+KNoQcM13RgJSSaSufsnMVrD+2p+BMS6FFGotl43jenjXd5yKGnLspy13IhqOq7E9Rsj7W6Ce6m+mrOJgJZNTsoDQr11R99cLIV6MsanxwIGnqesbQTIcN5pVs5yBJ4Y1tuLfPzOCwjNUT8yTkq9PXol/tQY965TT28wory92bh1lTAAR7aw67gPwM7MvwITqgAjrZccBADYEYiwseYrrOHcYHPu+esxRM/X+PNMFeN5qlLq/Op0dlVsbtBApOIkw4QSe32yVHVu9kgvIYyWF+IhTtosp9g9+Sk4= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(366004)(39860400002)(376002)(136003)(396003)(9686003)(55016002)(186003)(2906002)(26005)(83380400001)(86362001)(33656002)(478600001)(64756008)(66446008)(71200400001)(66556008)(44832011)(5660300002)(8936002)(66476007)(8676002)(66946007)(52536014)(6506007)(7696005)(122000001)(110136005)(316002)(76116006)(38100700002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?OSRJaNjmdsZKjTConzv4udSWACmtqKWnJ5f16aCrNtAKPEgys2k646JYsUV/?= =?us-ascii?Q?jkrMCAsN32O+24Vjb24wSSTqbwLMkuMGsPEa4XT5iP8rqkBo/nUOcjuIGQp7?= =?us-ascii?Q?jg/i4YKfs/dfNy+EjN0sv9qIVSJxvnCxXWSnkh572AX9UmVg6F9oclfuleLb?= =?us-ascii?Q?ohfA5lZwuVIp9BHBK5tL62/rDeqmT9/nJc+TACazoPIp1lm0MQIkBJ0pYnM4?= =?us-ascii?Q?J7nKhA+3eogCvdx0x9nhPWT3t+vDtDXj0YgasleUOT7E5HAugwmluk1yPHHS?= =?us-ascii?Q?ycLLQ4dDg5SXMLCLC/2douilbksmVtTOzMT0b+Cgv001h+Wtf6h7pgCI+nAN?= =?us-ascii?Q?+w31MYtzdhqZxNYpd9U7wJon5L8+MntljCt3i1Y2CYBLJA9F5akqW3fXZ35C?= =?us-ascii?Q?u33JRpHyBhVLompF22zTw3zaGI4zRISb9ldtZ6O2QYMrayn3MCQMmIZwX052?= =?us-ascii?Q?POaf+ZzJRv75HtAWL/uoFwj9pDLNEu0XtBM49/CLexrJ8mlcH4JoYgPxnHHv?= =?us-ascii?Q?dd3K42uPHrUM//C6dm0tPTKsijA1PGCSMG0pTePUDXlPP21boCSbYRIp+Ztf?= =?us-ascii?Q?MvW97ZdblBvKqHEhrxWziIpaThJsWJJ9DwBxq43xwfTdj9UWfS5X3Q4wL/bP?= =?us-ascii?Q?oKjU x-ms-exchange-transport-forked: True X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c2bd9147-1a8d-40de-5ce1-08d9098d6729 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Apr 2021 15:01:57.4452 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: VSZxdaxuMHoxj9gdxjHP4lzNI4EdUHg0g1dHJ/zWkhW+ZgvI6MJZH+peMLRMkefiOHVH8I9ZyOnzfoSL4IOtRg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4761 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9967 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=995 suspectscore=0 adultscore=0 mlxscore=0 spamscore=0 phishscore=0 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2104270107 X-Proofpoint-GUID: GnB-5htTuyvFtfZoHOubTmU28Oh8nWj8 X-Proofpoint-ORIG-GUID: GnB-5htTuyvFtfZoHOubTmU28Oh8nWj8 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9967 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 impostorscore=0 lowpriorityscore=0 mlxlogscore=999 malwarescore=0 phishscore=0 priorityscore=1501 clxscore=1011 spamscore=0 bulkscore=0 suspectscore=0 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2104270107 Received-SPF: pass client-ip=156.151.31.86; envelope-from=drew.adams@oracle.com; helo=userp2130.oracle.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, 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.23 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:129162 Archived-At: > I'm constantly annoyed by too aggressive automatic indentation when > editing. Basically when I press enter, the cursor on the new line > is automatically moved to the column of first character of the > preceding line. This is in the Fundamental mode. >=20 > It gets even worse e.g. in the F90 mode. It e.g. moves a comment > (starting with !) on preceding line to the column of first character of > the next (really!) line when I add new line inside a code. This is > crazy, why I couldn't have comment starting at column 1? The emacs > simply can't know what I'm going to do on new empty line!! >=20 > In older emacs versions, when I presses enter, the cursor simply stayed > at column 1 on new line. If I wanted a formatting, I pressed tab key. > Please, please, how to return to this older setting? I went through all > customizations containing indent, but nothing works. Yes, as others have said, turn off `electric-indent-mode', to restore the sane behavior you're used to and love. ;-) This "modernization" was yet another attempt to make Emacs seem more like other apps some people might be used to. On n'arrete pas let progres... "The emacs simply can't know", indeed. Fortunately, there's a way to let it know, in this case.