]> git.eshelyaron.com Git - emacs.git/commit
Improve computation of indent depth in SHR and 'visual-wrap-prefix-mode'
authorJim Porter <jporterbugs@gmail.com>
Fri, 23 Aug 2024 22:11:24 +0000 (15:11 -0700)
committerEshel Yaron <me@eshelyaron.com>
Wed, 4 Sep 2024 07:51:33 +0000 (09:51 +0200)
commitb59ac9ba39a85ab64c6a1ad3617cc5b7dbe48d50
tree637bb0cf30d7cff237837297898c1c24ce9a3b9c
parent769f758436f98d777888f9d5f596406ad9004690
Improve computation of indent depth in SHR and 'visual-wrap-prefix-mode'

Now, we get the average-width of the current font using
'string-pixel-width' and a specified space display spec, which doesn't
require the buffer to be displayed in a window (bug#72771).

* lisp/net/shr.el (shr-indent):
* lisp/visual-wrap.el (visual-wrap--content-prefix): Fix getting the
font when the buffer isn't displayed in a window.
(visual-wrap-fill-context-prefix): Fix indentation.

(cherry picked from commit 55aad592e177dc2c503ebe9ad2a46e227683315e)
lisp/net/shr.el
lisp/visual-wrap.el