From: Jeff Norden <jnorden@tntech.edu>
To: Eli Zaretskii <eliz@gnu.org>
Cc: stefankangas@gmail.com, monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: [PATCH] Remove obsolete fast-lock and lazy-lock libraries
Date: Sun, 09 Aug 2020 16:34:43 -0500 [thread overview]
Message-ID: <fdsgcv8pvw.fsf@norden.tntech.edu> (raw)
In-Reply-To: <83mu336i18.fsf@gnu.org> (message from Eli Zaretskii on Sun, 09 Aug 2020 16:54:59 +0300)
Alan Mackenzie writes:
> This doesn't make sense, I think. font-lock-support-mode is a function,
> and if a user has this set to a non-existent function, the correct
> response is surely to tell her with an error message, rather than
> executing a different function.
>
> The only reason anybody nowadays would set f-l-s-m to 'fast-lock-mode
> would be for debugging. Let's not make that debugging any more
> difficult than it already is.
Stefan Monnier writes:
> IMNSHO, that variable should not be a defcustom any more and we
> shouldn't encourage users to touch it. IOW we should mark it obsolete.
>
> We could OTOH add a new command to enter a form of
> `font-lock-debug-mode` which could disable the use of jit-lock (but not
> necessarily in exactly the same way as setting `font-lock-support-mode`
> would, tho it would probably be the most obvious immediate choice in the
> short term).
I guess my suggestion was to change f-l-s-m to a boolean flag in order
to make debugging *easier*. My own experience, as someone previously
unfamiliar with the font-lock code, was that it took me a while to
discover that setting f-l-s-m to nil is the way to use font-lock
directly, without jit-lock "support". Neither setting the jit-lock-mode
variable nor calling (jit-lock-mode nil) does this. The latter will
turn off jit-lock, but doesn't tell font-lock to install its default
change functions.
I was also thinking that treating any non-nil value by using jit-Lock
would provide better backward compatibility. I later realized that this
is actually a moot point. The only way that setting f-l-s-m to
'fast-lock-mode will currently work is to also (require 'fast-lock), and
that is going to crash-and-burn once fast-lock-mode.el is gone.
Personally, I like Stefan M's suggestion of creating a new function or
variable and marking f-l-s-m as obsolete, but Eli's point that this
could be disruptive to people who are currently using f-l-s-m for
debugging is also well taken. Anything that makes it clear how to
disable Jit Lock while still using Font Lock seem like an improvement
to me.
Thanks,
-Jeff
next prev parent reply other threads:[~2020-08-09 21:34 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.45.1596816008.14576.emacs-devel@gnu.org>
2020-08-09 4:04 ` [PATCH] Remove obsolete fast-lock and lazy-lock libraries Jeff Norden
2020-08-09 13:54 ` Eli Zaretskii
2020-08-09 19:21 ` Jeff Norden
2020-08-09 19:53 ` Stefan Monnier
2020-08-10 2:30 ` Eli Zaretskii
2020-08-10 4:02 ` Stefan Monnier
2020-08-10 14:02 ` Eli Zaretskii
2020-08-10 22:25 ` Stefan Monnier
2020-08-11 15:12 ` Eli Zaretskii
2020-08-12 18:08 ` Stefan Kangas
2020-08-12 18:28 ` Eli Zaretskii
2020-08-12 18:53 ` Stefan Kangas
2020-08-12 19:12 ` Eli Zaretskii
2020-08-12 20:25 ` Stefan Kangas
2020-08-13 13:36 ` Eli Zaretskii
2020-08-13 14:00 ` Stefan Monnier
2020-08-13 15:02 ` Stefan Kangas
2020-08-13 14:51 ` Stefan Kangas
2020-08-13 21:30 ` Jeff Norden
2020-08-14 6:11 ` Eli Zaretskii
2020-08-14 13:32 ` Stefan Monnier
2020-08-10 11:04 ` Alan Mackenzie
2020-08-10 12:07 ` Stefan Monnier
2020-08-10 17:25 ` Alan Mackenzie
2020-08-10 22:19 ` Stefan Monnier
2020-08-12 19:12 ` Alan Mackenzie
2020-08-11 3:26 ` Richard Stallman
2020-08-11 7:00 ` Jeff Norden
2020-08-09 21:34 ` Jeff Norden [this message]
2020-08-10 13:50 ` Eli Zaretskii
2020-08-10 16:59 ` Jeff Norden
2020-08-09 16:28 ` Stefan Kangas
2020-08-09 16:40 ` Alan Mackenzie
2020-08-09 20:32 ` Stefan Kangas
2020-08-09 20:49 ` Stefan Monnier
2020-08-12 18:08 ` Stefan Kangas
[not found] <20200515175844.18941.61355@vcs0.savannah.gnu.org>
[not found] ` <20200515175845.997EC20999@vcs0.savannah.gnu.org>
2020-05-15 18:38 ` Deleting old `:version` from defcustoms (was: master b76cdd0: Delete libraries obsolete since 23.1 and 23.2) Stefan Monnier
2020-05-15 20:58 ` Stefan Kangas
2020-08-07 15:42 ` [PATCH] Remove obsolete fast-lock and lazy-lock libraries (was: Re: Deleting old `:version` from defcustoms) Stefan Kangas
2020-08-08 2:19 ` [PATCH] Remove obsolete fast-lock and lazy-lock libraries Stefan Monnier
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=fdsgcv8pvw.fsf@norden.tntech.edu \
--to=jnorden@tntech.edu \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=stefankangas@gmail.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.