all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Constantin Kulikov <zxnotdead@gmail.com>
To: 23684@debbugs.gnu.org
Subject: bug#23684: delete-trailing-whitespace bug
Date: Fri, 3 Jun 2016 09:36:35 +0300	[thread overview]
Message-ID: <CAFkz2yq0viRrjxdm8ze4uGC4Uv+Y-mU-SbB_sSOwqbDuv9316Q@mail.gmail.com> (raw)
In-Reply-To: <CAFkz2yrSu1eEMQzVT64nM+iyv_Ppx+n5p4N15w_CaOyyxpZhmg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 398 bytes --]

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).

[-- Attachment #2: Type: text/html, Size: 601 bytes --]

  reply	other threads:[~2016-06-03  6:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-02 21:57 bug#23684: delete-trailing-whitespace bug Constantin Kulikov
2016-06-03  6:36 ` Constantin Kulikov [this message]
2016-06-03 11:33   ` Noam Postavsky
2016-06-04 10:03     ` Constantin Kulikov
2016-06-05  7:48       ` Constantin Kulikov
2016-06-05 14:50         ` Noam Postavsky

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFkz2yq0viRrjxdm8ze4uGC4Uv+Y-mU-SbB_sSOwqbDuv9316Q@mail.gmail.com \
    --to=zxnotdead@gmail.com \
    --cc=23684@debbugs.gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.