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).
This commit is contained in:
Lars Ingebrigtsen 2022-09-10 06:52:39 +02:00
parent 72daa8b95a
commit ce4f354def

View 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