* riece.el (riece-shrink-buffer): Remove lines specified by
riece-shrink-buffer-remove-lines at a time.
2004-11-21 Daiki Ueno <ueno@unixuser.org>
+ * riece-options.el (riece-shrink-buffer-remove-lines): New user option.
+ * riece.el (riece-shrink-buffer): Remove lines specified by
+ riece-shrink-buffer-remove-lines at a time.
+
+2004-11-21 Daiki Ueno <ueno@unixuser.org>
+
* riece.el (riece): Remove nonexistent buffer from
riece-buffer-list when running riece-shrink-buffer.
:type 'integer
:group 'riece-options)
+(defcustom riece-shrink-buffer-remove-lines 10
+ "Number of lines removed when shrinking channel buffers."
+ :type 'integer
+ :group 'riece-options)
+
(defcustom riece-max-buffer-size 65535
"Maximum size of channel buffers."
:type '(radio (integer :tag "Number of characters")
(let* ((inhibit-read-only t)
buffer-read-only
(start (point))
- (end (progn (beginning-of-line 2) (point)))
+ (end (progn (beginning-of-line
+ (1+ riece-buffer-shrink-buffer-remove-lines))
+ (point)))
(overlays (riece-overlays-in start end)))
(while overlays
(riece-delete-overlay (car overlays))