emacs-devel
[Top][All Lists]
Advanced

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

Re: master f117b5df4d: Add new functions eol and bol


From: Po Lu
Subject: Re: master f117b5df4d: Add new functions eol and bol
Date: Sat, 20 Aug 2022 21:26:59 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Po Lu <luangruo@yahoo.com> writes:
>
>>> I don't think that would be very useful in general -- if you look at how
>>> these functions are used, you're usually traversing a buffer, and then
>>> you find something, and then you want to do something with what you
>>> find.
>>
>> Fair, though I meant the optional arg POINT specifically for
>> "bol-from-point", mainly to solve the naming problem.
>
> Sure, OK, but there's already an N optional here (which is used
> surprisingly much), so that'd mean `(bol-from-point nil 2)' (etc) a
> lot...

How about adding POINT after N?  So it would be:

  (bol-from-point 2)

or

  (bol-from-point 2 point)

but then I guess the name should be "bol-at-n-from-point" instead, which
is a bit unwieldy...


reply via email to

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