GNU bug report logs - #13917
24.3.50; Elisp manual: Font Lock Mode

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Joost Kremers <joost.kremers@HIDDEN>; dated Sun, 10 Mar 2013 18:26:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Mar 2013 18:25:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 10 14:25:10 2013
Received: from localhost ([127.0.0.1]:44279 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UEkvl-0002zR-4s
	for submit <at> debbugs.gnu.org; Sun, 10 Mar 2013 14:25:10 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57565)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <joost.kremers@HIDDEN>)
	id 1UEjIC-0000IJ-4h
	for submit <at> debbugs.gnu.org; Sun, 10 Mar 2013 12:40:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <joost.kremers@HIDDEN>)
	id 1UEjHF-0006FM-QI
	for submit <at> debbugs.gnu.org; Sun, 10 Mar 2013 12:39:17 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE
	autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:35311)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <joost.kremers@HIDDEN>)
	id 1UEjHF-0006FI-Lw
	for submit <at> debbugs.gnu.org; Sun, 10 Mar 2013 12:39:13 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40671)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <joost.kremers@HIDDEN>)
	id 1UEjHC-0002Fg-9x
	for bug-gnu-emacs@HIDDEN; Sun, 10 Mar 2013 12:39:13 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <joost.kremers@HIDDEN>)
	id 1UEjH8-0006E7-Mo
	for bug-gnu-emacs@HIDDEN; Sun, 10 Mar 2013 12:39:10 -0400
Received: from amailer.gwdg.de ([134.76.10.18]:56933)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <joost.kremers@HIDDEN>)
	id 1UEjH8-0006Dg-A2
	for bug-gnu-emacs@HIDDEN; Sun, 10 Mar 2013 12:39:06 -0400
Received: from pdbn-4d081d6a.pool.mediaways.net ([77.8.29.106]
	helo=eeenterprise.gwdg.de)
	by mailer.gwdg.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.72)
	(envelope-from <joost.kremers@HIDDEN>)
	id 1UEjH4-0006fK-Qm
	for bug-gnu-emacs@HIDDEN; Sun, 10 Mar 2013 17:39:03 +0100
From: Joost Kremers <joost.kremers@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.3.50; Elisp manual: Font Lock Mode
Date: Sun, 10 Mar 2013 17:39:01 +0100
Message-ID: <87txojjjkq.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Authenticated: Id:jkremer
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -6.9 (------)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sun, 10 Mar 2013 14:25:07 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.9 (------)


The Elisp manual, info node "(elisp) Search-based Fontification" states
the following:

,----
| `(MATCHER . FACESPEC)'
|      In this kind of element, FACESPEC is an expression whose value
|      specifies the face to use for highlighting.  In the simplest case,
|      FACESPEC is a Lisp variable (a symbol) whose value is a face name.
|=20
|           ;; Highlight occurrences of `fubar',
|           ;; using the face which is the value of `fubar-face'.
|           ("fubar" . fubar-face)
|=20
|      However, FACESPEC can also evaluate to a list of this form:
|=20
|           (face FACE PROP1 VAL1 PROP2 VAL2...)
|=20
|      to specify the face FACE and various additional text properties to
|      put on the text that matches.  If you do this, be sure to add the
|      other text property names that you set in this way to the value of
|      `font-lock-extra-managed-props' so that the properties will also
|      be cleared out when they are no longer appropriate.  Alternatively,
|      you can set the variable `font-lock-unfontify-region-function' to
|      a function that clears these properties.  *Note Other Font Lock
|      Variables::.
`----

However, a font lock entry of the type

,----
| (MATCHER . (face FACE PROP1 VAL1 PROP1 VAL2))
`----

does not actually work. What works is any of the forms:

,----
| (MATCHER . (0 (face FACE PROP1 VAL1 PROP1 VAL2)))
| (MATCHER 0 (face FACE PROP1 VAL1 PROP1 VAL2))
| (MATCHER (0 (face FACE PROP1 VAL1 PROP1 VAL2)))
`----

(Where the first two are of course equivalent).




In GNU Emacs 24.3.50.1 (i686-pc-linux-gnu, GTK+ Version 3.6.0)
 of 2013-03-04 on charichuelo, modified by Debian
 (emacs-snapshot package, version 2:20130304-1~ppa1~quantal1)
