From: "Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 48709@debbugs.gnu.org
Subject: bug#48709: 28.0.50; [PATCH] Fix example of looking-at-p in shortdoc.el
Date: Fri, 28 May 2021 00:55:17 +0200 [thread overview]
Message-ID: <m11r9rrdm2.fsf@yahoo.es> (raw)
In-Reply-To: m11r9rrdm2.fsf.ref@yahoo.es
[-- Attachment #1: Type: text/plain, Size: 103 bytes --]
There is a small typo in the usage example of the looking-at-p function.
Patch is attached. Thanks.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Fix-looking-at-p-example-in-shortdoc.el.patch --]
[-- Type: text/x-patch, Size: 820 bytes --]
From f308cbfb14cbfd0f9a4ce79c7dfc30f899962fb1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Mart=C3=ADn?= <mardani29@yahoo.es>
Date: Fri, 28 May 2021 00:46:26 +0200
Subject: [PATCH] Fix looking-at-p example in shortdoc.el
* lisp/emacs-lisp/shortdoc.el (regexp): Use `looking-at-p' instead of
`looking-at'.
---
lisp/emacs-lisp/shortdoc.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/emacs-lisp/shortdoc.el b/lisp/emacs-lisp/shortdoc.el
index 0320e17182..652806ea28 100644
--- a/lisp/emacs-lisp/shortdoc.el
+++ b/lisp/emacs-lisp/shortdoc.el
@@ -666,7 +666,7 @@ regexp
: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
--
2.31.0
next parent reply other threads:[~2021-05-27 22:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <m11r9rrdm2.fsf.ref@yahoo.es>
2021-05-27 22:55 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2021-05-27 23:45 ` bug#48709: 28.0.50; [PATCH] Fix example of looking-at-p in shortdoc.el Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m11r9rrdm2.fsf@yahoo.es \
--to=bug-gnu-emacs@gnu.org \
--cc=48709@debbugs.gnu.org \
--cc=mardani29@yahoo.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.