Fix looking-at-p example in shortdoc.el

* lisp/emacs-lisp/shortdoc.el (regexp): Use `looking-at-p' instead of
`looking-at' (bug#48709).
This commit is contained in:
Daniel Martín 2021-05-28 01:45:28 +02:00 committed by Lars Ingebrigtsen
parent 0eef929cbf
commit 651394d845

View file

@ -666,7 +666,7 @@ There can be any number of :example/:result elements."
:no-eval (re-search-backward "^foo$" nil t)
:eg-result 43)
(looking-at-p
:no-eval (looking-at "f[0-9]")
:no-eval (looking-at-p "f[0-9]")
:eg-result t)
"Match Data"
(match-string