emacs-devel
[Top][All Lists]
Advanced

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

Re: request a change to electric.el


From: Philip Kaludercic
Subject: Re: request a change to electric.el
Date: Sun, 28 Aug 2022 08:10:21 +0000

MICHAEL J MCCLENNEN <mmcclenn@geology.wisc.edu> writes:

> Hello,

Hi,

> This is directed at either K. Shane Hartman or else whoever is
> currently in charge of maintaining electric.el. Could you please make
> the following change to this module? The effect is to adapt
> electric-indent-mode to people like me who use indented lines instead
> of completely blank lines between their statements. Since I made this
> change in my own installation, electric-indent-mode has been much more
> satisfactory for me. The way I wrote this patch, it will have no
> effect unless somebody sets the electric-indent-preserve-whitespace
> locally.

This feature could be generalise a bit further, so that features like
whitespace-cleanup don't break the intended formatting.

> If this is not the proper way for me to submit such a request, please tell me 
> what you would like me to do instead.

If you have a local git checkout of emacs.git, read through the
CONTRIBUTE file to see what you have to do.  The end result should be a
.patch file.

> Thank you for your time,
>
>   Michael McClennen
>
>
> 233a234,237
>> (defvar-local electric-indent-preserve-whitespace nil
>>   "If non-nil, whitespace will not be removed from a line that is reindented
>> after a newline.")
>>
> 282c286
> <               (when (eolp)
> ---
>>               (when (and (eolp) (not electric-indent-preserve-whitespace))



reply via email to

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