Windowing system distributor `The X.Org Foundation', version 11.0.11300000
System Description:	Ubuntu 12.10

Configured using:
 `configure --build i686-linux-gnu --host i686-linux-gnu --prefix=3D/usr
 --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var
 --infodir=3D/usr/share/info --mandir=3D/usr/share/man --with-pop=3Dyes
 --enable-locallisppath=3D/etc/emacs-snapshot:/etc/emacs:/usr/local/share/e=
macs/24.3.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24=
.3.50/site-lisp:/usr/share/emacs/site-lisp
 --without-compress-info --with-crt-dir=3D/usr/lib/i386-linux-gnu/
 --with-x=3Dyes --with-x-toolkit=3Dgtk3 --with-imagemagick=3Dyes
 CFLAGS=3D'-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=3D5000 -g -O2'
 CPPFLAGS=3D'-D_FORTIFY_SOURCE=3D2' LDFLAGS=3D'-g -Wl,--as-needed
 -znocombreloc''

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Text

Minor modes in effect:
  diff-auto-refine-mode: t
  TeX-PDF-mode: t
  autopair-global-mode: t
  autopair-mode: t
  global-edit-server-edit-mode: t
  override-global-mode: t
  show-paren-mode: t
  delete-selection-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
s SPC t h e SPC o n e SPC t h a t SPC C-d r e t u r=20
n s SPC t h e SPC f i e l d SPC t o SPC i n h e r i=20
t SPC f r o m SPC <backspace> , SPC b a s e d SPC o=20
n SPC a SPC f i e l d M-b M-b M-b M-b M-b M-b M-b M-b=20
t a r g e t SPC M-f M-d M-d M-d M-f M-f M-f <backspace>=20
t h e SPC o <backspace> s o u r c e M-f SPC a n d SPC=20
t h e SPC n e t r y SPC <M-backspace> e n t r y SPC=20
t y p e SPC o f SPC t e h SPC s o u r c e . M-b C-b=20
C-b C-p C-e C-x C-s C-x # M-x e m a <tab> b u <tab>=20
<M-backspace> <M-backspace> r e p <tab> o <tab> <tab>=20
r <tab> <return> M a n u a l <M-backspace> C-g C-h=20
i u u u m f o n - <backspace> t SPC l o c k <tab> m=20
o <tab> <return> 3 b <backspace> <backspace> <backspace>=20
<backspace> <backspace> C-t C-t C-t C-t C-t C-t C-t=20
C-t C-t C-t C-t C-t C-t C-t C-t C-t C-t C-t C-SPC C-n=20
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n=20
C-n C-n C-n C-n C-n C-n C-n M-w <C-tab> <return> <return>=20
C-y <C-S-iso-lefttab> <C-S-iso-lefttab> <C-tab> <C-tab>=20
C-h i <home> C-n C-b C-SPC C-e M-w q <return> <return>=20
C-y C-t M-d M-d M-d M-d C-d C-d M-f M-f M-f C-k C-c=20
C-g M-x e <backspace> r e p a r <backspace> <backspace>=20
o r <tab> <return>

