bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#55991: 29.0.50; Wish list: detect and ask user if to change indentat


From: Jean Louis
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
User-agent: Mutt/+ () (2022-05-21)

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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]