aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2007-05-21 19:39:10 +0000
committerRichard M. Stallman2007-05-21 19:39:10 +0000
commitd51f146b480d273b4eeb4befb3da2d1f06929d9e (patch)
tree7a6649d7b5fc1c94a734713d12cdfeb05d2d349a
parent82113a92c51f90184c847188755f9f0d5cfa1217 (diff)
downloademacs-d51f146b480d273b4eeb4befb3da2d1f06929d9e.tar.gz
emacs-d51f146b480d273b4eeb4befb3da2d1f06929d9e.zip
(rcirc-fill-column): Allow `window-width'.
(rcirc-print): Handle `window-width'. (rcirc-buffer-maximum-lines): Doc fix.
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/net/rcirc.el11
2 files changed, 17 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index cd6587e6d57..53e45ef70d9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,13 @@
12007-05-21 Trent Buck <trentbuck@gmail.com> (tiny change)
2
3 * net/rcirc.el (rcirc-fill-column): Allow `window-width'.
4 (rcirc-print): Handle `window-width'.
5 (rcirc-buffer-maximum-lines): Doc fix.
6
72007-05-19 Kevin Ryde <user42@zip.com.au>
8
9 * info.el (Info-fontify-node): Match https also.
10
12007-05-18 Richard Stallman <rms@gnu.org> 112007-05-18 Richard Stallman <rms@gnu.org>
2 12
3 * simple.el (push-mark): Doc fix. 13 * simple.el (push-mark): Doc fix.
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el
index 311c052fa30..60d81aedb7a 100644
--- a/lisp/net/rcirc.el
+++ b/lisp/net/rcirc.el
@@ -95,9 +95,11 @@ Each element looks like (SERVER-REGEXP . CHANNEL-LIST)."
95 95
96(defcustom rcirc-fill-column nil 96(defcustom rcirc-fill-column nil
97 "*Column beyond which automatic line-wrapping should happen. 97 "*Column beyond which automatic line-wrapping should happen.
98If nil, use value of `fill-column'. If 'frame-width, use the 98If nil, use value of `fill-column'.
99maximum frame width." 99If `window-width', use the window's width as maximum.
100If `frame-width', use the frame's width as maximum."
100 :type '(choice (const :tag "Value of `fill-column'") 101 :type '(choice (const :tag "Value of `fill-column'")
102 (const :tag "Full window width" window-width)
101 (const :tag "Full frame width" frame-width) 103 (const :tag "Full frame width" frame-width)
102 (integer :tag "Number of columns")) 104 (integer :tag "Number of columns"))
103 :group 'rcirc) 105 :group 'rcirc)
@@ -143,8 +145,7 @@ number. If zero or nil, no truncating is done."
143 :group 'rcirc) 145 :group 'rcirc)
144 146
145(defcustom rcirc-scroll-show-maximum-output t 147(defcustom rcirc-scroll-show-maximum-output t
146 "*If non-nil, scroll buffer to keep the point at the bottom of 148 "*If non-nil, scroll buffer to keep the point at the bottom of the window."
147the window."
148 :type 'boolean 149 :type 'boolean
149 :group 'rcirc) 150 :group 'rcirc)
150 151
@@ -1245,6 +1246,8 @@ record activity."
1245 (make-string (- text-start fill-start) ?\s))) 1246 (make-string (- text-start fill-start) ?\s)))
1246 (fill-column (cond ((eq rcirc-fill-column 'frame-width) 1247 (fill-column (cond ((eq rcirc-fill-column 'frame-width)
1247 (1- (frame-width))) 1248 (1- (frame-width)))
1249 ((eq rcirc-fill-column 'window-width)
1250 (1- (window-width)))
1248 (rcirc-fill-column 1251 (rcirc-fill-column
1249 rcirc-fill-column) 1252 rcirc-fill-column)
1250 (t fill-column)))) 1253 (t fill-column))))