From: "Drew Adams" <drew.adams@oracle.com>
To: "'Sébastien Vauban'" <wxhgmqzgwmuf@spammotel.com>,
help-gnu-emacs@gnu.org
Subject: RE: a emacs mode to see newline, tabs, spaces
Date: Fri, 21 Aug 2009 09:07:20 -0700 [thread overview]
Message-ID: <97E11A45CB0242BBA29F888B96ADB698@us.oracle.com> (raw)
In-Reply-To: <87hbw43u32.fsf@mundaneum.com>
> >> Is there any way to put emacs in a mode which I can
> >> visualize newline, tab, space?
> >
> > http://www.emacswiki.org/emacs/ShowWhiteSpace
>
> When highlighting tab characters with the following snippet
> of code, my Gnus Group buffer becomes black-and-white only.
>
> (require 'show-wspace)
> (add-hook 'font-lock-mode-hook 'highlight-tabs)
I know nothing about a function called `highlight-tabs'. The function defined in
show-wspace.el is `show-ws-highlight-tabs'. Is that what you meant (what you
used)?
> Same happens with the following:
> (add-hook 'font-lock-mode-hook
> '(lambda ()
> (font-lock-add-keywords
> nil
> '(("\t" 0 'trailing-whitespace prepend)))))
Again, I know nothing about `trailing-whitespace'. show-wspace.el defines this
function: `show-ws-highlight-trailing-whitespace'.
> Any idea why?
I suspect you might be mixing things from two or more different
whitespace-display packages. If you want to use show-wspace.el to show
whitespace, follow the instructions in the file. For example:
(require 'show-wspace)
;; Highlight tabs
(add-hook 'font-lock-mode-hook
'show-ws-highlight-tabs)
;; Highlight trailing whitespace
(add-hook 'font-lock-mode-hook
'show-ws-highlight-trailing-whitespace)
;; Highlight non-breaking spaces
(add-hook 'font-lock-mode-hook
`show-ws-highlight-hard-spaces')
If that approach doesn't work for you, please send me a recipe to reproduce the
problem, starting with `emacs -Q'. I don't use Gnus, so if you can provide a
simpler recipe, that's good.
next prev parent reply other threads:[~2009-08-21 16:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-13 19:10 a emacs mode to see newline, tabs, spaces n179911
2009-08-13 19:16 ` Maurizio Vitale
2009-08-14 1:36 ` n179911
2009-08-14 2:05 ` Maurizio Vitale
2009-08-13 20:13 ` Drew Adams
[not found] ` <mailman.4538.1250194416.2239.help-gnu-emacs@gnu.org>
2009-08-19 11:45 ` Sébastien Vauban
2009-08-21 16:07 ` Drew Adams [this message]
[not found] <mailman.4536.1250190656.2239.help-gnu-emacs@gnu.org>
2009-08-13 20:00 ` Teemu Likonen
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=97E11A45CB0242BBA29F888B96ADB698@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=wxhgmqzgwmuf@spammotel.com \
/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.