GNU bug report logs - #17730
24.4.50; (elisp) `Syntactic Font Lock': undescribed OTHER-VARS

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Drew Adams <drew.adams@HIDDEN>; dated Sun, 8 Jun 2014 04:25:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 17730 <at> debbugs.gnu.org:


Received: (at 17730) by debbugs.gnu.org; 30 Apr 2016 23:06:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Apr 30 19:06:26 2016
Received: from localhost ([127.0.0.1]:58804 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1awdxu-0006L6-7J
	for submit <at> debbugs.gnu.org; Sat, 30 Apr 2016 19:06:26 -0400
Received: from mout.web.de ([212.227.15.4]:58503)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael_heerdegen@HIDDEN>) id 1awdxp-0006Kq-9m
 for 17730 <at> debbugs.gnu.org; Sat, 30 Apr 2016 19:06:21 -0400
Received: from drachen.dragon ([94.217.122.112]) by smtp.web.de (mrweb003)
 with ESMTPSA (Nemesis) id 0MXYTG-1b9JOd2Obm-00WYgt; Sun, 01 May 2016 01:06:05
 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#17730: 24.4.50;
 (elisp) `Syntactic Font Lock': undescribed OTHER-VARS
References: <7823b16e-d906-47b3-a05f-c094aa795555@default>
 <87fuu4p2pj.fsf@HIDDEN>
Date: Sun, 01 May 2016 01:06:04 +0200
In-Reply-To: <87fuu4p2pj.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Fri,
 29 Apr 2016 22:41:44 +0200")
Message-ID: <87inyyae8z.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (g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vU7/X
 MecJjqO4/N6EIP+da21zyOIByqk3rTpANRR/iJNu7J1fMKX4mL8ADL8xP/gE7kI5Mdv70CsCl
 MzsQrs9
X-Spam-Score: -1.7 (-)
X-Debbugs-Envelope-To: 17730
Cc: 17730 <at> debbugs.gnu.org, Drew Adams <drew.adams@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Lars Ingebrigtsen <larsi@HIDDEN> writes:

> Anybody want to take a guess at what this is supposed to mean?

Looks like this refers to this thing described in the doc of
`font-lock-defaults':

"Further item elements are alists of the form (VARIABLE . VALUE) and are
in no particular order.  Each VARIABLE is made buffer-local before set
to VALUE."

Also see the following sentences.

Maybe the docstring of `font-lock-defaults' has been changed, and a
further version used the name "OTHER-VARS".


Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#17730; Package emacs. Full text available.

Message received at 17730 <at> debbugs.gnu.org:


Received: (at 17730) by debbugs.gnu.org; 29 Apr 2016 20:41:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 29 16:41:49 2016
Received: from localhost ([127.0.0.1]:55952 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1awFES-0005lH-Vs
	for submit <at> debbugs.gnu.org; Fri, 29 Apr 2016 16:41:49 -0400
Received: from hermes.netfonds.no ([80.91.224.195]:50541)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1awFER-0005l9-Ct
 for 17730 <at> debbugs.gnu.org; Fri, 29 Apr 2016 16:41:47 -0400
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 <larsi@HIDDEN>)
 id 1awFEO-0002cu-LT; Fri, 29 Apr 2016 22:41:46 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Drew Adams <drew.adams@HIDDEN>
Subject: Re: bug#17730: 24.4.50;
 (elisp) `Syntactic Font Lock': undescribed OTHER-VARS
References: <7823b16e-d906-47b3-a05f-c094aa795555@default>
Date: Fri, 29 Apr 2016 22:41:44 +0200
In-Reply-To: <7823b16e-d906-47b3-a05f-c094aa795555@default> (Drew Adams's
 message of "Sat, 7 Jun 2014 21:23:41 -0700 (PDT)")
Message-ID: <87fuu4p2pj.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 17730
Cc: 17730 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

Drew Adams <drew.adams@HIDDEN> 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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#17730; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 8 Jun 2014 04:24:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 08 00:24:21 2014
Received: from localhost ([127.0.0.1]:40865 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1WtUea-0002Tv-Jx
	for submit <at> debbugs.gnu.org; Sun, 08 Jun 2014 00:24:20 -0400
Received: from eggs.gnu.org ([208.118.235.92]:54318)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <drew.adams@HIDDEN>) id 1WtUeY-0002Te-QS
 for submit <at> debbugs.gnu.org; Sun, 08 Jun 2014 00:24:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1WtUeJ-0005cM-EB
 for submit <at> debbugs.gnu.org; Sun, 08 Jun 2014 00:24:13 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:52283)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1WtUeJ-0005c9-B2
 for submit <at> debbugs.gnu.org; Sun, 08 Jun 2014 00:24:03 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:56003)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1WtUeA-0004v5-AN
 for bug-gnu-emacs@HIDDEN; Sun, 08 Jun 2014 00:24:03 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1WtUe1-0005Vj-Jd
 for bug-gnu-emacs@HIDDEN; Sun, 08 Jun 2014 00:23:54 -0400
Received: from userp1040.oracle.com ([156.151.31.81]:35404)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <drew.adams@HIDDEN>) id 1WtUe1-0005Vc-D9
 for bug-gnu-emacs@HIDDEN; Sun, 08 Jun 2014 00:23:45 -0400
Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238])
 by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id
 s584NfhP009136
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK)
 for <bug-gnu-emacs@HIDDEN>; Sun, 8 Jun 2014 04:23:42 GMT
Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86])
 by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s584Neci027286
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
 for <bug-gnu-emacs@HIDDEN>; Sun, 8 Jun 2014 04:23:41 GMT
Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20])
 by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id s584NcHr014693
 for <bug-gnu-emacs@HIDDEN>; Sun, 8 Jun 2014 04:23:39 GMT
MIME-Version: 1.0
Message-ID: <7823b16e-d906-47b3-a05f-c094aa795555@default>
Date: Sat, 7 Jun 2014 21:23:41 -0700 (PDT)
From: Drew Adams <drew.adams@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.4.50; (elisp) `Syntactic Font Lock': undescribed OTHER-VARS
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8  (707110) [OL
 12.0.6691.5000 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Source-IP: acsinet22.oracle.com [141.146.126.238]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic]
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

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').

And there is no "OTHER-VARS" anywhere in the Emacs Lisp code, other than
a presumably unrelated (and just as undescribed) occurrence in pcase.el.



In GNU Emacs 24.4.50.1 (i686-pc-mingw32)
 of 2014-06-01 on ODIEONE
Bzr revision: 117212 michael.albinus@HIDDEN
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=3D/c/Devel/emacs/snapshot/trunk
 --enable-checking=3Dyes,glyphs 'CFLAGS=3D-O0 -g3'
 LDFLAGS=3D-Lc:/Devel/emacs/lib 'CPPFLAGS=3D-DGC_MCHECK=3D1
 -Ic:/Devel/emacs/include''




Acknowledgement sent to Drew Adams <drew.adams@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#17730; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 30 Apr 2016 23:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.