unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#48709: 28.0.50; [PATCH] Fix example of looking-at-p in shortdoc.el
       [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
  2021-05-27 23:45   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-05-27 22:55 UTC (permalink / raw)
  To: 48709

[-- 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#48709: 28.0.50; [PATCH] Fix example of looking-at-p in shortdoc.el
  2021-05-27 22:55 ` bug#48709: 28.0.50; [PATCH] Fix example of looking-at-p in shortdoc.el Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-05-27 23:45   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2021-05-27 23:45 UTC (permalink / raw)
  To: Daniel Martín; +Cc: 48709

Daniel Martín <mardani29@yahoo.es> writes:

> There is a small typo in the usage example of the looking-at-p function.
> Patch is attached.  Thanks.

Thanks; applied to Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-27 23:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <m11r9rrdm2.fsf.ref@yahoo.es>
2021-05-27 22:55 ` bug#48709: 28.0.50; [PATCH] Fix example of looking-at-p in shortdoc.el Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-05-27 23:45   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).