projects
/
riece
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* riece-options.el (riece-realname): New user option.
[riece]
/
lisp
/
riece-shrink-buffer.el
diff --git
a/lisp/riece-shrink-buffer.el
b/lisp/riece-shrink-buffer.el
index
020d06f
..
acbb510
100644
(file)
--- a/
lisp/riece-shrink-buffer.el
+++ b/
lisp/riece-shrink-buffer.el
@@
-19,8
+19,8
@@
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING. If not, write to the
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING. If not, write to the
-;; Free Software Foundation, Inc., 5
9 Temple Place - Suite 330
,
-;; Boston, MA 0211
1-1307
, USA.
+;; Free Software Foundation, Inc., 5
1 Franklin Street, Fifth Floor
,
+;; Boston, MA 0211
0-1301
, USA.
;;; Commentary:
;;; Commentary:
@@
-56,12
+56,10
@@
(defconst riece-shrink-buffer-description
"Free old IRC messages to save memory usage.")
(defconst riece-shrink-buffer-description
"Free old IRC messages to save memory usage.")
-(defvar riece-shrink-buffer-enabled nil)
-
(defun riece-shrink-buffer-idle-timer ()
(let ((buffers riece-buffer-list))
(while buffers
(defun riece-shrink-buffer-idle-timer ()
(let ((buffers riece-buffer-list))
(while buffers
- (if (and
riece-shrink-buffer-enabled
+ (if (and
(get 'riece-shrink-buffer 'riece-addon-enabled)
(buffer-live-p (car buffers))
(eq (derived-mode-class
(with-current-buffer (car buffers)
(buffer-live-p (car buffers))
(eq (derived-mode-class
(with-current-buffer (car buffers)
@@
-114,12
+112,6
@@
(remove-hook 'riece-exit-hook
'riece-shrink-buffer-exit-hook))
(remove-hook 'riece-exit-hook
'riece-shrink-buffer-exit-hook))
-(defun riece-shrink-buffer-enable ()
- (setq riece-shrink-buffer-enabled t))
-
-(defun riece-shrink-buffer-disable ()
- (setq riece-shrink-buffer-enabled nil))
-
(provide 'riece-shrink-buffer)
;;; riece-shrink-buffer.el ends here
(provide 'riece-shrink-buffer)
;;; riece-shrink-buffer.el ends here