Permalink
Commits on May 16, 2016
  1. add a rudimentary changelog

    committed May 16, 2016
Commits on Mar 17, 2016
  1. Merge pull request #30 from orivej/fix-final-long-line

    Do not fail when frame-width is lesser than current-column.
    committed Mar 17, 2016
  2. Merge pull request #29 from orivej/no-conversion

    Do not enable ethan-whitespace for buffers with no-conversion coding system
    committed Mar 17, 2016
  3. Do not fail when frame-width is lesser than current-column.

    This happens when the last line of a file is without newline and is
    longer than the current frame-width.
    orivej committed Mar 17, 2016
  4. Do not enable ethan-whitespace for buffers with no-conversion coding …

    …system.
    
    From the manual: the coding system ‘no-conversion’ specifies no character
    code conversion at all—none for non-ASCII byte values and none for end
    of line.  This is useful for reading or writing binary files, tar files,
    and other files that must be examined verbatim.
    orivej committed Mar 17, 2016
Commits on Dec 18, 2015
Commits on Oct 3, 2015
  1. fix example configuration in documentation

    Thanks @kevinbombadil for noticing and reporting this.
    
    Closes #27.
    committed Oct 3, 2015
Commits on Jul 19, 2014
Commits on Jul 9, 2014
  1. Merge pull request #24 from expez/clean-all

    Add ethan-wspace-clean-all-modes
    committed Jul 9, 2014
  2. Add ethan-wspace-clean-all

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

    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.
    committed Jul 8, 2014
Commits on May 24, 2014
  1. update some documentation

    committed May 24, 2014
Commits on May 12, 2014
  1. fix test

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

    Fix typerrors in latest version.
    committed May 18, 2013
  2. Fix typerrors in latest version.

    - 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.
    expez committed May 18, 2013
Commits on Apr 28, 2013
  1. fix error on emacs23

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

    Attempt to preserve the position of point when cleaning a buffer.
    committed Apr 12, 2013
  2. Fix eol cleaner so that it doesn't delete trailing newlines.

    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.
    njsmith committed Apr 12, 2013
  3. Attempt to preserve the position of point when cleaning a buffer.

    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?
    njsmith committed Apr 12, 2013
Commits on Apr 5, 2013
  1. Merge pull request #14 from expez/tabs-in-strings

    Do not remove tabs inside strings.
    committed Apr 5, 2013
Commits on Mar 31, 2013
  1. Merge pull request #12 from expez/autoload

    Add autoload cookie to global-ethan-wspace-mode and random whitespace
    committed Mar 31, 2013
Commits on Jan 11, 2013
  1. Another related package

    committed Jan 11, 2013
Commits on Nov 5, 2012
  1. Clarify tooltips for no-nl-eof/many-nls-eof

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

    Error when you enter c-mode for the first time (Emacs 24)
    committed Jun 28, 2012