From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Inconsistency in font-lock Date: Thu, 26 Apr 2007 12:00:20 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1177603921 6151 80.91.229.12 (26 Apr 2007 16:12:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 Apr 2007 16:12:01 +0000 (UTC) Cc: rudalics@gmx.at, emacs-devel@gnu.org To: "Herbert Euler" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 26 18:11:56 2007 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 1Hh6ZU-0005ld-CR for ged-emacs-devel@m.gmane.org; Thu, 26 Apr 2007 18:11:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hh6fE-0002qE-Ev for ged-emacs-devel@m.gmane.org; Thu, 26 Apr 2007 12:17:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hh6UB-0004vo-0I for emacs-devel@gnu.org; Thu, 26 Apr 2007 12:06:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hh6U8-0004r0-0w for emacs-devel@gnu.org; Thu, 26 Apr 2007 12:06:22 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hh6U7-0004qr-1K for emacs-devel@gnu.org; Thu, 26 Apr 2007 12:06:19 -0400 Original-Received: from tomts36.bellnexxia.net ([209.226.175.93] helo=tomts36-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hh6OM-0001tz-3v for emacs-devel@gnu.org; Thu, 26 Apr 2007 12:00:22 -0400 Original-Received: from pastel.home ([70.53.194.22]) by tomts36-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070426160020.YXUP1612.tomts36-srv.bellnexxia.net@pastel.home> for ; Thu, 26 Apr 2007 12:00:20 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 89EDF8070; Thu, 26 Apr 2007 12:00:20 -0400 (EDT) In-Reply-To: (Herbert Euler's message of "Thu\, 26 Apr 2007 23\:06\:18 +0800") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.97 (gnu/linux) X-detected-kernel: Solaris 8 (1) 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:70194 Archived-At: > I wrote a package these days, and I called the function. The code > is as in the previous message: > (if font-lock-defaults > (funcall font-lock-fontify-region-function start end nil)) > Since the issue is the amount of arguments in codes that actually > call it, I think `nil' here is not necessary. Calling font-lock-fontify-region-function like that it a mistake. You should call font-lock-fontify-region instead. So the argument is moot. Stefan