emacs-devel
[Top][All Lists]
Advanced

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

Re: How to add pseudo vector types


From: Eli Zaretskii
Subject: Re: How to add pseudo vector types
Date: Tue, 03 Aug 2021 14:42:29 +0300

> From: Fu Yuan <casouri@gmail.com>
> Date: Tue, 3 Aug 2021 06:24:34 -0400
> Cc: Stephen Leake <stephen_leake@stephe-leake.org>,
>  Clément Pit-Claudel <cpitclaudel@gmail.com>,
>  Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
> 
> I’m about to change all lisp-facing functions from using byte position to 
> using point.

I don't understand how can you do this.  Point is set by Lisp, and
generally cannot be changed from C, except for very short durations of
time (or if the C code is the implementation of a Lisp command that
just moved point).  If you need to access some buffer position, you
cannot in general use point, because you cannot control where point
is.

> Point is much easier to work with.

In what way is it easier?  I feel that I'm missing something here.

> If lisp wants byte positions, they can just convert from point themselves.

??? What do you mean by that?  Can you show an example?



reply via email to

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