]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix a typo in flymake.el
authorEli Zaretskii <eliz@gnu.org>
Thu, 28 Mar 2024 10:15:13 +0000 (12:15 +0200)
committerEshel Yaron <me@eshelyaron.com>
Thu, 28 Mar 2024 10:29:11 +0000 (11:29 +0100)
* lisp/progmodes/flymake.el (flymake--update-eol-overlays): Use
'save-restriction', not 'save-excursion'.  (Bug#69984)

(cherry picked from commit 6c1a11078b194ed536db17381aad9e159e486fee)

lisp/progmodes/flymake.el

index db00cc59c0ec60929de7de908111b3319d8e59f8..779c612f479779abcda750f72e0d3a4e36f2b7fe 100644 (file)
@@ -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)