unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Davin Pearson" <davin.pearson@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: Fontification Bug
Date: Sat, 12 May 2007 20:50:48 +1200	[thread overview]
Message-ID: <8d7d1e6d0705120150n3a006b25h424027f6f2fdc642@mail.gmail.com> (raw)

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing
list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.3.1 (i386-mingw-nt5.1.2600)
 of 2004-03-11 on NYAUMO
configured using `configure --with-gcc (3.2)'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENZ
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

I sent a message to gnu.emacs.help but received no answer.

For a reason to do with debugging my C++ code, I need to use the
following fontification code:

(add-hook 'font-lock-mode-hook 'my-special-font-lock-mode-hook)

(make-face 'my-face-cc-illegal-type)
(set-face-background 'my-face-cc-illegal-type "#0ff")
(set-face-foreground 'my-face-cc-illegal-type "#f00")

(defun my-special-font-lock-mode-hook ()
  (font-lock-add-keywords
   'c++-mode
   '(
     ("\\<[A-Z]+[a-z][a-zA-Z0-9_]*\\>" 0 'my-face-cc-illegal-type t)
     )
   nil
   ))

The trouble is that it also fontifies strings and comments in the face
my-face-cc-illegal-type, something that I don't want fontified.

Please help me to get the fontification correct!

Recent input:
C-f m y <tab> . <backspace> a . c <tab> <return> M-x
r e p o r t - 0 e <backspace> <backspace> e m a c s
- b <tab> <return>

Recent messages:
Loading cc-mode...
Loading image...done
Loading cc-mode...done
Loading font-lock...
Loading regexp-opt...done
Loading font-lock...done
Loading d:/home/mylisp/diagnose.el (source)...done
Loading d:/home/mylisp/experimental/for-a-reason.el (source)...done
For information about the GNU Project and its goals, type C-h C-p.
Loading emacsbug...done

             reply	other threads:[~2007-05-12  8:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-12  8:50 Davin Pearson [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-05-13  7:47 Fontification Bug martin rudalics
2007-05-13  8:00 ` Davin Pearson

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=8d7d1e6d0705120150n3a006b25h424027f6f2fdc642@mail.gmail.com \
    --to=davin.pearson@gmail.com \
    --cc=bug-gnu-emacs@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).