summaryrefslogtreecommitdiff
path: root/lisp/net/shr.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2014-12-29 13:47:43 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2014-12-29 13:48:43 +0100
commitc5a81fdb6fc2422807674c2d7b27f8333a3b9e12 (patch)
tree7af9d2d5f094714844e884d510a020cd13c3fb4d /lisp/net/shr.el
parentd7e858bcc6f353ea3e955ca2a91d7b5c33bb6611 (diff)
downloademacs-c5a81fdb6fc2422807674c2d7b27f8333a3b9e12.tar.gz
emacs-c5a81fdb6fc2422807674c2d7b27f8333a3b9e12.tar.bz2
emacs-c5a81fdb6fc2422807674c2d7b27f8333a3b9e12.zip
Make eww rendering default to `window-width' again
* lisp/gnus/mm-decode.el (mm-shr): Bind `shr-width' to `fill-column' so that lines don't get overlong when responding. * lisp/net/eww.el (eww-mode): Truncate overlong lines for prettier display when resizing. * lisp/net/shr.el (shr-width): Default to using the window width when rendering.
Diffstat (limited to 'lisp/net/shr.el')
-rw-r--r--lisp/net/shr.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index 26bb292bc41..6553fd3958c 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -78,11 +78,12 @@ If nil, don't draw horizontal table lines."
:group 'shr
:type 'character)
-(defcustom shr-width fill-column
+(defcustom shr-width nil
"Frame width to use for rendering.
May either be an integer specifying a fixed width in characters,
or nil, meaning that the full width of the window should be
used."
+ :version "25.1"
:type '(choice (integer :tag "Fixed width in characters")
(const :tag "Use the width of the window" nil))
:group 'shr)