all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: acm@muc.de, joaotavora@gmail.com, emacs-devel@gnu.org
Subject: Re: Criticism of jit-lock--antiblink-post-command
Date: Wed, 27 Nov 2019 08:46:41 -0500	[thread overview]
Message-ID: <jwvk17lphd7.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <83sgmaq64l.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 27 Nov 2019 06:45:46 +0200")

>> The intention is that when it's not useful it's harmless.
>> IOW if there's a good reason to turn it off, it's probably a bug.
> I don't think I agree.  A post-command-hook that is not useful just
> takes CPU cycles, and likewise a timer which does nothing when its
> function is invoked.

AFAIK we don't try very hard to avoid such waste.
E.g. every time we run redisplay, it will check at every position if
there is a `display` or `invisible` property, even in those buffers
where no code ever has nor ever will add one of those properties.
[ This is just a random example, we have loads more, of course.  ]

> And in any case, a feature that changes behavior should have a knob to
> disable it.

We like such knobs in Emacs, indeed.  My argument was not against having
such a knob (which is already present in the suggested patch, AFAIK) but
in favor of keeping the feature enabled by default and encouraging
people to report problems when the encounter them rather than just turn
off the feature.


        Stefan




  reply	other threads:[~2019-11-27 13:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-26 19:52 Criticism of jit-lock--antiblink-post-command Alan Mackenzie
2019-11-26 20:51 ` Stefan Monnier
2019-11-27  4:45   ` Eli Zaretskii
2019-11-27 13:46     ` Stefan Monnier [this message]
2019-11-27 16:10       ` Eli Zaretskii
2019-11-26 21:09 ` João Távora
2019-11-27  5:54   ` Phil Sainty
2019-11-27  9:30     ` João Távora
2019-11-27 13:38       ` 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=jwvk17lphd7.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=acm@muc.de \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=joaotavora@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.