unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Klaus Zeitler <kzeitler@alcatel-lucent.com>
To: emacs-devel@gnu.org
Subject: font-lock question
Date: Tue, 15 Jul 2008 14:19:47 +0200	[thread overview]
Message-ID: <q5g7ibn7318.fsf@sfsw51.de.lucent.com> (raw)

For many years I had the following statement in my .emacs file:

(defun show-tabs () "Show tabs with a slightly changed background"
  (font-lock-add-keywords nil '(("\t"  (0 'tab-face t))) t))
(add-hook 'font-lock-mode-hook 'show-tabs)

This has worked without any problems up to 22.1.
In version 22.2 and 23 I do have problems with syntax highlighting due
to these few lines above, e.g. when I try M-x list-faces-display
all colors are gone.

So here's my question. Did that only work by accident in older versions?
Maybe I have to change this code slightly for 22.2 and CVS version, but I
can't see what's wrong, when I look at the docu for font-lock-add-keywords.

Klaus

-- 
 --------------------------------------------------
|  Klaus Zeitler      Alcatel-Lucent               |
|  Email:             kzeitler@alcatel-lucent.com  |
 --------------------------------------------------
---
Copy Protection:  A clever method of preventing incompetent pirates from
stealing software and legitimate customers from using it.




             reply	other threads:[~2008-07-15 12:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-15 12:19 Klaus Zeitler [this message]
2008-07-24 15:11 ` font-lock question Stefan Monnier
2008-07-25 13:33   ` Klaus Zeitler

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=q5g7ibn7318.fsf@sfsw51.de.lucent.com \
    --to=kzeitler@alcatel-lucent.com \
    --cc=emacs-devel@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 public inbox

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

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