From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Signal `quit' in a `font-lock-fontify-region-function' Date: Tue, 28 May 2019 13:50:09 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="262654"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Emacs developers To: Paul Pogonyshev Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 28 19:51:17 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.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hVgFo-00169h-4D for ged-emacs-devel@m.gmane.org; Tue, 28 May 2019 19:51:16 +0200 Original-Received: from localhost ([127.0.0.1]:40420 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVgFn-0007y8-6P for ged-emacs-devel@m.gmane.org; Tue, 28 May 2019 13:51:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVgEo-0007xp-DK for emacs-devel@gnu.org; Tue, 28 May 2019 13:50:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVgEn-0004l3-DZ for emacs-devel@gnu.org; Tue, 28 May 2019 13:50:14 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:62650) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVgEn-0004jn-8B for emacs-devel@gnu.org; Tue, 28 May 2019 13:50:13 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 46412101204; Tue, 28 May 2019 13:50:12 -0400 (EDT) Original-Received: from mail02.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 38349100A32; Tue, 28 May 2019 13:50:11 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1559065811; bh=pEcsNr9DdQXjyE/PsOPNU5ZWCWbeAu0P1cH4BZmGRkw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=bUA2NXeQDeIiGfNc0IheB+DmTyVelxI4Aa6s0c7uWv0H6PAaEX1swY2RcEjxAAwgd U+oPTLpmnvQVe4zN+dhuc3uLJpoX6B++7MHO6P5butgdTALjCYCYH75rfwvC4kXiMu dvwMr+E9bUVHyWhf93syn7GJqveKn7EwCOLegwrZXuPZpFTW82xoXqTgSGmEOJPhj2 uzgGr22FHjvJ9LxDaqpZM3V++syCf34vlY5OdJruEl+q7Dnr3+l2EkqdB3kT0SYkb1 Ss1iYI0ETUv7ytCA/3GLNnVZ3JF5IrgAS0ZRPtueUD/pkj5PYeD0FYiyg25KmUy5Co GJnaqK31bdXgA== Original-Received: from alfajor (192-171-44-92.cpe.pppoe.ca [192.171.44.92]) by mail02.iro.umontreal.ca (Postfix) with ESMTPSA id DFDF5120775; Tue, 28 May 2019 13:50:10 -0400 (EDT) In-Reply-To: (Paul Pogonyshev's message of "Tue, 28 May 2019 18:24:52 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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:237116 Archived-At: > But would it make sense to adjust fontification code to disable > fontification in the current buffer if fontification function is > killed with C-g several times? Yes but: there's the obvious question of "how many C-g are necessary", as well as making sure this doesn't misfire just because the user hits C-g several times for some other reason. IOW, to do this, we'd need to make sure that Emacs was busy font-locking this one buffer during all this time, or something like that. Also, I get the impression that we'd want this kind of behavior for more than just font-lock. Stefan