From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.devel Subject: Re: font-lock-fontify-block Date: Thu, 11 Mar 2021 20:19:51 +0000 Message-ID: <30f0a4188e1021e37d57@heytings.org> References: <87a6sbg41o.fsf@gnus.org> <87lfatirk1.fsf@gnus.org> <83blbpmy2x.fsf@gnu.org> <837dmdmw60.fsf@gnu.org> <30f0a4188eac8da31543@heytings.org> <30f0a4188e796ef64509@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15345"; 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 Thu Mar 11 21:21:42 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 1lKRoR-0003nR-8p for ged-emacs-devel@m.gmane-mx.org; Thu, 11 Mar 2021 21:21:39 +0100 Original-Received: from localhost ([::1]:54976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKRoQ-0001JW-Ah for ged-emacs-devel@m.gmane-mx.org; Thu, 11 Mar 2021 15:21:38 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKRmm-00008B-L4 for emacs-devel@gnu.org; Thu, 11 Mar 2021 15:19:56 -0500 Original-Received: from heytings.org ([95.142.160.155]:55870) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKRmk-0006Ei-Dt for emacs-devel@gnu.org; Thu, 11 Mar 2021 15:19:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1615493992; bh=6eai/oIT40oikDWEUKP8zTkLX8eu55zX5idy2l5iDQA=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=aeh+cv24Lob7hwwq8xJHbjOiC368wGfOgUs//UniovLB1Z+kh+/dBLYpzXAqbbrmt YiSkow0GlXDjbiKpv1PJzprGAyYfuXgpsI84E7y70BxIlfDqmpBZvzUgsUO4dPXNm9 eghf3Uk3vC3lAzI86iw4tVhXUWk0eQ+JtWgp8gHhyP3Ja8f4VRwtfBUl0syQi4taLg 87HuLddvRr4CA0cncDdu+1qRAnKvezO8MFUthceFoVGnGFHuc6QZDUQgxT0jmWTTK2 etKfkQJ/gwFoQtPCf3Rc1UxJfd8Evir24bv+oS1MDytTYujBxT1clMdaqNwiOVR+aG aHhMK0mX5128g== In-Reply-To: Received-SPF: pass client-ip=95.142.160.155; envelope-from=gregory@heytings.org; helo=heytings.org 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:266359 Archived-At: > > Indeed (but that one, just like `font-lock-fontify-block`) suffers from > a heavy heritage so it's messy and misused, so I'd be very happy to > obsolete it (by replacing it with something simpler and that only caters > to the relevant cases). > In that case I would perhaps suggest: (defun font-lock-refontify (&optional arg) (interactive "P") (font-lock-flush (if arg (point-min) (window-start)) (if arg (point-max) (window-end)))) (global-set-key (kbd "C-x x f") 'font-lock-refontify) (global-set-key (kbd "C-x x F") 'font-lock-mode)