From c2cd27bceb574b749a3de0629d915cb8afb4378e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mattias=20Engdeg=C3=A5rd?= Date: Sun, 20 Oct 2019 19:51:08 +0200 Subject: [PATCH] Add missing rx symbols `bow' and `eow' to documentation * doc/lispref/searching.texi (Rx Constructs): * lisp/emacs-lisp/rx.el (rx): Add missing synonyms. --- doc/lispref/searching.texi | 6 ++++-- lisp/emacs-lisp/rx.el | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/lispref/searching.texi b/doc/lispref/searching.texi index a6c6bf2d4a0..5178575a3bb 100644 --- a/doc/lispref/searching.texi +++ b/doc/lispref/searching.texi @@ -1425,13 +1425,15 @@ Corresponding string regexp: @samp{\'} Match at point.@* Corresponding string regexp: @samp{\=} -@item @code{word-start} +@item @code{word-start}, @code{bow} @cindex @code{word-start} in rx +@cindex @code{bow} in rx Match at the beginning of a word.@* Corresponding string regexp: @samp{\<} -@item @code{word-end} +@item @code{word-end}, @code{eow} @cindex @code{word-end} in rx +@cindex @code{eow} in rx Match at the end of a word.@* Corresponding string regexp: @samp{\>} diff --git a/lisp/emacs-lisp/rx.el b/lisp/emacs-lisp/rx.el index 57d633f8f0b..006a393921a 100644 --- a/lisp/emacs-lisp/rx.el +++ b/lisp/emacs-lisp/rx.el @@ -1064,8 +1064,8 @@ Zero-width assertions: these all match the empty string in specific places. string-end At the end of the string or buffer. Alias: buffer-end, eos, eot. point At point. - word-start At the beginning of a word. - word-end At the end of a word. + word-start At the beginning of a word. Alias: bow. + word-end At the end of a word. Alias: eow. word-boundary At the beginning or end of a word. not-word-boundary Not at the beginning or end of a word. symbol-start At the beginning of a symbol. -- 2.39.2