Recent messages:
Package `multiple-cursors-20130226.2138' deleted.
Package `ebib-20130309.145' deleted.
Package `dash-20130225.2203' deleted.
Field contents killed.
Wrote /home/joost/Dropbox/Work/Bibtex/genbib.bib
[mu4e] Retrieving mail...
[mu4e] Indexing... processed 4000, updated 0
[mu4e] Indexing completed; processed 4306, updated 0, cleaned-up 0
Making completion list... [2 times]
Quit

Load-path shadows:
/home/joost/.elpa/ess-20130225.1754/.dir-locals hides /home/joost/.elpa/mag=
it-20130304.2017/.dir-locals
/usr/share/emacs/24.3.50/site-lisp/cmake-data/cmake-mode hides /usr/share/e=
macs/site-lisp/cmake-mode
~/.emacs.d/custom hides /usr/share/emacs/24.3.50/lisp/custom
~/src/org-mode/contrib/lisp/org-w3m hides /usr/share/emacs/24.3.50/lisp/org=
/org-w3m
~/src/org-mode/contrib/lisp/org-vm hides /usr/share/emacs/24.3.50/lisp/org/=
org-vm
~/src/org-mode/contrib/lisp/org-wl hides /usr/share/emacs/24.3.50/lisp/org/=
org-wl
~/src/org-mode/contrib/lisp/org-mew hides /usr/share/emacs/24.3.50/lisp/org=
/org-mew
/home/joost/.elpa/ess-20130225.1754/.dir-locals hides /usr/share/emacs/24.3=
.50/lisp/gnus/.dir-locals

Features:
(shadow emacsbug mc-separate-operations rectangular-region-mode
mc-mark-more mc-cycle-cursors mc-edit-lines multiple-cursors-core
autoload tar-mode url-http url-gw url-cache url-auth url url-proxy
url-privacy url-expand url-methods url-history url-cookie url-domsuf
url-util url-parse url-vars mailcap finder-inf ace-jump-mode jump-char
debug ebib loadhist epa-file gnutls network-stream starttls tls
mailalias qp mail-extr sort parse-time boxquote crm view magit-bisect
magit-key-mode magit diff-mode log-edit pcvs-util add-log compile
re-builder bm expand-region text-mode-expansions org-mode-expansions
latex-mode-expansions expand-region-custom expand-region-core vc-git
reftex-index rect reftex-sel reftex-ref reftex-toc texmathp
writeroom-mode pcmpl-unix cus-edit cus-start cus-load wid-edit misearch
multi-isearch mule-util reftex-cite reftex-parse pandoc-mode bibtex
preview prv-emacs tex-buf reftex-dcr reftex reftex-vars face-remap
adaptive-wrap tex-fold font-latex latex tex-style tex dbus xml latexenc
offlineimap diminish epresent org-latex org-export-latex org-beamer
footnote autopair quail em-unix em-term term disp-table ehelp electric
em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl
em-basic em-banner em-alias esh-var esh-io esh-cmd esh-opt esh-ext
esh-proc esh-arg eldoc esh-groups eshell esh-module esh-mode esh-util
ielm pp anti-zenburn-theme edit-server uniquify org-mu4e org-exp ob-exp
org-exp-blocks org-agenda mu4e mu4e-speedbar speedbar sb-image ezimage
dframe mu4e-main mu4e-view epa epg epg-config browse-url mu4e-headers
mu4e-compose mu4e-draft mu4e-actions rfc2368 smtpmail auth-source eieio
gnus-util password-cache sendmail mu4e-mark mu4e-message html2text
mu4e-proc mu4e-utils doc-view jka-compr image-mode dired mu4e-lists
mu4e-about mu4e-vars message rfc822 mml mml-sec mm-decode mm-bodies
mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mailabbrev mail-utils gmm-utils mailheader hl-line mu4e-meta
dictem org-drill org-learn org-id hi-lock org-inlinetask org byte-opt
warnings bytecomp byte-compile cconv ob-tangle ob-ref ob-lob ob-table
org-footnote org-src ob-comint ob-keys org-pcomplete pcomplete comint
ansi-color ring org-list org-faces org-entities org-version
ob-emacs-lisp ob org-compat org-macs ob-eval org-loaddefs format-spec
find-func cal-menu calendar cal-loaddefs yasnippet dropdown-list derived
help-mode cl cm-mode cl-macs gv cl-lib markdown-mode thingatpt noutline
outline windmove swbuff nadvice advice help-fns preview-latex tex-site
auto-loads server edmacro kmacro bind-key easy-mmode paren delsel
ace-jump-mode-autoloads adaptive-wrap-autoloads
anti-zenburn-theme-autoloads autopair-autoloads bm-autoloads
boxquote-autoloads dash-autoloads diminish-autoloads ebib-autoloads
edit-server-autoloads expand-region-autoloads jump-char-autoloads
magit-autoloads multiple-cursors-autoloads offlineimap-autoloads
pandoc-mode-autoloads unfill-autoloads wc-mode-autoloads
writeroom-mode-autoloads info easymenu package time-date tooltip
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
register page menu-bar rfn-eshadow timer select scroll-bar mouse
jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer loaddefs button faces cus-face macroexp files text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind inotify
dynamic-setting system-font-setting font-render-setting move-toolbar gtk
x-toolkit x multi-tty emacs)

--=20
Joost Kremers, PhD
University of G=C3=B6ttingen
Institute for German Philology
K=C3=A4te-Hamburger-Weg 3
37073 G=C3=B6ttingen, Germany




Acknowledgement sent to Joost Kremers <joost.kremers@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#13917; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.