From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#15120: 24.3.50; (elisp) `Search-based Fontification': unspecified MATCHER cases Date: Fri, 07 Feb 2014 21:06:09 -0800 Message-ID: <87a9e242im.fsf@building.gnus.org> References: <4e841492-80d7-45a1-b874-afc15d2701c6@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391836090 15316 80.91.229.3 (8 Feb 2014 05:08:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Feb 2014 05:08:10 +0000 (UTC) Cc: 15120@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 08 06:08:18 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WC09H-0007Jt-V0 for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Feb 2014 06:08:16 +0100 Original-Received: from localhost ([::1]:44948 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WC09H-0001q0-DF for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Feb 2014 00:08:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WC099-0001pJ-H8 for bug-gnu-emacs@gnu.org; Sat, 08 Feb 2014 00:08:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WC094-0001Gl-I4 for bug-gnu-emacs@gnu.org; Sat, 08 Feb 2014 00:08:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WC094-0001Gh-EO for bug-gnu-emacs@gnu.org; Sat, 08 Feb 2014 00:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WC094-0000Do-22 for bug-gnu-emacs@gnu.org; Sat, 08 Feb 2014 00:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Feb 2014 05:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15120 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15120-submit@debbugs.gnu.org id=B15120.1391836054798 (code B ref 15120); Sat, 08 Feb 2014 05:08:02 +0000 Original-Received: (at 15120) by debbugs.gnu.org; 8 Feb 2014 05:07:34 +0000 Original-Received: from localhost ([127.0.0.1]:56022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WC08b-0000Cn-SQ for submit@debbugs.gnu.org; Sat, 08 Feb 2014 00:07:34 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:36623) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WC08a-0000Ce-2B for 15120@debbugs.gnu.org; Sat, 08 Feb 2014 00:07:32 -0500 Original-Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1WC08L-0005OZ-52; Sat, 08 Feb 2014 06:07:17 +0100 In-Reply-To: <4e841492-80d7-45a1-b874-afc15d2701c6@default> (Drew Adams's message of "Sat, 17 Aug 2013 10:33:13 -0700 (PDT)") User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux) X-MailScanner-ID: 1WC08L-0005OZ-52 MailScanner-NULL-Check: 1392440838.11927@069MQBUoH+GN2zToZJnkjw X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:84885 Archived-At: Drew Adams writes: > The doc string is good in this regard, but the Elisp manual is not. > > The manual says that an element can be FUNCTION. OK. > > And it says, for (MATCHER . SUBEXP), that MATCHER can be a function. OK. > > But it does not say that for all of the other (MATCHER . *) patterns > MATCHER can also be a function. In fact, for the others MATCHER is left > unspecified. > > And for (MATCHER . SUBEXP-HIGHLIGHTER) the doc actually refers to a > "SUBEXP in MATCHER", which suggests, but does not specify, that MATCHER > in this case can be or perhaps even *must be* a REGEXP. > > Follow the example of the doc string, or state somewhere that MATCHER, > in all that follows, can be either a regexp or a function... > > IOW, make clear just what MATCHER can be, in general or in each of the > cases. I see what you mean, but if you read the page from the start to finish, you see that it explains what all meta-syntactical are once. It says what MATCHER is the first time it talks about it, and then it just describes what each new element is. So I think the page is OK as is. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/