emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Addition to lisp/misc.el


From: Miles Bader
Subject: Re: Addition to lisp/misc.el
Date: 12 Sep 2003 06:30:42 +0900

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)?

-Miles
-- 
Yo mama's so fat when she gets on an elevator it HAS to go down.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]