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: Doing the impossible: magic font-lock-keywords-only changes Date: Thu, 4 Jun 2009 15:37:14 +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 1244160339 1876 80.91.229.12 (5 Jun 2009 00:05:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jun 2009 00:05:39 +0000 (UTC) To: Emacs-Devel devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 05 02:05:37 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 1MCMw7-00064h-Fp for ged-emacs-devel@m.gmane.org; Fri, 05 Jun 2009 02:05:32 +0200 Original-Received: from localhost ([127.0.0.1]:43365 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MCMw5-0007BC-3J for ged-emacs-devel@m.gmane.org; Thu, 04 Jun 2009 20:05:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MCMcz-0004k1-H5 for emacs-devel@gnu.org; Thu, 04 Jun 2009 19:45:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MCMcu-0004iz-FC for emacs-devel@gnu.org; Thu, 04 Jun 2009 19:45:44 -0400 Original-Received: from [199.232.76.173] (port=52853 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MCMTN-0006Xf-9Z for emacs-devel@gnu.org; Thu, 04 Jun 2009 19:35:49 -0400 Original-Received: from mail-fx0-f217.google.com ([209.85.220.217]:39229) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MCD8C-0005oQ-Ar for emacs-devel@gnu.org; Thu, 04 Jun 2009 09:37:20 -0400 Original-Received: by fxm17 with SMTP id 17so805131fxm.42 for ; Thu, 04 Jun 2009 06:37:15 -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:content-type:content-transfer-encoding; bh=gjCjiDNDDgidSOqlNIq0LTSkpNJ65GEePHO6iYRtN60=; b=psQBvjnM/2Tqy9MIJlZQpmC3ojI9y7OUHze2iFx4GXFUA6uF9czjve1VvQ/sanADb8 uraJNRcoqTupwpdsr3O0E/IH9Ppify/k/0coQtXfosL+3OdjqNXcX/v4DCLy3EfCvef5 HTizgQ0kaME3R/FVEQr/Cl/yqvanrhr0DKruQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=qhXeiiYB2BnkaoOH4A3jnlZ4U5+cKhWHAMBFwfgB19nVbfKsmcypdUbbSXIDCZ8kgF DXWD5teEjjMt4my3ZxEwzbfxuzXwr68LVcK79HaAeOE0wKQ3WmrASOaGGd4YiO2vkYTB vAmURirNaiAh3SSHR1xMIN8zqkUmYSh0BuKgo= Original-Received: by 10.239.171.143 with SMTP id w15mr189326hbe.119.1244122634939; Thu, 04 Jun 2009 06:37:14 -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:111333 Archived-At: Todays question: Can You when You execute this (message "YY:before: font-lock-keywords-only =%s in buffer %s, def=%s" font-lock-keywords-only (current-buffer) (default-value font-lock-keywords-only)) (if (nth 1 defaults) (set (make-local-variable 'font-lock-keywords-only) t) (kill-local-variable 'font-lock-keywords-only)) (message "YY:after : font-lock-keywords-only =%s in buffer %s, def=%s" font-lock-keywords-only (current-buffer) (default-value font-lock-keywords-only)) and gett this output? : YY:before: font-lock-keywords-only =nil in buffer only-html.html, def=nil YY:after : font-lock-keywords-only =t in buffer only-html.html, def=t I can. Unfortunately. However I can only do this magic with MuMaMo. But I do not understand how it does it. Anyone? Hint: This is in a call from fontification-functions. And the function where I added the trace above is font-lock-set-defaults. I am taking a pause now. Some fresh air.