aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2024-07-01 15:59:05 +0300
committerEli Zaretskii2024-07-01 15:59:05 +0300
commit7050128cfe91a86f87dfe495ce8c3a1c82337db6 (patch)
tree154bbb379de6d1d756f7227f9acddd06ae695483 /src
parent1647494c04a57586c9616603b3ae803c6dd48d30 (diff)
downloademacs-7050128cfe91a86f87dfe495ce8c3a1c82337db6.tar.gz
emacs-7050128cfe91a86f87dfe495ce8c3a1c82337db6.zip
; * src/search.c (Fmatch_beginning, Fmatch_end): Doc fix.
Diffstat (limited to 'src')
-rw-r--r--src/search.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/search.c b/src/search.c
index 3c07933b5da..dd813eda913 100644
--- a/src/search.c
+++ b/src/search.c
@@ -2812,11 +2812,12 @@ match_limit (Lisp_Object num, bool beginningp)
2812 2812
2813DEFUN ("match-beginning", Fmatch_beginning, Smatch_beginning, 1, 1, 0, 2813DEFUN ("match-beginning", Fmatch_beginning, Smatch_beginning, 1, 1, 0,
2814 doc: /* Return position of start of text matched by last search. 2814 doc: /* Return position of start of text matched by last search.
2815SUBEXP, a number, specifies which parenthesized expression in the last 2815SUBEXP, a number, specifies the parenthesized subexpression in the last
2816 regexp. 2816 regexp for which to return the start position.
2817Value is nil if SUBEXPth pair didn't match, or there were less than 2817Value is nil if SUBEXPth subexpression didn't match, or there were fewer
2818 SUBEXP pairs. 2818 than SUBEXP subexpressions.
2819Zero means the entire text matched by the whole regexp or whole string. 2819SUBEXP zero means the entire text matched by the whole regexp or whole
2820 string.
2820 2821
2821Return value is undefined if the last search failed. */) 2822Return value is undefined if the last search failed. */)
2822 (Lisp_Object subexp) 2823 (Lisp_Object subexp)
@@ -2826,11 +2827,12 @@ Return value is undefined if the last search failed. */)
2826 2827
2827DEFUN ("match-end", Fmatch_end, Smatch_end, 1, 1, 0, 2828DEFUN ("match-end", Fmatch_end, Smatch_end, 1, 1, 0,
2828 doc: /* Return position of end of text matched by last search. 2829 doc: /* Return position of end of text matched by last search.
2829SUBEXP, a number, specifies which parenthesized expression in the last 2830SUBEXP, a number, specifies the parenthesized subexpression in the last
2830 regexp. 2831 regexp for which to return the start position.
2831Value is nil if SUBEXPth pair didn't match, or there were less than 2832Value is nil if SUBEXPth subexpression didn't match, or there were fewer
2832 SUBEXP pairs. 2833 than SUBEXP subexpressions.
2833Zero means the entire text matched by the whole regexp or whole string. 2834SUBEXP zero means the entire text matched by the whole regexp or whole
2835 string.
2834 2836
2835Return value is undefined if the last search failed. */) 2837Return value is undefined if the last search failed. */)
2836 (Lisp_Object subexp) 2838 (Lisp_Object subexp)