Fix `fit-window-to-buffer' (Bug#18498).
commitdf2ead390d7d54cb6c368e3099fb910a182ac7af
authorKan-Ru Chen <kanru@kanru.info>
Thu, 18 Sep 2014 12:06:17 +0000 (18 14:06 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Thu, 18 Sep 2014 12:06:17 +0000 (18 14:06 +0200)
treec60a4615681342a56a4ee0725fa49751824cccf1
parent534f1f7cb6b25f05472d59b6b4757cb345f29b8d
Fix `fit-window-to-buffer' (Bug#18498).

* window.el (fit-window-to-buffer): When counting buffer width,
count the whole visible buffer.  Correctly convert the body-height
to pixel size for window-text-pixel-size (Bug#18498).
lisp/ChangeLog
lisp/window.el