GNU bug report logs - #69733
[PATCH] Flyspell (flyspell-word): do not force 'save-excursion' on timers

Previous Next

Package: emacs;

Reported by: Daniel Pettersson <daniel <at> dpettersson.net>

Date: Mon, 11 Mar 2024 14:39:01 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Dmitry Gutov <dmitry <at> gutov.dev>
To: Daniel Pettersson <daniel <at> dpettersson.net>, 69733 <at> debbugs.gnu.org
Subject: bug#69733: [PATCH] Flyspell (flyspell-word): do not force 'save-excursion' on timers
Date: Fri, 15 Mar 2024 17:59:25 +0200
On 11/03/2024 16:37, Daniel Pettersson wrote:
> As I understand the manual there is nothing that states that one should
> assume that you cant move the point in buffer with timers.  This is of
> course impossible to guarantee as any code can be calling
> accept-process-output.  But it seams like an good idea to have code that
> is triggered by post-command-hook to not impose such conditions.
> 
> This might seam like an mole whacking activity, and it most definitely
> is.

Speaking of mole whacking, a long-time potential FIXME here has been to 
rewrite flyspell in terms of timers, rather than sit-for.

Dropping unnecessary save-excusion-s would either happen automatically, 
or would be in the same general area anyway.




This bug report was last modified 1 year and 96 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.