Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Commits on Jul 19, 2014
Commits on Jul 9, 2014
  1. Merge pull request #24 from expez/clean-all

    authored
    Add ethan-wspace-clean-all-modes
  2. @expez

    Add ethan-wspace-clean-all

    expez authored
    This function immediately cleans all whitespace errors in the buffer and
    enables ethan-wspace-clean-all-modes to make sure it stays clean.
Commits on Jul 8, 2014
  1. update warnings

    authored
    Try to be smarter when it comes to mode-require-final-newline and
    require-final-newline. In either case, just turn off
    require-final-newline and work as expected, since the user has already
    demonstrated by installing ethan-wspace and invoking the mode that they
    want ethan-wspace to work correctly.
Commits on May 24, 2014
  1. update some documentation

    authored
Commits on May 12, 2014
  1. fix test

    authored
Commits on May 18, 2013
  1. Merge pull request #19 from expez/fix-type-errors

    authored
    Fix typerrors in latest version.
  2. @expez

    Fix typerrors in latest version.

    expez authored
    - The added WHEN fixes a bug where we would try to run `(insert NIL)`,
    which obviously fails.
    
    - The change to the defvar fixes a failing typecheck, somewhere, where a
      `wholenump` was expected.
Commits on Apr 28, 2013
  1. fix error on emacs23

    authored
    delete-trailing-whitespace's arguments were introduced in emacs24.
    
    Closes #18.
Commits on Apr 12, 2013
  1. Merge pull request #16 from njsmith/save-the-point

    authored
    Attempt to preserve the position of point when cleaning a buffer.
  2. @njsmith

    Fix eol cleaner so that it doesn't delete trailing newlines.

    njsmith authored
    Remaining problem: the eol cleaner runs *after* the trailing newline
    cleaner. So if you have a file like:
    
    blah blah
    <newline>
    <newline><trailing whitespace>
    <newline>
    <newline><trailing whitespace>
    
    then with this patch, you have to save *twice* to fully clean the
    file.
    
    Unfortunately right now the order cleaners are run in is determined by
    the order they are defined in the file, which is pretty obscure.
  3. @njsmith

    Attempt to preserve the position of point when cleaning a buffer.

    njsmith authored
    Closes: #15
    
    This commit does three things:
    - Adds a new :clean-fixup function to the general cleaner framework,
      which is called from the after-save hook.
    - Defines a :clean-fixup function for eol whitespace, which restores
      any whitespace immediately preceding point.
    - Defines a :clean-fixup function for many-nls-eof whitespace, which
      restores newlines at the end of the file if this is necessary to
      preserve the position of point.
    
    This seems to work great EXCEPT that if at the end of your file you
    have in order: (a) several newlines, (b) several horizontal whitespace
    characters, (c) point -- then the newlines, but not the horizontal
    whitespace, will disappear on save. I'm not sure what the correct fix
    for this is, because it appears to reflect a more fundamental bug in
    ethan-wspace. The problem is that the eol whitespace cleaner also
    cleans extraneous eof newlines. E.g., add several newlines at the end
    of a file, make sure your modeline says "ew:Mnlt", and then save. The
    newlines will be cleaned, even though trailing newlines are in
    highlight-don't-clean mode. But my fixup code assumes that the eol cleaner only modifies individual lines.
    
    So what causes the bug in this commit is: first the many-nls-eof
    cleaner runs, and does nothing. Then the eol cleaner runs, and deletes
    not just the trailing whitespace on the current line, but all the
    preceding blank lines. Then, my fixup code runs, and re-inserts the
    trailing whitespace, but not the trailing blank lines.
    
    Option A ("correct"): fix the eol cleaner so it never deletes whole
    lines. Also make sure that it runs before the eof cleaners, because it
    might change where the eof is. Now the code in this commit will
    magically start working.
    
    Option B ("expedient"): add an explicit workaround to the eol fixup
    code that checks for this situation explicitly, and re-adds newlines
    in this case.
    
    Thoughts?
Commits on Apr 5, 2013
  1. Merge pull request #14 from expez/tabs-in-strings

    authored
    Do not remove tabs inside strings.
  2. @expez
Commits on Mar 31, 2013
  1. Merge pull request #12 from expez/autoload

    authored
    Add autoload cookie to global-ethan-wspace-mode and random whitespace
  2. @expez
Commits on Jan 11, 2013
  1. Another related package

    authored
Commits on Nov 5, 2012
  1. Clarify tooltips for no-nl-eof/many-nls-eof

    authored
    This should make it clearer which little letter is which check for
    trailing newlines, but the wording could still use some work.
Commits on Jun 28, 2012
  1. Merge pull request #8 from dgutov/master

    authored
    Error when you enter c-mode for the first time (Emacs 24)
Commits on Apr 30, 2012
  1. Merge pull request #6 from dgutov/trailing-whitespace

    Ethan Glasser-Camp authored
    Make trailing-whitespace an alias for ethan-wspace-face
  2. @dgutov

    Don't call `font-lock-fontify-buffer' when font-lock mode is not enabled

    dgutov authored
    It broke c-mode from Emacs master
  3. @dgutov

    Remove a trailing-whitespace FIXME comment

    dgutov authored
    Should be 'in sync' now. Probably.
Commits on Apr 7, 2012
  1. @dgutov

    Make trailing-whitespace an alias for ethan-wspace-face

    dgutov authored
    Marking an existing face as an alias is not exactly documented AFAIK, but works
    fine for me.
    
    The replaced code was invoked from window-configuration-change-hook, which
    apparently sometimes runs when the faces subsystem hasn't yet been initialized.
    
    Refs #4
Commits on Feb 21, 2012
  1. Merge pull request #5 from edmccard/clean-exit

    Ethan Glasser-Camp authored
    Turn off whitespace handling when mode is turned off
  2. @edmccard
Commits on Jun 17, 2011
Commits on May 16, 2011
Something went wrong with that request. Please try again.