From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel Subject: Re: Addition to lisp/misc.el Date: Fri, 12 Sep 2003 07:01:19 +0200 Organization: CWI, Amsterdam Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <1062321287.3f51bc87d20ae@impt1-2.free.fr> <87pti72et9.fsf@tc-1-100.kawasaki.gol.ne.jp> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1063343028 6752 80.91.224.253 (12 Sep 2003 05:03:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Sep 2003 05:03:48 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Sep 12 07:03:38 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19xg5q-0008Uy-00 for ; Fri, 12 Sep 2003 07:03:38 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 19xg6y-0005Wu-00 for ; Fri, 12 Sep 2003 07:04:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19xg3l-00048D-FJ for emacs-devel@quimby.gnus.org; Fri, 12 Sep 2003 01:01:29 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19xg3h-000485-BM for emacs-devel@gnu.org; Fri, 12 Sep 2003 01:01:25 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19xg3f-00047u-V6 for emacs-devel@gnu.org; Fri, 12 Sep 2003 01:01:24 -0400 Original-Received: from [192.16.191.8] (helo=hera.cwi.nl) by monty-python.gnu.org with esmtp (Exim 4.22) id 19xg3e-00045T-EO; Fri, 12 Sep 2003 01:01:22 -0400 Original-Received: from occarina.pna.cwi.nl (occarina.pna.cwi.nl [192.16.184.200]) by hera.cwi.nl with ESMTP id HAA19429 for ; Fri, 12 Sep 2003 07:01:20 +0200 (MEST) Original-Received: (from lute@localhost) by occarina.pna.cwi.nl (8.12.8/8.12.5) id h8C51KHx006397; Fri, 12 Sep 2003 07:01:20 +0200 X-Authentication-Warning: occarina.pna.cwi.nl: lute set sender to Lute.Kamstra@cwi.nl using -f Original-To: Miles Bader In-Reply-To: <87pti72et9.fsf@tc-1-100.kawasaki.gol.ne.jp> (Miles Bader's message of "12 Sep 2003 06:30:42 +0900") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Original-Lines: 21 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:16318 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16318 Miles Bader writes: > Lute Kamstra writes: >> This way, point is moved forward by one character if the >> search-forward fails. Seems undesirable to me. I think this >> implementation would be better: >> >> (defun zap-up-to-char (arg char) >> "Kill up to, but not including ARG'th occurrence of CHAR. >> Case is ignored if `case-fold-search' is non-nil in the current buffer. >> Goes backward if ARG is negative; error if CHAR not found. >> Ignores CHAR at point." > > Why the `Ignores CHAR at point' anyway? That seems the cause of the > slight code ugliness. What uses are proposed for this function (which > might help to understand this point)? If it ignores CHAR at point, repeating the command is not a no-op. (This was discussed before.) Lute.