emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 6c1a11078b1: Fix a typo in flymake.el


From: Eli Zaretskii
Subject: master 6c1a11078b1: Fix a typo in flymake.el
Date: Thu, 28 Mar 2024 06:15:50 -0400 (EDT)

branch: master
commit 6c1a11078b194ed536db17381aad9e159e486fee
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Fix a typo in flymake.el
    
    * lisp/progmodes/flymake.el (flymake--update-eol-overlays): Use
    'save-restriction', not 'save-excursion'.  (Bug#69984)
---
 lisp/progmodes/flymake.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index db00cc59c0e..779c612f479 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -744,7 +744,7 @@ associated `flymake-category' return DEFAULT."
 
 (defun flymake--update-eol-overlays ()
   "Update the `before-string' property of end-of-line overlays."
-  (save-excursion
+  (save-restriction
     (widen)
     (dolist (o (overlays-in (point-min) (point-max)))
       (when (overlay-get o 'flymake--eol-overlay)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]