From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#55991: 29.0.50; Wish list: detect and ask user if to change indentation or settings Date: Thu, 16 Jun 2022 06:55:57 +0300 Message-ID: References: <86mtee4h9e.fsf@protected.rcdrun.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12914"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/+ () (2022-05-21) To: 55991@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 16 05:58:09 2022 Return-path: Envelope-to: geb-bug-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 1o1ge0-0003Br-Jx for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Jun 2022 05:58:08 +0200 Original-Received: from localhost ([::1]:37642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o1gdz-0001x5-2M for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Jun 2022 23:58:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o1gcy-0001wX-73 for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2022 23:57:16 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46427) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o1gcw-0002c3-Fl for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2022 23:57:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o1gcw-0007zO-DP for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2022 23:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Jun 2022 03:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55991 X-GNU-PR-Package: emacs Original-Received: via spool by 55991-submit@debbugs.gnu.org id=B55991.165535178630658 (code B ref 55991); Thu, 16 Jun 2022 03:57:02 +0000 Original-Received: (at 55991) by debbugs.gnu.org; 16 Jun 2022 03:56:26 +0000 Original-Received: from localhost ([127.0.0.1]:40324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1gcM-0007yQ-5e for submit@debbugs.gnu.org; Wed, 15 Jun 2022 23:56:26 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:46757) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1gcH-0007yE-Hu for 55991@debbugs.gnu.org; Wed, 15 Jun 2022 23:56:24 -0400 Original-Received: from localhost ([::ffff:154.227.140.160]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000087CD4.0000000062AAA9E4.000069AB; Wed, 15 Jun 2022 20:56:19 -0700 Content-Disposition: inline In-Reply-To: <86mtee4h9e.fsf@protected.rcdrun.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:234612 Archived-At: For clarification: "old source files" -- are those made in older times, most often with different editors, different indentation styles, in different programming languages. "new style" -- it is relevant only to such old source files, as Emacs will automatically impose indentation However, old source files shall sometimes remain how they are when opened. There may cultural and habitual reason for the files to remain not indented. When user opens such old file, various modes in Emacs are going to start enforcing the indentation on user. Users should be warned if they should allow Emacs to change even those invisible characters or if they should adopt the new indentation or not when editing such files. For example, instead of TABS, an Emacs mode may start enforcing spaces without asking user. Other editor notepadqq asks user if that change should take place. 1) It is possible to make function to recognize that file had tabs instead of spaces, and user should be asked about it. 2) It is possible to recognize that file was not indented by the mode's standard, and to ask user if new indentation should be adopted. Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/