From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.help Subject: Re: return of replace-match Date: Wed, 05 Mar 2014 12:11:02 +0100 Message-ID: <87bnxkyk6x.fsf@yahoo.fr> References: <87txbe58k7.fsf@newcastle.ac.uk> <87lhwpt86q.fsf@gmail.com> <878usphuqr.fsf@bzg.ath.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1394018351 1100 80.91.229.3 (5 Mar 2014 11:19:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Mar 2014 11:19:11 +0000 (UTC) Cc: Alex Kost , help-gnu-emacs@gnu.org To: Bastien Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 05 12:19:19 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WL9r5-0001nj-8A for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Mar 2014 12:19:19 +0100 Original-Received: from localhost ([::1]:51324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WL9r4-00006v-Gw for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Mar 2014 06:19:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WL9qk-0008Qq-HY for help-gnu-emacs@gnu.org; Wed, 05 Mar 2014 06:19:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WL9qe-0007aV-Cm for help-gnu-emacs@gnu.org; Wed, 05 Mar 2014 06:18:58 -0500 Original-Received: from mxin.ulb.ac.be ([164.15.128.112]:8565) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WL9qe-0007a6-7F for help-gnu-emacs@gnu.org; Wed, 05 Mar 2014 06:18:52 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap4EACwHF1OkD4Xx/2dsb2JhbABaxSOBL3SCJgEFeQULCAMhJQ8BBA08h3cBAxGtbJgvAUoNhw2HWIZ5B4Q4BJg9hjOLeIMuOw Original-Received: from mathsrv4.ulb.ac.be (HELO geodiff-mac3) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 05 Mar 2014 12:10:42 +0100 In-Reply-To: <878usphuqr.fsf@bzg.ath.cx> (Bastien's message of "Wed, 05 Mar 2014 10:15:08 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 164.15.128.112 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:96264 Archived-At: Bastien writes: > Alex Kost writes: >> It looks correct to me. When the docstring tells nothing about the >> returning value, it may be anything and you shouldn't rely on it. > > IIUC, the problem here is that the docstring says it will return `t' > and return `nil' instead. s/docstring/info manual/ See (info "(elisp) Replacing Match") > I guess that's just a documentation bug. Agreed. "return Qnil" has been in the code forever as far as I can see (which is what C-x v g can see). -- Nico.