From: Glenn Morris <rgm@gnu.org>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: 21492@debbugs.gnu.org, warren ferguson <gobold1y@hotmail.com>
Subject: bug#21492: 25.0.50: Make untabify work nicely with write-file-functions
Date: Wed, 16 Sep 2015 04:24:15 -0400 [thread overview]
Message-ID: <2ufv2edb68.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <CAFyQvY0SU0ne0GuSt2S4CnaoFo8eYpLiuUT9LQeMNpKcC+fFbw@mail.gmail.com> (Kaushal Modi's message of "Tue, 15 Sep 2015 23:35:37 -0400")
Kaushal Modi wrote:
> I personally have dealt with the issue where I cannot add untabify directly
> to write-file-functions hook, because untabify does not return nil.
>
> I need some sort of custom wrapper that runs untabify and then returns nil.
I'm pretty sure this has come up before.
IMO it's a feature. :)
Simply adding untabify to write-file-functions without thinking about it
(which not consulting the return value indicates) is a recipe for trouble.
Eg hope you like silently breaking every makefile you ever edit,
and irritating any other users of a shared VCS with whitespace changes.
next prev parent reply other threads:[~2015-09-16 8:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-16 3:35 bug#21492: 25.0.50: Make untabify work nicely with write-file-functions Kaushal Modi
2015-09-16 8:24 ` Glenn Morris [this message]
2015-09-16 12:55 ` Kaushal Modi
2015-09-16 13:13 ` Kaushal Modi
2015-09-16 13:14 ` Stefan Monnier
2015-09-16 15:54 ` Kaushal Modi
2015-09-17 1:54 ` Stefan Monnier
2015-09-17 2:54 ` Kaushal Modi
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=2ufv2edb68.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=21492@debbugs.gnu.org \
--cc=gobold1y@hotmail.com \
--cc=kaushal.modi@gmail.com \
/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).