GNU bug report logs - #6310
hi-lock-set-pattern, font-lock-mode, overlays and occur

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: wishlist; Reported by: Lennart Borgman <lennart.borgman@HIDDEN>; dated Sun, 30 May 2010 01:22:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Chong Yidong <cyd@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 30 May 2010 01:21:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 29 21:21:43 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1OIXDi-0006TD-Ag
	for submit <at> debbugs.gnu.org; Sat, 29 May 2010 21:21:42 -0400
Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <lennart.borgman@HIDDEN>) id 1OIXDh-0006T8-4O
	for submit <at> debbugs.gnu.org; Sat, 29 May 2010 21:21:41 -0400
Received: from lists.gnu.org ([199.232.76.165]:37650)
	by monty-python.gnu.org with esmtps
	(TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60)
	(envelope-from <lennart.borgman@HIDDEN>) id 1OIXDd-0003VW-El
	for submit <at> debbugs.gnu.org; Sat, 29 May 2010 21:21:37 -0400
Received: from [140.186.70.92] (port=37796 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1OIXDc-0006RG-3C
	for bug-gnu-emacs@HIDDEN; Sat, 29 May 2010 21:21:36 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=unavailable version=3.3.1
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69)
	(envelope-from <lennart.borgman@HIDDEN>) id 1OIXDb-00074s-97
	for bug-gnu-emacs@HIDDEN; Sat, 29 May 2010 21:21:35 -0400
Received: from mail-yw0-f187.google.com ([209.85.211.187]:46536)
	by eggs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <lennart.borgman@HIDDEN>) id 1OIXDb-00074e-5P
	for bug-gnu-emacs@HIDDEN; Sat, 29 May 2010 21:21:35 -0400
Received: by ywh17 with SMTP id 17so90253ywh.1
	for <bug-gnu-emacs@HIDDEN>; Sat, 29 May 2010 18:21:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:received:mime-version:received:from:date
	:message-id:subject:to:content-type;
	bh=swwK7onnAWTaVIiDEAJm59R1F6C5dYb6QyKanfbN31o=;
	b=dmOJj5DiMjCcpPjeD9tEvrFCKsWI9bgG3ysx0DMOmyXsVSCp/WPb6H5fbw43UhCr1l
	+mbKt4sAsU7UosNv9U58sKXyN+mArH8W17EjaysXvDYD4lHwLpV+Jq3VpQI1rnXcDFsN
	bNaXpnUAAs81DMv/m02R5QWGlHE2eZqTUvUsc=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:from:date:message-id:subject:to:content-type;
	b=BTL07VaMn+MxO7aSgqtMdWBX2J2K5BKYHJotECXPrhoIQ6CO97DN3uETfFyHzktWW9
	GRH0nZFgRLTJ2a/d6SOL49d1L5r2N5FV+nxMOgk6uTELhrUAylBI9BXlsV9CVyS9bL3n
	oN2E1xBFrfO1eKST5yVr2ZCztwYNACoZ/acLE=
Received: by 10.101.28.39 with SMTP id f39mr2800445anj.69.1275182494161; Sat, 
	29 May 2010 18:21:34 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.100.44.20 with HTTP; Sat, 29 May 2010 18:21:14 -0700 (PDT)
From: Lennart Borgman <lennart.borgman@HIDDEN>
Date: Sun, 30 May 2010 03:21:14 +0200
Message-ID: <AANLkTinKEdFqBWdWMfZgfRYTG65tmOK4aVc2MKsTCPqM@HIDDEN>
Subject: hi-lock-set-pattern, font-lock-mode, overlays and occur
To: Emacs Bugs <bug-gnu-emacs@HIDDEN>
Content-Type: text/plain; charset=UTF-8
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6,
	seldom 2.4 (older, 4)
X-Spam-Score: -4.6 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
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/pipermail/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: -4.6 (----)

I will never understand font-lock-add-keywords, but here are some
thoughts about it and hi-lock-set-pattern.

hi-lock-set-pattern can operate with and without font lock. In the
latter case it uses overlays.

However it locks to me like it mixes those two ways a bit:

- It calls font-lock-add-keywords even when it is going to use overlays.

- Secondly it checks font-lock-fontified instead of font-lock-mode to
see whether to use overlays or not.

And it does not seem to know about jit-lock:

- It calls font-lock-fontify-buffer instead of jit-lock-refontify.


This mean that it can't work in ocurr buffers.

Beside that font-lock-mode is t in occur buffers. Is font lock used there, or?




Acknowledgement sent to Lennart Borgman <lennart.borgman@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#6310; 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.