Mercurial > hg > xemacs-beta
diff lisp/gnus/gnus-sum.el @ 100:4be1180a9e89 r20-1b2
Import from CVS: tag r20-1b2
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:15:11 +0200 |
parents | 0d2f883870bc |
children | cf808b4c4290 |
line wrap: on
line diff
--- a/lisp/gnus/gnus-sum.el Mon Aug 13 09:13:58 2007 +0200 +++ b/lisp/gnus/gnus-sum.el Mon Aug 13 09:15:11 2007 +0200 @@ -159,7 +159,7 @@ (defcustom gnus-summary-default-score 0 "*Default article score level. If this variable is nil, scoring will be disabled." - :group 'gnus-score + :group 'gnus-score-default :type '(choice (const :tag "disable") integer)) @@ -489,7 +489,7 @@ "*Mark all articles with a score below this variable as read. This variable is local to each summary buffer and usually set by the score file." - :group 'gnus-score + :group 'gnus-score-default :type 'integer) (defcustom gnus-article-sort-functions '(gnus-article-sort-by-number) @@ -538,7 +538,7 @@ (defcustom gnus-summary-expunge-below nil "All articles that have a score less than this variable will be expunged." - :group 'gnus-score + :group 'gnus-score-default :type '(choice (const :tag "off" nil) integer)) @@ -547,7 +547,7 @@ See `gnus-thread-score-function' for en explanation of what a \"thread score\" is." :group 'gnus-treading - :group 'gnus-score + :group 'gnus-score-default :type '(choice (const :tag "off" nil) integer)) @@ -1037,30 +1037,6 @@ (equal s1 (gnus-simplify-subject-fully s2))))) -(defun gnus-offer-save-summaries () - "Offer to save all active summary buffers." - (save-excursion - (let ((buflist (buffer-list)) - buffers bufname) - ;; Go through all buffers and find all summaries. - (while buflist - (and (setq bufname (buffer-name (car buflist))) - (string-match "Summary" bufname) - (save-excursion - (set-buffer bufname) - ;; We check that this is, indeed, a summary buffer. - (and (eq major-mode 'gnus-summary-mode) - ;; Also make sure this isn't bogus. - gnus-newsgroup-prepared)) - (push bufname buffers)) - (setq buflist (cdr buflist))) - ;; Go through all these summary buffers and offer to save them. - (when buffers - (map-y-or-n-p - "Update summary buffer %s? " - (lambda (buf) (set-buffer buf) (gnus-summary-exit)) - buffers))))) - (defun gnus-summary-bubble-group () "Increase the score of the current group. This is a handy function to add to `gnus-summary-exit-hook' to @@ -3908,8 +3884,7 @@ (setq mode-string (format (format "%%-%ds" max-len) mode-string)))) ;; Update the mode line. (setq mode-line-buffer-identification - (gnus-mode-line-buffer-identification - (list mode-string))) + (gnus-mode-line-buffer-identification (list mode-string))) (set-buffer-modified-p t)))) (defun gnus-create-xref-hashtb (from-newsgroup headers unreads) @@ -5395,7 +5370,7 @@ (setq gnus-summary-buffer (current-buffer)) (gnus-set-global-variables) (let ((article (gnus-summary-article-number)) - (article-window (get-buffer-window gnus-article-buffer)) + (article-window (get-buffer-window gnus-article-buffer t)) (endp nil)) (gnus-configure-windows 'article) (if (eq (cdr (assq article gnus-newsgroup-reads)) gnus-canceled-mark) @@ -5431,7 +5406,7 @@ (interactive "P") (gnus-set-global-variables) (let ((article (gnus-summary-article-number)) - (article-window (get-buffer-window gnus-article-buffer))) + (article-window (get-buffer-window gnus-article-buffer t))) (gnus-configure-windows 'article) (if (or (null gnus-current-article) (null gnus-article-current) @@ -6688,7 +6663,7 @@ If SELECT-METHOD is non-nil, do not move to a specific newsgroup, but re-spool using this method." (interactive "P") - (gnus-summary-move-article n nil select-method 'copy)) + (gnus-summary-move-article n to-newsgroup select-method 'copy)) (defun gnus-summary-crosspost-article (&optional n) "Crosspost the current article to some other group." @@ -8276,7 +8251,12 @@ (funcall (if (string-match "%s" action) 'format 'concat) action - (mapconcat (lambda (f) f) files " "))))) + (mapconcat + (lambda (f) + (if (equal f " ") + f + (gnus-quote-arg-for-sh-or-csh f))) + files " "))))) (setq ps (cdr ps))))) (if (and gnus-view-pseudos (not not-view)) (while pslist @@ -8533,6 +8513,32 @@ (gnus-get-unread-articles-in-group info (gnus-active group)) t))) +(defun gnus-offer-save-summaries () + "Offer to save all active summary buffers." + (save-excursion + (let ((buflist (buffer-list)) + buffers bufname) + ;; Go through all buffers and find all summaries. + (while buflist + (and (setq bufname (buffer-name (car buflist))) + (string-match "Summary" bufname) + (save-excursion + (set-buffer bufname) + ;; We check that this is, indeed, a summary buffer. + (and (eq major-mode 'gnus-summary-mode) + ;; Also make sure this isn't bogus. + gnus-newsgroup-prepared + ;; Also make sure that this isn't a dead summary buffer. + (not gnus-dead-summary-mode))) + (push bufname buffers)) + (setq buflist (cdr buflist))) + ;; Go through all these summary buffers and offer to save them. + (when buffers + (map-y-or-n-p + "Update summary buffer %s? " + (lambda (buf) (switch-to-buffer buf) (gnus-summary-exit)) + buffers))))) + (provide 'gnus-sum) (run-hooks 'gnus-sum-load-hook)