bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23684: delete-trailing-whitespace bug


From: Constantin Kulikov
Subject: bug#23684: delete-trailing-whitespace bug
Date: Fri, 3 Jun 2016 09:36:35 +0300

Hmm, looks like it is _javascript_-mode specific...
Here is a simple workaround:

    (defun cleanup-trailing-whitespaces ()
      (interactive)
      (let ((m-m major-mode))
        (fundamental-mode)
        (delete-trailing-whitespace)
        (funcall m-m)))

But it seems to me that I also had a wrong behaviour of the delete-trailing-whitespace for other major-modes. Can not prove it though).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]