From: "Óscar Fuentes" <ofv@wanadoo.es>
To: emacs-devel@gnu.org
Subject: Re: Electric indentation sub-optimality and resolution
Date: Thu, 18 Dec 2014 20:40:22 +0100 [thread overview]
Message-ID: <87sigcvja1.fsf@wanadoo.es> (raw)
In-Reply-To: jwvtx0sn55k.fsf-monnier+emacs@gnu.org
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Annoying indeed. For me this was fixed by ws-butler:
>> https://github.com/lewang/ws-butler
>> It has the advantage of cleaning up whitespace no matter how it was
>> created, but only on the lines you changed or added.
>
> AFAICT the code that John posted has the same property, more or less.
The author of ws-butler experimented with a post-command-hook approach
and experienced some undesirable side effects. There is a commentary
about this on the posted URL.
> In any case, I'd be happy to integrate something like that in Emacs.
Ok, I'll pass the message to Le Wang.
next prev parent reply other threads:[~2014-12-18 19:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-18 16:19 Electric indentation sub-optimality and resolution John Yates
2014-12-18 18:34 ` Óscar Fuentes
2014-12-18 19:13 ` Stefan Monnier
2014-12-18 19:40 ` Óscar Fuentes [this message]
2014-12-18 20:07 ` Dmitry Gutov
2014-12-19 0:43 ` John Yates
2014-12-19 1:08 ` Óscar Fuentes
2014-12-21 0:36 ` Le Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sigcvja1.fsf@wanadoo.es \
--to=ofv@wanadoo.es \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).