From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: font-lock-add-keywords: should font-lock-mode be turned off/on after that Date: Fri, 29 May 2009 19:50:12 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1243619432 10895 80.91.229.12 (29 May 2009 17:50:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 May 2009 17:50:32 +0000 (UTC) Cc: =?UTF-8?B?Wm9sdMOhbiBOYWd5?= To: Emacs-Devel devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 29 19:50:28 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MA6Dp-0002px-63 for ged-emacs-devel@m.gmane.org; Fri, 29 May 2009 19:50:25 +0200 Original-Received: from localhost ([127.0.0.1]:52769 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MA6Do-0004Ve-61 for ged-emacs-devel@m.gmane.org; Fri, 29 May 2009 13:50:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MA6Dj-0004Rm-Ai for emacs-devel@gnu.org; Fri, 29 May 2009 13:50:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MA6De-0004Ci-Ck for emacs-devel@gnu.org; Fri, 29 May 2009 13:50:18 -0400 Original-Received: from [199.232.76.173] (port=49103 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MA6De-0004CE-5y for emacs-devel@gnu.org; Fri, 29 May 2009 13:50:14 -0400 Original-Received: from mail-fx0-f169.google.com ([209.85.220.169]:38385) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MA6Dd-0004L8-N8 for emacs-devel@gnu.org; Fri, 29 May 2009 13:50:13 -0400 Original-Received: by fxm17 with SMTP id 17so6942477fxm.42 for ; Fri, 29 May 2009 10:50:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=IcBSLPi5O7ZykGFADau2n0czndqJN+pvH9TTI5Fey3I=; b=mxVcBNKgfjEPJQmHK2k1BWsCa0L1NCKb45phg/dHW6xeCNlrNzy37B4WmCC3n/tLLI q1VktrOr9iSNM7z1DzuA0SYaQxX4nkG+o/ZuP8Wpdfk5aGjm5aGlOu4uejuIbJIlPS+H 4uJhoVI2teAyh46BIyHSYb2q/vhVieiZqeb28= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=pVjs8GutGluMBKYemOni81FQ3SimdJ6imL87STGOrOmrHTXAutCx+Qd++ESkThSz7L 8YPSv3sdas1XgfhIyBVsZUz8xR1GzUXw8B8dnc2yEtnA7cj+I0nU4mh02NqjWpy2qiiv p+kmUFahwoC2o8fn/qZYinoVW9NUZwmLtScFw= Original-Received: by 10.239.146.211 with SMTP id x19mr232251hba.129.1243619412473; Fri, 29 May 2009 10:50:12 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:111203 Archived-At: If you add keywords (font-lock-add-keywords nil doxymacs-doxygen-keywords) Do you have to do (font-lock-mode -1) (font-lock-mode 1) after that? It looks to me from the code like it is not necessary, but I in the case above font-lock did not work without turning off/on font-lock. Actually after (defun my-doxymacs-font-lock () (require 'doxymacs) (message "before (doxymacs-font-lock)") (doxymacs-font-lock) (message "after (doxymacs-font-lock)")) (add-hook 'php-mode-hook 'my-doxymacs-font-lock) and doing M-x php-mode there was no fontification at all until font-lock was turned off/on and then the keywords worked too. It looks to me that there can be some kind of problem with doxymacs-doxygen-keywords. Is there some way of checking that? Or is it something with font-lock-add-keywords?