unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* whitespace-mode: Have to disable/re-enable to display trailing whitespace in sql-mode?
@ 2015-07-13 16:33 Andrew Pennebaker
  2015-07-13 21:32 ` Dmitry Gutov
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Pennebaker @ 2015-07-13 16:33 UTC (permalink / raw)
  To: Emacs Help

I've configured Emacs to automatically use whitespace-mode for many modes,
and this usually works very well for displaying odd characters, such as
trailing whitespace.

However, in sql-mode, though whitespace-mode is automatically enabled, I
still have to disable and then re-enable whitespace-mode in order to
actually* **see* the visual indicators for trailing whitespace. This odd
little problem doesn't happen for most programming modes.

Is there something in my Emacs config I can improve to fix this problem?

https://github.com/mcandre/dotfiles/blob/master/.emacs

I'm using Emacs v24.5.1, from Homebrew, on Mac OS X 10.10.4 Yosemite.

-- 
Cheers,
Andrew


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: whitespace-mode: Have to disable/re-enable to display trailing whitespace in sql-mode?
  2015-07-13 16:33 whitespace-mode: Have to disable/re-enable to display trailing whitespace in sql-mode? Andrew Pennebaker
@ 2015-07-13 21:32 ` Dmitry Gutov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Gutov @ 2015-07-13 21:32 UTC (permalink / raw)
  To: Andrew Pennebaker, Emacs Help

On 07/13/2015 07:33 PM, Andrew Pennebaker wrote:

> However, in sql-mode, though whitespace-mode is automatically enabled, I
> still have to disable and then re-enable whitespace-mode in order to
> actually* **see* the visual indicators for trailing whitespace. This odd
> little problem doesn't happen for most programming modes.

That's possibly because of the weird stuff in sql-product-font-lock.

If you can reproduce it with a small init script, maybe you should file 
a bug.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-13 21:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-13 16:33 whitespace-mode: Have to disable/re-enable to display trailing whitespace in sql-mode? Andrew Pennebaker
2015-07-13 21:32 ` Dmitry Gutov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).