unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alexander Pohoyda <alexander.pohoyda@gmx.net>
Subject: Re: half of emacs lisp files tested positive for trailing whitespace
Date: 24 Dec 2003 15:25:35 +0100	[thread overview]
Message-ID: <87llp2i97k.fsf@oak.pohoyda.family> (raw)
In-Reply-To: mailman.562.1072249331.868.bug-gnu-emacs@gnu.org

Eli Zaretskii <eliz@elta.co.il> writes:

> > Gentlemen, wearing my show-trailing-whitespace xray-specs all day long
> > has made me acutely aware of the waste current these days.  Indeed,
> > emacs authors should be required to wear them too, as half of the
> > files on this quick sample returned positive results when tested for
> > trailing whitespace:
> 
> How about sending patches to remove all that slack?

This might be not extra performant, but works:

find ./ -name "*.el" -exec emacs -batch {} --eval="(progn (delete-trailing-whitespace) (and (buffer-modified-p) (save-buffer)))" \;

I think that Dan is right and developers should take care about this
before they commit changes.


-- 
Alexander Pohoyda <alexander.pohoyda@gmx.net>
PGP Key fingerprint: 7F C9 CC 5A 75 CD 89 72  15 54 5F 62 20 23 C6 44

  parent reply	other threads:[~2003-12-24 14:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-23 20:43 half of emacs lisp files tested positive for trailing whitespace Dan Jacobson
2003-12-24  6:01 ` Eli Zaretskii
2003-12-25 21:05   ` Reiner Steib
     [not found] ` <mailman.562.1072249331.868.bug-gnu-emacs@gnu.org>
2003-12-24 14:25   ` Alexander Pohoyda [this message]
2003-12-24 14:47     ` Sam Steingold

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=87llp2i97k.fsf@oak.pohoyda.family \
    --to=alexander.pohoyda@gmx.net \
    /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).