From ce4f354defd5f888dfc0bc8feba0396d734ee87f Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 10 Sep 2022 06:52:39 +0200 Subject: [PATCH] Make a flymake.texi code example more resilient * doc/misc/flymake.texi (An annotated example backend): Make the example code resilient wrt. narrowed buffers (bug#51437). --- doc/misc/flymake.texi | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/misc/flymake.texi b/doc/misc/flymake.texi index b4e7f3a41f8..7406557623f 100644 --- a/doc/misc/flymake.texi +++ b/doc/misc/flymake.texi @@ -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 -- 2.39.2