[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r105714: Doc string clarification.
From: |
Lars Magne Ingebrigtsen |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r105714: Doc string clarification. |
Date: |
Sun, 11 Sep 2011 04:10:15 +0200 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
revno: 105714
fixes bug(s): http://debbugs.gnu.org/9282
committer: Lars Magne Ingebrigtsen <address@hidden>
branch nick: trunk
timestamp: Sun 2011-09-11 04:10:15 +0200
message:
Doc string clarification.
* subr.el (match-string): Mention that the current buffer should
be the same as the search was done in.
modified:
lisp/ChangeLog
lisp/subr.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2011-09-11 01:55:09 +0000
+++ b/lisp/ChangeLog 2011-09-11 02:10:15 +0000
@@ -1,5 +1,8 @@
2011-09-11 Lars Magne Ingebrigtsen <address@hidden>
+ * subr.el (match-string): Mention that the current buffer should
+ be the same as the search was done in (bug#9282).
+
* facemenu.el: Disable the remove-* commands if the mark isn't
active (bug#9162).
=== modified file 'lisp/subr.el'
--- a/lisp/subr.el 2011-09-05 08:05:01 +0000
+++ b/lisp/subr.el 2011-09-11 02:10:15 +0000
@@ -3249,7 +3249,9 @@
NUM specifies which parenthesized expression in the last regexp.
Value is nil if NUMth pair didn't match, or there were less than NUM pairs.
Zero means the entire text matched by the whole regexp or whole string.
-STRING should be given if the last search was by `string-match' on STRING."
+STRING should be given if the last search was by `string-match' on STRING.
+If STRING is nil, the current buffer should be the same buffer
+the search/match was performed in."
(if (match-beginning num)
(if string
(substring string (match-beginning num) (match-end num))
@@ -3260,7 +3262,9 @@
NUM specifies which parenthesized expression in the last regexp.
Value is nil if NUMth pair didn't match, or there were less than NUM pairs.
Zero means the entire text matched by the whole regexp or whole string.
-STRING should be given if the last search was by `string-match' on STRING."
+STRING should be given if the last search was by `string-match' on STRING.
+If STRING is nil, the current buffer should be the same buffer
+the search/match was performed in."
(if (match-beginning num)
(if string
(substring-no-properties string (match-beginning num)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r105714: Doc string clarification.,
Lars Magne Ingebrigtsen <=