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#17730: 24.4.50; (elisp) `Syntactic Font Lock': undescribed OTHER-VARS Date: Fri, 29 Apr 2016 22:41:44 +0200 Message-ID: <87fuu4p2pj.fsf@gnus.org> References: <7823b16e-d906-47b3-a05f-c094aa795555@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1461962562 19450 80.91.229.3 (29 Apr 2016 20:42:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Apr 2016 20:42:42 +0000 (UTC) Cc: 17730@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 29 22:42:30 2016 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 1awFF8-0002WA-L2 for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Apr 2016 22:42:30 +0200 Original-Received: from localhost ([::1]:56269 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awFF4-0002SI-Pj for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Apr 2016 16:42:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awFEv-0002EN-BF for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 16:42:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awFEj-0003nb-Ho for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 16:42:11 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awFEj-0003lc-De for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 16:42:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1awFEg-0005lo-24 for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 16:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Apr 2016 20:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17730 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17730-submit@debbugs.gnu.org id=B17730.146196250922155 (code B ref 17730); Fri, 29 Apr 2016 20:42:02 +0000 Original-Received: (at 17730) by debbugs.gnu.org; 29 Apr 2016 20:41:49 +0000 Original-Received: from localhost ([127.0.0.1]:55952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awFES-0005lH-Vs for submit@debbugs.gnu.org; Fri, 29 Apr 2016 16:41:49 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:50541) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awFER-0005l9-Ct for 17730@debbugs.gnu.org; Fri, 29 Apr 2016 16:41:47 -0400 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1awFEO-0002cu-LT; Fri, 29 Apr 2016 22:41:46 +0200 In-Reply-To: <7823b16e-d906-47b3-a05f-c094aa795555@default> (Drew Adams's message of "Sat, 7 Jun 2014 21:23:41 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:117264 Archived-At: Drew Adams writes: > The doc refers to "an OTHER-VARS element in `font-lock-defaults': > > Variable: font-lock-syntactic-face-function > If this variable is non-`nil', it should be a function to determine > which face to use for a given syntactic element (a string or a > comment). The value is normally set through an OTHER-VARS element > in `font-lock-defaults'. > > Incomprehensible. There is no "an OTHER-VARS element" described > anywhere in the doc of `font-lock-defaults' or in the link in the next > paragraph (node `Faces for Font Lock'). After looking through font-core.el for several seconds, I don't have any idea, either, what this is supposed to mean. This is the full text: The previous version was: -Specify this variable using @var{other-vars} in @code{font-lock-defaults}. and -Major modes normally set this variable with @var{other-vars} in -@code{font-lock-defaults}. but vc-region-history on the doc string of that variable seems to say that it has never talked about "other-vars". Anybody want to take a guess at what this is supposed to mean? -- Variable: font-lock-syntactic-face-function If this variable is non-=91nil=92, it should be a function to determine which face to use for a given syntactic element (a string or a comment). The value is normally set through an OTHER-VARS element in =91font-lock-defaults=92. The function is called with one argument, the parse state at point returned by =91parse-partial-sexp=92, and should return a face. The default value returns =91font-lock-comment-face=92 for comments and =91font-lock-string-face=92 for strings (*note Faces for Font Lock::). --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no