* Idea for diff-mode
@ 2004-09-02 10:54 Han Boetes
0 siblings, 0 replies; only message in thread
From: Han Boetes @ 2004-09-02 10:54 UTC (permalink / raw)
Hi,
I just read this article about the ideal LKML patch:
http://kerneltrap.org/node/view/3737?PHPSESSID=fdd31ac2e7467173a877e84f3c83924f#comment
Where I found this paragraph:
- Ensure that your patch does not add new trailing whitespace. The below
script will fix up your patch by stripping off such whitespace.
#!/bin/sh
strip1()
{
TMP=$(mktemp /tmp/XXXXXX)
cp $1 $TMP
sed -e '/^+/s/[ ]*$//' < $TMP > $1
rm $TMP
}
for i in $*
do
strip1 $i
done
I think it be a great idea if m-x delete-trailing-whitespace in
diff-mode would only remove trailing white-space in lines marked with ^+
What do you think?
# Han
--
For all ya |\ _,,,---,,_ Space is to place as eternity
untamed Daemons /,`.-'`' -. ;-;;,_ is to time. -- Joseph Joubert
OpenBSD-current |,4- ) )-,_..;\ ( `'-'
on an i386 '---''(_/--' `-'\_)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-09-02 10:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-02 10:54 Idea for diff-mode Han Boetes
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).