From unknown Sat Aug 16 19:20:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16942: 24.3; replace-match does not return t as stated in the manual Resent-From: phillip.lord@newcastle.ac.uk (Phillip Lord) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Mar 2014 16:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16942 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 16942@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.139403774013700 (code B ref -1); Wed, 05 Mar 2014 16:43:02 +0000 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) 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-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 unknown Sat Aug 16 19:20:37 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: phillip.lord@newcastle.ac.uk (Phillip Lord) Subject: bug#16942: closed (Re: bug#16942: 24.3; replace-match does not return t as stated in the manual) Message-ID: References: <87wqg8j4e8.fsf@newcastle.ac.uk> X-Gnu-PR-Message: they-closed 16942 X-Gnu-PR-Package: emacs Reply-To: 16942@debbugs.gnu.org Date: Thu, 06 Mar 2014 02:12:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1394071923-15596-1" This is a multi-part message in MIME format... ------------=_1394071923-15596-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #16942: 24.3; replace-match does not return t as stated in the manual which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 16942@debbugs.gnu.org. --=20 16942: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D16942 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1394071923-15596-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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. ------------=_1394071923-15596-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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 ------------=_1394071923-15596-1--