projects
/
elisp
/
gnus.git-
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Synch with Oort Gnus.
[elisp/gnus.git-]
/
lisp
/
gnus-bcklg.el
diff --git
a/lisp/gnus-bcklg.el
b/lisp/gnus-bcklg.el
index
3fca805
..
3a14103
100644
(file)
--- a/
lisp/gnus-bcklg.el
+++ b/
lisp/gnus-bcklg.el
@@
-1,5
+1,6
@@
;;; gnus-bcklg.el --- backlog functions for Gnus
;;; gnus-bcklg.el --- backlog functions for Gnus
-;; Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
+;; Free Software Foundation, Inc.
;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
;; Keywords: news
;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
;; Keywords: news
@@
-55,6
+56,7
@@
(defun gnus-backlog-shutdown ()
"Clear all backlog variables and buffers."
(defun gnus-backlog-shutdown ()
"Clear all backlog variables and buffers."
+ (interactive)
(when (get-buffer gnus-backlog-buffer)
(kill-buffer gnus-backlog-buffer))
(setq gnus-backlog-hashtb nil
(when (get-buffer gnus-backlog-buffer)
(kill-buffer gnus-backlog-buffer))
(setq gnus-backlog-hashtb nil
@@
-69,10
+71,10
@@
b)
(if (memq ident gnus-backlog-articles)
() ; It's already kept.
b)
(if (memq ident gnus-backlog-articles)
() ; It's already kept.
- ;; Remove the oldest article, if necessary.
+ ;; Remove the oldest article, if necessary.
(and (numberp gnus-keep-backlog)
(>= (length gnus-backlog-articles) gnus-keep-backlog)
(and (numberp gnus-keep-backlog)
(>= (length gnus-backlog-articles) gnus-keep-backlog)
- (gnus-backlog-remove-oldest-article))
+ (gnus-backlog-remove-oldest-article))
(push ident gnus-backlog-articles)
;; Insert the new article.
(save-excursion
(push ident gnus-backlog-articles)
;; Insert the new article.
(save-excursion
@@
-85,7
+87,7
@@
(insert-buffer-substring buffer)
;; Tag the beginning of the article with the ident.
(if (> (point-max) b)
(insert-buffer-substring buffer)
;; Tag the beginning of the article with the ident.
(if (> (point-max) b)
- (gnus-put-text-property b (1+ b) 'gnus-backlog ident)
+ (gnus-put-text-property b (1+ b) 'gnus-backlog ident)
(gnus-error 3 "Article %d is blank" number))))))))
(defun gnus-backlog-remove-oldest-article ()
(gnus-error 3 "Article %d is blank" number))))))))
(defun gnus-backlog-remove-oldest-article ()