From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#53773: 27.2; Flyspell delays region overlay update when the region is overwritten Date: Wed, 03 Aug 2022 13:17:31 +0200 Message-ID: <87iln9vano.fsf@gnus.org> References: 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="18995"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 53773@debbugs.gnu.org To: Andrea Greselin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 03 13:26:32 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1oJCWG-0004mY-Lp for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Aug 2022 13:26:32 +0200 Original-Received: from localhost ([::1]:51928 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJCWF-0004JM-PI for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Aug 2022 07:26:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJCO3-0004lP-W8 for bug-gnu-emacs@gnu.org; Wed, 03 Aug 2022 07:18:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56531) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJCO2-0006NE-KT for bug-gnu-emacs@gnu.org; Wed, 03 Aug 2022 07:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJCO2-0007xz-9g for bug-gnu-emacs@gnu.org; Wed, 03 Aug 2022 07:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Aug 2022 11:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53773 X-GNU-PR-Package: emacs Original-Received: via spool by 53773-submit@debbugs.gnu.org id=B53773.165952546430573 (code B ref 53773); Wed, 03 Aug 2022 11:18:02 +0000 Original-Received: (at 53773) by debbugs.gnu.org; 3 Aug 2022 11:17:44 +0000 Original-Received: from localhost ([127.0.0.1]:46274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJCNk-0007x3-3L for submit@debbugs.gnu.org; Wed, 03 Aug 2022 07:17:44 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:39644) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJCNh-0007wl-O5 for 53773@debbugs.gnu.org; Wed, 03 Aug 2022 07:17:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=nKMkTlYFpQIosffXvLQe9B+qe/ewJaYUlGll5IraW10=; b=ZysVeKhEATG+Q4YK7/fMaQVqXj /EjDuWTkjbUj+G59Nde+yJ1T/e75LaoXnEsrPxg3JZ9JWYp1OUnG52TYAm/uppu8fJ2Do8ZiRPlAJ LHmGEIcQea9d8amLuJPJDNLQN9uz+RRdNgGYitsxA76lukKkpYRc1DMtX0HT7INdc+qY=; Original-Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oJCNZ-00032P-4J; Wed, 03 Aug 2022 13:17:35 +0200 In-Reply-To: (Andrea Greselin's message of "Tue, 2 Aug 2022 18:11:57 +0200") X-Now-Playing: David Sylvian's _Brilliant Trees_: "Nostalgia" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:238632 Archived-At: Andrea Greselin writes: > Issuing a =E2=80=98(deactivate-mark)=E2=80=99 right before the line > > (and (not unread-command-events) > > solves the problem but I don't know if it has any unwanted side > effects or if it's a good way to go about it. By the way this bug > also affects Emacs 28.1. So the proposed change is the patch below, but I'm not really familiar with this code. Anybody have any comments? diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index 2c5e30fecd..883137d5bd 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el @@ -856,6 +856,7 @@ flyspell-check-word-p ((get this-command 'flyspell-delayed) ;; The current command is not delayed, that ;; is that we must check the word now. + (deactivate-mark) (and (not unread-command-events) (sit-for flyspell-delay))) (t t)))