aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/rcirc.el19
2 files changed, 15 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e139b713d64..1c166b164ee 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12014-10-28 Sam Steingold <sds@gnu.org>
2
3 * net/rcirc.el (rcirc-fill-column): Allow any symbolic value for
4 the sake of `window-body-width' (in addition to `frame-width').
5
12014-10-26 Eric S. Raymond <esr@thyrsus.com> 62014-10-26 Eric S. Raymond <esr@thyrsus.com>
2 7
3 * version.el: Fix some fallback values to conform to the actual 8 * version.el: Fix some fallback values to conform to the actual
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el
index f36487971c4..44434b789c9 100644
--- a/lisp/net/rcirc.el
+++ b/lisp/net/rcirc.el
@@ -145,10 +145,12 @@ for connections using SSL/TLS."
145 145
146(defcustom rcirc-fill-column nil 146(defcustom rcirc-fill-column nil
147 "Column beyond which automatic line-wrapping should happen. 147 "Column beyond which automatic line-wrapping should happen.
148If nil, use value of `fill-column'. If 'frame-width, use the 148If nil, use value of `fill-column'.
149maximum frame width." 149If a symbol (e.g., `frame-width' or `window-body-width'), call it
150 :type '(choice (const :tag "Value of `fill-column'") 150to compute the number of columns."
151 (const :tag "Full frame width" frame-width) 151 :version "25.1"
152 :type '(choice (const :tag "Value of `fill-column'" nil)
153 (symbol :tag "Function returning the number of columns")
152 (integer :tag "Number of columns")) 154 (integer :tag "Number of columns"))
153 :group 'rcirc) 155 :group 'rcirc)
154 156
@@ -2533,11 +2535,10 @@ If ARG is given, opens the URL in a new browser window."
2533 (let ((fill-prefix 2535 (let ((fill-prefix
2534 (or rcirc-fill-prefix 2536 (or rcirc-fill-prefix
2535 (make-string (- (point) (line-beginning-position)) ?\s))) 2537 (make-string (- (point) (line-beginning-position)) ?\s)))
2536 (fill-column (- (cond ((eq rcirc-fill-column 'frame-width) 2538 (fill-column (- (cond ((null rcirc-fill-column) fill-column)
2537 (1- (frame-width))) 2539 ((symbolp rcirc-fill-column)
2538 (rcirc-fill-column 2540 (1- (funcall rcirc-fill-column)))
2539 rcirc-fill-column) 2541 (t rcirc-fill-column))
2540 (t fill-column))
2541 ;; make sure ... doesn't cause line wrapping 2542 ;; make sure ... doesn't cause line wrapping
2542 3))) 2543 3)))
2543 (fill-region (point) (point-max) nil t)))) 2544 (fill-region (point) (point-max) nil t))))