# HG changeset patch # User Richard M. Stallman # Date 1179776332 0 # Node ID 4e1d9d19df5bda7d821e42ccaa4905f3e4c9df2b # Parent ba90c7335cf77f5b75960bc65afcd0a55d712cd9 (rcirc-fill-column): Allow `window-width'. (rcirc-print): Handle `window-width'. (rcirc-buffer-maximum-lines): Doc fix. diff -r ba90c7335cf7 -r 4e1d9d19df5b lisp/net/rcirc.el --- a/lisp/net/rcirc.el Mon May 21 15:39:45 2007 +0000 +++ b/lisp/net/rcirc.el Mon May 21 19:38:52 2007 +0000 @@ -95,9 +95,11 @@ (defcustom rcirc-fill-column nil "*Column beyond which automatic line-wrapping should happen. -If nil, use value of `fill-column'. If 'frame-width, use the -maximum frame width." +If nil, use value of `fill-column'. +If `window-width', use the window's width as maximum. +If `frame-width', use the frame's width as maximum." :type '(choice (const :tag "Value of `fill-column'") + (const :tag "Full window width" window-width) (const :tag "Full frame width" frame-width) (integer :tag "Number of columns")) :group 'rcirc) @@ -143,8 +145,7 @@ :group 'rcirc) (defcustom rcirc-scroll-show-maximum-output t - "*If non-nil, scroll buffer to keep the point at the bottom of -the window." + "*If non-nil, scroll buffer to keep the point at the bottom of the window." :type 'boolean :group 'rcirc) @@ -1245,6 +1246,8 @@ (make-string (- text-start fill-start) ?\s))) (fill-column (cond ((eq rcirc-fill-column 'frame-width) (1- (frame-width))) + ((eq rcirc-fill-column 'window-width) + (1- (window-width))) (rcirc-fill-column rcirc-fill-column) (t fill-column))))