From: Lars Ingebrigtsen Date: Sat, 10 Sep 2022 04:52:39 +0000 (+0200) Subject: Make a flymake.texi code example more resilient X-Git-Tag: emacs-29.0.90~1856^2~621 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ce4f354defd5f888dfc0bc8feba0396d734ee87f;p=emacs.git 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). --- 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