When I switch on whitespace-mode I get all the indicators and color for showing superfluous whitespace. So far so good.

But when I switch off whitespace-mode the space indicator . and the line-end indicator $ stay.

How can I switch them off as well, so that the buffer looks normal again?

  • Can you provide a recipe starting from emacs -Q to demonstrate the problem? – phils Dec 21 '17 at 8:16
  • @phils I cannot reproduce it with a vanilla Emacs. Must be an issue with my set-up. (helm might interfere???) – halloleo Dec 21 '17 at 23:13
  • Certainly test anything you suspect is the issue, but if you're at a loss then recursive bisection of your config is an efficient way to try to track down the culprit. github.com/Malabarba/elisp-bug-hunter might help to automate the process. – phils Dec 22 '17 at 3:22

It turns out that the set up with a multitude of additional packages is responsible for this problem. (Vanilla Emacs does not have this issue.) But it is hard to determine what exactly causes the problem.

However if the issue occurs, a manual ad hoc fix is possible: Just erase the local display table. I have defined a command for this:

(defun my-erase-local-display-table ()
  (if buffer-display-table
      (setq leo-buffer-display-table-backup buffer-display-table))
  (setq buffer-display-table nil))

When things get pear-shaped in a buffer, just call this comamnd and everything should be back to normal.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.