From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: jit-lock-antiblink-grace Date: Mon, 25 Nov 2019 21:07:05 +0000 Message-ID: References: <83k198ly94.fsf@gnu.org> <83sgnuh5cq.fsf@gnu.org> <87k17qozii.fsf@gmail.com> <83wobps0zy.fsf@gnu.org> <20191125184650.GA4496@ACM> <20191125192628.GC4496@ACM> <20191125201115.GD4496@ACM> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="27013"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Eli Zaretskii , Stefan Monnier , emacs-devel To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 25 22:08:14 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iZLaf-0006uA-Tg for ged-emacs-devel@m.gmane.org; Mon, 25 Nov 2019 22:08:14 +0100 Original-Received: from localhost ([::1]:48160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZLad-0006OP-H6 for ged-emacs-devel@m.gmane.org; Mon, 25 Nov 2019 16:08:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56657) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZLZo-0006O7-LO for emacs-devel@gnu.org; Mon, 25 Nov 2019 16:07:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZLZn-0005m7-J2 for emacs-devel@gnu.org; Mon, 25 Nov 2019 16:07:20 -0500 Original-Received: from mail-il1-x12a.google.com ([2607:f8b0:4864:20::12a]:36627) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iZLZm-0005lE-13; Mon, 25 Nov 2019 16:07:18 -0500 Original-Received: by mail-il1-x12a.google.com with SMTP id s75so15576709ilc.3; Mon, 25 Nov 2019 13:07:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=uFBD8ALYcLrZLDQ9nfAZbxftA4In82Ma80TUg1A7/cE=; b=LKdwikL4ZV8jZ7v66zvG3DlUrMye1kEaLXC+tptJ0bxh3zuFoiQHU+0pFcV6fbSDx+ vvz82agQnJtPW+vCSgiy38R0/hbbOvxj/6HFSAvnnrKVyY7RTR5VBMY+S9QUl2/UGOL7 lXDglkevu48Z0Xb3lJVUViZXgZ3BSD6NVUjzk1Wd8PIBxCOlidYK98qR0fybbk4h3gjf iWYbVemR2iwpv2uyxSRzip0V+YV6nafQOAcB4NL9M8HUWyduyTE/2Q7Unbrql3jTNtic JFyU8CltSM9HOJWTyV8VScVWKw7QPJ8Fkt09tDZ+5VcOL9pL6/k4S62aGZCnRRBj4r4J aOsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=uFBD8ALYcLrZLDQ9nfAZbxftA4In82Ma80TUg1A7/cE=; b=ZKQ/53FOvA+ANfyRSspWQMHZJmpICZN2/42Uyok9DPuRhCnE+Xbkvm9rcaTkK/q03e e+9SDiuSL+YIS7YVcTDB40nD1Vp0f98ncLQfH+PvgsJFigZ7cjf6QHrAXbpPaEQGWL/q +W563W8lTJeLz8YxQpPjmne/66u+RVpp23ekaiL8Ywfxd6OzkOxmtUmQYOpkqyuBdGQN cH+S+mx35Yvt7gkCk9m2rYkBc/NBaK/z7cBEys2oHzFJDnPg8s3Pf7lt4umts3+x8Gl8 pu0sfpV09RiFPLDpKjDCzaNzdWqMLtUt89/TvK24hM9nuCg5UXOfZ5fiqv5jhe9Czu4U +a7A== X-Gm-Message-State: APjAAAV5WXBdiqQrqIBvvWrPddzk3bekuqKjTt0lMS7l+/41Bjq8torB uabcqxLUgaElVYNYh1FxWE8R9E+7bsTEmJ7RPaxcAg== X-Google-Smtp-Source: APXvYqx9ElcVaecnAFJxv530QKwqUkti2qydTBtytz/F3ttDzKFhto1aPDODjynMT7QyivcE3o3yKtwJ4lkEZ1azA8Y= X-Received: by 2002:a92:9a4d:: with SMTP id t74mr16148182ili.9.1574716036509; Mon, 25 Nov 2019 13:07:16 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::12a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:242720 Archived-At: On Mon, Nov 25, 2019 at 8:23 PM Jo=C3=A3o T=C3=A1vora wrote: > > On Mon, Nov 25, 2019 at 8:11 PM Alan Mackenzie wrote: > > > For me, at least, point 1 doesn't hold. Having the fontification > > delayed until 2 seconds of inactivity would for me be intensely > > irritating. > > This is not how it works. The only thing that is delayed is > guaranteed to be unwanted, namely, fontifying as string > a big chunk of the buffer that we know wasn't a string > before the user opened a string. Actually, let me clarify this "guaranteed to be unwanted". The "unwanted" fontification of the large part of the buffer is guaranteed never to be fully correct, I think. But some of it _might_ be correct, and, as such, helpful, namely when you really want to define a multi-line string by first entering the quote, thus unbalancing the whole buffer (and incorrectly fontifying a part of it), paging down some lines, and then rebalancing it by entering another quote. (If it weren't so, we could downright abolish the behaviour, equivalent to setting jit-lock-antiblink-grace to infinity.) But even in that particular case, whose frequency I presume to be minute in proportion to the number of opened-and-closed strings, it can be argued that the patch has a benefit, since it's normally easier to spot where you want to end the new string made of existing non-string text when it's fontified as non-string text. The amount of CPU spent is also lower. Jo=C3=A3o T=C3=A1vora