Fix Fwindow_text_pixel_size and fit-frame-to-buffer.
authorMartin Rudalics <rudalics@gmx.at>
Tue, 28 Jan 2014 09:45:37 +0000 (10:45 +0100)
committerMartin Rudalics <rudalics@gmx.at>
Tue, 28 Jan 2014 09:45:37 +0000 (10:45 +0100)
commit1dcb169c8116b08391751ff506a755be87d42133
tree6a603e3fc1dc0ebb28d4abe68858190aa7871dfd
parent2275de871d28dc3814caffb9779559c4ef79f58f
Fix Fwindow_text_pixel_size and fit-frame-to-buffer.

* xdisp.c (last_max_ascent): Re-remove after erroneously
reintroducing it on 2013-11-30 and abolishing Dmitry's removal
from 2013-03-29.
(move_it_to): Re-remove reference to last_max_ascent.
(Fwindow_text_pixel_size): Add iterator's max_ascent and
max_descent here instead of calling line_bottom_y.  Fix
doc-string.

* window.el (fit-frame-to-buffer): Fix calculations for margins and
height constraints.
lisp/ChangeLog
lisp/window.el
src/ChangeLog
src/xdisp.c