From unknown Sat Aug 16 13:42:18 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#16942 <16942@debbugs.gnu.org> To: bug#16942 <16942@debbugs.gnu.org> Subject: Status: 24.3; replace-match does not return t as stated in the manual Reply-To: bug#16942 <16942@debbugs.gnu.org> Date: Sat, 16 Aug 2025 20:42:18 +0000 retitle 16942 24.3; replace-match does not return t as stated in the manual reassign 16942 emacs submitter 16942 phillip.lord@newcastle.ac.uk (Phillip Lord) severity 16942 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 05 11:42:20 2014 Received: (at submit) by debbugs.gnu.org; 5 Mar 2014 16:42:20 +0000 Received: from localhost ([127.0.0.1]:51896 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WLEte-0003Ys-Vb for submit@debbugs.gnu.org; Wed, 05 Mar 2014 11:42:20 -0500 Received: from eggs.gnu.org ([208.118.235.92]:39750) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WL9aQ-0000WR-Eu for submit@debbugs.gnu.org; Wed, 05 Mar 2014 06:02:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WL9aH-0001S4-P3 for submit@debbugs.gnu.org; Wed, 05 Mar 2014 06:02:06 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WL9aH-0001S0-MX for submit@debbugs.gnu.org; Wed, 05 Mar 2014 06:01:57 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WL9aB-00012Y-KK for bug-gnu-emacs@gnu.org; Wed, 05 Mar 2014 06:01:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WL9a5-0001Pc-E1 for bug-gnu-emacs@gnu.org; Wed, 05 Mar 2014 06:01:51 -0500 Received: from cheviot22.ncl.ac.uk ([128.240.234.22]:48814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WL9a5-0001PL-88 for bug-gnu-emacs@gnu.org; Wed, 05 Mar 2014 06:01:45 -0500 Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129]) by cheviot22.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1WL9a3-0001xU-Dr for bug-gnu-emacs@gnu.org; Wed, 05 Mar 2014 11:01:43 +0000 Received: from localhost (jangai.ncl.ac.uk [10.66.67.223]) (authenticated bits=0) by smtpauth-vm.ncl.ac.uk (8.13.8/8.13.8) with ESMTP id s25B1hA1019945 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Wed, 5 Mar 2014 11:01:43 GMT From: phillip.lord@newcastle.ac.uk (Phillip Lord) To: bug-gnu-emacs@gnu.org Subject: 24.3; replace-match does not return t as stated in the manual Date: Wed, 05 Mar 2014 11:01:19 +0000 Message-ID: <87wqg8j4e8.fsf@newcastle.ac.uk> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 05 Mar 2014 11:42:17 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 05 21:11:49 2014 Received: (at 16942-done) by debbugs.gnu.org; 6 Mar 2014 02:11:49 +0000 Received: from localhost ([127.0.0.1]:52200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WLNmm-000432-LJ for submit@debbugs.gnu.org; Wed, 05 Mar 2014 21:11:48 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:52167) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WLNmk-00042u-IY for 16942-done@debbugs.gnu.org; Wed, 05 Mar 2014 21:11:46 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1WLNmj-0001a4-Qt; Wed, 05 Mar 2014 21:11:45 -0500 From: Glenn Morris To: 16942-done@debbugs.gnu.org Subject: Re: bug#16942: 24.3; replace-match does not return t as stated in the manual References: <87wqg8j4e8.fsf@newcastle.ac.uk> X-Spook: threat George W. Bush Iran csim government tempest X-Ran: N<,FcZuFwT1>7},@Wdmoq!O*fVG#:/b!,}pL8Kr13Q\8U>uS%{?Yt@YD9FJl%9I|>EC6$# X-Hue: magenta X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 05 Mar 2014 21:11:45 -0500 In-Reply-To: <87wqg8j4e8.fsf@newcastle.ac.uk> (Phillip Lord's message of "Wed, 05 Mar 2014 11:01:19 +0000") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 16942-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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. From unknown Sat Aug 16 13:42:18 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 03 Apr 2014 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator