From: Eli Zaretskii <eliz@gnu.org>
To: "João Távora" <joaotavora@gmail.com>
Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: jit-lock-antiblink-grace
Date: Sun, 13 Oct 2019 09:39:11 +0300 [thread overview]
Message-ID: <835zktm9o0.fsf@gnu.org> (raw)
In-Reply-To: <CALDnm50oDNeF7qR7aA_1bVJ-ApPhAmOiAn46zubUC-saRuFZzg@mail.gmail.com> (message from João Távora on Sat, 12 Oct 2019 22:55:29 +0100)
> From: João Távora <joaotavora@gmail.com>
> Date: Sat, 12 Oct 2019 22:55:29 +0100
> Cc: emacs-devel <emacs-devel@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca>
>
> > It doesn't have to be like that. It depends on how you arrange for
> > the hook not to be added.
>
> I can only see one reasonably hacky way to arrange for:
>
> * the feature to be controlled via this variable
> * the hook to disappear from p-c-h when the variable is nil
>
> and that's to use an "ensure hook present/gone" technique somewhere in
> the places of the jit mode that the code is guaranteed to pass before
> the feature would kick in. It would feel hacky and so unjustified
> before any kind of performance measurements. Did you mean something
> like that or something completely different that I'm not following?
I didn't figure out the details, I thought it should be easy to do.
Don't we already do something like that in all kinds of places? The
:set attribute of a defcustom comes to mind, for example.
Alternatively, the timer you add could notice the change and take that
action. And I'm sure there are more ways of doing that. Or maybe I'm
missing something.
> > All I wanted to say was that the goal is almost in reach, and that you
> > don't need to give up in this case.
> > But if you think it's too hard, then okay, I will write the text when
> > the time comes.
>
> And all I wanted to say is that something a little more constructive,
> like a concrete suggestion, is whitin reach. I will try again in the
> next iteration. Shorter, more to the point in NEWS and idiot-proof spec
> in the docstring.
Thank you.
> > When I find a backward-incompatible change, I usually do try to see if
> > it's justified. So I think I already do what you ask me to do in
> > those other cases.
>
> From what I can remember, you didn't weigh in on the specific case I was
> referring to (the one being brought up again in the side thread), where
> c-mode was modified in a truly backward-incompatible, uncustomizable way
> to address a related problem.
I don't remember the particular case, but I can make mistakes, can I?
Anyway, I'm not sure I understand what you are trying to say here.
Are you saying that I treat you differently from others? If so,
that's not the case, and if I said something that could be interpreted
otherwise, I apologize.
> Furthermore, calling my proposed change
> "backward-incompatible" is something I don't fully understand. Perhaps
> you can clarify: what behaviours, actions, etc. were observed before
> that aren't observed now?
Very simply: the behavior is different from what we had previously.
Previously, starting a new comment would give me an almost immediate
visual feedback; now that feedback is delayed by 2 sec (more, or even
not at all, if I continue typing). How can we know that everybody
will instantly like this new behavior?
> > > Run-time consistency assertions are useful, right?
> >
> > Only as a debug option,
>
> Yes, I agree. But there is really no "debug" in Emacs, only
> debug-on-error.
That's not so: various packages define their own debug facilities.
Examples include Tramp and smtpmail.el. We could add a debug facility
to jit-lock.el as well, if you think it's important for this feature.
Thanks.
next prev parent reply other threads:[~2019-10-13 6:39 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-10 22:34 jit-lock-antiblink-grace João Távora
2019-10-11 14:26 ` jit-lock-antiblink-grace Stefan Monnier
2019-10-12 9:34 ` jit-lock-antiblink-grace Eli Zaretskii
2019-10-12 10:57 ` jit-lock-antiblink-grace João Távora
2019-10-12 13:02 ` jit-lock-antiblink-grace Juanma Barranquero
2019-10-12 13:14 ` jit-lock-antiblink-grace João Távora
2019-10-12 14:50 ` jit-lock-antiblink-grace Juanma Barranquero
2019-10-12 15:11 ` jit-lock-antiblink-grace João Távora
2019-10-12 15:30 ` jit-lock-antiblink-grace Juanma Barranquero
2019-10-12 13:32 ` jit-lock-antiblink-grace Eli Zaretskii
2019-10-12 14:13 ` jit-lock-antiblink-grace Stefan Monnier
2019-10-12 14:23 ` jit-lock-antiblink-grace Eli Zaretskii
2019-10-12 14:34 ` jit-lock-antiblink-grace Stefan Monnier
2019-10-12 15:57 ` jit-lock-antiblink-grace Eli Zaretskii
2019-10-12 17:16 ` jit-lock-antiblink-grace Stefan Monnier
2019-10-12 17:50 ` jit-lock-antiblink-grace Eli Zaretskii
2019-10-12 15:47 ` jit-lock-antiblink-grace Alan Mackenzie
2019-10-12 14:23 ` jit-lock-antiblink-grace João Távora
2019-10-12 16:04 ` jit-lock-antiblink-grace Eli Zaretskii
2019-10-12 21:55 ` jit-lock-antiblink-grace João Távora
2019-10-13 6:39 ` Eli Zaretskii [this message]
2019-10-13 8:47 ` jit-lock-antiblink-grace João Távora
2019-10-13 9:22 ` jit-lock-antiblink-grace Eli Zaretskii
2019-10-13 10:28 ` jit-lock-antiblink-grace João Távora
2019-10-13 10:45 ` jit-lock-antiblink-grace Eli Zaretskii
2019-10-14 23:29 ` jit-lock-antiblink-grace João Távora
2019-10-15 6:48 ` jit-lock-antiblink-grace Eli Zaretskii
2019-10-15 18:28 ` jit-lock-antiblink-grace João Távora
2019-11-24 1:04 ` jit-lock-antiblink-grace João Távora
2019-11-24 16:16 ` jit-lock-antiblink-grace Eli Zaretskii
2019-11-25 18:46 ` jit-lock-antiblink-grace Alan Mackenzie
2019-11-25 19:02 ` jit-lock-antiblink-grace João Távora
2019-11-25 19:26 ` jit-lock-antiblink-grace Alan Mackenzie
2019-11-25 19:45 ` jit-lock-antiblink-grace João Távora
2019-11-25 20:11 ` jit-lock-antiblink-grace Alan Mackenzie
2019-11-25 20:23 ` jit-lock-antiblink-grace João Távora
2019-11-25 21:07 ` jit-lock-antiblink-grace João Távora
2019-11-26 2:30 ` jit-lock-antiblink-grace João Távora
2019-11-26 17:58 ` jit-lock-antiblink-grace Eli Zaretskii
2019-11-30 19:11 ` jit-lock-antiblink-grace João Távora
2019-11-30 19:22 ` jit-lock-antiblink-grace Eli Zaretskii
2019-11-30 20:12 ` jit-lock-antiblink-grace João Távora
2019-11-30 20:16 ` jit-lock-antiblink-grace Eli Zaretskii
2019-11-30 20:19 ` jit-lock-antiblink-grace João Távora
2019-11-30 20:41 ` jit-lock-antiblink-grace Eli Zaretskii
2019-11-30 22:00 ` jit-lock-antiblink-grace João Távora
2019-12-01 18:13 ` jit-lock-antiblink-grace Eli Zaretskii
2019-12-04 22:45 ` jit-lock-antiblink-grace João Távora
2019-12-05 15:40 ` jit-lock-antiblink-grace Eli Zaretskii
2019-11-26 13:43 ` jit-lock-antiblink-grace Stefan Monnier
2019-11-25 19:47 ` jit-lock-antiblink-grace Dmitry Gutov
2019-11-25 20:03 ` jit-lock-antiblink-grace João Távora
2019-10-12 16:14 ` jit-lock-antiblink-grace Alan Mackenzie
2019-10-12 22:26 ` jit-lock-antiblink-grace João Távora
2019-10-13 10:18 ` jit-lock-antiblink-grace Alan Mackenzie
2019-10-13 10:48 ` jit-lock-antiblink-grace João Távora
2019-10-13 12:02 ` jit-lock-antiblink-grace Alan Mackenzie
2019-10-13 19:57 ` jit-lock-antiblink-grace João Távora
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=835zktm9o0.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=joaotavora@gmail.com \
--cc=monnier@iro.umontreal.ca \
/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.