[climacs-devel] number-of-lines-inregion
Rudi Schlatte
rudi at constantly.at
Sun Jan 23 18:53:16 UTC 2005
On 23. Jän 2005, at 19:25, Aleksandar Bakic wrote:
> Hi,
>
> Should the generic function number-of-lines-in-region be symmetrical
> wrt. its
> mark parameters? Recently, delete-region has been changed so that the
> order of
> mark offsets does not matter.
I'd vote "yes".
> In general, is there are rule by which one could
> decide whether an operator on two marks should care about the mark
> offset order
> or not?
My gut feeling is that code such as:
(let ((mark1 (obtain-mark-1)) (mark2 (obtain-mark-2)))
(operate-on-region mark1 mark2))
should not have to check and exchange marks manually. So, I think most
operations on regions should be order-agnostic.
Rudi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <https://mailman.common-lisp.net/pipermail/climacs-devel/attachments/20050123/339dd70b/attachment.sig>
More information about the climacs-devel
mailing list