]> git.eshelyaron.com Git - emacs.git/commitdiff
Make a flymake.texi code example more resilient
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 10 Sep 2022 04:52:39 +0000 (06:52 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 10 Sep 2022 04:52:39 +0000 (06:52 +0200)
* doc/misc/flymake.texi (An annotated example backend): Make the
example code resilient wrt. narrowed buffers (bug#51437).

doc/misc/flymake.texi

index b4e7f3a41f882d732b98e97cda82bc2e614d0afb..7406557623f69696e4e3d1ed5fbfce14d8f6f65e 100644 (file)
@@ -801,6 +801,7 @@ Binding,,, elisp, The Emacs Lisp Reference Manual}) to be active.
                        for type = (if (string-match "^warning" msg)
                                       :warning
                                     :error)
+                       when (and beg end)
                        collect (flymake-make-diagnostic source
                                                         beg
                                                         end