From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dave Love Newsgroups: gmane.emacs.bugs Subject: Re: skip-chars-forward v. re-search-forward Date: 29 Apr 2003 18:20:25 +0100 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <200304240141.KAA05156@etlken.m17n.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1051636978 25639 80.91.224.249 (29 Apr 2003 17:22:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 29 Apr 2003 17:22:58 +0000 (UTC) Cc: Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 29 19:22:55 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19AYn9-0006Xw-00 for ; Tue, 29 Apr 2003 19:21:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19AYnp-0002dF-02 for gnu-bug-gnu-emacs@m.gmane.org; Tue, 29 Apr 2003 13:22:01 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19AYnY-0002SJ-00 for bug-gnu-emacs@gnu.org; Tue, 29 Apr 2003 13:21:44 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19AYnH-00022N-00 for bug-gnu-emacs@gnu.org; Tue, 29 Apr 2003 13:21:27 -0400 Original-Received: from albion.dl.ac.uk ([148.79.80.39]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19AYmI-0001IB-00; Tue, 29 Apr 2003 13:20:26 -0400 Original-Received: from fx by albion.dl.ac.uk with local (Exim 3.36 #1 (Debian)) id 19AYmH-0003Dw-00; Tue, 29 Apr 2003 18:20:25 +0100 Original-To: rms@gnu.org Original-Lines: 12 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-cc: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4914 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4914 Richard Stallman writes: > The comparison between search-forward and skip-chars-forward > does not seem meaningful to me, because they do different jobs. > The only case which both of these functions can do is > (search-forward "a") and (skip-chars-forward "^a"). That's probably not an uncommon use, and it looks as though the optimizer might usefully translate one to the other. I was originally comparing with re-search-forward, though. The skip-chars versions still don't seem to have a big advantage, and they have the disadvantage of not supporting char classes.