]> git.eshelyaron.com Git - emacs.git/commit
Allow window-text-pixel-size to measure pixels around a position
authorPo Lu <luangruo@yahoo.com>
Thu, 23 Dec 2021 01:12:02 +0000 (09:12 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 23 Dec 2021 10:55:54 +0000 (18:55 +0800)
commitd54d8a88e9a2f12b69e820e9bb89e304521bc8c7
tree6f94010f49db10a3a213f356f9463cfb934ad1e5
parent2001ae5898a1e48cae5b138828190ac2cba39b40
Allow window-text-pixel-size to measure pixels around a position

* doc/lispref/display.texi (Size of Displayed Text): Announce
new meaning of `from'.
* etc/NEWS: Announce changes.

* lisp/pixel-scroll.el (pixel-scroll-precision-scroll-up-page):
Use new feature.

* src/xdisp.c (window_text_pixel_size): Understand a special
format of `from' that specifies the amount of pixels above or
below a position.

(Fwindow_text_pixel_size): Update doc string.
doc/lispref/display.texi
etc/NEWS
lisp/pixel-scroll.el
src/xdisp.c