From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#10507: 24.0.92; Doc of `search-forward' (and backward) Date: Sat, 14 Jan 2012 14:37:16 -0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1326580708 23612 80.91.229.12 (14 Jan 2012 22:38:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 14 Jan 2012 22:38:28 +0000 (UTC) To: 10507@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 14 23:38:23 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RmCEw-00005a-6L for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Jan 2012 23:38:22 +0100 Original-Received: from localhost ([::1]:46413 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmCEv-0007ga-GX for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Jan 2012 17:38:21 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:56615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmCEs-0007gK-ON for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2012 17:38:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RmCEr-0000Qx-Ra for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2012 17:38:18 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmCEr-0000Qt-Nq for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2012 17:38:17 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RmCFZ-0001R7-Qg for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2012 17:39:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Jan 2012 22:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10507 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.13265807015474 (code B ref -1); Sat, 14 Jan 2012 22:39:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Jan 2012 22:38:21 +0000 Original-Received: from localhost ([127.0.0.1]:57711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RmCEs-0001QC-Aw for submit@debbugs.gnu.org; Sat, 14 Jan 2012 17:38:21 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:46309) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RmCEo-0001Q4-Tu for submit@debbugs.gnu.org; Sat, 14 Jan 2012 17:38:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RmCE4-0000O8-NX for submit@debbugs.gnu.org; Sat, 14 Jan 2012 17:37:29 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:52608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmCE4-0000O2-M5 for submit@debbugs.gnu.org; Sat, 14 Jan 2012 17:37:28 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:56500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmCE3-0007fy-Mz for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2012 17:37:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RmCE2-0000Ni-KH for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2012 17:37:27 -0500 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:52769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmCE2-0000NY-FK for bug-gnu-emacs@gnu.org; Sat, 14 Jan 2012 17:37:26 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by acsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id q0EMbOKU016622 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 14 Jan 2012 22:37:25 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q0EMbNm2020889 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 14 Jan 2012 22:37:24 GMT Original-Received: from abhmt113.oracle.com (abhmt113.oracle.com [141.146.116.65]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q0EMbNVW008695 for ; Sat, 14 Jan 2012 16:37:23 -0600 Original-Received: from dradamslap1 (/10.159.37.184) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 14 Jan 2012 14:37:23 -0800 X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Thread-Index: AczTDREaQk7PSRTwR1qIDp/NJXi+sg== X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090207.4F1203A5.004B,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:55752 Archived-At: Both the doc in the Elisp manual and the doc string seem to be incorrect, and this has apparently been the case for a very long time (at least as far back as Emacs 20). (search-forward "e" nil nil -1) searches BACKWARD for "e". But the doc says that it searches FORWARD. Furthermore, the doc says explicitly that the 4th arg MUST BE POSITIVE. That is no only NOT the case, it is even the case that the Emacs lisp code uses a negative value as the 4th arg. See, e.g., `zap-to-char'. In GNU Emacs 24.0.92.1 (i386-mingw-nt5.1.2600) of 2012-01-05 on MARVIN Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.6) --no-opt --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include --ldflags -LD:/devel/emacs/libs/gnutls-3.0.9/lib'