:group 'liece-vars)
(defcustom liece-buffer-max-size 4242424
- "Maximum size (in bytes) of any liece buffer."
+ "Maximum size of buffers, the number of characters."
:type 'integer
:group 'liece-vars)
-(defcustom liece-buffer-default-size 4042424
- "Size to shrink buffer if it grows too big."
+(defcustom liece-buffer-min-size (- liece-buffer-max-size 200000)
+ "Minimum size of buffers, the number of characters."
:type 'integer
:group 'liece-vars)
(define-obsolete-variable-alias 'liece-buffer-maxsize
'liece-buffer-max-size)
(define-obsolete-variable-alias 'liece-buffer-defsize
- 'liece-buffer-default-size)
+ 'liece-buffer-min-size)
(define-obsolete-variable-alias 'liece-checkbuffer-interval
'liece-buffer-check-interval))
(delete-region (point-min)
(progn
(goto-char (- (buffer-size)
- liece-buffer-default-size))
+ liece-buffer-min-size))
(beginning-of-line -1)
(point)))
(garbage-collect)
Only used from `liece-before-insert-functions'."
(and (> liece-buffer-check-interval 0)
(or (null liece-buffer-last-check-time)
- (> (liece-time-difference liece-buffer-last-check-time
- (current-time))
+ (> (liece-time-difference (current-time)
+ liece-buffer-last-check-time)
liece-buffer-check-interval))
(liece-check-buffers)))