emacs-devel
[Top][All Lists]
Advanced

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

Re: Pixel-based display functions


From: Lars Ingebrigtsen
Subject: Re: Pixel-based display functions
Date: Mon, 09 Feb 2015 15:12:19 +1100
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> I think I can make it faster if we add an additional optional argument
> that tells vertical-motion the X coordinate at point.  vertical-motion
> invests a lot of cycles in finding a place whose X coordinate is
> known, so providing that for its starting point will avoid all that
> effort.  Will this help you, i.e. can you provide such a value with
> each call?

Sure, I would normally call `vertical-motion' from `beginning-of-line'
(that is, I'm currently calling it from the first character on the line,
because that's faster), so I could pass in 0 as the X coordinate.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/



reply via email to

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