emacs-devel
[Top][All Lists]
Advanced

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

Re: move_it_vertically_backward question


From: Eli Zaretskii
Subject: Re: move_it_vertically_backward question
Date: Wed, 15 Dec 2021 15:27:42 +0200

> From: Po Lu <luangruo@yahoo.com>
> Cc: emacs-devel@gnu.org
> Date: Wed, 15 Dec 2021 11:30:10 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> For example, if it has reached the beginning of the buffer, it doesn't
> >> make any sense to move further back.
> 
> > If you want to detect that, you need to test IT_CHARPOS (it).
> 
> Something like what `IT_POS_VALID_AFTER_MOVE_P' does?

No, just

  if (IT_CHARPOS (it) <= BEGV)




reply via email to

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