all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 17730@debbugs.gnu.org
Subject: bug#17730: 24.4.50; (elisp) `Syntactic Font Lock': undescribed OTHER-VARS
Date: Fri, 29 Apr 2016 22:41:44 +0200	[thread overview]
Message-ID: <87fuu4p2pj.fsf@gnus.org> (raw)
In-Reply-To: <7823b16e-d906-47b3-a05f-c094aa795555@default> (Drew Adams's message of "Sat, 7 Jun 2014 21:23:41 -0700 (PDT)")

Drew Adams <drew.adams@oracle.com> 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-‘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’.

     The function is called with one argument, the parse state at point
     returned by ‘parse-partial-sexp’, and should return a face.  The
     default value returns ‘font-lock-comment-face’ for comments and
     ‘font-lock-string-face’ for strings (*note Faces for Font Lock::).



-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2016-04-29 20:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-08  4:23 bug#17730: 24.4.50; (elisp) `Syntactic Font Lock': undescribed OTHER-VARS Drew Adams
2016-04-29 20:41 ` Lars Ingebrigtsen [this message]
2016-04-30 23:06   ` Michael Heerdegen
2019-11-03 16:20     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fuu4p2pj.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=17730@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.