[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Addition to lisp/misc.el
From: |
Lute Kamstra |
Subject: |
Re: Addition to lisp/misc.el |
Date: |
Fri, 12 Sep 2003 07:01:19 +0200 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) |
Miles Bader <address@hidden> writes:
> Lute Kamstra <address@hidden> 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.