unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#46039: 26.3; Mention how to get _only_ syntactic font lock
@ 2021-01-22 16:58 Drew Adams
  2022-06-13 18:57 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2021-01-22 16:58 UTC (permalink / raw)
  To: 46039

Please see this question (and comments):

https://emacs.stackexchange.com/q/62926/105

I supposed, but wasn't sure, that the answer is to just set
`font-lock-keywords' to nil (e.g. using `font-lock-defaults').

I looked for doc that spoke to this directly, but didn't find any.  The
doc tells you how to do the _opposite_: get only search-based
font-locking, and not also syntactic font-locking.  But I didn't find
anything explicitly saying how to get only syntactic font-locking.

If I'm right that this isn't mentioned explicitly, please consider
mentioning it.  It's a reasonable use case.



In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32)
 of 2019-08-29
Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd
Windowing system distributor `Microsoft Corp.', version 10.0.18362
Configured using:
 `configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install 'CFLAGS=-O2 -static -g3''






^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#46039: 26.3; Mention how to get _only_ syntactic font lock
  2021-01-22 16:58 bug#46039: 26.3; Mention how to get _only_ syntactic font lock Drew Adams
@ 2022-06-13 18:57 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2022-06-13 18:57 UTC (permalink / raw)
  To: Drew Adams; +Cc: 46039

Drew Adams <drew.adams@oracle.com> writes:

> I looked for doc that spoke to this directly, but didn't find any.  The
> doc tells you how to do the _opposite_: get only search-based
> font-locking, and not also syntactic font-locking.  But I didn't find
> anything explicitly saying how to get only syntactic font-locking.
>
> If I'm right that this isn't mentioned explicitly, please consider
> mentioning it.  It's a reasonable use case.

I've now mentioned it in the Emacs 29 lispref manual.

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-13 18:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-22 16:58 bug#46039: 26.3; Mention how to get _only_ syntactic font lock Drew Adams
2022-06-13 18:57 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).