From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: cc-mode fontification feels random Date: Sun, 13 Jun 2021 16:25:18 +0100 Message-ID: <87r1h5u6qp.fsf@gmail.com> References: <86a85d26-75c0-e4a3-e8d3-244c5346dd3a@dancol.org> <83r1hehnz9.fsf@gnu.org> <83lf7mhl3n.fsf@gnu.org> <73ff18bf-66dc-7d7a-a0db-8edc2cdceba8@gmx.at> <4140fcf4-3119-3f3f-4ac4-24d497774754@gmx.at> <874ke2ulhc.fsf@gmail.com> <706b6214-5a85-3b47-3851-bb7742a066af@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17760"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Richard Stallman , emacs-devel , Stefan Monnier , Alan Mackenzie , Eli Zaretskii , Daniel Colascione To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 13 17:25:59 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lsRzr-0004MR-4Q for ged-emacs-devel@m.gmane-mx.org; Sun, 13 Jun 2021 17:25:59 +0200 Original-Received: from localhost ([::1]:40394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lsRzq-00029u-5X for ged-emacs-devel@m.gmane-mx.org; Sun, 13 Jun 2021 11:25:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsRzK-0001Tm-NK for emacs-devel@gnu.org; Sun, 13 Jun 2021 11:25:26 -0400 Original-Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:36812) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lsRzH-0005jH-0n; Sun, 13 Jun 2021 11:25:26 -0400 Original-Received: by mail-wm1-x32b.google.com with SMTP id h11-20020a05600c350bb02901b59c28e8b4so10887156wmq.1; Sun, 13 Jun 2021 08:25:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=Y0nHtlIReDRb8w71F67FDZ3nwjj6b3OwiM1yP51Kw0k=; b=e1hgtfXahcZU50EWS08T/y4bU7tppa4FZ5kGb1Yi0tfuye5y+EpYwuB6W3uMfhfVX3 pxQ5mtVti9FjXMMhF+4TftgrbHf+ohH1DshQOuJ1LXMFlFVIst7uWseheJ8ma8AXrw64 E/U/cRsJIXM2vsvU+qDfrjNBiP8FvYKqxR4vjIoEGoMjlnrIo/O25QAFrCQ+y1opAOOV NYLAetH1e+U58q7lQRgCwMUcxqW+y3wB1UmP2kwYn1ZIps6G4o5n+WHPWCrlUMactNHU psFZ7Ax5h1Zzs5rutlL8rEuMNwh2OYTb3iSNfL5j3LSC3eCRRAJTsO+4ALVXBkiVLMRH xZqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=Y0nHtlIReDRb8w71F67FDZ3nwjj6b3OwiM1yP51Kw0k=; b=sIg2vig/ZKC2cWH15YYsZthIZkm05/GYTEKSAXdq5QFVvfAX5EGe49UC3ibRCxfjov jCtSwUcd2mUVYCIWpTXTiOVy41mcIxO7J1jLmXLPfEytROlaVlERIvg6u52qBajGQPkZ 95+Iu04s3fpb9zFmQpwmZYlR/hBr3DxntCQwT4gQmfqQ5lLynFCF11B0HVB1h59jMK82 kk9Dw+8qvw+yEtTSu0qaZyi3Rvwn4DiznE4wIRYHjnrKzHPNhWinz1OJeSHmpQ6+Ctff 63pNUEsXi/O645rPaT2t+ttbivuditwWqvJTLbQnXWfU8EI+hGTuu3l9zzeVCFXsuaXy ua9A== X-Gm-Message-State: AOAM531QKUBOXByxVfTFKZkyyYJBbl0HhX5I3UA3SdNXD3qXSb6MBOwB ZdsEmIoFOEHRKj5yKfpKUT4= X-Google-Smtp-Source: ABdhPJy40No8oOWKxOciBWp80twop6gSRiXiyObPJOCfK9Z0Pcupx68jeDIfox0+uTQt0+5bBZcfGw== X-Received: by 2002:a05:600c:3555:: with SMTP id i21mr14306432wmq.51.1623597921069; Sun, 13 Jun 2021 08:25:21 -0700 (PDT) Original-Received: from krug (a94-133-55-152.cpe.netcabo.pt. [94.133.55.152]) by smtp.gmail.com with ESMTPSA id u20sm10820691wmq.24.2021.06.13.08.25.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Jun 2021 08:25:20 -0700 (PDT) In-Reply-To: <706b6214-5a85-3b47-3851-bb7742a066af@gmx.at> (martin rudalics's message of "Sun, 13 Jun 2021 16:52:11 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=joaotavora@gmail.com; helo=mail-wm1-x32b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:270799 Archived-At: martin rudalics writes: > The two `line-beginning-position' calls and the `copy-marker' are > gratuitous though. One good way to demonstrate such a claim that is to show a patch that doesn't change behaviour where this gratutiousness isn't present. I'll be happy to merge it. > This should become a minor mode and crowd `post-command-hook' > only if enabled - otherwise you needlessly punish electric users.=20=20 There is the variable jit-lock-antiblink-grace. electric-pair-mode -- which I also designed in its current form -- isn't on by default. The code in jit-lock-antiblink-grace could theoretically check for it, but IMO it's a non-issue: as I mentioned I benchmarked the effects of this in large files according to specific instructions by Eli who was also concerned about the performance hit and found no evidence of any kind of punishment. > And it should be documented somewhere. See C-h v jit-lock-antiblink-grace. >> I didn't know it was customizbale (or rather didn't bother to check, I >> admit). But again, I seem to remember that customizing it back to nil >> wasn't an option and that Emacs would break. Maybe that has changed? >> Is it really truly optional? > > Sure. If it's a performance-only optimization with non-zero functional detriment it should be off by default. Jo=C3=A3o