From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Paul W. Rankin" via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: master 2399541: Remove font-lock toggle from font-lock-update Date: Thu, 25 Mar 2021 01:29:50 +1000 Message-ID: <138D4F00-6833-49E5-91CD-50A33262A6B5@bydasein.com> References: <20210324143048.23515.75257@vcs0.savannah.gnu.org> <20210324143050.40C6E20D10@vcs0.savannah.gnu.org> Reply-To: "Paul W. Rankin" Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.7\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14294"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Mar 24 16:31:54 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 1lP5UA-0003c4-LE for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Mar 2021 16:31:54 +0100 Original-Received: from localhost ([::1]:57646 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lP5U9-0001aw-M5 for ged-emacs-devel@m.gmane-mx.org; Wed, 24 Mar 2021 11:31:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41694) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lP5So-0000aI-VZ for emacs-devel@gnu.org; Wed, 24 Mar 2021 11:30:31 -0400 Original-Received: from sendmail.purelymail.com ([34.202.193.197]:38220) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lP5SY-0000M0-B9 for emacs-devel@gnu.org; Wed, 24 Mar 2021 11:30:26 -0400 DKIM-Signature: a=rsa-sha256; b=hJ5IRYrBtYNrRfXPOwO0OV7VHubk0kx6Qo19h9WrBE7Kc8/5UD1n+pPwUL4+Gnzdkz47xjwbeo55d/oJUf2l69p7iO7U7Lfd15xp60XG3TheTiuI2D/UnSvbaahjTQEhhKbgmTiB6uGk3Uxr1eyMQyTX/kBg5K84KtiTy7cLvpDu4+AGoIsuRn0OE/LxxSWlj47RcRi2RsvXirTYG8dzA8juhSnWo8wi8j9438TClcqhdECcFPueCFAInIcpPBK3FjDn4UigEaawIYNIv+a58bsE2fFpO0YE9Ykv5yJUBVKJpinQN9B9bwX1HiNe+uf9LmHZ8bKZAuA1dOSuMoIzkg==; s=purelymail2; d=bydasein.com; v=1; bh=STAr8AsjvjhsQDuOl9hbmWo8Zt+od/eSwfv0wzioYlQ=; h=Received:From:To; DKIM-Signature: a=rsa-sha256; b=l7zOcxrcHAtbHxmi2r8sN9pkGlFw/UwW/DKl8m4deP4gRf6TdqffsqhQyrdwaodHQL788DRFDSfb72JOFnq4rZVOCXLVa7tUmECDo4l2LS2mHvGwsQ/9lTOZCKNdsZrCeiO0thyvVcFakCNPKT4Xg9A3YiTfoYMqoEDL6arH1jtL21sIAtMTcfUAdouAyFva0maep+VKqEqW7EFUSV5ZxijZ798qsPVJ9BKI9a5uBGQnBGJVwc3m8WoqihBfw69neW6QhKXe1GROq2uBOsAsWqI4gHRRbcGAW3Ayp53skEvSl0rG3CoAhxwLLfH6zmL+WfvbRpg/C/fBMHLLMCFC8g==; s=purelymail2; d=purelymail.com; v=1; bh=STAr8AsjvjhsQDuOl9hbmWo8Zt+od/eSwfv0wzioYlQ=; h=Feedback-ID:Received:From:To; Feedback-ID: 791:353:null:purelymail X-Pm-Original-To: emacs-devel@gnu.org Original-Received: by ip-172-30-0-124.ec2.internal (JAMES SMTP Server ) with ESMTPA ID -1654417616; Wed, 24 Mar 2021 15:29:56 +0000 (UTC) In-Reply-To: X-Mailer: Apple Mail (2.3445.9.7) Received-SPF: pass client-ip=34.202.193.197; envelope-from=pwr@bydasein.com; helo=sendmail.purelymail.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, SPF_HELO_PASS=-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:266962 Archived-At: > On 25 Mar 2021, at 1:23 am, Stefan Monnier = wrote: >=20 >> +(defun font-lock-update () >> + "Refontify the accessible portion of the buffer. >> +Unconditionally activate `font-lock-mode'." >> + (interactive) >> + (unless font-lock-mode (font-lock-mode 1)) >> (save-excursion >> + (font-lock-fontify-region (point-min) (point-max)))) >=20 > I don't see which part of the code corresponds to "the accessible = portion of". > AFAICT this will forcefully fontify the whole buffer which takes quite > a while on src/xdisp.c (for example). True, I mentioned this earlier with reference to var = `font-lock-dont-widen'. I'm just using at least some of the docstring = from the previous command I'm coming down on here. Ideally this would be = called something like `font-lock-force-update' with a more accurate = docstring.=