* bug#16942: 24.3; replace-match does not return t as stated in the manual
@ 2014-03-05 11:01 Phillip Lord
2014-03-06 2:11 ` Glenn Morris
0 siblings, 1 reply; 2+ messages in thread
From: Phillip Lord @ 2014-03-05 11:01 UTC (permalink / raw)
To: 16942
This is a small documentation bug.
From info node: `(elisp) Replacing Match'
If you did the last search in a buffer, you should omit the STRING
argument or specify `nil' for it, and make sure that the current
buffer is the one in which you performed the last search. Then
this function edits the buffer, replacing the matched text with
REPLACEMENT. It leaves point at the end of the replacement text,
and returns `t'.
In my hands, replace-match returns nil regardless. The docstring does
not mention the return type.
Phil
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#16942: 24.3; replace-match does not return t as stated in the manual
2014-03-05 11:01 bug#16942: 24.3; replace-match does not return t as stated in the manual Phillip Lord
@ 2014-03-06 2:11 ` Glenn Morris
0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2014-03-06 2:11 UTC (permalink / raw)
To: 16942-done
Version: 24.4
Phillip Lord wrote:
>>From info node: `(elisp) Replacing Match'
>
> If you did the last search in a buffer, you should omit the STRING
> argument or specify `nil' for it, and make sure that the current
> buffer is the one in which you performed the last search. Then
> this function edits the buffer, replacing the matched text with
> REPLACEMENT. It leaves point at the end of the replacement text,
> and returns `t'.
>
> In my hands, replace-match returns nil regardless. The docstring does
> not mention the return type.
I simply undocumented the return value, since it was both uninteresting
and wrong.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-06 2:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-05 11:01 bug#16942: 24.3; replace-match does not return t as stated in the manual Phillip Lord
2014-03-06 2:11 ` Glenn Morris
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.