* lisp/gnus: Use lexical-binding in all the files
* lisp/gnus/gnus-group.el (features): Use `dlet`.
(gnus-tmp-level, gnus-tmp-marked, gnus-tmp-group): Declare vars.
(gnus-group-insert-group-line): Bind dynbound vars via `let` rather
than as formal args. Bind `number` as dynbound.
(gnus-visual, gnus-score-find-score-files-function)
(gnus-home-score-file, gnus-apply-kill-hook)
(gnus-summary-expunge-below): Declare vars.
(gnus-group-restart, gnus-group-list-plus): Fix `interactive` spec
since the arg is unused.
* lisp/gnus/mail-source.el (mail-source-bind, mail-source-bind-common):
Use `dlet` and suppress the warnings about the non-prefixed dynbound vars.
(mail-source-set-1): Remove unused var `auth-info`.
(mail-source-call-script): Remove unused var `background`.
(mail-source-fetch-pop, mail-source-check-pop): Bind pop3 vars with `dlet`.
* lisp/gnus/gnus-int.el (mail-source-plugged, gnus-inhibit-demon):
Declare vars.
(gnus-server-opened, gnus-status-message)
(gnus-open-server, gnus-close-server, gnus-request-list)
(gnus-finish-retrieve-group-infos, gnus-retrieve-group-data-early)
(gnus-request-list-newsgroups, gnus-request-newgroups)
(gnus-request-regenerate, gnus-request-compact, gnus-request-group)
(gnus-retrieve-groups, gnus-request-post, gnus-request-expunge-group)
(gnus-request-scan, gnus-request-update-info, gnus-request-marks)
(gnus-request-accept-article, gnus-request-create-group)
(gnus-asynchronous-p, gnus-remove-denial):
Bind `gnus-command-method` via `let` rather than as formal args.
* lisp/gnus/gnus-topic.el (gnus-topic-insert-topic-line):
Pass documented vars to eval for `gnus-topic-line-format-spec`.
* lisp/gnus/message.el (message-yank-original): Use `cl-progv` rather
than `eval` to bind the vars from `message-cite-style`.
* lisp/gnus/mml.el (mml-parse-1): Use `apply` instead of `eval`.
(gnus-newsgroup-name, gnus-displaying-mime, gnus-newsgroup-name)
(gnus-article-prepare-hook, gnus-newsgroup-charset)
(gnus-original-article-buffer, gnus-message-buffer)
(message-this-is-news, message-this-is-mail): Declare vars.
* lisp/gnus/deuglify.el (gnus-outlook-rearrange-article): Remove unused
var `cite-marks`.
* lisp/gnus/gnus-art.el (ansi-color-context-region): Declare var.
(gnus-mime-display-attachment-buttons-in-header): Move declaration
before first use.
(gnus-mime-display-alternative): Remove unused var `from`.
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-list): Remove unused
var `start` `end`.
* lisp/gnus/gnus-cache.el (gnus-article-decode-hook)
(nnml-generate-active-function): Declare var.
* lisp/gnus/gnus-cite.el (gnus-message-citation-mode): Remove unused
var `keywords`.
* lisp/gnus/gnus-cloud.el (gnus-cloud-encode-data): Remove unused var
`cipher`.
(gnus-cloud-ensure-cloud-group): Remove unused var `method`.
* lisp/gnus/gnus-delay.el (gnus-delay-article): Remove unused var `days`.
* lisp/gnus/gnus-html.el (gnus-html-wash-images): Remove unused vars
`tag`, `string`, and `images`.
(gnus-html-wash-tags): Remove unused vars `string` and `images`.
* lisp/gnus/gnus-msg.el (gnus-msg-mail): Remove unused var `group-name`.
(gnus-group-mail, gnus-group-news, gnus-summary-mail-other-window)
(gnus-summary-news-other-window):
Remove unused vars `group` and `buffer`.
(gnus-configure-posting-styles): Remove unused vars `style` and `attribute`.
* lisp/gnus/gnus-picon.el (gnus-picon-find-face): Remove unused vars
`database`, `directory`, and `instance`.
(gnus-picon-transform-newsgroups): Remove unused var `point`.
* lisp/gnus/gnus-range.el (gnus-range-difference): Remove unused var `safe`.
* lisp/gnus/gnus-score.el (gnus-score-load-file): Remove unused var
`score-fn`.
* lisp/gnus/gnus-sum.el (message-options-set-recipient): Declare var.
* lisp/gnus/gnus-undo.el (gnus-undo): Fix docstring lie.
* lisp/gnus/gnus-util.el (print-string-length)
(iswitchb-make-buflist-hook): Declare vars.
(gnus-emacs-version): Remove unused var `codename`.
(gnus-rename-file): Remove unused vars `old-name` and `new-name`.
* lisp/gnus/gnus-uu.el (gnus-uu-yenc-article): Remove unused var
`start-char`.
(gnus-asynchronous): Declare var.
* lisp/gnus/mm-partial.el (gnus-displaying-mime): Declare var.
(mm-inline-partial): Remove unused var `buffer`.
* lisp/gnus/mm-view.el (w3m-force-redisplay, w3m-safe-url-regexp)
(gnus-displaying-mime, gnus-original-article-buffer)
(gnus-article-prepare-hook): Declare vars.
* lisp/gnus/mml-smime.el (mml-smime-epg-encrypt): Remove unused var
`boundary`.
(mml-smime-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/mml1991.el (pgg-text-mode): Declare var.
* lisp/gnus/mml2015.el (pgg-text-mode): Declare var.
(mml2015-pgg-decrypt): Remove unused var `result`.
(mml2015-epg-key-image-to-string): Remove unused var `error`.
(mml2015-epg-decrypt): Remove unused var `result`.
(mml2015-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/nnbabyl.el (nnml-current-directory): Declare var.
* lisp/gnus/nndiary.el (nndiary-files): Move declaration before first use.
* lisp/gnus/nnfolder.el (nnfolder-request-accept-article):
Remove unused var `buf`.
* lisp/gnus/nnmail.el (nnmail-parse-active): Remove unused var `err`.
* lisp/gnus/nnmairix.el (nnmairix-request-group): Remove unused var `args`.
(nnmairix-request-create-group): Remove unused var `info`.
(nnmairix-request-list): Remove unused var `folder`.
(nnmairix-request-set-mark): Remove unused var `propto`.
(nnmairix-request-set-mark): Remove unused vars `number` and `method`.
(nnmairix-close-group): Remove unused var `method`.
(nnmairix-create-search-group-from-message): Remove unused var `cq`.
(nnmairix-create-server-and-default-group): Remove unused var `create`.
(nnmairix-purge-old-groups): Remove unused var `folder`.
(nnmairix-remove-tick-mark-original-article, nnmairix-get-valid-servers):
Remove unused var `cur`.
(nnmairix-replace-group-and-numbers): Remove unused var `header`.
(nnmairix-goto-original-article): Remove unused var `rval`.
(nnmairix-widget-create-query): Remove unused var `allwidgets`.
* lisp/gnus/nnmbox.el (nnml-current-directory): Declare var.
* lisp/gnus/nnmh.el (nnmh-toplev): Move declaration before first use.
(nnmh-request-list-1): Remove unused var `rdir`.
* lisp/gnus/nnml.el (nnml-generate-nov-file): Remove unused var `file`.
* lisp/gnus/nnrss.el (nnrss-request-article): Remove unused var `post`.
(nnrss-request-article): Remove unused var `fn`.
(nnrss-check-group): Remove unused var `rdf-ns`.
* lisp/gnus/nnweb.el (nnweb-request-article): Remove unused var `active`.
(nnweb-google-parse-1): Remove unused var `Score`.
* lisp/gnus/spam-stat.el (spam-stat-error-holder): Remove var.
(spam-stat-buffer-words-with-scores): Remove unused var `word`.
(spam-stat-score-buffer): Remove unused var `spam-stat-error-holder`.
(spam-stat-split-fancy): Use `err` instead of `spam-stat-error-holder`.
* lisp/gnus/spam-wash.el (spam-wash): Remove unused var `handle`.
* lisp/gnus/spam.el (spam-copy-or-move-routine): Remove unused vars
`article` and `mark`.
(spam-register-routine): Remove unused var `article`.
(spam-log-undo-registration): Remove unused var `found`.
(spam-ifile-register-with-ifile): Remove unused var `parameters`.
(spam-check-stat): Remove unused vars `category` and `return`.
(spam-parse-list): Remove unused var `found`.
(spam-filelist-register-routine): Remove unused var `from`.
2021-01-30 18:44:00 -05:00
|
|
|
;;; gnus-group.el --- group mode commands for Gnus -*- lexical-binding: t; -*-
|
2005-08-06 19:51:42 +00:00
|
|
|
|
2023-01-01 05:31:12 -05:00
|
|
|
;; Copyright (C) 1996-2023 Free Software Foundation, Inc.
|
1997-04-16 22:13:18 +00:00
|
|
|
|
1999-02-20 14:05:57 +00:00
|
|
|
;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
|
1997-04-16 22:13:18 +00:00
|
|
|
;; Keywords: news
|
|
|
|
|
|
|
|
;; This file is part of GNU Emacs.
|
|
|
|
|
2008-05-06 03:56:49 +00:00
|
|
|
;; GNU Emacs is free software: you can redistribute it and/or modify
|
1997-04-16 22:13:18 +00:00
|
|
|
;; it under the terms of the GNU General Public License as published by
|
2008-05-06 03:56:49 +00:00
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
;; (at your option) any later version.
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
;; GNU Emacs is distributed in the hope that it will be useful,
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2008-05-06 03:56:49 +00:00
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
1997-04-16 22:13:18 +00:00
|
|
|
;; GNU General Public License for more details.
|
|
|
|
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
2017-09-13 15:52:52 -07:00
|
|
|
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
2018-03-22 21:40:24 -07:00
|
|
|
(require 'cl-lib)
|
1997-04-16 22:13:18 +00:00
|
|
|
(require 'gnus)
|
|
|
|
(require 'gnus-start)
|
|
|
|
(require 'nnmail)
|
|
|
|
(require 'gnus-spec)
|
|
|
|
(require 'gnus-int)
|
|
|
|
(require 'gnus-range)
|
|
|
|
(require 'gnus-win)
|
|
|
|
(require 'gnus-undo)
|
2006-04-17 18:26:22 +00:00
|
|
|
(require 'gmm-utils)
|
2000-09-19 13:37:09 +00:00
|
|
|
(require 'time-date)
|
2022-01-17 12:40:43 +01:00
|
|
|
(require 'range)
|
2004-09-04 13:13:48 +00:00
|
|
|
|
2005-06-01 05:07:06 +00:00
|
|
|
(eval-when-compile
|
|
|
|
(require 'mm-url)
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(require 'subr-x)
|
* lisp/gnus: Use lexical-binding in all the files
* lisp/gnus/gnus-group.el (features): Use `dlet`.
(gnus-tmp-level, gnus-tmp-marked, gnus-tmp-group): Declare vars.
(gnus-group-insert-group-line): Bind dynbound vars via `let` rather
than as formal args. Bind `number` as dynbound.
(gnus-visual, gnus-score-find-score-files-function)
(gnus-home-score-file, gnus-apply-kill-hook)
(gnus-summary-expunge-below): Declare vars.
(gnus-group-restart, gnus-group-list-plus): Fix `interactive` spec
since the arg is unused.
* lisp/gnus/mail-source.el (mail-source-bind, mail-source-bind-common):
Use `dlet` and suppress the warnings about the non-prefixed dynbound vars.
(mail-source-set-1): Remove unused var `auth-info`.
(mail-source-call-script): Remove unused var `background`.
(mail-source-fetch-pop, mail-source-check-pop): Bind pop3 vars with `dlet`.
* lisp/gnus/gnus-int.el (mail-source-plugged, gnus-inhibit-demon):
Declare vars.
(gnus-server-opened, gnus-status-message)
(gnus-open-server, gnus-close-server, gnus-request-list)
(gnus-finish-retrieve-group-infos, gnus-retrieve-group-data-early)
(gnus-request-list-newsgroups, gnus-request-newgroups)
(gnus-request-regenerate, gnus-request-compact, gnus-request-group)
(gnus-retrieve-groups, gnus-request-post, gnus-request-expunge-group)
(gnus-request-scan, gnus-request-update-info, gnus-request-marks)
(gnus-request-accept-article, gnus-request-create-group)
(gnus-asynchronous-p, gnus-remove-denial):
Bind `gnus-command-method` via `let` rather than as formal args.
* lisp/gnus/gnus-topic.el (gnus-topic-insert-topic-line):
Pass documented vars to eval for `gnus-topic-line-format-spec`.
* lisp/gnus/message.el (message-yank-original): Use `cl-progv` rather
than `eval` to bind the vars from `message-cite-style`.
* lisp/gnus/mml.el (mml-parse-1): Use `apply` instead of `eval`.
(gnus-newsgroup-name, gnus-displaying-mime, gnus-newsgroup-name)
(gnus-article-prepare-hook, gnus-newsgroup-charset)
(gnus-original-article-buffer, gnus-message-buffer)
(message-this-is-news, message-this-is-mail): Declare vars.
* lisp/gnus/deuglify.el (gnus-outlook-rearrange-article): Remove unused
var `cite-marks`.
* lisp/gnus/gnus-art.el (ansi-color-context-region): Declare var.
(gnus-mime-display-attachment-buttons-in-header): Move declaration
before first use.
(gnus-mime-display-alternative): Remove unused var `from`.
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-list): Remove unused
var `start` `end`.
* lisp/gnus/gnus-cache.el (gnus-article-decode-hook)
(nnml-generate-active-function): Declare var.
* lisp/gnus/gnus-cite.el (gnus-message-citation-mode): Remove unused
var `keywords`.
* lisp/gnus/gnus-cloud.el (gnus-cloud-encode-data): Remove unused var
`cipher`.
(gnus-cloud-ensure-cloud-group): Remove unused var `method`.
* lisp/gnus/gnus-delay.el (gnus-delay-article): Remove unused var `days`.
* lisp/gnus/gnus-html.el (gnus-html-wash-images): Remove unused vars
`tag`, `string`, and `images`.
(gnus-html-wash-tags): Remove unused vars `string` and `images`.
* lisp/gnus/gnus-msg.el (gnus-msg-mail): Remove unused var `group-name`.
(gnus-group-mail, gnus-group-news, gnus-summary-mail-other-window)
(gnus-summary-news-other-window):
Remove unused vars `group` and `buffer`.
(gnus-configure-posting-styles): Remove unused vars `style` and `attribute`.
* lisp/gnus/gnus-picon.el (gnus-picon-find-face): Remove unused vars
`database`, `directory`, and `instance`.
(gnus-picon-transform-newsgroups): Remove unused var `point`.
* lisp/gnus/gnus-range.el (gnus-range-difference): Remove unused var `safe`.
* lisp/gnus/gnus-score.el (gnus-score-load-file): Remove unused var
`score-fn`.
* lisp/gnus/gnus-sum.el (message-options-set-recipient): Declare var.
* lisp/gnus/gnus-undo.el (gnus-undo): Fix docstring lie.
* lisp/gnus/gnus-util.el (print-string-length)
(iswitchb-make-buflist-hook): Declare vars.
(gnus-emacs-version): Remove unused var `codename`.
(gnus-rename-file): Remove unused vars `old-name` and `new-name`.
* lisp/gnus/gnus-uu.el (gnus-uu-yenc-article): Remove unused var
`start-char`.
(gnus-asynchronous): Declare var.
* lisp/gnus/mm-partial.el (gnus-displaying-mime): Declare var.
(mm-inline-partial): Remove unused var `buffer`.
* lisp/gnus/mm-view.el (w3m-force-redisplay, w3m-safe-url-regexp)
(gnus-displaying-mime, gnus-original-article-buffer)
(gnus-article-prepare-hook): Declare vars.
* lisp/gnus/mml-smime.el (mml-smime-epg-encrypt): Remove unused var
`boundary`.
(mml-smime-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/mml1991.el (pgg-text-mode): Declare var.
* lisp/gnus/mml2015.el (pgg-text-mode): Declare var.
(mml2015-pgg-decrypt): Remove unused var `result`.
(mml2015-epg-key-image-to-string): Remove unused var `error`.
(mml2015-epg-decrypt): Remove unused var `result`.
(mml2015-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/nnbabyl.el (nnml-current-directory): Declare var.
* lisp/gnus/nndiary.el (nndiary-files): Move declaration before first use.
* lisp/gnus/nnfolder.el (nnfolder-request-accept-article):
Remove unused var `buf`.
* lisp/gnus/nnmail.el (nnmail-parse-active): Remove unused var `err`.
* lisp/gnus/nnmairix.el (nnmairix-request-group): Remove unused var `args`.
(nnmairix-request-create-group): Remove unused var `info`.
(nnmairix-request-list): Remove unused var `folder`.
(nnmairix-request-set-mark): Remove unused var `propto`.
(nnmairix-request-set-mark): Remove unused vars `number` and `method`.
(nnmairix-close-group): Remove unused var `method`.
(nnmairix-create-search-group-from-message): Remove unused var `cq`.
(nnmairix-create-server-and-default-group): Remove unused var `create`.
(nnmairix-purge-old-groups): Remove unused var `folder`.
(nnmairix-remove-tick-mark-original-article, nnmairix-get-valid-servers):
Remove unused var `cur`.
(nnmairix-replace-group-and-numbers): Remove unused var `header`.
(nnmairix-goto-original-article): Remove unused var `rval`.
(nnmairix-widget-create-query): Remove unused var `allwidgets`.
* lisp/gnus/nnmbox.el (nnml-current-directory): Declare var.
* lisp/gnus/nnmh.el (nnmh-toplev): Move declaration before first use.
(nnmh-request-list-1): Remove unused var `rdir`.
* lisp/gnus/nnml.el (nnml-generate-nov-file): Remove unused var `file`.
* lisp/gnus/nnrss.el (nnrss-request-article): Remove unused var `post`.
(nnrss-request-article): Remove unused var `fn`.
(nnrss-check-group): Remove unused var `rdf-ns`.
* lisp/gnus/nnweb.el (nnweb-request-article): Remove unused var `active`.
(nnweb-google-parse-1): Remove unused var `Score`.
* lisp/gnus/spam-stat.el (spam-stat-error-holder): Remove var.
(spam-stat-buffer-words-with-scores): Remove unused var `word`.
(spam-stat-score-buffer): Remove unused var `spam-stat-error-holder`.
(spam-stat-split-fancy): Use `err` instead of `spam-stat-error-holder`.
* lisp/gnus/spam-wash.el (spam-wash): Remove unused var `handle`.
* lisp/gnus/spam.el (spam-copy-or-move-routine): Remove unused vars
`article` and `mark`.
(spam-register-routine): Remove unused var `article`.
(spam-log-undo-registration): Remove unused var `found`.
(spam-ifile-register-with-ifile): Remove unused var `parameters`.
(spam-check-stat): Remove unused vars `category` and `return`.
(spam-parse-list): Remove unused var `found`.
(spam-filelist-register-routine): Remove unused var `from`.
2021-01-30 18:44:00 -05:00
|
|
|
(with-suppressed-warnings ((lexical features))
|
|
|
|
(dlet ((features (cons 'gnus-group features)))
|
|
|
|
(require 'gnus-sum))))
|
* lisp/gnus: Misc simplifications found during conversion to lexical
* lisp/gnus/nnoo.el (noo-import-1, nnoo-define-skeleton-1): Use `dolist`.
(noo-map-functions, nnoo-define-basics): Directly emit the code rather than
going through an intermediate function; this also avoids the use of `eval`.
(noo-map-functions-1, nnoo-define-basics-1): Delete functions,
folded into their corresponding macro.
* lisp/gnus/gmm-utils.el (gmm-tool-bar-from-list): Demote `eval` to
`symbol-value`.
* lisp/gnus/gnus-art.el (gnus-button-handle-describe-key): Avoid `eval`
since `kbd` is a function nowadays.
(gnus-treat-part-number): Rename from `part-number`.
(gnus-treat-total-parts): Rename from `total-parts`.
(gnus-treat-article, gnus-treat-predicate): Adjust accordingly.
* lisp/gnus/gnus-cache.el (gnus-agent-load-alist): Use `declare-function`.
* lisp/gnus/gnus-group.el (gnus-cache-active-hashtb): Use `defvar`.
(gnus-group-iterate): Make it a normal function since lexical scoping
avoids the risk of name capture anyway.
(gnus-group-delete-articles): Actually use the `oldp` arg.
* lisp/gnus/gnus-html.el (gnus-html-wash-images): Fix debug message so
it's emitted after the `url` var it prints is actually initialized.
And avoid `setq` while we're at it.
* lisp/gnus/gnus-msg.el (gnus-group-mail, gnus-group-news)
(gnus-summary-mail-other-window, gnus-summary-news-other-window):
Merge `let`s using `let*`.
* lisp/gnus/gnus-spec.el (gnus-update-format-specifications):
Tighten the scope of `buffer`, and tighten a regexp.
(gnus-parse-simple-format): Reduce code duplication.
* lisp/gnus/gnus-start.el (gnus-child-mode): Don't `defvar` it since we
never use that variable and accordingly don't define it as a minor mode.
* lisp/gnus/gnus-util.el (gnus-byte-compile): Simplify so it obeys
`gnus-use-byte-compile` not just on the first call.
(iswitchb-minibuffer-setup): Declare.
* lisp/gnus/mail-source.el (mail-source-bind-1)
(mail-source-bind-common-1): Use `mapcar`.
(mail-source-set-common-1): Use `dolist`.
(display-time-event-handler): Declare.
* lisp/gnus/mml-smime.el (mml-smime-epg-verify): Reduce code duplication.
* lisp/gnus/mml.el (mml-parse-1): Reduce code duplication.
* lisp/gnus/mml2015.el (mml2015-epg-verify): Reduce code duplication.
* lisp/gnus/nnmail.el (nnmail-get-split-group): Tighten regexp.
(nnmail-split-it): Reduce code duplication.
* lisp/gnus/nnweb.el (nnweb-request-article): Avoid `setq`.
* lisp/gnus/spam.el (BBDB): Use the `noerror` arg of `require`, and
define all the functions for BBDB regardless if the require succeeded.
(spam-exists-in-BBDB-p): Don't inline, not worth it.
2021-01-30 16:45:25 -05:00
|
|
|
|
|
|
|
(defvar gnus-cache-active-hashtb)
|
2007-10-28 09:18:39 +00:00
|
|
|
|
2018-03-22 21:40:24 -07:00
|
|
|
(defvar tool-bar-mode)
|
|
|
|
|
2007-10-28 09:18:39 +00:00
|
|
|
(autoload 'gnus-agent-total-fetched-for "gnus-agent")
|
|
|
|
(autoload 'gnus-cache-total-fetched-for "gnus-cache")
|
1997-04-16 22:13:18 +00:00
|
|
|
|
Bring the Gnus Cloud package into working order.
* lisp/gnus/gnus-sync.el: Removed in favor of gnus-cloud.el.
* lisp/gnus/gnus-cloud.el: Autoload EPG functions. Change storage format to
simplify non-file data.
(gnus-cloud-storage-method): New defcustom to support nil, Base64,
Base64+gzip, or EPG encoding on the Gnus Cloud IMAP server. Defaults to
EPG if that's available, Base64+gzip otherwise.
(gnus-cloud-interactive): New defcustom to make Gnus Cloud operations
interactive, defaults to enabled.
(gnus-cloud-group-name): New variable for the Gnus Cloud group name.
(gnus-cloud-make-chunk): Tag with "Gnus-Cloud-Version" instead of just
"Version".
(gnus-cloud-insert-data): Simplify and support :newsrc-data entries.
(gnus-cloud-encode-data, gnus-cloud-decode-data): Support various
storage methods as per gnus-cloud-storage-method.
(gnus-cloud-parse-chunk): Look for "Gnus-Cloud-Version" marker.
(gnus-cloud-parse-version-1): Fix parsing loop bug. Handle :newsrc-data
entries.
(gnus-cloud-update-all): Handle :newsrc-data entries and dispatch to
file and data handlers.
(gnus-cloud-update-newsrc-data): New function to handle :newrsc-data
entries.
(gnus-cloud-update-file): Rework to support gnus-cloud-interactive and
be more careful.
(gnus-cloud-delete-file): Remove; merged into gnus-cloud-update-file.
(gnus-cloud-file-covered-p, gnus-cloud-all-files)
(gnus-cloud-files-to-upload, gnus-cloud-ensure-cloud-group)
(gnus-cloud-add-timestamps, gnus-cloud-available-chunks)
(gnus-cloud-prune-old-chunks): Fix indentation.
(gnus-cloud-timestamp): New function to make a standard Gnus Cloud
timestamp.
(gnus-cloud-file-new-p): Use it.
(gnus-cloud-upload-all-data): Add interactive convenience function to
upload all data.
(gnus-cloud-upload-data): Make interactive; collect files and newsrc
data separately; refresh Gnus Cloud group after insert.
(gnus-cloud-download-all-data): Add interactive convenience function to
download all data.
(gnus-cloud-download-data): Rework to support "Gnus-Cloud-Version"
marker and different storage methods.
(gnus-cloud-host-server-p): New function to check if a server is the
Gnus Cloud host.
(gnus-cloud-collect-full-newsrc): Tag entries with :newsrc-data.
(gnus-cloud-host-acceptable-method-p): New function so
other code can check if a server method can host the Gnus cloud.
(gnus-cloud-storage-method): Use 'radio instead of 'choice for better UI.
(gnus-cloud-method): Make this a defcustom and note how to set it.
* lisp/gnus/gnus-group.el (gnus-group-cloud-map): Add Gnus Cloud autoloaded
keybindings under the `~' prefix.
* lisp/gnus/gnus-srvr.el (gnus-server-mode-map, gnus-server-make-menu-bar)
(gnus-server-cloud, gnus-server-cloud-host)
(gnus-server-font-lock-keywords, gnus-server-insert-server-line)
(gnus-server-toggle-cloud-method-server): Support Gnus Cloud
synchronized servers and synchronization host server toggling (`i' and
`I') and visual display.
(gnus-server-toggle-cloud-method-server): Use
gnus-cloud-host-acceptable-method-p.
(gnus-server-toggle-cloud-method-server): Use custom-set-variables to
set the gnus-cloud-method. Ask the user if it's OK to upload the data
right now.
* doc/misc/gnus.texi: Document Gnus Cloud package.
2016-07-11 11:01:26 -04:00
|
|
|
(autoload 'gnus-cloud-upload-all-data "gnus-cloud")
|
|
|
|
(autoload 'gnus-cloud-download-all-data "gnus-cloud")
|
|
|
|
|
2020-11-12 20:02:09 -08:00
|
|
|
(autoload 'gnus-topic-find-groups "gnus-topic")
|
|
|
|
|
Merge changes made in Gnus master ever since feature freeze
:::::::::::::::::
::: doc/misc/ :::
:::::::::::::::::
2012-06-11 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.texi (POP before SMTP): POP-before-SMTP works with all sending
methods, so don't mention smtpmail here.
2012-05-04 Wolfgang Jenkner <wjenkner@inode.at>
* gnus.texi (Picons): Document gnus-picon-properties.
2012-06-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.texi: Remove mention of compilation, as that's no longer
supported.
2012-03-14 Christopher Schmidt <christopher@ch.ristopher.com>
* gnus.texi (Archived Messages): Mention
gnus-gcc-pre-body-encode-hook and gnus-gcc-post-body-encode-hook.
2012-02-16 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Various Summary Stuff):
Remove mention of `gnus-propagate-marks'.
2012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi: Remove mentions of nnml/nnfolder/nntp backend marks,
which no longer exist.
2012-02-08 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus.texi (Archived Messages):
Document gnus-gcc-self-resent-messages.
2012-02-06 Lars Ingebrigtsen <larsi@gnus.org>
* message.texi (Mail Variables):
Mention the optional user parameter for X-Message-SMTP-Method.
2012-02-02 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Posting Styles): Mention X-Message-SMTP-Method.
* message.texi (Mail Variables): Document X-Message-SMTP-Method.
2012-01-31 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Key Index): Change encoding to utf-8.
::::::::::::::::::
::: lisp/gnus/ :::
::::::::::::::::::
2012-06-26 Katsumi Yamaoka <yamaoka@jpl.org>
* mm-decode.el: Add coding cookie for a soft hyphen that mm-shr uses.
2012-06-11 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus-art.el (gnus-article-read-summary-keys): Protect against the key
being bound to a lambda form.
2012-05-04 Wolfgang Jenkner <wjenkner@inode.at>
* gnus-picon.el (gnus-picon-properties): New defcustom.
(gnus-picon-create-glyph): Use it.
2012-06-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* shr.el: Add a iso-8859-1 cookie to make stuff work under other
locales.
* mm-decode.el (mm-display-part): Dissect archives when hitting `RET'
on a handle.
* gnus-sum.el (gnus-summary-limit-to-author): Use the current From
address as the default.
* nnfolder.el (nnfolder-save-buffer): Delete old versions silently.
It makes no sense to query the user about internal files.
* gnus-spec.el: Remove all the byte-compilation stuff, since
benchmarking shows that it doesn't help when entering large summary
buffers.
* gnus-util.el (gnus-byte-code): Remove.
* gnus-spec.el (gnus-update-format-specifications): Remove outdated
grouplens stuff.
2012-06-07 Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk>
* message.el (message-buffers): Return all buffers derived from Message
to make `gnus-dired-attach' work with mu4e.
2012-05-28 Daiki Ueno <ueno@unixuser.org>
* mm-decode.el (mm-inhibit-auto-detect-attachment): New variable.
(mm-dissect-singlepart): Don't guess the MIME type of
application/octet-stream parts if mm-inhibit-auto-detect-attachment is
set.
(mm-dissect-multipart): Bind mm-inhibit-auto-detect-attachment if the
toplevel MIME type is multipart/encrypted.
2011-12-02 Wolfgang Jenkner <wjenkner@inode.at>
* gnus-agent.el (gnus-agent-save-active): Deal with the "groups" format.
In particular, add an optional argument and a docstring.
* gnus-start.el (gnus-groups-to-gnus-format): Use it.
* nntp.el (nntp-finish-retrieve-group-infos): Make `nntp-server-buffer'
current before calling `gnus-groups-to-gnus-format'.
Note that this was already the case for `gnus-active-to-gnus-format'.
2012-04-25 Katsumi Yamaoka <yamaoka@jpl.org>
* pop3.el (pop3-wait-for-messages): Fix retrieved data size calculation.
2012-04-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
* mm-decode.el (mm-dissect-buffer): Doc fix.
* gnus-sum.el (gnus-handle-ephemeral-exit):
Avoid creating the group buffer if it doesn't exist.
* gnus-group.el (gnus-group-read-ephemeral-group): If no quit-config
is given, mark the group as ephemeral with the current window conf.
* gnus-sum.el (gnus-set-global-variables): Don't assume that the group
buffer exists, which it doesn't if we haven't started Gnus.
(gnus-summary-exit): Allow quitting when we don't have a group buffer.
2012-04-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* mml.el (mml-generate-mime):
Allow specifying what the top-level part type is.
* gnus-sum.el (gnus-auto-center-summary):
`scroll-margin' isn't defined on XEmacs.
2012-04-10 Philipp Haselwarter <philipp.haselwarter@gmx.de> (tiny change)
* gnus-sum.el (gnus-auto-center-summary):
Set default to respect `scroll-margin'.
2012-04-10 Elias Oltmanns <eo@nebensachen.de> (tiny change)
* gnus-cite.el (gnus-dissect-cited-text): A single line without
citation prefix within a block of cited text should be considered
part of that block *only* if it is a blank line.
2012-04-02 Katsumi Yamaoka <yamaoka@jpl.org>
* shr.el (shr-find-fill-point): Remove unused code; don't break a line
before kinsoku-bol characters nor within kinsoku-eol characters.
2012-03-27 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-sync.el (gnus-topic-alist, gnus-group-topic)
(gnus-topic-create-topic, gnus-topic-enter-dribble):
Silence compiler.
(gnus-sync-read): Use mapc instead of mapcar.
* mm-archive.el: Require mm-decode for some macros.
(gnus-recursive-directory-files, mailcap-extension-to-mime):
Silence the byte compiler.
(mm-archive-decoders): New function that returns the value of
the mm-archive-decoders variable.
* mm-decode.el:
Don't require mm-archive; autoload mm-archive functions instead.
(mm-dissect-singlepart): Use the function mm-archive-decoders.
* nnmail.el (mail-send-and-exit): Silence the byte compiler.
2012-03-12 Peter Munster <pmrb@free.fr>
* gnus-demon.el (gnus-demon-timers): Now a plist (function -> timer).
(gnus-demon-cancel): Ditto.
(gnus-demon-run-callback): When function cannot be called due to low
idleness, call it when idleness reaches the expected value, instead
of waiting another timer period.
(gnus-demon-init): Add `time' to arguments of call-back.
2012-03-22 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.el: Register gnus-registry functions.
* gnus-registry.el (gnus-try-warping-via-registry):
Moved here and indent.
* gnus-int.el (gnus-warp-to-article):
Check whether the registry is enabled before warping.
2012-03-22 Dave Abrahams <dave@boostpro.com>
* gnus-sum.el (gnus-summary-insert-subject): Record information
in the registry about each article retrieved.
* gnus-int.el (gnus-select-group-with-message-id): New function.
(gnus-try-warping-via-registry): Ditto.
(gnus-warp-to-article): Fall back on the registry.
2012-03-22 Lars Magne Ingebrigtsen <larsi@gnus.org>
* nnimap.el (nnimap-fetch-partial-articles): Minor doc string fixup.
2012-03-22 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-msg.el (gnus-summary-resend-message-insert-gcc): Assume that
gnus-gcc-self-resent-messages may be a group parameter.
(gnus-summary-resend-message):
Don't encode encoded words in header when Gcc'ing resent message.
2012-03-19 Lars Magne Ingebrigtsen <larsi@gnus.org>
* shr.el (shr-insert): Treat non-breaking space just like normal
space. This seems to produce more pleasing results.
(shr-insert):
Only insert a blank line if we're starting from an image.
(shr-tag-br):
Allow <br> to end lines or to make a single blank line.
(shr-ensure-paragraph): Consider lines with white space to be blank.
2012-03-14 Christopher Schmidt <christopher@ch.ristopher.com>
* gnus-msg.el (gnus-inews-do-gcc): Add gnus-gcc-pre-body-encode-hook
and gnus-gcc-post-body-encode-hook.
2012-02-16 Lars Ingebrigtsen <larsi@gnus.org>
* mm-decode.el (mm-dissect-singlepart):
Guess what the type of application/octet-stream parts really is.
* gnus-sum.el (gnus-propagate-marks): Remove.
2012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
* nntp.el (nntp-coding-system-for-read): Remove.
(nntp-coding-system-for-write): Ditto.
(nntp-open-connection): Just use `binary' directly.
2012-02-14 Teodor Zlatanov <tzz@lifelogs.com>
* registry.el (registry-usage-test, registry-persistence-test):
Move to tests/gnustest-registry.el.
(registry-make-testable-db, registry-match-test)
(registry-instantiation-test): Move to tests/gnustest-registry.el.
* gnus-registry.el (gnus-registry-misc-test)
(gnus-registry-usage-test): Move to tests/gnustest-registry.el.
* tests/gnustest-registry.el:
New file with the registry and gnus-registry ERT tests.
2012-02-13 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-msg.el (gnus-summary-resend-message):
Make gnus-summary-resend-message-insert-gcc be last item in
message-header-setup-hook.
2012-02-13 Lars Ingebrigtsen <larsi@gnus.org>
* nnfolder.el (nnfolder-marks-directory, nnfolder-marks-is-evil)
(nnfolder-marks, nnfolder-marks-file-suffix)
(nnfolder-marks-modtime): Remove.
(nnfolder-open-server): Don't use marks.
(nnfolder-request-delete-group): Ditto.
(nnfolder-request-rename-group): Ditto.
(nnfolder-request-set-mark, nnfolder-request-marks)
(nnfolder-group-marks-pathname, nnfolder-marks-changed-p)
(nnfolder-save-marks, nnfolder-open-marks): Remove.
* nnml.el (nnml-marks-is-evil, nnml-marks-file-name, nnml-marks)
(nnml-marks-modtime): Remove.
(nnml-request-delete-group): Don't use marks.
(nnml-request-rename-group): Ditto.
(nnml-request-set-mark, nnml-request-marks, nnml-marks-changed-p)
(nnml-save-marks, nnml-open-marks): Remove.
* nntp.el (nntp-marks-is-evil, nntp-marks-file-name, nntp-marks)
(nntp-marks-modtime, nntp-marks-directory, nntp-request-set-mark)
(nntp-request-marks, nntp-marks-directory, nntp-marks-changed-p)
(nntp-save-marks, nntp-open-marks, nntp-possibly-create-directory)
(nntp-server-to-method-cache): Remove.
* shr.el (shr-rescale-image): Fix wrong merge.
2012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
* shr.el (shr-remove-trailing-whitespace):
Really delete the padding on too-wide lines.
2012-02-09 Lars Ingebrigtsen <larsi@gnus.org>
* mm-archive.el (mm-archive-dissect-and-inline): New function.
(mm-archive-dissect-and-inline): Fix up the undisplayer.
* mm-decode.el (mm-display-external): Output the text from
the command in the buffer after the command finished.
This makes text-based commands behave better.
2012-02-07 Lars Ingebrigtsen <larsi@gnus.org>
* message.el (smtpmail-smtp-user): Silence compiler warning.
2012-02-06 Lars Ingebrigtsen <larsi@gnus.org>
* message.el (message-multi-smtp-send-mail):
Also allow specifying the SMTP user name.
2012-02-06 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-sum.el (gnus-summary-article-map): Fix typo.
2012-02-02 Lars Ingebrigtsen <larsi@gnus.org>
* message.el (message-multi-smtp-send-mail): New function.
(message-multi-smtp-send-mail): Respect the X-Message-SMTP-Method
header to implement multi-SMTP functionality.
* gnus-agent.el (gnus-agent-send-mail-function): Removed.
(gnus-agentize): Don't set it.
(gnus-agent-send-mail): Don't use it.
* gnus-sum.el (gnus-summary-widget-backward):
New function and keystroke.
* shr.el (shr-put-image): Remove underlines from sliced images.
(shr-zoom-image): Compute the region to be replaced more correctly.
2012-02-02 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-msg.el (gnus-gcc-self-resent-messages): New user option.
(gnus-summary-resend-message-insert-gcc): New function.
(gnus-summary-resend-message): Modify message-header-setup-hook and
message-sent-hook to make it work for Gcc.
(gnus-inews-do-gcc): Update the number of unread articles of groups
that messages are Gcc'd to.
* message.el (message-resend): Run message-sent-hook to do Gcc.
2012-02-01 Lars Ingebrigtsen <larsi@gnus.org>
* gnus-registry.el (gnus-registry-fixup-registry):
Move the message to a higher level to silence compilation.
* gnus-art.el (gnus-shr-put-image): Take and pass on a `flags'
parameter to allow controlling the scaling.
* shr.el (shr-zoom-image): New command and keystroke.
(shr-put-image): Take a `size' flag to say how to scale the image.
* mm-archive.el (mm-dissect-archive): Use it to get all file names.
Use recursive deletion.
(mm-dissect-archive): Add support for zip files.
* gnus-util.el (gnus-recursive-directory-files): New function.
* mm-archive.el (mm-archive-list-files): Inline text and image parts.
(mm-archive-decoders): Add tgz support.
* mm-decode.el (mm-shr): Make sure that the HTML ends with a newline.
Otherwise inserting text into the Gnus buffer can look odd.
* gnus-art.el (gnus-mime-inline-part): Slight clean-up.
* mm-archive.el (mm-archive-decoders): Add support for tar.
* gnus.el (gnus-logo-color-alist): Change the colours for Ma Gnus.
* nnmail.el (nnmail-extra-headers): Add Cc to the default.
2012-01-31 Lars Ingebrigtsen <larsi@gnus.org>
* mm-decode.el (mm-dissect-singlepart): Check that the decoder exists.
* mm-archive.el: New file.
* mm-decode.el (mm-dissect-singlepart):
Use it to decode ms-tnef files.
* mm-util.el (mm-find-buffer-file-coding-system): Comment fix.
* message.el (message-goto-*): Make all the `message-goto-*' commands
push the mark before moving point. This makes it easier to go back
to where you came from after editing whatever you jumped to.
2012-01-07 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el (gnus-sync-newsrc-groups): Quote normally.
(gnus-sync-lesync-pre-save-group-entry): Remove invalid invlists.
(gnus-sync-lesync-normalize-group-entry): Ignore a few more keys.
2011-11-09 Teodor Zlatanov <tzz@lifelogs.com>
* spam.el: Move BBDB autoloads.
(spam-exists-in-BBDB-p):
New function to do the BBDB search directly in BBDB 2 and 3.
(spam-check-BBDB): Use it.
(spam-enter-ham-BBDB): Use it.
2011-10-31 Peter Munster <pmrb@free.fr> (tiny change)
* gnus-group.el (gnus-group-get-new-news):
New parameter `one-level' for scanning exactly one level.
* gnus-start.el (gnus-get-unread-articles): Ditto.
2011-11-03 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: More commentary about setup.
2011-11-02 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: More commentary about `gnus-sync-read' issues.
2011-10-31 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: Improve docs about CouchDB admins.
2011-10-29 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el (gnus-sync-lesync-setup): Fix salt when user setup is
not needed. Provide xmlplistread list function to produce XML plist
output for non-Gnus LeSync clients.
2011-10-27 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: Add LeSync synchronization backend and logic to read
and save against it. Group subscriptions, read marks, other marks,
subscription levels, topic names, and topic offsets (the group's
position within the topic) are saved. This is an experimental
backend and may change significantly. Load json.el from
the gnus-fallback-lib if it's not available otherwise.
(gnus-sync-save): Don't use `apply-partially' because of XEmacs.
2011-04-20 David Engster <dengste@eml.cc>
* tests/gnustest-nntp.el: New file for simple NNTP testing.
2012-06-26 22:52:31 +00:00
|
|
|
(defcustom gnus-no-groups-message "No news is good news"
|
Remove obsolete leading * from defcustom, defface doc strings.
* lisp/cedet/ede/linux.el, lisp/cedet/ede/project-am.el:
* lisp/cedet/ede/simple.el, lisp/cedet/semantic/bovine/c.el:
* lisp/cedet/semantic/complete.el, lisp/cedet/semantic/db.el:
* lisp/cedet/semantic/decorate/include.el:
* lisp/cedet/semantic/decorate/mode.el, lisp/cedet/semantic/format.el:
* lisp/cedet/semantic/ia.el, lisp/cedet/semantic/idle.el:
* lisp/cedet/semantic/imenu.el, lisp/cedet/semantic/lex-spp.el:
* lisp/cedet/semantic/mru-bookmark.el, lisp/cedet/semantic/sb.el:
* lisp/cedet/srecode/fields.el, lisp/ecomplete.el:
* lisp/gnus/gnus-agent.el, lisp/gnus/gnus-art.el:
* lisp/gnus/gnus-async.el, lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-cite.el, lisp/gnus/gnus-delay.el:
* lisp/gnus/gnus-diary.el, lisp/gnus/gnus-dup.el:
* lisp/gnus/gnus-fun.el, lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-kill.el, lisp/gnus/gnus-msg.el:
* lisp/gnus/gnus-picon.el, lisp/gnus/gnus-salt.el:
* lisp/gnus/gnus-score.el, lisp/gnus/gnus-start.el:
* lisp/gnus/gnus-sum.el, lisp/gnus/gnus-topic.el:
* lisp/gnus/gnus-util.el, lisp/gnus/gnus-uu.el, lisp/gnus/gnus-win.el:
* lisp/gnus/gnus.el, lisp/gnus/mail-source.el, lisp/gnus/message.el:
* lisp/gnus/mm-url.el, lisp/gnus/mm-uu.el, lisp/gnus/mml.el:
* lisp/gnus/nndiary.el, lisp/gnus/nnir.el, lisp/gnus/nnmail.el:
* lisp/gnus/smiley.el, lisp/gnus/smime.el, lisp/mail/mail-extr.el:
* lisp/mh-e/mh-e.el, lisp/net/mailcap.el, lisp/net/pop3.el:
* lisp/net/starttls.el, lisp/progmodes/cc-vars.el:
* lisp/progmodes/cperl-mode.el, test/manual/cedet/tests/test.el:
Remove obsolete leading * from defcustom, defface doc strings.
2016-06-09 20:13:12 -04:00
|
|
|
"Message displayed by Gnus when no groups are available."
|
1997-04-16 22:13:18 +00:00
|
|
|
:group 'gnus-start
|
|
|
|
:type 'string)
|
|
|
|
|
|
|
|
(defcustom gnus-keep-same-level nil
|
2020-12-19 17:26:58 +01:00
|
|
|
"Non-nil means that the newsgroup after this one will be on the same level.
|
2021-11-22 11:45:44 +01:00
|
|
|
When you type, for instance, \\`n' after reading the last article in the
|
1997-04-16 22:13:18 +00:00
|
|
|
current newsgroup, you will go to the next newsgroup. If this variable
|
|
|
|
is nil, the next newsgroup will be the next from the group
|
|
|
|
buffer.
|
|
|
|
If this variable is non-nil, Gnus will either put you in the
|
|
|
|
next newsgroup with the same level, or, if no such newsgroup is
|
|
|
|
available, the next newsgroup with the lowest possible level higher
|
|
|
|
than the current level.
|
|
|
|
If this variable is `best', Gnus will make the next newsgroup the one
|
|
|
|
with the best level."
|
|
|
|
:group 'gnus-group-levels
|
|
|
|
:type '(choice (const nil)
|
|
|
|
(const best)
|
|
|
|
(sexp :tag "other" t)))
|
|
|
|
|
|
|
|
(defcustom gnus-group-goto-unread t
|
Remove obsolete leading * from defcustom, defface doc strings.
* lisp/cedet/ede/linux.el, lisp/cedet/ede/project-am.el:
* lisp/cedet/ede/simple.el, lisp/cedet/semantic/bovine/c.el:
* lisp/cedet/semantic/complete.el, lisp/cedet/semantic/db.el:
* lisp/cedet/semantic/decorate/include.el:
* lisp/cedet/semantic/decorate/mode.el, lisp/cedet/semantic/format.el:
* lisp/cedet/semantic/ia.el, lisp/cedet/semantic/idle.el:
* lisp/cedet/semantic/imenu.el, lisp/cedet/semantic/lex-spp.el:
* lisp/cedet/semantic/mru-bookmark.el, lisp/cedet/semantic/sb.el:
* lisp/cedet/srecode/fields.el, lisp/ecomplete.el:
* lisp/gnus/gnus-agent.el, lisp/gnus/gnus-art.el:
* lisp/gnus/gnus-async.el, lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-cite.el, lisp/gnus/gnus-delay.el:
* lisp/gnus/gnus-diary.el, lisp/gnus/gnus-dup.el:
* lisp/gnus/gnus-fun.el, lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-kill.el, lisp/gnus/gnus-msg.el:
* lisp/gnus/gnus-picon.el, lisp/gnus/gnus-salt.el:
* lisp/gnus/gnus-score.el, lisp/gnus/gnus-start.el:
* lisp/gnus/gnus-sum.el, lisp/gnus/gnus-topic.el:
* lisp/gnus/gnus-util.el, lisp/gnus/gnus-uu.el, lisp/gnus/gnus-win.el:
* lisp/gnus/gnus.el, lisp/gnus/mail-source.el, lisp/gnus/message.el:
* lisp/gnus/mm-url.el, lisp/gnus/mm-uu.el, lisp/gnus/mml.el:
* lisp/gnus/nndiary.el, lisp/gnus/nnir.el, lisp/gnus/nnmail.el:
* lisp/gnus/smiley.el, lisp/gnus/smime.el, lisp/mail/mail-extr.el:
* lisp/mh-e/mh-e.el, lisp/net/mailcap.el, lisp/net/pop3.el:
* lisp/net/starttls.el, lisp/progmodes/cc-vars.el:
* lisp/progmodes/cperl-mode.el, test/manual/cedet/tests/test.el:
Remove obsolete leading * from defcustom, defface doc strings.
2016-06-09 20:13:12 -04:00
|
|
|
"If non-nil, movement commands will go to the next unread and subscribed group."
|
1997-04-16 22:13:18 +00:00
|
|
|
:link '(custom-manual "(gnus)Group Maneuvering")
|
|
|
|
:group 'gnus-group-various
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
(defcustom gnus-goto-next-group-when-activating t
|
Remove obsolete leading * from defcustom, defface doc strings.
* lisp/cedet/ede/linux.el, lisp/cedet/ede/project-am.el:
* lisp/cedet/ede/simple.el, lisp/cedet/semantic/bovine/c.el:
* lisp/cedet/semantic/complete.el, lisp/cedet/semantic/db.el:
* lisp/cedet/semantic/decorate/include.el:
* lisp/cedet/semantic/decorate/mode.el, lisp/cedet/semantic/format.el:
* lisp/cedet/semantic/ia.el, lisp/cedet/semantic/idle.el:
* lisp/cedet/semantic/imenu.el, lisp/cedet/semantic/lex-spp.el:
* lisp/cedet/semantic/mru-bookmark.el, lisp/cedet/semantic/sb.el:
* lisp/cedet/srecode/fields.el, lisp/ecomplete.el:
* lisp/gnus/gnus-agent.el, lisp/gnus/gnus-art.el:
* lisp/gnus/gnus-async.el, lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-cite.el, lisp/gnus/gnus-delay.el:
* lisp/gnus/gnus-diary.el, lisp/gnus/gnus-dup.el:
* lisp/gnus/gnus-fun.el, lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-kill.el, lisp/gnus/gnus-msg.el:
* lisp/gnus/gnus-picon.el, lisp/gnus/gnus-salt.el:
* lisp/gnus/gnus-score.el, lisp/gnus/gnus-start.el:
* lisp/gnus/gnus-sum.el, lisp/gnus/gnus-topic.el:
* lisp/gnus/gnus-util.el, lisp/gnus/gnus-uu.el, lisp/gnus/gnus-win.el:
* lisp/gnus/gnus.el, lisp/gnus/mail-source.el, lisp/gnus/message.el:
* lisp/gnus/mm-url.el, lisp/gnus/mm-uu.el, lisp/gnus/mml.el:
* lisp/gnus/nndiary.el, lisp/gnus/nnir.el, lisp/gnus/nnmail.el:
* lisp/gnus/smiley.el, lisp/gnus/smime.el, lisp/mail/mail-extr.el:
* lisp/mh-e/mh-e.el, lisp/net/mailcap.el, lisp/net/pop3.el:
* lisp/net/starttls.el, lisp/progmodes/cc-vars.el:
* lisp/progmodes/cperl-mode.el, test/manual/cedet/tests/test.el:
Remove obsolete leading * from defcustom, defface doc strings.
2016-06-09 20:13:12 -04:00
|
|
|
"If non-nil, the \\<gnus-group-mode-map>\\[gnus-group-get-new-news-this-group] command will advance point to the next group."
|
1997-04-16 22:13:18 +00:00
|
|
|
:link '(custom-manual "(gnus)Scanning New Messages")
|
|
|
|
:group 'gnus-group-various
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
(defcustom gnus-permanently-visible-groups nil
|
Remove obsolete leading * from defcustom, defface doc strings.
* lisp/cedet/ede/linux.el, lisp/cedet/ede/project-am.el:
* lisp/cedet/ede/simple.el, lisp/cedet/semantic/bovine/c.el:
* lisp/cedet/semantic/complete.el, lisp/cedet/semantic/db.el:
* lisp/cedet/semantic/decorate/include.el:
* lisp/cedet/semantic/decorate/mode.el, lisp/cedet/semantic/format.el:
* lisp/cedet/semantic/ia.el, lisp/cedet/semantic/idle.el:
* lisp/cedet/semantic/imenu.el, lisp/cedet/semantic/lex-spp.el:
* lisp/cedet/semantic/mru-bookmark.el, lisp/cedet/semantic/sb.el:
* lisp/cedet/srecode/fields.el, lisp/ecomplete.el:
* lisp/gnus/gnus-agent.el, lisp/gnus/gnus-art.el:
* lisp/gnus/gnus-async.el, lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-cite.el, lisp/gnus/gnus-delay.el:
* lisp/gnus/gnus-diary.el, lisp/gnus/gnus-dup.el:
* lisp/gnus/gnus-fun.el, lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-kill.el, lisp/gnus/gnus-msg.el:
* lisp/gnus/gnus-picon.el, lisp/gnus/gnus-salt.el:
* lisp/gnus/gnus-score.el, lisp/gnus/gnus-start.el:
* lisp/gnus/gnus-sum.el, lisp/gnus/gnus-topic.el:
* lisp/gnus/gnus-util.el, lisp/gnus/gnus-uu.el, lisp/gnus/gnus-win.el:
* lisp/gnus/gnus.el, lisp/gnus/mail-source.el, lisp/gnus/message.el:
* lisp/gnus/mm-url.el, lisp/gnus/mm-uu.el, lisp/gnus/mml.el:
* lisp/gnus/nndiary.el, lisp/gnus/nnir.el, lisp/gnus/nnmail.el:
* lisp/gnus/smiley.el, lisp/gnus/smime.el, lisp/mail/mail-extr.el:
* lisp/mh-e/mh-e.el, lisp/net/mailcap.el, lisp/net/pop3.el:
* lisp/net/starttls.el, lisp/progmodes/cc-vars.el:
* lisp/progmodes/cperl-mode.el, test/manual/cedet/tests/test.el:
Remove obsolete leading * from defcustom, defface doc strings.
2016-06-09 20:13:12 -04:00
|
|
|
"Regexp to match groups that should always be listed in the group buffer.
|
1997-09-24 01:50:24 +00:00
|
|
|
This means that they will still be listed even when there are no
|
|
|
|
unread articles in the groups.
|
|
|
|
|
|
|
|
If nil, no groups are permanently visible."
|
1997-04-16 22:13:18 +00:00
|
|
|
:group 'gnus-group-listing
|
1999-06-12 04:07:04 +00:00
|
|
|
:type '(choice regexp (const nil)))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
2009-08-29 00:27:12 +00:00
|
|
|
(defcustom gnus-safe-html-newsgroups "\\`nnrss[+:]"
|
|
|
|
"Groups in which links in html articles are considered all safe.
|
|
|
|
The value may be a regexp matching those groups, a list of group names,
|
|
|
|
or nil. This overrides `mm-w3m-safe-url-regexp' (which see). This is
|
|
|
|
effective only when emacs-w3m renders html articles, i.e., in the case
|
|
|
|
`mm-text-html-renderer' is set to `w3m'."
|
|
|
|
:version "23.2"
|
|
|
|
:group 'gnus-group-various
|
|
|
|
:type '(choice regexp
|
|
|
|
(repeat :tag "List of group names" (string :tag "Group"))
|
|
|
|
(const nil)))
|
|
|
|
|
1997-04-16 22:13:18 +00:00
|
|
|
(defcustom gnus-list-groups-with-ticked-articles t
|
Remove obsolete leading * from defcustom, defface doc strings.
* lisp/cedet/ede/linux.el, lisp/cedet/ede/project-am.el:
* lisp/cedet/ede/simple.el, lisp/cedet/semantic/bovine/c.el:
* lisp/cedet/semantic/complete.el, lisp/cedet/semantic/db.el:
* lisp/cedet/semantic/decorate/include.el:
* lisp/cedet/semantic/decorate/mode.el, lisp/cedet/semantic/format.el:
* lisp/cedet/semantic/ia.el, lisp/cedet/semantic/idle.el:
* lisp/cedet/semantic/imenu.el, lisp/cedet/semantic/lex-spp.el:
* lisp/cedet/semantic/mru-bookmark.el, lisp/cedet/semantic/sb.el:
* lisp/cedet/srecode/fields.el, lisp/ecomplete.el:
* lisp/gnus/gnus-agent.el, lisp/gnus/gnus-art.el:
* lisp/gnus/gnus-async.el, lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-cite.el, lisp/gnus/gnus-delay.el:
* lisp/gnus/gnus-diary.el, lisp/gnus/gnus-dup.el:
* lisp/gnus/gnus-fun.el, lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-kill.el, lisp/gnus/gnus-msg.el:
* lisp/gnus/gnus-picon.el, lisp/gnus/gnus-salt.el:
* lisp/gnus/gnus-score.el, lisp/gnus/gnus-start.el:
* lisp/gnus/gnus-sum.el, lisp/gnus/gnus-topic.el:
* lisp/gnus/gnus-util.el, lisp/gnus/gnus-uu.el, lisp/gnus/gnus-win.el:
* lisp/gnus/gnus.el, lisp/gnus/mail-source.el, lisp/gnus/message.el:
* lisp/gnus/mm-url.el, lisp/gnus/mm-uu.el, lisp/gnus/mml.el:
* lisp/gnus/nndiary.el, lisp/gnus/nnir.el, lisp/gnus/nnmail.el:
* lisp/gnus/smiley.el, lisp/gnus/smime.el, lisp/mail/mail-extr.el:
* lisp/mh-e/mh-e.el, lisp/net/mailcap.el, lisp/net/pop3.el:
* lisp/net/starttls.el, lisp/progmodes/cc-vars.el:
* lisp/progmodes/cperl-mode.el, test/manual/cedet/tests/test.el:
Remove obsolete leading * from defcustom, defface doc strings.
2016-06-09 20:13:12 -04:00
|
|
|
"If non-nil, list groups that have only ticked articles.
|
1997-04-16 22:13:18 +00:00
|
|
|
If nil, only list groups that have unread articles."
|
|
|
|
:group 'gnus-group-listing
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
(defcustom gnus-group-default-list-level gnus-level-subscribed
|
2010-10-27 22:08:36 +00:00
|
|
|
"Default listing level.
|
2021-09-06 11:12:00 +02:00
|
|
|
When `gnus-group-use-permanent-levels' is non-nil, this level is
|
|
|
|
used as the starting level until the user sets a different level,
|
|
|
|
and is ignored afterwards."
|
1997-04-16 22:13:18 +00:00
|
|
|
:group 'gnus-group-listing
|
2010-10-27 22:08:36 +00:00
|
|
|
:type '(choice (integer :tag "Level")
|
|
|
|
(function :tag "Function returning level")))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defcustom gnus-group-list-inactive-groups t
|
Remove obsolete leading * from defcustom, defface doc strings.
* lisp/cedet/ede/linux.el, lisp/cedet/ede/project-am.el:
* lisp/cedet/ede/simple.el, lisp/cedet/semantic/bovine/c.el:
* lisp/cedet/semantic/complete.el, lisp/cedet/semantic/db.el:
* lisp/cedet/semantic/decorate/include.el:
* lisp/cedet/semantic/decorate/mode.el, lisp/cedet/semantic/format.el:
* lisp/cedet/semantic/ia.el, lisp/cedet/semantic/idle.el:
* lisp/cedet/semantic/imenu.el, lisp/cedet/semantic/lex-spp.el:
* lisp/cedet/semantic/mru-bookmark.el, lisp/cedet/semantic/sb.el:
* lisp/cedet/srecode/fields.el, lisp/ecomplete.el:
* lisp/gnus/gnus-agent.el, lisp/gnus/gnus-art.el:
* lisp/gnus/gnus-async.el, lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-cite.el, lisp/gnus/gnus-delay.el:
* lisp/gnus/gnus-diary.el, lisp/gnus/gnus-dup.el:
* lisp/gnus/gnus-fun.el, lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-kill.el, lisp/gnus/gnus-msg.el:
* lisp/gnus/gnus-picon.el, lisp/gnus/gnus-salt.el:
* lisp/gnus/gnus-score.el, lisp/gnus/gnus-start.el:
* lisp/gnus/gnus-sum.el, lisp/gnus/gnus-topic.el:
* lisp/gnus/gnus-util.el, lisp/gnus/gnus-uu.el, lisp/gnus/gnus-win.el:
* lisp/gnus/gnus.el, lisp/gnus/mail-source.el, lisp/gnus/message.el:
* lisp/gnus/mm-url.el, lisp/gnus/mm-uu.el, lisp/gnus/mml.el:
* lisp/gnus/nndiary.el, lisp/gnus/nnir.el, lisp/gnus/nnmail.el:
* lisp/gnus/smiley.el, lisp/gnus/smime.el, lisp/mail/mail-extr.el:
* lisp/mh-e/mh-e.el, lisp/net/mailcap.el, lisp/net/pop3.el:
* lisp/net/starttls.el, lisp/progmodes/cc-vars.el:
* lisp/progmodes/cperl-mode.el, test/manual/cedet/tests/test.el:
Remove obsolete leading * from defcustom, defface doc strings.
2016-06-09 20:13:12 -04:00
|
|
|
"If non-nil, inactive groups will be listed."
|
1997-04-16 22:13:18 +00:00
|
|
|
:group 'gnus-group-listing
|
|
|
|
:group 'gnus-group-levels
|
|
|
|
:type 'boolean)
|
|
|
|
|
|
|
|
(defcustom gnus-group-sort-function 'gnus-group-sort-by-alphabet
|
Remove obsolete leading * from defcustom, defface doc strings.
* lisp/cedet/ede/linux.el, lisp/cedet/ede/project-am.el:
* lisp/cedet/ede/simple.el, lisp/cedet/semantic/bovine/c.el:
* lisp/cedet/semantic/complete.el, lisp/cedet/semantic/db.el:
* lisp/cedet/semantic/decorate/include.el:
* lisp/cedet/semantic/decorate/mode.el, lisp/cedet/semantic/format.el:
* lisp/cedet/semantic/ia.el, lisp/cedet/semantic/idle.el:
* lisp/cedet/semantic/imenu.el, lisp/cedet/semantic/lex-spp.el:
* lisp/cedet/semantic/mru-bookmark.el, lisp/cedet/semantic/sb.el:
* lisp/cedet/srecode/fields.el, lisp/ecomplete.el:
* lisp/gnus/gnus-agent.el, lisp/gnus/gnus-art.el:
* lisp/gnus/gnus-async.el, lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-cite.el, lisp/gnus/gnus-delay.el:
* lisp/gnus/gnus-diary.el, lisp/gnus/gnus-dup.el:
* lisp/gnus/gnus-fun.el, lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-kill.el, lisp/gnus/gnus-msg.el:
* lisp/gnus/gnus-picon.el, lisp/gnus/gnus-salt.el:
* lisp/gnus/gnus-score.el, lisp/gnus/gnus-start.el:
* lisp/gnus/gnus-sum.el, lisp/gnus/gnus-topic.el:
* lisp/gnus/gnus-util.el, lisp/gnus/gnus-uu.el, lisp/gnus/gnus-win.el:
* lisp/gnus/gnus.el, lisp/gnus/mail-source.el, lisp/gnus/message.el:
* lisp/gnus/mm-url.el, lisp/gnus/mm-uu.el, lisp/gnus/mml.el:
* lisp/gnus/nndiary.el, lisp/gnus/nnir.el, lisp/gnus/nnmail.el:
* lisp/gnus/smiley.el, lisp/gnus/smime.el, lisp/mail/mail-extr.el:
* lisp/mh-e/mh-e.el, lisp/net/mailcap.el, lisp/net/pop3.el:
* lisp/net/starttls.el, lisp/progmodes/cc-vars.el:
* lisp/progmodes/cperl-mode.el, test/manual/cedet/tests/test.el:
Remove obsolete leading * from defcustom, defface doc strings.
2016-06-09 20:13:12 -04:00
|
|
|
"Function used for sorting the group buffer.
|
1997-04-16 22:13:18 +00:00
|
|
|
This function will be called with group info entries as the arguments
|
|
|
|
for the groups to be sorted. Pre-made functions include
|
|
|
|
`gnus-group-sort-by-alphabet', `gnus-group-sort-by-real-name',
|
|
|
|
`gnus-group-sort-by-unread', `gnus-group-sort-by-level',
|
2004-09-04 13:13:48 +00:00
|
|
|
`gnus-group-sort-by-score', `gnus-group-sort-by-method',
|
|
|
|
`gnus-group-sort-by-server', and `gnus-group-sort-by-rank'.
|
1997-04-16 22:13:18 +00:00
|
|
|
|
2006-11-24 10:42:46 +00:00
|
|
|
This variable can also be a list of sorting functions. In that case,
|
1997-04-16 22:13:18 +00:00
|
|
|
the most significant sort function should be the last function in the
|
|
|
|
list."
|
|
|
|
:group 'gnus-group-listing
|
|
|
|
:link '(custom-manual "(gnus)Sorting Groups")
|
2004-09-04 13:13:48 +00:00
|
|
|
:type '(repeat :value-to-internal (lambda (widget value)
|
|
|
|
(if (listp value) value (list value)))
|
|
|
|
:match (lambda (widget value)
|
|
|
|
(or (symbolp value)
|
|
|
|
(widget-editable-list-match widget value)))
|
|
|
|
(choice (function-item gnus-group-sort-by-alphabet)
|
|
|
|
(function-item gnus-group-sort-by-real-name)
|
|
|
|
(function-item gnus-group-sort-by-unread)
|
|
|
|
(function-item gnus-group-sort-by-level)
|
|
|
|
(function-item gnus-group-sort-by-score)
|
|
|
|
(function-item gnus-group-sort-by-method)
|
|
|
|
(function-item gnus-group-sort-by-server)
|
|
|
|
(function-item gnus-group-sort-by-rank)
|
|
|
|
(function :tag "other" nil))))
|
|
|
|
|
2015-09-17 16:08:20 -07:00
|
|
|
(defcustom gnus-group-line-format "%M\ %S\ %p\ %P\ %5y:%B%(%g%)\n"
|
Remove obsolete leading * from defcustom, defface doc strings.
* lisp/cedet/ede/linux.el, lisp/cedet/ede/project-am.el:
* lisp/cedet/ede/simple.el, lisp/cedet/semantic/bovine/c.el:
* lisp/cedet/semantic/complete.el, lisp/cedet/semantic/db.el:
* lisp/cedet/semantic/decorate/include.el:
* lisp/cedet/semantic/decorate/mode.el, lisp/cedet/semantic/format.el:
* lisp/cedet/semantic/ia.el, lisp/cedet/semantic/idle.el:
* lisp/cedet/semantic/imenu.el, lisp/cedet/semantic/lex-spp.el:
* lisp/cedet/semantic/mru-bookmark.el, lisp/cedet/semantic/sb.el:
* lisp/cedet/srecode/fields.el, lisp/ecomplete.el:
* lisp/gnus/gnus-agent.el, lisp/gnus/gnus-art.el:
* lisp/gnus/gnus-async.el, lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-cite.el, lisp/gnus/gnus-delay.el:
* lisp/gnus/gnus-diary.el, lisp/gnus/gnus-dup.el:
* lisp/gnus/gnus-fun.el, lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-kill.el, lisp/gnus/gnus-msg.el:
* lisp/gnus/gnus-picon.el, lisp/gnus/gnus-salt.el:
* lisp/gnus/gnus-score.el, lisp/gnus/gnus-start.el:
* lisp/gnus/gnus-sum.el, lisp/gnus/gnus-topic.el:
* lisp/gnus/gnus-util.el, lisp/gnus/gnus-uu.el, lisp/gnus/gnus-win.el:
* lisp/gnus/gnus.el, lisp/gnus/mail-source.el, lisp/gnus/message.el:
* lisp/gnus/mm-url.el, lisp/gnus/mm-uu.el, lisp/gnus/mml.el:
* lisp/gnus/nndiary.el, lisp/gnus/nnir.el, lisp/gnus/nnmail.el:
* lisp/gnus/smiley.el, lisp/gnus/smime.el, lisp/mail/mail-extr.el:
* lisp/mh-e/mh-e.el, lisp/net/mailcap.el, lisp/net/pop3.el:
* lisp/net/starttls.el, lisp/progmodes/cc-vars.el:
* lisp/progmodes/cperl-mode.el, test/manual/cedet/tests/test.el:
Remove obsolete leading * from defcustom, defface doc strings.
2016-06-09 20:13:12 -04:00
|
|
|
"Format of group lines.
|
1997-04-16 22:13:18 +00:00
|
|
|
It works along the same lines as a normal formatting string,
|
|
|
|
with some simple extensions.
|
|
|
|
|
|
|
|
%M Only marked articles (character, \"*\" or \" \")
|
|
|
|
%S Whether the group is subscribed (character, \"U\", \"K\", \"Z\" or \" \")
|
|
|
|
%L Level of subscribedness (integer)
|
|
|
|
%N Number of unread articles (integer)
|
|
|
|
%I Number of dormant articles (integer)
|
|
|
|
%i Number of ticked and dormant (integer)
|
|
|
|
%T Number of ticked articles (integer)
|
|
|
|
%R Number of read articles (integer)
|
2004-09-04 13:13:48 +00:00
|
|
|
%U Number of unseen articles (integer)
|
1997-04-16 22:13:18 +00:00
|
|
|
%t Estimated total number of articles (integer)
|
|
|
|
%y Number of unread, unticked articles (integer)
|
|
|
|
%G Group name (string)
|
|
|
|
%g Qualified group name (string)
|
2004-09-04 13:13:48 +00:00
|
|
|
%c Short (collapsed) group name. See `gnus-group-uncollapsed-levels'.
|
|
|
|
%C Group comment (string)
|
1997-04-16 22:13:18 +00:00
|
|
|
%D Group description (string)
|
|
|
|
%s Select method (string)
|
|
|
|
%o Moderated group (char, \"m\")
|
|
|
|
%p Process mark (char)
|
2004-09-04 13:13:48 +00:00
|
|
|
%B Whether a summary buffer for the group is open (char, \"*\")
|
1997-04-16 22:13:18 +00:00
|
|
|
%O Moderated group (string, \"(m)\" or \"\")
|
|
|
|
%P Topic indentation (string)
|
|
|
|
%m Whether there is new(ish) mail in the group (char, \"%\")
|
|
|
|
%n Select from where (string)
|
|
|
|
%z A string that look like `<%s:%n>' if a foreign select method is used
|
|
|
|
%d The date the group was last entered.
|
2000-09-19 13:37:09 +00:00
|
|
|
%E Icon as defined by `gnus-group-icon-list'.
|
2007-10-28 09:18:39 +00:00
|
|
|
%F The disk space used by the articles fetched by both the cache and agent.
|
1997-04-16 22:13:18 +00:00
|
|
|
%u User defined specifier. The next character in the format string should
|
|
|
|
be a letter. Gnus will call the function gnus-user-format-function-X,
|
2004-09-04 13:13:48 +00:00
|
|
|
where X is the letter following %u. The function will be passed a
|
|
|
|
single dummy parameter as argument. The function should return a
|
|
|
|
string, which will be inserted into the buffer just like information
|
|
|
|
from any other group specifier.
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
Note that this format specification is not always respected. For
|
|
|
|
reasons of efficiency, when listing killed groups, this specification
|
2006-11-24 10:42:46 +00:00
|
|
|
is ignored altogether. If the spec is changed considerably, your
|
1997-04-16 22:13:18 +00:00
|
|
|
output may end up looking strange when listing both alive and killed
|
|
|
|
groups.
|
|
|
|
|
|
|
|
If you use %o or %O, reading the active file will be slower and quite
|
2007-10-28 09:18:39 +00:00
|
|
|
a bit of extra memory will be used. %D and %F will also worsen
|
|
|
|
performance. Also note that if you change the format specification to
|
|
|
|
include any of these specs, you must probably re-start Gnus to see
|
|
|
|
them go into effect.
|
2004-09-04 13:13:48 +00:00
|
|
|
|
|
|
|
General format specifiers can also be used.
|
|
|
|
See Info node `(gnus)Formatting Variables'."
|
|
|
|
:link '(custom-manual "(gnus)Formatting Variables")
|
1997-04-16 22:13:18 +00:00
|
|
|
:group 'gnus-group-visual
|
|
|
|
:type 'string)
|
|
|
|
|
2015-09-17 16:08:20 -07:00
|
|
|
(defcustom gnus-group-mode-line-format "Gnus: %%b {%M\ %:%S}"
|
Remove obsolete leading * from defcustom, defface doc strings.
* lisp/cedet/ede/linux.el, lisp/cedet/ede/project-am.el:
* lisp/cedet/ede/simple.el, lisp/cedet/semantic/bovine/c.el:
* lisp/cedet/semantic/complete.el, lisp/cedet/semantic/db.el:
* lisp/cedet/semantic/decorate/include.el:
* lisp/cedet/semantic/decorate/mode.el, lisp/cedet/semantic/format.el:
* lisp/cedet/semantic/ia.el, lisp/cedet/semantic/idle.el:
* lisp/cedet/semantic/imenu.el, lisp/cedet/semantic/lex-spp.el:
* lisp/cedet/semantic/mru-bookmark.el, lisp/cedet/semantic/sb.el:
* lisp/cedet/srecode/fields.el, lisp/ecomplete.el:
* lisp/gnus/gnus-agent.el, lisp/gnus/gnus-art.el:
* lisp/gnus/gnus-async.el, lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-cite.el, lisp/gnus/gnus-delay.el:
* lisp/gnus/gnus-diary.el, lisp/gnus/gnus-dup.el:
* lisp/gnus/gnus-fun.el, lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-kill.el, lisp/gnus/gnus-msg.el:
* lisp/gnus/gnus-picon.el, lisp/gnus/gnus-salt.el:
* lisp/gnus/gnus-score.el, lisp/gnus/gnus-start.el:
* lisp/gnus/gnus-sum.el, lisp/gnus/gnus-topic.el:
* lisp/gnus/gnus-util.el, lisp/gnus/gnus-uu.el, lisp/gnus/gnus-win.el:
* lisp/gnus/gnus.el, lisp/gnus/mail-source.el, lisp/gnus/message.el:
* lisp/gnus/mm-url.el, lisp/gnus/mm-uu.el, lisp/gnus/mml.el:
* lisp/gnus/nndiary.el, lisp/gnus/nnir.el, lisp/gnus/nnmail.el:
* lisp/gnus/smiley.el, lisp/gnus/smime.el, lisp/mail/mail-extr.el:
* lisp/mh-e/mh-e.el, lisp/net/mailcap.el, lisp/net/pop3.el:
* lisp/net/starttls.el, lisp/progmodes/cc-vars.el:
* lisp/progmodes/cperl-mode.el, test/manual/cedet/tests/test.el:
Remove obsolete leading * from defcustom, defface doc strings.
2016-06-09 20:13:12 -04:00
|
|
|
"The format specification for the group mode line.
|
1997-04-16 22:13:18 +00:00
|
|
|
It works along the same lines as a normal formatting string,
|
|
|
|
with some simple extensions:
|
|
|
|
|
|
|
|
%S The native news server.
|
|
|
|
%M The native select method.
|
|
|
|
%: \":\" if %S isn't \"\"."
|
|
|
|
:group 'gnus-group-visual
|
|
|
|
:type 'string)
|
|
|
|
|
|
|
|
(defcustom gnus-group-menu-hook nil
|
|
|
|
"Hook run after the creation of the group mode menu."
|
|
|
|
:group 'gnus-group-various
|
|
|
|
:type 'hook)
|
|
|
|
|
|
|
|
(defcustom gnus-group-catchup-group-hook nil
|
|
|
|
"Hook run when catching up a group from the group buffer."
|
|
|
|
:group 'gnus-group-various
|
|
|
|
:link '(custom-manual "(gnus)Group Data")
|
|
|
|
:type 'hook)
|
|
|
|
|
|
|
|
(defcustom gnus-group-update-group-hook nil
|
|
|
|
"Hook called when updating group lines."
|
|
|
|
:group 'gnus-group-visual
|
|
|
|
:type 'hook)
|
|
|
|
|
|
|
|
(defcustom gnus-group-prepare-function 'gnus-group-prepare-flat
|
Remove obsolete leading * from defcustom, defface doc strings.
* lisp/cedet/ede/linux.el, lisp/cedet/ede/project-am.el:
* lisp/cedet/ede/simple.el, lisp/cedet/semantic/bovine/c.el:
* lisp/cedet/semantic/complete.el, lisp/cedet/semantic/db.el:
* lisp/cedet/semantic/decorate/include.el:
* lisp/cedet/semantic/decorate/mode.el, lisp/cedet/semantic/format.el:
* lisp/cedet/semantic/ia.el, lisp/cedet/semantic/idle.el:
* lisp/cedet/semantic/imenu.el, lisp/cedet/semantic/lex-spp.el:
* lisp/cedet/semantic/mru-bookmark.el, lisp/cedet/semantic/sb.el:
* lisp/cedet/srecode/fields.el, lisp/ecomplete.el:
* lisp/gnus/gnus-agent.el, lisp/gnus/gnus-art.el:
* lisp/gnus/gnus-async.el, lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-cite.el, lisp/gnus/gnus-delay.el:
* lisp/gnus/gnus-diary.el, lisp/gnus/gnus-dup.el:
* lisp/gnus/gnus-fun.el, lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-kill.el, lisp/gnus/gnus-msg.el:
* lisp/gnus/gnus-picon.el, lisp/gnus/gnus-salt.el:
* lisp/gnus/gnus-score.el, lisp/gnus/gnus-start.el:
* lisp/gnus/gnus-sum.el, lisp/gnus/gnus-topic.el:
* lisp/gnus/gnus-util.el, lisp/gnus/gnus-uu.el, lisp/gnus/gnus-win.el:
* lisp/gnus/gnus.el, lisp/gnus/mail-source.el, lisp/gnus/message.el:
* lisp/gnus/mm-url.el, lisp/gnus/mm-uu.el, lisp/gnus/mml.el:
* lisp/gnus/nndiary.el, lisp/gnus/nnir.el, lisp/gnus/nnmail.el:
* lisp/gnus/smiley.el, lisp/gnus/smime.el, lisp/mail/mail-extr.el:
* lisp/mh-e/mh-e.el, lisp/net/mailcap.el, lisp/net/pop3.el:
* lisp/net/starttls.el, lisp/progmodes/cc-vars.el:
* lisp/progmodes/cperl-mode.el, test/manual/cedet/tests/test.el:
Remove obsolete leading * from defcustom, defface doc strings.
2016-06-09 20:13:12 -04:00
|
|
|
"A function that is called to generate the group buffer.
|
1997-04-16 22:13:18 +00:00
|
|
|
The function is called with three arguments: The first is a number;
|
|
|
|
all group with a level less or equal to that number should be listed,
|
|
|
|
if the second is non-nil, empty groups should also be displayed. If
|
|
|
|
the third is non-nil, it is a number. No groups with a level lower
|
|
|
|
than this number should be displayed.
|
|
|
|
|
|
|
|
The only current function implemented is `gnus-group-prepare-flat'."
|
|
|
|
:group 'gnus-group-listing
|
|
|
|
:type 'function)
|
|
|
|
|
|
|
|
(defcustom gnus-group-prepare-hook nil
|
|
|
|
"Hook called after the group buffer has been generated.
|
|
|
|
If you want to modify the group buffer, you can use this hook."
|
|
|
|
:group 'gnus-group-listing
|
|
|
|
:type 'hook)
|
|
|
|
|
|
|
|
(defcustom gnus-suspend-gnus-hook nil
|
|
|
|
"Hook called when suspending (not exiting) Gnus."
|
|
|
|
:group 'gnus-exit
|
|
|
|
:type 'hook)
|
|
|
|
|
|
|
|
(defcustom gnus-exit-gnus-hook nil
|
|
|
|
"Hook called when exiting Gnus."
|
|
|
|
:group 'gnus-exit
|
|
|
|
:type 'hook)
|
|
|
|
|
|
|
|
(defcustom gnus-after-exiting-gnus-hook nil
|
|
|
|
"Hook called after exiting Gnus."
|
|
|
|
:group 'gnus-exit
|
|
|
|
:type 'hook)
|
|
|
|
|
2010-09-23 00:30:37 +00:00
|
|
|
(defcustom gnus-group-update-hook nil
|
|
|
|
"Hook called when a group line is changed."
|
1997-04-16 22:13:18 +00:00
|
|
|
:group 'gnus-group-visual
|
2010-09-23 07:59:12 +00:00
|
|
|
:version "24.1"
|
1997-04-16 22:13:18 +00:00
|
|
|
:type 'hook)
|
|
|
|
|
|
|
|
(defcustom gnus-useful-groups
|
2006-01-11 02:03:24 +00:00
|
|
|
'(("(ding) mailing list mirrored at gmane.org"
|
|
|
|
"gmane.emacs.gnus.general"
|
|
|
|
(nntp "Gmane"
|
|
|
|
(nntp-address "news.gmane.org")))
|
|
|
|
("Gnus bug archive"
|
|
|
|
"gnus.gnus-bug"
|
|
|
|
(nntp "news.gnus.org"
|
|
|
|
(nntp-address "news.gnus.org")))
|
|
|
|
("Local Gnus help group"
|
1997-04-16 22:13:18 +00:00
|
|
|
"gnus-help"
|
|
|
|
(nndoc "gnus-help"
|
|
|
|
(nndoc-article-type mbox)
|
|
|
|
(eval `(nndoc-address
|
|
|
|
,(let ((file (nnheader-find-etc-directory
|
|
|
|
"gnus-tut.txt" t)))
|
|
|
|
(unless file
|
|
|
|
(error "Couldn't find doc group"))
|
|
|
|
file))))))
|
Remove obsolete leading * from defcustom, defface doc strings.
* lisp/cedet/ede/linux.el, lisp/cedet/ede/project-am.el:
* lisp/cedet/ede/simple.el, lisp/cedet/semantic/bovine/c.el:
* lisp/cedet/semantic/complete.el, lisp/cedet/semantic/db.el:
* lisp/cedet/semantic/decorate/include.el:
* lisp/cedet/semantic/decorate/mode.el, lisp/cedet/semantic/format.el:
* lisp/cedet/semantic/ia.el, lisp/cedet/semantic/idle.el:
* lisp/cedet/semantic/imenu.el, lisp/cedet/semantic/lex-spp.el:
* lisp/cedet/semantic/mru-bookmark.el, lisp/cedet/semantic/sb.el:
* lisp/cedet/srecode/fields.el, lisp/ecomplete.el:
* lisp/gnus/gnus-agent.el, lisp/gnus/gnus-art.el:
* lisp/gnus/gnus-async.el, lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-cite.el, lisp/gnus/gnus-delay.el:
* lisp/gnus/gnus-diary.el, lisp/gnus/gnus-dup.el:
* lisp/gnus/gnus-fun.el, lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-kill.el, lisp/gnus/gnus-msg.el:
* lisp/gnus/gnus-picon.el, lisp/gnus/gnus-salt.el:
* lisp/gnus/gnus-score.el, lisp/gnus/gnus-start.el:
* lisp/gnus/gnus-sum.el, lisp/gnus/gnus-topic.el:
* lisp/gnus/gnus-util.el, lisp/gnus/gnus-uu.el, lisp/gnus/gnus-win.el:
* lisp/gnus/gnus.el, lisp/gnus/mail-source.el, lisp/gnus/message.el:
* lisp/gnus/mm-url.el, lisp/gnus/mm-uu.el, lisp/gnus/mml.el:
* lisp/gnus/nndiary.el, lisp/gnus/nnir.el, lisp/gnus/nnmail.el:
* lisp/gnus/smiley.el, lisp/gnus/smime.el, lisp/mail/mail-extr.el:
* lisp/mh-e/mh-e.el, lisp/net/mailcap.el, lisp/net/pop3.el:
* lisp/net/starttls.el, lisp/progmodes/cc-vars.el:
* lisp/progmodes/cperl-mode.el, test/manual/cedet/tests/test.el:
Remove obsolete leading * from defcustom, defface doc strings.
2016-06-09 20:13:12 -04:00
|
|
|
"Alist of useful group-server pairs."
|
1997-04-16 22:13:18 +00:00
|
|
|
:group 'gnus-group-listing
|
|
|
|
:type '(repeat (list (string :tag "Description")
|
|
|
|
(string :tag "Name")
|
|
|
|
(sexp :tag "Method"))))
|
|
|
|
|
|
|
|
(defcustom gnus-group-highlight
|
2004-09-04 13:13:48 +00:00
|
|
|
'(;; Mail.
|
|
|
|
((and mailp (= unread 0) (eq level 1)) .
|
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Remove "-face" suffix from gnus faces
2005-06-16 Miles Bader <miles@gnu.org>
* lisp/gnus/spam.el (spam): Remove "-face" suffix from face name.
(spam-face): New backward-compatibility alias for renamed face.
(spam-face, spam-initialize): Use renamed spam face.
* lisp/gnus/message.el (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name)
(message-header-xheader, message-separator, message-cited-text)
(message-mml): Remove "-face" suffix from face names.
(message-header-to-face, message-header-cc-face)
(message-header-subject-face, message-header-newsgroups-face)
(message-header-other-face, message-header-name-face)
(message-header-xheader-face, message-separator-face)
(message-cited-text-face, message-mml-face):
New backward-compatibility aliases for renamed faces.
(message-font-lock-keywords): Use renamed message faces.
* lisp/gnus/sieve-mode.el (sieve-control-commands, sieve-action-commands)
(sieve-test-commands, sieve-tagged-arguments):
Remove "-face" suffix from face names.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
New backward-compatibility aliases for renamed faces.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
Use renamed sieve faces.
* lisp/gnus/gnus.el (gnus-group-news-1, gnus-group-news-1-empty)
(gnus-group-news-2, gnus-group-news-2-empty, gnus-group-news-3)
(gnus-group-news-3-empty, gnus-group-news-4)
(gnus-group-news-4-empty, gnus-group-news-5)
(gnus-group-news-5-empty, gnus-group-news-6)
(gnus-group-news-6-empty, gnus-group-news-low)
(gnus-group-news-low-empty, gnus-group-mail-1)
(gnus-group-mail-1-empty, gnus-group-mail-2)
(gnus-group-mail-2-empty, gnus-group-mail-3)
(gnus-group-mail-3-empty, gnus-group-mail-low)
(gnus-group-mail-low-empty, gnus-summary-selected)
(gnus-summary-cancelled, gnus-summary-high-ticked)
(gnus-summary-low-ticked, gnus-summary-normal-ticked)
(gnus-summary-high-ancient, gnus-summary-low-ancient)
(gnus-summary-normal-ancient, gnus-summary-high-undownloaded)
(gnus-summary-low-undownloaded)
(gnus-summary-normal-undownloaded, gnus-summary-high-unread)
(gnus-summary-low-unread, gnus-summary-normal-unread)
(gnus-summary-high-read, gnus-summary-low-read)
(gnus-summary-normal-read, gnus-splash):
Remove "-face" suffix from face names.
(gnus-group-news-1-face, gnus-group-news-1-empty-face)
(gnus-group-news-2-face, gnus-group-news-2-empty-face)
(gnus-group-news-3-face, gnus-group-news-3-empty-face)
(gnus-group-news-4-face, gnus-group-news-4-empty-face)
(gnus-group-news-5-face, gnus-group-news-5-empty-face)
(gnus-group-news-6-face, gnus-group-news-6-empty-face)
(gnus-group-news-low-face, gnus-group-news-low-empty-face)
(gnus-group-mail-1-face, gnus-group-mail-1-empty-face)
(gnus-group-mail-2-face, gnus-group-mail-2-empty-face)
(gnus-group-mail-3-face, gnus-group-mail-3-empty-face)
(gnus-group-mail-low-face, gnus-group-mail-low-empty-face)
(gnus-summary-selected-face, gnus-summary-cancelled-face)
(gnus-summary-high-ticked-face, gnus-summary-low-ticked-face)
(gnus-summary-normal-ticked-face)
(gnus-summary-high-ancient-face, gnus-summary-low-ancient-face)
(gnus-summary-normal-ancient-face)
(gnus-summary-high-undownloaded-face)
(gnus-summary-low-undownloaded-face)
(gnus-summary-normal-undownloaded-face)
(gnus-summary-high-unread-face, gnus-summary-low-unread-face)
(gnus-summary-normal-unread-face, gnus-summary-high-read-face)
(gnus-summary-low-read-face, gnus-summary-normal-read-face)
(gnus-splash-face):
New backward-compatibility aliases for renamed faces.
(gnus-group-startup-message): Use renamed gnus faces.
* lisp/gnus/gnus-srvr.el (gnus-server-agent, gnus-server-opened)
(gnus-server-closed, gnus-server-denied, gnus-server-offline)
(gnus-server-agent): Remove "-face" suffix from face names.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face):
New backward-compatibility aliases for renamed faces.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face): Use renamed gnus faces.
* lisp/gnus/gnus-picon.el (gnus-picon-xbm, gnus-picon):
Remove "-face" suffix from face names.
(gnus-picon-xbm-face, gnus-picon-face):
New backward-compatibility aliases for renamed faces.
* lisp/gnus/gnus-cite.el (gnus-cite-attribution, gnus-cite-1, gnus-cite-2)
(gnus-cite-3, gnus-cite-4, gnus-cite-5, gnus-cite-6)
(gnus-cite-7, gnus-cite-8, gnus-cite-9, gnus-cite-10)
(gnus-cite-11): Remove "-face" suffix from face names.
(gnus-cite-attribution-face, gnus-cite-face-1, gnus-cite-face-2)
(gnus-cite-face-3, gnus-cite-face-4, gnus-cite-face-5)
(gnus-cite-face-6, gnus-cite-face-7, gnus-cite-face-8)
(gnus-cite-face-9, gnus-cite-face-10, gnus-cite-face-11):
New backward-compatibility aliases for renamed faces.
(gnus-cite-attribution-face, gnus-cite-face-list)
(gnus-article-boring-faces): Use renamed gnus faces.
* lisp/gnus/gnus-art.el (gnus-signature, gnus-header-from)
(gnus-header-subject, gnus-header-newsgroups, gnus-header-name)
(gnus-header-content): Remove "-face" suffix from face names.
(gnus-signature-face, gnus-header-from-face)
(gnus-header-subject-face, gnus-header-newsgroups-face)
(gnus-header-name-face, gnus-header-content-face):
New backward-compatibility aliases for renamed faces.
(gnus-signature-face, gnus-header-face-alist): Use renamed gnus faces.
* lisp/gnus/gnus-sum.el (gnus-summary-selected-face)
(gnus-summary-highlight): Use renamed gnus faces.
* lisp/gnus/gnus-group.el (gnus-group-highlight): Likewise.
2005-06-16 03:48:20 +00:00
|
|
|
gnus-group-mail-1-empty)
|
2004-09-04 13:13:48 +00:00
|
|
|
((and mailp (eq level 1)) .
|
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Remove "-face" suffix from gnus faces
2005-06-16 Miles Bader <miles@gnu.org>
* lisp/gnus/spam.el (spam): Remove "-face" suffix from face name.
(spam-face): New backward-compatibility alias for renamed face.
(spam-face, spam-initialize): Use renamed spam face.
* lisp/gnus/message.el (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name)
(message-header-xheader, message-separator, message-cited-text)
(message-mml): Remove "-face" suffix from face names.
(message-header-to-face, message-header-cc-face)
(message-header-subject-face, message-header-newsgroups-face)
(message-header-other-face, message-header-name-face)
(message-header-xheader-face, message-separator-face)
(message-cited-text-face, message-mml-face):
New backward-compatibility aliases for renamed faces.
(message-font-lock-keywords): Use renamed message faces.
* lisp/gnus/sieve-mode.el (sieve-control-commands, sieve-action-commands)
(sieve-test-commands, sieve-tagged-arguments):
Remove "-face" suffix from face names.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
New backward-compatibility aliases for renamed faces.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
Use renamed sieve faces.
* lisp/gnus/gnus.el (gnus-group-news-1, gnus-group-news-1-empty)
(gnus-group-news-2, gnus-group-news-2-empty, gnus-group-news-3)
(gnus-group-news-3-empty, gnus-group-news-4)
(gnus-group-news-4-empty, gnus-group-news-5)
(gnus-group-news-5-empty, gnus-group-news-6)
(gnus-group-news-6-empty, gnus-group-news-low)
(gnus-group-news-low-empty, gnus-group-mail-1)
(gnus-group-mail-1-empty, gnus-group-mail-2)
(gnus-group-mail-2-empty, gnus-group-mail-3)
(gnus-group-mail-3-empty, gnus-group-mail-low)
(gnus-group-mail-low-empty, gnus-summary-selected)
(gnus-summary-cancelled, gnus-summary-high-ticked)
(gnus-summary-low-ticked, gnus-summary-normal-ticked)
(gnus-summary-high-ancient, gnus-summary-low-ancient)
(gnus-summary-normal-ancient, gnus-summary-high-undownloaded)
(gnus-summary-low-undownloaded)
(gnus-summary-normal-undownloaded, gnus-summary-high-unread)
(gnus-summary-low-unread, gnus-summary-normal-unread)
(gnus-summary-high-read, gnus-summary-low-read)
(gnus-summary-normal-read, gnus-splash):
Remove "-face" suffix from face names.
(gnus-group-news-1-face, gnus-group-news-1-empty-face)
(gnus-group-news-2-face, gnus-group-news-2-empty-face)
(gnus-group-news-3-face, gnus-group-news-3-empty-face)
(gnus-group-news-4-face, gnus-group-news-4-empty-face)
(gnus-group-news-5-face, gnus-group-news-5-empty-face)
(gnus-group-news-6-face, gnus-group-news-6-empty-face)
(gnus-group-news-low-face, gnus-group-news-low-empty-face)
(gnus-group-mail-1-face, gnus-group-mail-1-empty-face)
(gnus-group-mail-2-face, gnus-group-mail-2-empty-face)
(gnus-group-mail-3-face, gnus-group-mail-3-empty-face)
(gnus-group-mail-low-face, gnus-group-mail-low-empty-face)
(gnus-summary-selected-face, gnus-summary-cancelled-face)
(gnus-summary-high-ticked-face, gnus-summary-low-ticked-face)
(gnus-summary-normal-ticked-face)
(gnus-summary-high-ancient-face, gnus-summary-low-ancient-face)
(gnus-summary-normal-ancient-face)
(gnus-summary-high-undownloaded-face)
(gnus-summary-low-undownloaded-face)
(gnus-summary-normal-undownloaded-face)
(gnus-summary-high-unread-face, gnus-summary-low-unread-face)
(gnus-summary-normal-unread-face, gnus-summary-high-read-face)
(gnus-summary-low-read-face, gnus-summary-normal-read-face)
(gnus-splash-face):
New backward-compatibility aliases for renamed faces.
(gnus-group-startup-message): Use renamed gnus faces.
* lisp/gnus/gnus-srvr.el (gnus-server-agent, gnus-server-opened)
(gnus-server-closed, gnus-server-denied, gnus-server-offline)
(gnus-server-agent): Remove "-face" suffix from face names.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face):
New backward-compatibility aliases for renamed faces.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face): Use renamed gnus faces.
* lisp/gnus/gnus-picon.el (gnus-picon-xbm, gnus-picon):
Remove "-face" suffix from face names.
(gnus-picon-xbm-face, gnus-picon-face):
New backward-compatibility aliases for renamed faces.
* lisp/gnus/gnus-cite.el (gnus-cite-attribution, gnus-cite-1, gnus-cite-2)
(gnus-cite-3, gnus-cite-4, gnus-cite-5, gnus-cite-6)
(gnus-cite-7, gnus-cite-8, gnus-cite-9, gnus-cite-10)
(gnus-cite-11): Remove "-face" suffix from face names.
(gnus-cite-attribution-face, gnus-cite-face-1, gnus-cite-face-2)
(gnus-cite-face-3, gnus-cite-face-4, gnus-cite-face-5)
(gnus-cite-face-6, gnus-cite-face-7, gnus-cite-face-8)
(gnus-cite-face-9, gnus-cite-face-10, gnus-cite-face-11):
New backward-compatibility aliases for renamed faces.
(gnus-cite-attribution-face, gnus-cite-face-list)
(gnus-article-boring-faces): Use renamed gnus faces.
* lisp/gnus/gnus-art.el (gnus-signature, gnus-header-from)
(gnus-header-subject, gnus-header-newsgroups, gnus-header-name)
(gnus-header-content): Remove "-face" suffix from face names.
(gnus-signature-face, gnus-header-from-face)
(gnus-header-subject-face, gnus-header-newsgroups-face)
(gnus-header-name-face, gnus-header-content-face):
New backward-compatibility aliases for renamed faces.
(gnus-signature-face, gnus-header-face-alist): Use renamed gnus faces.
* lisp/gnus/gnus-sum.el (gnus-summary-selected-face)
(gnus-summary-highlight): Use renamed gnus faces.
* lisp/gnus/gnus-group.el (gnus-group-highlight): Likewise.
2005-06-16 03:48:20 +00:00
|
|
|
gnus-group-mail-1)
|
2004-09-04 13:13:48 +00:00
|
|
|
((and mailp (= unread 0) (eq level 2)) .
|
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Remove "-face" suffix from gnus faces
2005-06-16 Miles Bader <miles@gnu.org>
* lisp/gnus/spam.el (spam): Remove "-face" suffix from face name.
(spam-face): New backward-compatibility alias for renamed face.
(spam-face, spam-initialize): Use renamed spam face.
* lisp/gnus/message.el (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name)
(message-header-xheader, message-separator, message-cited-text)
(message-mml): Remove "-face" suffix from face names.
(message-header-to-face, message-header-cc-face)
(message-header-subject-face, message-header-newsgroups-face)
(message-header-other-face, message-header-name-face)
(message-header-xheader-face, message-separator-face)
(message-cited-text-face, message-mml-face):
New backward-compatibility aliases for renamed faces.
(message-font-lock-keywords): Use renamed message faces.
* lisp/gnus/sieve-mode.el (sieve-control-commands, sieve-action-commands)
(sieve-test-commands, sieve-tagged-arguments):
Remove "-face" suffix from face names.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
New backward-compatibility aliases for renamed faces.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
Use renamed sieve faces.
* lisp/gnus/gnus.el (gnus-group-news-1, gnus-group-news-1-empty)
(gnus-group-news-2, gnus-group-news-2-empty, gnus-group-news-3)
(gnus-group-news-3-empty, gnus-group-news-4)
(gnus-group-news-4-empty, gnus-group-news-5)
(gnus-group-news-5-empty, gnus-group-news-6)
(gnus-group-news-6-empty, gnus-group-news-low)
(gnus-group-news-low-empty, gnus-group-mail-1)
(gnus-group-mail-1-empty, gnus-group-mail-2)
(gnus-group-mail-2-empty, gnus-group-mail-3)
(gnus-group-mail-3-empty, gnus-group-mail-low)
(gnus-group-mail-low-empty, gnus-summary-selected)
(gnus-summary-cancelled, gnus-summary-high-ticked)
(gnus-summary-low-ticked, gnus-summary-normal-ticked)
(gnus-summary-high-ancient, gnus-summary-low-ancient)
(gnus-summary-normal-ancient, gnus-summary-high-undownloaded)
(gnus-summary-low-undownloaded)
(gnus-summary-normal-undownloaded, gnus-summary-high-unread)
(gnus-summary-low-unread, gnus-summary-normal-unread)
(gnus-summary-high-read, gnus-summary-low-read)
(gnus-summary-normal-read, gnus-splash):
Remove "-face" suffix from face names.
(gnus-group-news-1-face, gnus-group-news-1-empty-face)
(gnus-group-news-2-face, gnus-group-news-2-empty-face)
(gnus-group-news-3-face, gnus-group-news-3-empty-face)
(gnus-group-news-4-face, gnus-group-news-4-empty-face)
(gnus-group-news-5-face, gnus-group-news-5-empty-face)
(gnus-group-news-6-face, gnus-group-news-6-empty-face)
(gnus-group-news-low-face, gnus-group-news-low-empty-face)
(gnus-group-mail-1-face, gnus-group-mail-1-empty-face)
(gnus-group-mail-2-face, gnus-group-mail-2-empty-face)
(gnus-group-mail-3-face, gnus-group-mail-3-empty-face)
(gnus-group-mail-low-face, gnus-group-mail-low-empty-face)
(gnus-summary-selected-face, gnus-summary-cancelled-face)
(gnus-summary-high-ticked-face, gnus-summary-low-ticked-face)
(gnus-summary-normal-ticked-face)
(gnus-summary-high-ancient-face, gnus-summary-low-ancient-face)
(gnus-summary-normal-ancient-face)
(gnus-summary-high-undownloaded-face)
(gnus-summary-low-undownloaded-face)
(gnus-summary-normal-undownloaded-face)
(gnus-summary-high-unread-face, gnus-summary-low-unread-face)
(gnus-summary-normal-unread-face, gnus-summary-high-read-face)
(gnus-summary-low-read-face, gnus-summary-normal-read-face)
(gnus-splash-face):
New backward-compatibility aliases for renamed faces.
(gnus-group-startup-message): Use renamed gnus faces.
* lisp/gnus/gnus-srvr.el (gnus-server-agent, gnus-server-opened)
(gnus-server-closed, gnus-server-denied, gnus-server-offline)
(gnus-server-agent): Remove "-face" suffix from face names.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face):
New backward-compatibility aliases for renamed faces.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face): Use renamed gnus faces.
* lisp/gnus/gnus-picon.el (gnus-picon-xbm, gnus-picon):
Remove "-face" suffix from face names.
(gnus-picon-xbm-face, gnus-picon-face):
New backward-compatibility aliases for renamed faces.
* lisp/gnus/gnus-cite.el (gnus-cite-attribution, gnus-cite-1, gnus-cite-2)
(gnus-cite-3, gnus-cite-4, gnus-cite-5, gnus-cite-6)
(gnus-cite-7, gnus-cite-8, gnus-cite-9, gnus-cite-10)
(gnus-cite-11): Remove "-face" suffix from face names.
(gnus-cite-attribution-face, gnus-cite-face-1, gnus-cite-face-2)
(gnus-cite-face-3, gnus-cite-face-4, gnus-cite-face-5)
(gnus-cite-face-6, gnus-cite-face-7, gnus-cite-face-8)
(gnus-cite-face-9, gnus-cite-face-10, gnus-cite-face-11):
New backward-compatibility aliases for renamed faces.
(gnus-cite-attribution-face, gnus-cite-face-list)
(gnus-article-boring-faces): Use renamed gnus faces.
* lisp/gnus/gnus-art.el (gnus-signature, gnus-header-from)
(gnus-header-subject, gnus-header-newsgroups, gnus-header-name)
(gnus-header-content): Remove "-face" suffix from face names.
(gnus-signature-face, gnus-header-from-face)
(gnus-header-subject-face, gnus-header-newsgroups-face)
(gnus-header-name-face, gnus-header-content-face):
New backward-compatibility aliases for renamed faces.
(gnus-signature-face, gnus-header-face-alist): Use renamed gnus faces.
* lisp/gnus/gnus-sum.el (gnus-summary-selected-face)
(gnus-summary-highlight): Use renamed gnus faces.
* lisp/gnus/gnus-group.el (gnus-group-highlight): Likewise.
2005-06-16 03:48:20 +00:00
|
|
|
gnus-group-mail-2-empty)
|
2004-09-04 13:13:48 +00:00
|
|
|
((and mailp (eq level 2)) .
|
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Remove "-face" suffix from gnus faces
2005-06-16 Miles Bader <miles@gnu.org>
* lisp/gnus/spam.el (spam): Remove "-face" suffix from face name.
(spam-face): New backward-compatibility alias for renamed face.
(spam-face, spam-initialize): Use renamed spam face.
* lisp/gnus/message.el (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name)
(message-header-xheader, message-separator, message-cited-text)
(message-mml): Remove "-face" suffix from face names.
(message-header-to-face, message-header-cc-face)
(message-header-subject-face, message-header-newsgroups-face)
(message-header-other-face, message-header-name-face)
(message-header-xheader-face, message-separator-face)
(message-cited-text-face, message-mml-face):
New backward-compatibility aliases for renamed faces.
(message-font-lock-keywords): Use renamed message faces.
* lisp/gnus/sieve-mode.el (sieve-control-commands, sieve-action-commands)
(sieve-test-commands, sieve-tagged-arguments):
Remove "-face" suffix from face names.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
New backward-compatibility aliases for renamed faces.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
Use renamed sieve faces.
* lisp/gnus/gnus.el (gnus-group-news-1, gnus-group-news-1-empty)
(gnus-group-news-2, gnus-group-news-2-empty, gnus-group-news-3)
(gnus-group-news-3-empty, gnus-group-news-4)
(gnus-group-news-4-empty, gnus-group-news-5)
(gnus-group-news-5-empty, gnus-group-news-6)
(gnus-group-news-6-empty, gnus-group-news-low)
(gnus-group-news-low-empty, gnus-group-mail-1)
(gnus-group-mail-1-empty, gnus-group-mail-2)
(gnus-group-mail-2-empty, gnus-group-mail-3)
(gnus-group-mail-3-empty, gnus-group-mail-low)
(gnus-group-mail-low-empty, gnus-summary-selected)
(gnus-summary-cancelled, gnus-summary-high-ticked)
(gnus-summary-low-ticked, gnus-summary-normal-ticked)
(gnus-summary-high-ancient, gnus-summary-low-ancient)
(gnus-summary-normal-ancient, gnus-summary-high-undownloaded)
(gnus-summary-low-undownloaded)
(gnus-summary-normal-undownloaded, gnus-summary-high-unread)
(gnus-summary-low-unread, gnus-summary-normal-unread)
(gnus-summary-high-read, gnus-summary-low-read)
(gnus-summary-normal-read, gnus-splash):
Remove "-face" suffix from face names.
(gnus-group-news-1-face, gnus-group-news-1-empty-face)
(gnus-group-news-2-face, gnus-group-news-2-empty-face)
(gnus-group-news-3-face, gnus-group-news-3-empty-face)
(gnus-group-news-4-face, gnus-group-news-4-empty-face)
(gnus-group-news-5-face, gnus-group-news-5-empty-face)
(gnus-group-news-6-face, gnus-group-news-6-empty-face)
(gnus-group-news-low-face, gnus-group-news-low-empty-face)
(gnus-group-mail-1-face, gnus-group-mail-1-empty-face)
(gnus-group-mail-2-face, gnus-group-mail-2-empty-face)
(gnus-group-mail-3-face, gnus-group-mail-3-empty-face)
(gnus-group-mail-low-face, gnus-group-mail-low-empty-face)
(gnus-summary-selected-face, gnus-summary-cancelled-face)
(gnus-summary-high-ticked-face, gnus-summary-low-ticked-face)
(gnus-summary-normal-ticked-face)
(gnus-summary-high-ancient-face, gnus-summary-low-ancient-face)
(gnus-summary-normal-ancient-face)
(gnus-summary-high-undownloaded-face)
(gnus-summary-low-undownloaded-face)
(gnus-summary-normal-undownloaded-face)
(gnus-summary-high-unread-face, gnus-summary-low-unread-face)
(gnus-summary-normal-unread-face, gnus-summary-high-read-face)
(gnus-summary-low-read-face, gnus-summary-normal-read-face)
(gnus-splash-face):
New backward-compatibility aliases for renamed faces.
(gnus-group-startup-message): Use renamed gnus faces.
* lisp/gnus/gnus-srvr.el (gnus-server-agent, gnus-server-opened)
(gnus-server-closed, gnus-server-denied, gnus-server-offline)
(gnus-server-agent): Remove "-face" suffix from face names.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face):
New backward-compatibility aliases for renamed faces.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face): Use renamed gnus faces.
* lisp/gnus/gnus-picon.el (gnus-picon-xbm, gnus-picon):
Remove "-face" suffix from face names.
(gnus-picon-xbm-face, gnus-picon-face):
New backward-compatibility aliases for renamed faces.
* lisp/gnus/gnus-cite.el (gnus-cite-attribution, gnus-cite-1, gnus-cite-2)
(gnus-cite-3, gnus-cite-4, gnus-cite-5, gnus-cite-6)
(gnus-cite-7, gnus-cite-8, gnus-cite-9, gnus-cite-10)
(gnus-cite-11): Remove "-face" suffix from face names.
(gnus-cite-attribution-face, gnus-cite-face-1, gnus-cite-face-2)
(gnus-cite-face-3, gnus-cite-face-4, gnus-cite-face-5)
(gnus-cite-face-6, gnus-cite-face-7, gnus-cite-face-8)
(gnus-cite-face-9, gnus-cite-face-10, gnus-cite-face-11):
New backward-compatibility aliases for renamed faces.
(gnus-cite-attribution-face, gnus-cite-face-list)
(gnus-article-boring-faces): Use renamed gnus faces.
* lisp/gnus/gnus-art.el (gnus-signature, gnus-header-from)
(gnus-header-subject, gnus-header-newsgroups, gnus-header-name)
(gnus-header-content): Remove "-face" suffix from face names.
(gnus-signature-face, gnus-header-from-face)
(gnus-header-subject-face, gnus-header-newsgroups-face)
(gnus-header-name-face, gnus-header-content-face):
New backward-compatibility aliases for renamed faces.
(gnus-signature-face, gnus-header-face-alist): Use renamed gnus faces.
* lisp/gnus/gnus-sum.el (gnus-summary-selected-face)
(gnus-summary-highlight): Use renamed gnus faces.
* lisp/gnus/gnus-group.el (gnus-group-highlight): Likewise.
2005-06-16 03:48:20 +00:00
|
|
|
gnus-group-mail-2)
|
2004-09-04 13:13:48 +00:00
|
|
|
((and mailp (= unread 0) (eq level 3)) .
|
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Remove "-face" suffix from gnus faces
2005-06-16 Miles Bader <miles@gnu.org>
* lisp/gnus/spam.el (spam): Remove "-face" suffix from face name.
(spam-face): New backward-compatibility alias for renamed face.
(spam-face, spam-initialize): Use renamed spam face.
* lisp/gnus/message.el (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name)
(message-header-xheader, message-separator, message-cited-text)
(message-mml): Remove "-face" suffix from face names.
(message-header-to-face, message-header-cc-face)
(message-header-subject-face, message-header-newsgroups-face)
(message-header-other-face, message-header-name-face)
(message-header-xheader-face, message-separator-face)
(message-cited-text-face, message-mml-face):
New backward-compatibility aliases for renamed faces.
(message-font-lock-keywords): Use renamed message faces.
* lisp/gnus/sieve-mode.el (sieve-control-commands, sieve-action-commands)
(sieve-test-commands, sieve-tagged-arguments):
Remove "-face" suffix from face names.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
New backward-compatibility aliases for renamed faces.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
Use renamed sieve faces.
* lisp/gnus/gnus.el (gnus-group-news-1, gnus-group-news-1-empty)
(gnus-group-news-2, gnus-group-news-2-empty, gnus-group-news-3)
(gnus-group-news-3-empty, gnus-group-news-4)
(gnus-group-news-4-empty, gnus-group-news-5)
(gnus-group-news-5-empty, gnus-group-news-6)
(gnus-group-news-6-empty, gnus-group-news-low)
(gnus-group-news-low-empty, gnus-group-mail-1)
(gnus-group-mail-1-empty, gnus-group-mail-2)
(gnus-group-mail-2-empty, gnus-group-mail-3)
(gnus-group-mail-3-empty, gnus-group-mail-low)
(gnus-group-mail-low-empty, gnus-summary-selected)
(gnus-summary-cancelled, gnus-summary-high-ticked)
(gnus-summary-low-ticked, gnus-summary-normal-ticked)
(gnus-summary-high-ancient, gnus-summary-low-ancient)
(gnus-summary-normal-ancient, gnus-summary-high-undownloaded)
(gnus-summary-low-undownloaded)
(gnus-summary-normal-undownloaded, gnus-summary-high-unread)
(gnus-summary-low-unread, gnus-summary-normal-unread)
(gnus-summary-high-read, gnus-summary-low-read)
(gnus-summary-normal-read, gnus-splash):
Remove "-face" suffix from face names.
(gnus-group-news-1-face, gnus-group-news-1-empty-face)
(gnus-group-news-2-face, gnus-group-news-2-empty-face)
(gnus-group-news-3-face, gnus-group-news-3-empty-face)
(gnus-group-news-4-face, gnus-group-news-4-empty-face)
(gnus-group-news-5-face, gnus-group-news-5-empty-face)
(gnus-group-news-6-face, gnus-group-news-6-empty-face)
(gnus-group-news-low-face, gnus-group-news-low-empty-face)
(gnus-group-mail-1-face, gnus-group-mail-1-empty-face)
(gnus-group-mail-2-face, gnus-group-mail-2-empty-face)
(gnus-group-mail-3-face, gnus-group-mail-3-empty-face)
(gnus-group-mail-low-face, gnus-group-mail-low-empty-face)
(gnus-summary-selected-face, gnus-summary-cancelled-face)
(gnus-summary-high-ticked-face, gnus-summary-low-ticked-face)
(gnus-summary-normal-ticked-face)
(gnus-summary-high-ancient-face, gnus-summary-low-ancient-face)
(gnus-summary-normal-ancient-face)
(gnus-summary-high-undownloaded-face)
(gnus-summary-low-undownloaded-face)
(gnus-summary-normal-undownloaded-face)
(gnus-summary-high-unread-face, gnus-summary-low-unread-face)
(gnus-summary-normal-unread-face, gnus-summary-high-read-face)
(gnus-summary-low-read-face, gnus-summary-normal-read-face)
(gnus-splash-face):
New backward-compatibility aliases for renamed faces.
(gnus-group-startup-message): Use renamed gnus faces.
* lisp/gnus/gnus-srvr.el (gnus-server-agent, gnus-server-opened)
(gnus-server-closed, gnus-server-denied, gnus-server-offline)
(gnus-server-agent): Remove "-face" suffix from face names.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face):
New backward-compatibility aliases for renamed faces.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face): Use renamed gnus faces.
* lisp/gnus/gnus-picon.el (gnus-picon-xbm, gnus-picon):
Remove "-face" suffix from face names.
(gnus-picon-xbm-face, gnus-picon-face):
New backward-compatibility aliases for renamed faces.
* lisp/gnus/gnus-cite.el (gnus-cite-attribution, gnus-cite-1, gnus-cite-2)
(gnus-cite-3, gnus-cite-4, gnus-cite-5, gnus-cite-6)
(gnus-cite-7, gnus-cite-8, gnus-cite-9, gnus-cite-10)
(gnus-cite-11): Remove "-face" suffix from face names.
(gnus-cite-attribution-face, gnus-cite-face-1, gnus-cite-face-2)
(gnus-cite-face-3, gnus-cite-face-4, gnus-cite-face-5)
(gnus-cite-face-6, gnus-cite-face-7, gnus-cite-face-8)
(gnus-cite-face-9, gnus-cite-face-10, gnus-cite-face-11):
New backward-compatibility aliases for renamed faces.
(gnus-cite-attribution-face, gnus-cite-face-list)
(gnus-article-boring-faces): Use renamed gnus faces.
* lisp/gnus/gnus-art.el (gnus-signature, gnus-header-from)
(gnus-header-subject, gnus-header-newsgroups, gnus-header-name)
(gnus-header-content): Remove "-face" suffix from face names.
(gnus-signature-face, gnus-header-from-face)
(gnus-header-subject-face, gnus-header-newsgroups-face)
(gnus-header-name-face, gnus-header-content-face):
New backward-compatibility aliases for renamed faces.
(gnus-signature-face, gnus-header-face-alist): Use renamed gnus faces.
* lisp/gnus/gnus-sum.el (gnus-summary-selected-face)
(gnus-summary-highlight): Use renamed gnus faces.
* lisp/gnus/gnus-group.el (gnus-group-highlight): Likewise.
2005-06-16 03:48:20 +00:00
|
|
|
gnus-group-mail-3-empty)
|
2004-09-04 13:13:48 +00:00
|
|
|
((and mailp (eq level 3)) .
|
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Remove "-face" suffix from gnus faces
2005-06-16 Miles Bader <miles@gnu.org>
* lisp/gnus/spam.el (spam): Remove "-face" suffix from face name.
(spam-face): New backward-compatibility alias for renamed face.
(spam-face, spam-initialize): Use renamed spam face.
* lisp/gnus/message.el (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name)
(message-header-xheader, message-separator, message-cited-text)
(message-mml): Remove "-face" suffix from face names.
(message-header-to-face, message-header-cc-face)
(message-header-subject-face, message-header-newsgroups-face)
(message-header-other-face, message-header-name-face)
(message-header-xheader-face, message-separator-face)
(message-cited-text-face, message-mml-face):
New backward-compatibility aliases for renamed faces.
(message-font-lock-keywords): Use renamed message faces.
* lisp/gnus/sieve-mode.el (sieve-control-commands, sieve-action-commands)
(sieve-test-commands, sieve-tagged-arguments):
Remove "-face" suffix from face names.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
New backward-compatibility aliases for renamed faces.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
Use renamed sieve faces.
* lisp/gnus/gnus.el (gnus-group-news-1, gnus-group-news-1-empty)
(gnus-group-news-2, gnus-group-news-2-empty, gnus-group-news-3)
(gnus-group-news-3-empty, gnus-group-news-4)
(gnus-group-news-4-empty, gnus-group-news-5)
(gnus-group-news-5-empty, gnus-group-news-6)
(gnus-group-news-6-empty, gnus-group-news-low)
(gnus-group-news-low-empty, gnus-group-mail-1)
(gnus-group-mail-1-empty, gnus-group-mail-2)
(gnus-group-mail-2-empty, gnus-group-mail-3)
(gnus-group-mail-3-empty, gnus-group-mail-low)
(gnus-group-mail-low-empty, gnus-summary-selected)
(gnus-summary-cancelled, gnus-summary-high-ticked)
(gnus-summary-low-ticked, gnus-summary-normal-ticked)
(gnus-summary-high-ancient, gnus-summary-low-ancient)
(gnus-summary-normal-ancient, gnus-summary-high-undownloaded)
(gnus-summary-low-undownloaded)
(gnus-summary-normal-undownloaded, gnus-summary-high-unread)
(gnus-summary-low-unread, gnus-summary-normal-unread)
(gnus-summary-high-read, gnus-summary-low-read)
(gnus-summary-normal-read, gnus-splash):
Remove "-face" suffix from face names.
(gnus-group-news-1-face, gnus-group-news-1-empty-face)
(gnus-group-news-2-face, gnus-group-news-2-empty-face)
(gnus-group-news-3-face, gnus-group-news-3-empty-face)
(gnus-group-news-4-face, gnus-group-news-4-empty-face)
(gnus-group-news-5-face, gnus-group-news-5-empty-face)
(gnus-group-news-6-face, gnus-group-news-6-empty-face)
(gnus-group-news-low-face, gnus-group-news-low-empty-face)
(gnus-group-mail-1-face, gnus-group-mail-1-empty-face)
(gnus-group-mail-2-face, gnus-group-mail-2-empty-face)
(gnus-group-mail-3-face, gnus-group-mail-3-empty-face)
(gnus-group-mail-low-face, gnus-group-mail-low-empty-face)
(gnus-summary-selected-face, gnus-summary-cancelled-face)
(gnus-summary-high-ticked-face, gnus-summary-low-ticked-face)
(gnus-summary-normal-ticked-face)
(gnus-summary-high-ancient-face, gnus-summary-low-ancient-face)
(gnus-summary-normal-ancient-face)
(gnus-summary-high-undownloaded-face)
(gnus-summary-low-undownloaded-face)
(gnus-summary-normal-undownloaded-face)
(gnus-summary-high-unread-face, gnus-summary-low-unread-face)
(gnus-summary-normal-unread-face, gnus-summary-high-read-face)
(gnus-summary-low-read-face, gnus-summary-normal-read-face)
(gnus-splash-face):
New backward-compatibility aliases for renamed faces.
(gnus-group-startup-message): Use renamed gnus faces.
* lisp/gnus/gnus-srvr.el (gnus-server-agent, gnus-server-opened)
(gnus-server-closed, gnus-server-denied, gnus-server-offline)
(gnus-server-agent): Remove "-face" suffix from face names.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face):
New backward-compatibility aliases for renamed faces.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face): Use renamed gnus faces.
* lisp/gnus/gnus-picon.el (gnus-picon-xbm, gnus-picon):
Remove "-face" suffix from face names.
(gnus-picon-xbm-face, gnus-picon-face):
New backward-compatibility aliases for renamed faces.
* lisp/gnus/gnus-cite.el (gnus-cite-attribution, gnus-cite-1, gnus-cite-2)
(gnus-cite-3, gnus-cite-4, gnus-cite-5, gnus-cite-6)
(gnus-cite-7, gnus-cite-8, gnus-cite-9, gnus-cite-10)
(gnus-cite-11): Remove "-face" suffix from face names.
(gnus-cite-attribution-face, gnus-cite-face-1, gnus-cite-face-2)
(gnus-cite-face-3, gnus-cite-face-4, gnus-cite-face-5)
(gnus-cite-face-6, gnus-cite-face-7, gnus-cite-face-8)
(gnus-cite-face-9, gnus-cite-face-10, gnus-cite-face-11):
New backward-compatibility aliases for renamed faces.
(gnus-cite-attribution-face, gnus-cite-face-list)
(gnus-article-boring-faces): Use renamed gnus faces.
* lisp/gnus/gnus-art.el (gnus-signature, gnus-header-from)
(gnus-header-subject, gnus-header-newsgroups, gnus-header-name)
(gnus-header-content): Remove "-face" suffix from face names.
(gnus-signature-face, gnus-header-from-face)
(gnus-header-subject-face, gnus-header-newsgroups-face)
(gnus-header-name-face, gnus-header-content-face):
New backward-compatibility aliases for renamed faces.
(gnus-signature-face, gnus-header-face-alist): Use renamed gnus faces.
* lisp/gnus/gnus-sum.el (gnus-summary-selected-face)
(gnus-summary-highlight): Use renamed gnus faces.
* lisp/gnus/gnus-group.el (gnus-group-highlight): Likewise.
2005-06-16 03:48:20 +00:00
|
|
|
gnus-group-mail-3)
|
2004-09-04 13:13:48 +00:00
|
|
|
((and mailp (= unread 0)) .
|
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Remove "-face" suffix from gnus faces
2005-06-16 Miles Bader <miles@gnu.org>
* lisp/gnus/spam.el (spam): Remove "-face" suffix from face name.
(spam-face): New backward-compatibility alias for renamed face.
(spam-face, spam-initialize): Use renamed spam face.
* lisp/gnus/message.el (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name)
(message-header-xheader, message-separator, message-cited-text)
(message-mml): Remove "-face" suffix from face names.
(message-header-to-face, message-header-cc-face)
(message-header-subject-face, message-header-newsgroups-face)
(message-header-other-face, message-header-name-face)
(message-header-xheader-face, message-separator-face)
(message-cited-text-face, message-mml-face):
New backward-compatibility aliases for renamed faces.
(message-font-lock-keywords): Use renamed message faces.
* lisp/gnus/sieve-mode.el (sieve-control-commands, sieve-action-commands)
(sieve-test-commands, sieve-tagged-arguments):
Remove "-face" suffix from face names.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
New backward-compatibility aliases for renamed faces.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
Use renamed sieve faces.
* lisp/gnus/gnus.el (gnus-group-news-1, gnus-group-news-1-empty)
(gnus-group-news-2, gnus-group-news-2-empty, gnus-group-news-3)
(gnus-group-news-3-empty, gnus-group-news-4)
(gnus-group-news-4-empty, gnus-group-news-5)
(gnus-group-news-5-empty, gnus-group-news-6)
(gnus-group-news-6-empty, gnus-group-news-low)
(gnus-group-news-low-empty, gnus-group-mail-1)
(gnus-group-mail-1-empty, gnus-group-mail-2)
(gnus-group-mail-2-empty, gnus-group-mail-3)
(gnus-group-mail-3-empty, gnus-group-mail-low)
(gnus-group-mail-low-empty, gnus-summary-selected)
(gnus-summary-cancelled, gnus-summary-high-ticked)
(gnus-summary-low-ticked, gnus-summary-normal-ticked)
(gnus-summary-high-ancient, gnus-summary-low-ancient)
(gnus-summary-normal-ancient, gnus-summary-high-undownloaded)
(gnus-summary-low-undownloaded)
(gnus-summary-normal-undownloaded, gnus-summary-high-unread)
(gnus-summary-low-unread, gnus-summary-normal-unread)
(gnus-summary-high-read, gnus-summary-low-read)
(gnus-summary-normal-read, gnus-splash):
Remove "-face" suffix from face names.
(gnus-group-news-1-face, gnus-group-news-1-empty-face)
(gnus-group-news-2-face, gnus-group-news-2-empty-face)
(gnus-group-news-3-face, gnus-group-news-3-empty-face)
(gnus-group-news-4-face, gnus-group-news-4-empty-face)
(gnus-group-news-5-face, gnus-group-news-5-empty-face)
(gnus-group-news-6-face, gnus-group-news-6-empty-face)
(gnus-group-news-low-face, gnus-group-news-low-empty-face)
(gnus-group-mail-1-face, gnus-group-mail-1-empty-face)
(gnus-group-mail-2-face, gnus-group-mail-2-empty-face)
(gnus-group-mail-3-face, gnus-group-mail-3-empty-face)
(gnus-group-mail-low-face, gnus-group-mail-low-empty-face)
(gnus-summary-selected-face, gnus-summary-cancelled-face)
(gnus-summary-high-ticked-face, gnus-summary-low-ticked-face)
(gnus-summary-normal-ticked-face)
(gnus-summary-high-ancient-face, gnus-summary-low-ancient-face)
(gnus-summary-normal-ancient-face)
(gnus-summary-high-undownloaded-face)
(gnus-summary-low-undownloaded-face)
(gnus-summary-normal-undownloaded-face)
(gnus-summary-high-unread-face, gnus-summary-low-unread-face)
(gnus-summary-normal-unread-face, gnus-summary-high-read-face)
(gnus-summary-low-read-face, gnus-summary-normal-read-face)
(gnus-splash-face):
New backward-compatibility aliases for renamed faces.
(gnus-group-startup-message): Use renamed gnus faces.
* lisp/gnus/gnus-srvr.el (gnus-server-agent, gnus-server-opened)
(gnus-server-closed, gnus-server-denied, gnus-server-offline)
(gnus-server-agent): Remove "-face" suffix from face names.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face):
New backward-compatibility aliases for renamed faces.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face): Use renamed gnus faces.
* lisp/gnus/gnus-picon.el (gnus-picon-xbm, gnus-picon):
Remove "-face" suffix from face names.
(gnus-picon-xbm-face, gnus-picon-face):
New backward-compatibility aliases for renamed faces.
* lisp/gnus/gnus-cite.el (gnus-cite-attribution, gnus-cite-1, gnus-cite-2)
(gnus-cite-3, gnus-cite-4, gnus-cite-5, gnus-cite-6)
(gnus-cite-7, gnus-cite-8, gnus-cite-9, gnus-cite-10)
(gnus-cite-11): Remove "-face" suffix from face names.
(gnus-cite-attribution-face, gnus-cite-face-1, gnus-cite-face-2)
(gnus-cite-face-3, gnus-cite-face-4, gnus-cite-face-5)
(gnus-cite-face-6, gnus-cite-face-7, gnus-cite-face-8)
(gnus-cite-face-9, gnus-cite-face-10, gnus-cite-face-11):
New backward-compatibility aliases for renamed faces.
(gnus-cite-attribution-face, gnus-cite-face-list)
(gnus-article-boring-faces): Use renamed gnus faces.
* lisp/gnus/gnus-art.el (gnus-signature, gnus-header-from)
(gnus-header-subject, gnus-header-newsgroups, gnus-header-name)
(gnus-header-content): Remove "-face" suffix from face names.
(gnus-signature-face, gnus-header-from-face)
(gnus-header-subject-face, gnus-header-newsgroups-face)
(gnus-header-name-face, gnus-header-content-face):
New backward-compatibility aliases for renamed faces.
(gnus-signature-face, gnus-header-face-alist): Use renamed gnus faces.
* lisp/gnus/gnus-sum.el (gnus-summary-selected-face)
(gnus-summary-highlight): Use renamed gnus faces.
* lisp/gnus/gnus-group.el (gnus-group-highlight): Likewise.
2005-06-16 03:48:20 +00:00
|
|
|
gnus-group-mail-low-empty)
|
2004-09-04 13:13:48 +00:00
|
|
|
((and mailp) .
|
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Remove "-face" suffix from gnus faces
2005-06-16 Miles Bader <miles@gnu.org>
* lisp/gnus/spam.el (spam): Remove "-face" suffix from face name.
(spam-face): New backward-compatibility alias for renamed face.
(spam-face, spam-initialize): Use renamed spam face.
* lisp/gnus/message.el (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name)
(message-header-xheader, message-separator, message-cited-text)
(message-mml): Remove "-face" suffix from face names.
(message-header-to-face, message-header-cc-face)
(message-header-subject-face, message-header-newsgroups-face)
(message-header-other-face, message-header-name-face)
(message-header-xheader-face, message-separator-face)
(message-cited-text-face, message-mml-face):
New backward-compatibility aliases for renamed faces.
(message-font-lock-keywords): Use renamed message faces.
* lisp/gnus/sieve-mode.el (sieve-control-commands, sieve-action-commands)
(sieve-test-commands, sieve-tagged-arguments):
Remove "-face" suffix from face names.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
New backward-compatibility aliases for renamed faces.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
Use renamed sieve faces.
* lisp/gnus/gnus.el (gnus-group-news-1, gnus-group-news-1-empty)
(gnus-group-news-2, gnus-group-news-2-empty, gnus-group-news-3)
(gnus-group-news-3-empty, gnus-group-news-4)
(gnus-group-news-4-empty, gnus-group-news-5)
(gnus-group-news-5-empty, gnus-group-news-6)
(gnus-group-news-6-empty, gnus-group-news-low)
(gnus-group-news-low-empty, gnus-group-mail-1)
(gnus-group-mail-1-empty, gnus-group-mail-2)
(gnus-group-mail-2-empty, gnus-group-mail-3)
(gnus-group-mail-3-empty, gnus-group-mail-low)
(gnus-group-mail-low-empty, gnus-summary-selected)
(gnus-summary-cancelled, gnus-summary-high-ticked)
(gnus-summary-low-ticked, gnus-summary-normal-ticked)
(gnus-summary-high-ancient, gnus-summary-low-ancient)
(gnus-summary-normal-ancient, gnus-summary-high-undownloaded)
(gnus-summary-low-undownloaded)
(gnus-summary-normal-undownloaded, gnus-summary-high-unread)
(gnus-summary-low-unread, gnus-summary-normal-unread)
(gnus-summary-high-read, gnus-summary-low-read)
(gnus-summary-normal-read, gnus-splash):
Remove "-face" suffix from face names.
(gnus-group-news-1-face, gnus-group-news-1-empty-face)
(gnus-group-news-2-face, gnus-group-news-2-empty-face)
(gnus-group-news-3-face, gnus-group-news-3-empty-face)
(gnus-group-news-4-face, gnus-group-news-4-empty-face)
(gnus-group-news-5-face, gnus-group-news-5-empty-face)
(gnus-group-news-6-face, gnus-group-news-6-empty-face)
(gnus-group-news-low-face, gnus-group-news-low-empty-face)
(gnus-group-mail-1-face, gnus-group-mail-1-empty-face)
(gnus-group-mail-2-face, gnus-group-mail-2-empty-face)
(gnus-group-mail-3-face, gnus-group-mail-3-empty-face)
(gnus-group-mail-low-face, gnus-group-mail-low-empty-face)
(gnus-summary-selected-face, gnus-summary-cancelled-face)
(gnus-summary-high-ticked-face, gnus-summary-low-ticked-face)
(gnus-summary-normal-ticked-face)
(gnus-summary-high-ancient-face, gnus-summary-low-ancient-face)
(gnus-summary-normal-ancient-face)
(gnus-summary-high-undownloaded-face)
(gnus-summary-low-undownloaded-face)
(gnus-summary-normal-undownloaded-face)
(gnus-summary-high-unread-face, gnus-summary-low-unread-face)
(gnus-summary-normal-unread-face, gnus-summary-high-read-face)
(gnus-summary-low-read-face, gnus-summary-normal-read-face)
(gnus-splash-face):
New backward-compatibility aliases for renamed faces.
(gnus-group-startup-message): Use renamed gnus faces.
* lisp/gnus/gnus-srvr.el (gnus-server-agent, gnus-server-opened)
(gnus-server-closed, gnus-server-denied, gnus-server-offline)
(gnus-server-agent): Remove "-face" suffix from face names.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face):
New backward-compatibility aliases for renamed faces.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face): Use renamed gnus faces.
* lisp/gnus/gnus-picon.el (gnus-picon-xbm, gnus-picon):
Remove "-face" suffix from face names.
(gnus-picon-xbm-face, gnus-picon-face):
New backward-compatibility aliases for renamed faces.
* lisp/gnus/gnus-cite.el (gnus-cite-attribution, gnus-cite-1, gnus-cite-2)
(gnus-cite-3, gnus-cite-4, gnus-cite-5, gnus-cite-6)
(gnus-cite-7, gnus-cite-8, gnus-cite-9, gnus-cite-10)
(gnus-cite-11): Remove "-face" suffix from face names.
(gnus-cite-attribution-face, gnus-cite-face-1, gnus-cite-face-2)
(gnus-cite-face-3, gnus-cite-face-4, gnus-cite-face-5)
(gnus-cite-face-6, gnus-cite-face-7, gnus-cite-face-8)
(gnus-cite-face-9, gnus-cite-face-10, gnus-cite-face-11):
New backward-compatibility aliases for renamed faces.
(gnus-cite-attribution-face, gnus-cite-face-list)
(gnus-article-boring-faces): Use renamed gnus faces.
* lisp/gnus/gnus-art.el (gnus-signature, gnus-header-from)
(gnus-header-subject, gnus-header-newsgroups, gnus-header-name)
(gnus-header-content): Remove "-face" suffix from face names.
(gnus-signature-face, gnus-header-from-face)
(gnus-header-subject-face, gnus-header-newsgroups-face)
(gnus-header-name-face, gnus-header-content-face):
New backward-compatibility aliases for renamed faces.
(gnus-signature-face, gnus-header-face-alist): Use renamed gnus faces.
* lisp/gnus/gnus-sum.el (gnus-summary-selected-face)
(gnus-summary-highlight): Use renamed gnus faces.
* lisp/gnus/gnus-group.el (gnus-group-highlight): Likewise.
2005-06-16 03:48:20 +00:00
|
|
|
gnus-group-mail-low)
|
2004-09-04 13:13:48 +00:00
|
|
|
;; News.
|
|
|
|
((and (= unread 0) (eq level 1)) .
|
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Remove "-face" suffix from gnus faces
2005-06-16 Miles Bader <miles@gnu.org>
* lisp/gnus/spam.el (spam): Remove "-face" suffix from face name.
(spam-face): New backward-compatibility alias for renamed face.
(spam-face, spam-initialize): Use renamed spam face.
* lisp/gnus/message.el (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name)
(message-header-xheader, message-separator, message-cited-text)
(message-mml): Remove "-face" suffix from face names.
(message-header-to-face, message-header-cc-face)
(message-header-subject-face, message-header-newsgroups-face)
(message-header-other-face, message-header-name-face)
(message-header-xheader-face, message-separator-face)
(message-cited-text-face, message-mml-face):
New backward-compatibility aliases for renamed faces.
(message-font-lock-keywords): Use renamed message faces.
* lisp/gnus/sieve-mode.el (sieve-control-commands, sieve-action-commands)
(sieve-test-commands, sieve-tagged-arguments):
Remove "-face" suffix from face names.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
New backward-compatibility aliases for renamed faces.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
Use renamed sieve faces.
* lisp/gnus/gnus.el (gnus-group-news-1, gnus-group-news-1-empty)
(gnus-group-news-2, gnus-group-news-2-empty, gnus-group-news-3)
(gnus-group-news-3-empty, gnus-group-news-4)
(gnus-group-news-4-empty, gnus-group-news-5)
(gnus-group-news-5-empty, gnus-group-news-6)
(gnus-group-news-6-empty, gnus-group-news-low)
(gnus-group-news-low-empty, gnus-group-mail-1)
(gnus-group-mail-1-empty, gnus-group-mail-2)
(gnus-group-mail-2-empty, gnus-group-mail-3)
(gnus-group-mail-3-empty, gnus-group-mail-low)
(gnus-group-mail-low-empty, gnus-summary-selected)
(gnus-summary-cancelled, gnus-summary-high-ticked)
(gnus-summary-low-ticked, gnus-summary-normal-ticked)
(gnus-summary-high-ancient, gnus-summary-low-ancient)
(gnus-summary-normal-ancient, gnus-summary-high-undownloaded)
(gnus-summary-low-undownloaded)
(gnus-summary-normal-undownloaded, gnus-summary-high-unread)
(gnus-summary-low-unread, gnus-summary-normal-unread)
(gnus-summary-high-read, gnus-summary-low-read)
(gnus-summary-normal-read, gnus-splash):
Remove "-face" suffix from face names.
(gnus-group-news-1-face, gnus-group-news-1-empty-face)
(gnus-group-news-2-face, gnus-group-news-2-empty-face)
(gnus-group-news-3-face, gnus-group-news-3-empty-face)
(gnus-group-news-4-face, gnus-group-news-4-empty-face)
(gnus-group-news-5-face, gnus-group-news-5-empty-face)
(gnus-group-news-6-face, gnus-group-news-6-empty-face)
(gnus-group-news-low-face, gnus-group-news-low-empty-face)
(gnus-group-mail-1-face, gnus-group-mail-1-empty-face)
(gnus-group-mail-2-face, gnus-group-mail-2-empty-face)
(gnus-group-mail-3-face, gnus-group-mail-3-empty-face)
(gnus-group-mail-low-face, gnus-group-mail-low-empty-face)
(gnus-summary-selected-face, gnus-summary-cancelled-face)
(gnus-summary-high-ticked-face, gnus-summary-low-ticked-face)
(gnus-summary-normal-ticked-face)
(gnus-summary-high-ancient-face, gnus-summary-low-ancient-face)
(gnus-summary-normal-ancient-face)
(gnus-summary-high-undownloaded-face)
(gnus-summary-low-undownloaded-face)
(gnus-summary-normal-undownloaded-face)
(gnus-summary-high-unread-face, gnus-summary-low-unread-face)
(gnus-summary-normal-unread-face, gnus-summary-high-read-face)
(gnus-summary-low-read-face, gnus-summary-normal-read-face)
(gnus-splash-face):
New backward-compatibility aliases for renamed faces.
(gnus-group-startup-message): Use renamed gnus faces.
* lisp/gnus/gnus-srvr.el (gnus-server-agent, gnus-server-opened)
(gnus-server-closed, gnus-server-denied, gnus-server-offline)
(gnus-server-agent): Remove "-face" suffix from face names.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face):
New backward-compatibility aliases for renamed faces.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face): Use renamed gnus faces.
* lisp/gnus/gnus-picon.el (gnus-picon-xbm, gnus-picon):
Remove "-face" suffix from face names.
(gnus-picon-xbm-face, gnus-picon-face):
New backward-compatibility aliases for renamed faces.
* lisp/gnus/gnus-cite.el (gnus-cite-attribution, gnus-cite-1, gnus-cite-2)
(gnus-cite-3, gnus-cite-4, gnus-cite-5, gnus-cite-6)
(gnus-cite-7, gnus-cite-8, gnus-cite-9, gnus-cite-10)
(gnus-cite-11): Remove "-face" suffix from face names.
(gnus-cite-attribution-face, gnus-cite-face-1, gnus-cite-face-2)
(gnus-cite-face-3, gnus-cite-face-4, gnus-cite-face-5)
(gnus-cite-face-6, gnus-cite-face-7, gnus-cite-face-8)
(gnus-cite-face-9, gnus-cite-face-10, gnus-cite-face-11):
New backward-compatibility aliases for renamed faces.
(gnus-cite-attribution-face, gnus-cite-face-list)
(gnus-article-boring-faces): Use renamed gnus faces.
* lisp/gnus/gnus-art.el (gnus-signature, gnus-header-from)
(gnus-header-subject, gnus-header-newsgroups, gnus-header-name)
(gnus-header-content): Remove "-face" suffix from face names.
(gnus-signature-face, gnus-header-from-face)
(gnus-header-subject-face, gnus-header-newsgroups-face)
(gnus-header-name-face, gnus-header-content-face):
New backward-compatibility aliases for renamed faces.
(gnus-signature-face, gnus-header-face-alist): Use renamed gnus faces.
* lisp/gnus/gnus-sum.el (gnus-summary-selected-face)
(gnus-summary-highlight): Use renamed gnus faces.
* lisp/gnus/gnus-group.el (gnus-group-highlight): Likewise.
2005-06-16 03:48:20 +00:00
|
|
|
gnus-group-news-1-empty)
|
2004-09-04 13:13:48 +00:00
|
|
|
((and (eq level 1)) .
|
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Remove "-face" suffix from gnus faces
2005-06-16 Miles Bader <miles@gnu.org>
* lisp/gnus/spam.el (spam): Remove "-face" suffix from face name.
(spam-face): New backward-compatibility alias for renamed face.
(spam-face, spam-initialize): Use renamed spam face.
* lisp/gnus/message.el (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name)
(message-header-xheader, message-separator, message-cited-text)
(message-mml): Remove "-face" suffix from face names.
(message-header-to-face, message-header-cc-face)
(message-header-subject-face, message-header-newsgroups-face)
(message-header-other-face, message-header-name-face)
(message-header-xheader-face, message-separator-face)
(message-cited-text-face, message-mml-face):
New backward-compatibility aliases for renamed faces.
(message-font-lock-keywords): Use renamed message faces.
* lisp/gnus/sieve-mode.el (sieve-control-commands, sieve-action-commands)
(sieve-test-commands, sieve-tagged-arguments):
Remove "-face" suffix from face names.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
New backward-compatibility aliases for renamed faces.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
Use renamed sieve faces.
* lisp/gnus/gnus.el (gnus-group-news-1, gnus-group-news-1-empty)
(gnus-group-news-2, gnus-group-news-2-empty, gnus-group-news-3)
(gnus-group-news-3-empty, gnus-group-news-4)
(gnus-group-news-4-empty, gnus-group-news-5)
(gnus-group-news-5-empty, gnus-group-news-6)
(gnus-group-news-6-empty, gnus-group-news-low)
(gnus-group-news-low-empty, gnus-group-mail-1)
(gnus-group-mail-1-empty, gnus-group-mail-2)
(gnus-group-mail-2-empty, gnus-group-mail-3)
(gnus-group-mail-3-empty, gnus-group-mail-low)
(gnus-group-mail-low-empty, gnus-summary-selected)
(gnus-summary-cancelled, gnus-summary-high-ticked)
(gnus-summary-low-ticked, gnus-summary-normal-ticked)
(gnus-summary-high-ancient, gnus-summary-low-ancient)
(gnus-summary-normal-ancient, gnus-summary-high-undownloaded)
(gnus-summary-low-undownloaded)
(gnus-summary-normal-undownloaded, gnus-summary-high-unread)
(gnus-summary-low-unread, gnus-summary-normal-unread)
(gnus-summary-high-read, gnus-summary-low-read)
(gnus-summary-normal-read, gnus-splash):
Remove "-face" suffix from face names.
(gnus-group-news-1-face, gnus-group-news-1-empty-face)
(gnus-group-news-2-face, gnus-group-news-2-empty-face)
(gnus-group-news-3-face, gnus-group-news-3-empty-face)
(gnus-group-news-4-face, gnus-group-news-4-empty-face)
(gnus-group-news-5-face, gnus-group-news-5-empty-face)
(gnus-group-news-6-face, gnus-group-news-6-empty-face)
(gnus-group-news-low-face, gnus-group-news-low-empty-face)
(gnus-group-mail-1-face, gnus-group-mail-1-empty-face)
(gnus-group-mail-2-face, gnus-group-mail-2-empty-face)
(gnus-group-mail-3-face, gnus-group-mail-3-empty-face)
(gnus-group-mail-low-face, gnus-group-mail-low-empty-face)
(gnus-summary-selected-face, gnus-summary-cancelled-face)
(gnus-summary-high-ticked-face, gnus-summary-low-ticked-face)
(gnus-summary-normal-ticked-face)
(gnus-summary-high-ancient-face, gnus-summary-low-ancient-face)
(gnus-summary-normal-ancient-face)
(gnus-summary-high-undownloaded-face)
(gnus-summary-low-undownloaded-face)
(gnus-summary-normal-undownloaded-face)
(gnus-summary-high-unread-face, gnus-summary-low-unread-face)
(gnus-summary-normal-unread-face, gnus-summary-high-read-face)
(gnus-summary-low-read-face, gnus-summary-normal-read-face)
(gnus-splash-face):
New backward-compatibility aliases for renamed faces.
(gnus-group-startup-message): Use renamed gnus faces.
* lisp/gnus/gnus-srvr.el (gnus-server-agent, gnus-server-opened)
(gnus-server-closed, gnus-server-denied, gnus-server-offline)
(gnus-server-agent): Remove "-face" suffix from face names.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face):
New backward-compatibility aliases for renamed faces.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face): Use renamed gnus faces.
* lisp/gnus/gnus-picon.el (gnus-picon-xbm, gnus-picon):
Remove "-face" suffix from face names.
(gnus-picon-xbm-face, gnus-picon-face):
New backward-compatibility aliases for renamed faces.
* lisp/gnus/gnus-cite.el (gnus-cite-attribution, gnus-cite-1, gnus-cite-2)
(gnus-cite-3, gnus-cite-4, gnus-cite-5, gnus-cite-6)
(gnus-cite-7, gnus-cite-8, gnus-cite-9, gnus-cite-10)
(gnus-cite-11): Remove "-face" suffix from face names.
(gnus-cite-attribution-face, gnus-cite-face-1, gnus-cite-face-2)
(gnus-cite-face-3, gnus-cite-face-4, gnus-cite-face-5)
(gnus-cite-face-6, gnus-cite-face-7, gnus-cite-face-8)
(gnus-cite-face-9, gnus-cite-face-10, gnus-cite-face-11):
New backward-compatibility aliases for renamed faces.
(gnus-cite-attribution-face, gnus-cite-face-list)
(gnus-article-boring-faces): Use renamed gnus faces.
* lisp/gnus/gnus-art.el (gnus-signature, gnus-header-from)
(gnus-header-subject, gnus-header-newsgroups, gnus-header-name)
(gnus-header-content): Remove "-face" suffix from face names.
(gnus-signature-face, gnus-header-from-face)
(gnus-header-subject-face, gnus-header-newsgroups-face)
(gnus-header-name-face, gnus-header-content-face):
New backward-compatibility aliases for renamed faces.
(gnus-signature-face, gnus-header-face-alist): Use renamed gnus faces.
* lisp/gnus/gnus-sum.el (gnus-summary-selected-face)
(gnus-summary-highlight): Use renamed gnus faces.
* lisp/gnus/gnus-group.el (gnus-group-highlight): Likewise.
2005-06-16 03:48:20 +00:00
|
|
|
gnus-group-news-1)
|
2004-09-04 13:13:48 +00:00
|
|
|
((and (= unread 0) (eq level 2)) .
|
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Remove "-face" suffix from gnus faces
2005-06-16 Miles Bader <miles@gnu.org>
* lisp/gnus/spam.el (spam): Remove "-face" suffix from face name.
(spam-face): New backward-compatibility alias for renamed face.
(spam-face, spam-initialize): Use renamed spam face.
* lisp/gnus/message.el (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name)
(message-header-xheader, message-separator, message-cited-text)
(message-mml): Remove "-face" suffix from face names.
(message-header-to-face, message-header-cc-face)
(message-header-subject-face, message-header-newsgroups-face)
(message-header-other-face, message-header-name-face)
(message-header-xheader-face, message-separator-face)
(message-cited-text-face, message-mml-face):
New backward-compatibility aliases for renamed faces.
(message-font-lock-keywords): Use renamed message faces.
* lisp/gnus/sieve-mode.el (sieve-control-commands, sieve-action-commands)
(sieve-test-commands, sieve-tagged-arguments):
Remove "-face" suffix from face names.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
New backward-compatibility aliases for renamed faces.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
Use renamed sieve faces.
* lisp/gnus/gnus.el (gnus-group-news-1, gnus-group-news-1-empty)
(gnus-group-news-2, gnus-group-news-2-empty, gnus-group-news-3)
(gnus-group-news-3-empty, gnus-group-news-4)
(gnus-group-news-4-empty, gnus-group-news-5)
(gnus-group-news-5-empty, gnus-group-news-6)
(gnus-group-news-6-empty, gnus-group-news-low)
(gnus-group-news-low-empty, gnus-group-mail-1)
(gnus-group-mail-1-empty, gnus-group-mail-2)
(gnus-group-mail-2-empty, gnus-group-mail-3)
(gnus-group-mail-3-empty, gnus-group-mail-low)
(gnus-group-mail-low-empty, gnus-summary-selected)
(gnus-summary-cancelled, gnus-summary-high-ticked)
(gnus-summary-low-ticked, gnus-summary-normal-ticked)
(gnus-summary-high-ancient, gnus-summary-low-ancient)
(gnus-summary-normal-ancient, gnus-summary-high-undownloaded)
(gnus-summary-low-undownloaded)
(gnus-summary-normal-undownloaded, gnus-summary-high-unread)
(gnus-summary-low-unread, gnus-summary-normal-unread)
(gnus-summary-high-read, gnus-summary-low-read)
(gnus-summary-normal-read, gnus-splash):
Remove "-face" suffix from face names.
(gnus-group-news-1-face, gnus-group-news-1-empty-face)
(gnus-group-news-2-face, gnus-group-news-2-empty-face)
(gnus-group-news-3-face, gnus-group-news-3-empty-face)
(gnus-group-news-4-face, gnus-group-news-4-empty-face)
(gnus-group-news-5-face, gnus-group-news-5-empty-face)
(gnus-group-news-6-face, gnus-group-news-6-empty-face)
(gnus-group-news-low-face, gnus-group-news-low-empty-face)
(gnus-group-mail-1-face, gnus-group-mail-1-empty-face)
(gnus-group-mail-2-face, gnus-group-mail-2-empty-face)
(gnus-group-mail-3-face, gnus-group-mail-3-empty-face)
(gnus-group-mail-low-face, gnus-group-mail-low-empty-face)
(gnus-summary-selected-face, gnus-summary-cancelled-face)
(gnus-summary-high-ticked-face, gnus-summary-low-ticked-face)
(gnus-summary-normal-ticked-face)
(gnus-summary-high-ancient-face, gnus-summary-low-ancient-face)
(gnus-summary-normal-ancient-face)
(gnus-summary-high-undownloaded-face)
(gnus-summary-low-undownloaded-face)
(gnus-summary-normal-undownloaded-face)
(gnus-summary-high-unread-face, gnus-summary-low-unread-face)
(gnus-summary-normal-unread-face, gnus-summary-high-read-face)
(gnus-summary-low-read-face, gnus-summary-normal-read-face)
(gnus-splash-face):
New backward-compatibility aliases for renamed faces.
(gnus-group-startup-message): Use renamed gnus faces.
* lisp/gnus/gnus-srvr.el (gnus-server-agent, gnus-server-opened)
(gnus-server-closed, gnus-server-denied, gnus-server-offline)
(gnus-server-agent): Remove "-face" suffix from face names.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face):
New backward-compatibility aliases for renamed faces.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face): Use renamed gnus faces.
* lisp/gnus/gnus-picon.el (gnus-picon-xbm, gnus-picon):
Remove "-face" suffix from face names.
(gnus-picon-xbm-face, gnus-picon-face):
New backward-compatibility aliases for renamed faces.
* lisp/gnus/gnus-cite.el (gnus-cite-attribution, gnus-cite-1, gnus-cite-2)
(gnus-cite-3, gnus-cite-4, gnus-cite-5, gnus-cite-6)
(gnus-cite-7, gnus-cite-8, gnus-cite-9, gnus-cite-10)
(gnus-cite-11): Remove "-face" suffix from face names.
(gnus-cite-attribution-face, gnus-cite-face-1, gnus-cite-face-2)
(gnus-cite-face-3, gnus-cite-face-4, gnus-cite-face-5)
(gnus-cite-face-6, gnus-cite-face-7, gnus-cite-face-8)
(gnus-cite-face-9, gnus-cite-face-10, gnus-cite-face-11):
New backward-compatibility aliases for renamed faces.
(gnus-cite-attribution-face, gnus-cite-face-list)
(gnus-article-boring-faces): Use renamed gnus faces.
* lisp/gnus/gnus-art.el (gnus-signature, gnus-header-from)
(gnus-header-subject, gnus-header-newsgroups, gnus-header-name)
(gnus-header-content): Remove "-face" suffix from face names.
(gnus-signature-face, gnus-header-from-face)
(gnus-header-subject-face, gnus-header-newsgroups-face)
(gnus-header-name-face, gnus-header-content-face):
New backward-compatibility aliases for renamed faces.
(gnus-signature-face, gnus-header-face-alist): Use renamed gnus faces.
* lisp/gnus/gnus-sum.el (gnus-summary-selected-face)
(gnus-summary-highlight): Use renamed gnus faces.
* lisp/gnus/gnus-group.el (gnus-group-highlight): Likewise.
2005-06-16 03:48:20 +00:00
|
|
|
gnus-group-news-2-empty)
|
2004-09-04 13:13:48 +00:00
|
|
|
((and (eq level 2)) .
|
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Remove "-face" suffix from gnus faces
2005-06-16 Miles Bader <miles@gnu.org>
* lisp/gnus/spam.el (spam): Remove "-face" suffix from face name.
(spam-face): New backward-compatibility alias for renamed face.
(spam-face, spam-initialize): Use renamed spam face.
* lisp/gnus/message.el (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name)
(message-header-xheader, message-separator, message-cited-text)
(message-mml): Remove "-face" suffix from face names.
(message-header-to-face, message-header-cc-face)
(message-header-subject-face, message-header-newsgroups-face)
(message-header-other-face, message-header-name-face)
(message-header-xheader-face, message-separator-face)
(message-cited-text-face, message-mml-face):
New backward-compatibility aliases for renamed faces.
(message-font-lock-keywords): Use renamed message faces.
* lisp/gnus/sieve-mode.el (sieve-control-commands, sieve-action-commands)
(sieve-test-commands, sieve-tagged-arguments):
Remove "-face" suffix from face names.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
New backward-compatibility aliases for renamed faces.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
Use renamed sieve faces.
* lisp/gnus/gnus.el (gnus-group-news-1, gnus-group-news-1-empty)
(gnus-group-news-2, gnus-group-news-2-empty, gnus-group-news-3)
(gnus-group-news-3-empty, gnus-group-news-4)
(gnus-group-news-4-empty, gnus-group-news-5)
(gnus-group-news-5-empty, gnus-group-news-6)
(gnus-group-news-6-empty, gnus-group-news-low)
(gnus-group-news-low-empty, gnus-group-mail-1)
(gnus-group-mail-1-empty, gnus-group-mail-2)
(gnus-group-mail-2-empty, gnus-group-mail-3)
(gnus-group-mail-3-empty, gnus-group-mail-low)
(gnus-group-mail-low-empty, gnus-summary-selected)
(gnus-summary-cancelled, gnus-summary-high-ticked)
(gnus-summary-low-ticked, gnus-summary-normal-ticked)
(gnus-summary-high-ancient, gnus-summary-low-ancient)
(gnus-summary-normal-ancient, gnus-summary-high-undownloaded)
(gnus-summary-low-undownloaded)
(gnus-summary-normal-undownloaded, gnus-summary-high-unread)
(gnus-summary-low-unread, gnus-summary-normal-unread)
(gnus-summary-high-read, gnus-summary-low-read)
(gnus-summary-normal-read, gnus-splash):
Remove "-face" suffix from face names.
(gnus-group-news-1-face, gnus-group-news-1-empty-face)
(gnus-group-news-2-face, gnus-group-news-2-empty-face)
(gnus-group-news-3-face, gnus-group-news-3-empty-face)
(gnus-group-news-4-face, gnus-group-news-4-empty-face)
(gnus-group-news-5-face, gnus-group-news-5-empty-face)
(gnus-group-news-6-face, gnus-group-news-6-empty-face)
(gnus-group-news-low-face, gnus-group-news-low-empty-face)
(gnus-group-mail-1-face, gnus-group-mail-1-empty-face)
(gnus-group-mail-2-face, gnus-group-mail-2-empty-face)
(gnus-group-mail-3-face, gnus-group-mail-3-empty-face)
(gnus-group-mail-low-face, gnus-group-mail-low-empty-face)
(gnus-summary-selected-face, gnus-summary-cancelled-face)
(gnus-summary-high-ticked-face, gnus-summary-low-ticked-face)
(gnus-summary-normal-ticked-face)
(gnus-summary-high-ancient-face, gnus-summary-low-ancient-face)
(gnus-summary-normal-ancient-face)
(gnus-summary-high-undownloaded-face)
(gnus-summary-low-undownloaded-face)
(gnus-summary-normal-undownloaded-face)
(gnus-summary-high-unread-face, gnus-summary-low-unread-face)
(gnus-summary-normal-unread-face, gnus-summary-high-read-face)
(gnus-summary-low-read-face, gnus-summary-normal-read-face)
(gnus-splash-face):
New backward-compatibility aliases for renamed faces.
(gnus-group-startup-message): Use renamed gnus faces.
* lisp/gnus/gnus-srvr.el (gnus-server-agent, gnus-server-opened)
(gnus-server-closed, gnus-server-denied, gnus-server-offline)
(gnus-server-agent): Remove "-face" suffix from face names.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face):
New backward-compatibility aliases for renamed faces.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face): Use renamed gnus faces.
* lisp/gnus/gnus-picon.el (gnus-picon-xbm, gnus-picon):
Remove "-face" suffix from face names.
(gnus-picon-xbm-face, gnus-picon-face):
New backward-compatibility aliases for renamed faces.
* lisp/gnus/gnus-cite.el (gnus-cite-attribution, gnus-cite-1, gnus-cite-2)
(gnus-cite-3, gnus-cite-4, gnus-cite-5, gnus-cite-6)
(gnus-cite-7, gnus-cite-8, gnus-cite-9, gnus-cite-10)
(gnus-cite-11): Remove "-face" suffix from face names.
(gnus-cite-attribution-face, gnus-cite-face-1, gnus-cite-face-2)
(gnus-cite-face-3, gnus-cite-face-4, gnus-cite-face-5)
(gnus-cite-face-6, gnus-cite-face-7, gnus-cite-face-8)
(gnus-cite-face-9, gnus-cite-face-10, gnus-cite-face-11):
New backward-compatibility aliases for renamed faces.
(gnus-cite-attribution-face, gnus-cite-face-list)
(gnus-article-boring-faces): Use renamed gnus faces.
* lisp/gnus/gnus-art.el (gnus-signature, gnus-header-from)
(gnus-header-subject, gnus-header-newsgroups, gnus-header-name)
(gnus-header-content): Remove "-face" suffix from face names.
(gnus-signature-face, gnus-header-from-face)
(gnus-header-subject-face, gnus-header-newsgroups-face)
(gnus-header-name-face, gnus-header-content-face):
New backward-compatibility aliases for renamed faces.
(gnus-signature-face, gnus-header-face-alist): Use renamed gnus faces.
* lisp/gnus/gnus-sum.el (gnus-summary-selected-face)
(gnus-summary-highlight): Use renamed gnus faces.
* lisp/gnus/gnus-group.el (gnus-group-highlight): Likewise.
2005-06-16 03:48:20 +00:00
|
|
|
gnus-group-news-2)
|
2004-09-04 13:13:48 +00:00
|
|
|
((and (= unread 0) (eq level 3)) .
|
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Remove "-face" suffix from gnus faces
2005-06-16 Miles Bader <miles@gnu.org>
* lisp/gnus/spam.el (spam): Remove "-face" suffix from face name.
(spam-face): New backward-compatibility alias for renamed face.
(spam-face, spam-initialize): Use renamed spam face.
* lisp/gnus/message.el (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name)
(message-header-xheader, message-separator, message-cited-text)
(message-mml): Remove "-face" suffix from face names.
(message-header-to-face, message-header-cc-face)
(message-header-subject-face, message-header-newsgroups-face)
(message-header-other-face, message-header-name-face)
(message-header-xheader-face, message-separator-face)
(message-cited-text-face, message-mml-face):
New backward-compatibility aliases for renamed faces.
(message-font-lock-keywords): Use renamed message faces.
* lisp/gnus/sieve-mode.el (sieve-control-commands, sieve-action-commands)
(sieve-test-commands, sieve-tagged-arguments):
Remove "-face" suffix from face names.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
New backward-compatibility aliases for renamed faces.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
Use renamed sieve faces.
* lisp/gnus/gnus.el (gnus-group-news-1, gnus-group-news-1-empty)
(gnus-group-news-2, gnus-group-news-2-empty, gnus-group-news-3)
(gnus-group-news-3-empty, gnus-group-news-4)
(gnus-group-news-4-empty, gnus-group-news-5)
(gnus-group-news-5-empty, gnus-group-news-6)
(gnus-group-news-6-empty, gnus-group-news-low)
(gnus-group-news-low-empty, gnus-group-mail-1)
(gnus-group-mail-1-empty, gnus-group-mail-2)
(gnus-group-mail-2-empty, gnus-group-mail-3)
(gnus-group-mail-3-empty, gnus-group-mail-low)
(gnus-group-mail-low-empty, gnus-summary-selected)
(gnus-summary-cancelled, gnus-summary-high-ticked)
(gnus-summary-low-ticked, gnus-summary-normal-ticked)
(gnus-summary-high-ancient, gnus-summary-low-ancient)
(gnus-summary-normal-ancient, gnus-summary-high-undownloaded)
(gnus-summary-low-undownloaded)
(gnus-summary-normal-undownloaded, gnus-summary-high-unread)
(gnus-summary-low-unread, gnus-summary-normal-unread)
(gnus-summary-high-read, gnus-summary-low-read)
(gnus-summary-normal-read, gnus-splash):
Remove "-face" suffix from face names.
(gnus-group-news-1-face, gnus-group-news-1-empty-face)
(gnus-group-news-2-face, gnus-group-news-2-empty-face)
(gnus-group-news-3-face, gnus-group-news-3-empty-face)
(gnus-group-news-4-face, gnus-group-news-4-empty-face)
(gnus-group-news-5-face, gnus-group-news-5-empty-face)
(gnus-group-news-6-face, gnus-group-news-6-empty-face)
(gnus-group-news-low-face, gnus-group-news-low-empty-face)
(gnus-group-mail-1-face, gnus-group-mail-1-empty-face)
(gnus-group-mail-2-face, gnus-group-mail-2-empty-face)
(gnus-group-mail-3-face, gnus-group-mail-3-empty-face)
(gnus-group-mail-low-face, gnus-group-mail-low-empty-face)
(gnus-summary-selected-face, gnus-summary-cancelled-face)
(gnus-summary-high-ticked-face, gnus-summary-low-ticked-face)
(gnus-summary-normal-ticked-face)
(gnus-summary-high-ancient-face, gnus-summary-low-ancient-face)
(gnus-summary-normal-ancient-face)
(gnus-summary-high-undownloaded-face)
(gnus-summary-low-undownloaded-face)
(gnus-summary-normal-undownloaded-face)
(gnus-summary-high-unread-face, gnus-summary-low-unread-face)
(gnus-summary-normal-unread-face, gnus-summary-high-read-face)
(gnus-summary-low-read-face, gnus-summary-normal-read-face)
(gnus-splash-face):
New backward-compatibility aliases for renamed faces.
(gnus-group-startup-message): Use renamed gnus faces.
* lisp/gnus/gnus-srvr.el (gnus-server-agent, gnus-server-opened)
(gnus-server-closed, gnus-server-denied, gnus-server-offline)
(gnus-server-agent): Remove "-face" suffix from face names.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face):
New backward-compatibility aliases for renamed faces.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face): Use renamed gnus faces.
* lisp/gnus/gnus-picon.el (gnus-picon-xbm, gnus-picon):
Remove "-face" suffix from face names.
(gnus-picon-xbm-face, gnus-picon-face):
New backward-compatibility aliases for renamed faces.
* lisp/gnus/gnus-cite.el (gnus-cite-attribution, gnus-cite-1, gnus-cite-2)
(gnus-cite-3, gnus-cite-4, gnus-cite-5, gnus-cite-6)
(gnus-cite-7, gnus-cite-8, gnus-cite-9, gnus-cite-10)
(gnus-cite-11): Remove "-face" suffix from face names.
(gnus-cite-attribution-face, gnus-cite-face-1, gnus-cite-face-2)
(gnus-cite-face-3, gnus-cite-face-4, gnus-cite-face-5)
(gnus-cite-face-6, gnus-cite-face-7, gnus-cite-face-8)
(gnus-cite-face-9, gnus-cite-face-10, gnus-cite-face-11):
New backward-compatibility aliases for renamed faces.
(gnus-cite-attribution-face, gnus-cite-face-list)
(gnus-article-boring-faces): Use renamed gnus faces.
* lisp/gnus/gnus-art.el (gnus-signature, gnus-header-from)
(gnus-header-subject, gnus-header-newsgroups, gnus-header-name)
(gnus-header-content): Remove "-face" suffix from face names.
(gnus-signature-face, gnus-header-from-face)
(gnus-header-subject-face, gnus-header-newsgroups-face)
(gnus-header-name-face, gnus-header-content-face):
New backward-compatibility aliases for renamed faces.
(gnus-signature-face, gnus-header-face-alist): Use renamed gnus faces.
* lisp/gnus/gnus-sum.el (gnus-summary-selected-face)
(gnus-summary-highlight): Use renamed gnus faces.
* lisp/gnus/gnus-group.el (gnus-group-highlight): Likewise.
2005-06-16 03:48:20 +00:00
|
|
|
gnus-group-news-3-empty)
|
2004-09-04 13:13:48 +00:00
|
|
|
((and (eq level 3)) .
|
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Remove "-face" suffix from gnus faces
2005-06-16 Miles Bader <miles@gnu.org>
* lisp/gnus/spam.el (spam): Remove "-face" suffix from face name.
(spam-face): New backward-compatibility alias for renamed face.
(spam-face, spam-initialize): Use renamed spam face.
* lisp/gnus/message.el (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name)
(message-header-xheader, message-separator, message-cited-text)
(message-mml): Remove "-face" suffix from face names.
(message-header-to-face, message-header-cc-face)
(message-header-subject-face, message-header-newsgroups-face)
(message-header-other-face, message-header-name-face)
(message-header-xheader-face, message-separator-face)
(message-cited-text-face, message-mml-face):
New backward-compatibility aliases for renamed faces.
(message-font-lock-keywords): Use renamed message faces.
* lisp/gnus/sieve-mode.el (sieve-control-commands, sieve-action-commands)
(sieve-test-commands, sieve-tagged-arguments):
Remove "-face" suffix from face names.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
New backward-compatibility aliases for renamed faces.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
Use renamed sieve faces.
* lisp/gnus/gnus.el (gnus-group-news-1, gnus-group-news-1-empty)
(gnus-group-news-2, gnus-group-news-2-empty, gnus-group-news-3)
(gnus-group-news-3-empty, gnus-group-news-4)
(gnus-group-news-4-empty, gnus-group-news-5)
(gnus-group-news-5-empty, gnus-group-news-6)
(gnus-group-news-6-empty, gnus-group-news-low)
(gnus-group-news-low-empty, gnus-group-mail-1)
(gnus-group-mail-1-empty, gnus-group-mail-2)
(gnus-group-mail-2-empty, gnus-group-mail-3)
(gnus-group-mail-3-empty, gnus-group-mail-low)
(gnus-group-mail-low-empty, gnus-summary-selected)
(gnus-summary-cancelled, gnus-summary-high-ticked)
(gnus-summary-low-ticked, gnus-summary-normal-ticked)
(gnus-summary-high-ancient, gnus-summary-low-ancient)
(gnus-summary-normal-ancient, gnus-summary-high-undownloaded)
(gnus-summary-low-undownloaded)
(gnus-summary-normal-undownloaded, gnus-summary-high-unread)
(gnus-summary-low-unread, gnus-summary-normal-unread)
(gnus-summary-high-read, gnus-summary-low-read)
(gnus-summary-normal-read, gnus-splash):
Remove "-face" suffix from face names.
(gnus-group-news-1-face, gnus-group-news-1-empty-face)
(gnus-group-news-2-face, gnus-group-news-2-empty-face)
(gnus-group-news-3-face, gnus-group-news-3-empty-face)
(gnus-group-news-4-face, gnus-group-news-4-empty-face)
(gnus-group-news-5-face, gnus-group-news-5-empty-face)
(gnus-group-news-6-face, gnus-group-news-6-empty-face)
(gnus-group-news-low-face, gnus-group-news-low-empty-face)
(gnus-group-mail-1-face, gnus-group-mail-1-empty-face)
(gnus-group-mail-2-face, gnus-group-mail-2-empty-face)
(gnus-group-mail-3-face, gnus-group-mail-3-empty-face)
(gnus-group-mail-low-face, gnus-group-mail-low-empty-face)
(gnus-summary-selected-face, gnus-summary-cancelled-face)
(gnus-summary-high-ticked-face, gnus-summary-low-ticked-face)
(gnus-summary-normal-ticked-face)
(gnus-summary-high-ancient-face, gnus-summary-low-ancient-face)
(gnus-summary-normal-ancient-face)
(gnus-summary-high-undownloaded-face)
(gnus-summary-low-undownloaded-face)
(gnus-summary-normal-undownloaded-face)
(gnus-summary-high-unread-face, gnus-summary-low-unread-face)
(gnus-summary-normal-unread-face, gnus-summary-high-read-face)
(gnus-summary-low-read-face, gnus-summary-normal-read-face)
(gnus-splash-face):
New backward-compatibility aliases for renamed faces.
(gnus-group-startup-message): Use renamed gnus faces.
* lisp/gnus/gnus-srvr.el (gnus-server-agent, gnus-server-opened)
(gnus-server-closed, gnus-server-denied, gnus-server-offline)
(gnus-server-agent): Remove "-face" suffix from face names.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face):
New backward-compatibility aliases for renamed faces.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face): Use renamed gnus faces.
* lisp/gnus/gnus-picon.el (gnus-picon-xbm, gnus-picon):
Remove "-face" suffix from face names.
(gnus-picon-xbm-face, gnus-picon-face):
New backward-compatibility aliases for renamed faces.
* lisp/gnus/gnus-cite.el (gnus-cite-attribution, gnus-cite-1, gnus-cite-2)
(gnus-cite-3, gnus-cite-4, gnus-cite-5, gnus-cite-6)
(gnus-cite-7, gnus-cite-8, gnus-cite-9, gnus-cite-10)
(gnus-cite-11): Remove "-face" suffix from face names.
(gnus-cite-attribution-face, gnus-cite-face-1, gnus-cite-face-2)
(gnus-cite-face-3, gnus-cite-face-4, gnus-cite-face-5)
(gnus-cite-face-6, gnus-cite-face-7, gnus-cite-face-8)
(gnus-cite-face-9, gnus-cite-face-10, gnus-cite-face-11):
New backward-compatibility aliases for renamed faces.
(gnus-cite-attribution-face, gnus-cite-face-list)
(gnus-article-boring-faces): Use renamed gnus faces.
* lisp/gnus/gnus-art.el (gnus-signature, gnus-header-from)
(gnus-header-subject, gnus-header-newsgroups, gnus-header-name)
(gnus-header-content): Remove "-face" suffix from face names.
(gnus-signature-face, gnus-header-from-face)
(gnus-header-subject-face, gnus-header-newsgroups-face)
(gnus-header-name-face, gnus-header-content-face):
New backward-compatibility aliases for renamed faces.
(gnus-signature-face, gnus-header-face-alist): Use renamed gnus faces.
* lisp/gnus/gnus-sum.el (gnus-summary-selected-face)
(gnus-summary-highlight): Use renamed gnus faces.
* lisp/gnus/gnus-group.el (gnus-group-highlight): Likewise.
2005-06-16 03:48:20 +00:00
|
|
|
gnus-group-news-3)
|
2004-09-04 13:13:48 +00:00
|
|
|
((and (= unread 0) (eq level 4)) .
|
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Remove "-face" suffix from gnus faces
2005-06-16 Miles Bader <miles@gnu.org>
* lisp/gnus/spam.el (spam): Remove "-face" suffix from face name.
(spam-face): New backward-compatibility alias for renamed face.
(spam-face, spam-initialize): Use renamed spam face.
* lisp/gnus/message.el (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name)
(message-header-xheader, message-separator, message-cited-text)
(message-mml): Remove "-face" suffix from face names.
(message-header-to-face, message-header-cc-face)
(message-header-subject-face, message-header-newsgroups-face)
(message-header-other-face, message-header-name-face)
(message-header-xheader-face, message-separator-face)
(message-cited-text-face, message-mml-face):
New backward-compatibility aliases for renamed faces.
(message-font-lock-keywords): Use renamed message faces.
* lisp/gnus/sieve-mode.el (sieve-control-commands, sieve-action-commands)
(sieve-test-commands, sieve-tagged-arguments):
Remove "-face" suffix from face names.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
New backward-compatibility aliases for renamed faces.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
Use renamed sieve faces.
* lisp/gnus/gnus.el (gnus-group-news-1, gnus-group-news-1-empty)
(gnus-group-news-2, gnus-group-news-2-empty, gnus-group-news-3)
(gnus-group-news-3-empty, gnus-group-news-4)
(gnus-group-news-4-empty, gnus-group-news-5)
(gnus-group-news-5-empty, gnus-group-news-6)
(gnus-group-news-6-empty, gnus-group-news-low)
(gnus-group-news-low-empty, gnus-group-mail-1)
(gnus-group-mail-1-empty, gnus-group-mail-2)
(gnus-group-mail-2-empty, gnus-group-mail-3)
(gnus-group-mail-3-empty, gnus-group-mail-low)
(gnus-group-mail-low-empty, gnus-summary-selected)
(gnus-summary-cancelled, gnus-summary-high-ticked)
(gnus-summary-low-ticked, gnus-summary-normal-ticked)
(gnus-summary-high-ancient, gnus-summary-low-ancient)
(gnus-summary-normal-ancient, gnus-summary-high-undownloaded)
(gnus-summary-low-undownloaded)
(gnus-summary-normal-undownloaded, gnus-summary-high-unread)
(gnus-summary-low-unread, gnus-summary-normal-unread)
(gnus-summary-high-read, gnus-summary-low-read)
(gnus-summary-normal-read, gnus-splash):
Remove "-face" suffix from face names.
(gnus-group-news-1-face, gnus-group-news-1-empty-face)
(gnus-group-news-2-face, gnus-group-news-2-empty-face)
(gnus-group-news-3-face, gnus-group-news-3-empty-face)
(gnus-group-news-4-face, gnus-group-news-4-empty-face)
(gnus-group-news-5-face, gnus-group-news-5-empty-face)
(gnus-group-news-6-face, gnus-group-news-6-empty-face)
(gnus-group-news-low-face, gnus-group-news-low-empty-face)
(gnus-group-mail-1-face, gnus-group-mail-1-empty-face)
(gnus-group-mail-2-face, gnus-group-mail-2-empty-face)
(gnus-group-mail-3-face, gnus-group-mail-3-empty-face)
(gnus-group-mail-low-face, gnus-group-mail-low-empty-face)
(gnus-summary-selected-face, gnus-summary-cancelled-face)
(gnus-summary-high-ticked-face, gnus-summary-low-ticked-face)
(gnus-summary-normal-ticked-face)
(gnus-summary-high-ancient-face, gnus-summary-low-ancient-face)
(gnus-summary-normal-ancient-face)
(gnus-summary-high-undownloaded-face)
(gnus-summary-low-undownloaded-face)
(gnus-summary-normal-undownloaded-face)
(gnus-summary-high-unread-face, gnus-summary-low-unread-face)
(gnus-summary-normal-unread-face, gnus-summary-high-read-face)
(gnus-summary-low-read-face, gnus-summary-normal-read-face)
(gnus-splash-face):
New backward-compatibility aliases for renamed faces.
(gnus-group-startup-message): Use renamed gnus faces.
* lisp/gnus/gnus-srvr.el (gnus-server-agent, gnus-server-opened)
(gnus-server-closed, gnus-server-denied, gnus-server-offline)
(gnus-server-agent): Remove "-face" suffix from face names.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face):
New backward-compatibility aliases for renamed faces.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face): Use renamed gnus faces.
* lisp/gnus/gnus-picon.el (gnus-picon-xbm, gnus-picon):
Remove "-face" suffix from face names.
(gnus-picon-xbm-face, gnus-picon-face):
New backward-compatibility aliases for renamed faces.
* lisp/gnus/gnus-cite.el (gnus-cite-attribution, gnus-cite-1, gnus-cite-2)
(gnus-cite-3, gnus-cite-4, gnus-cite-5, gnus-cite-6)
(gnus-cite-7, gnus-cite-8, gnus-cite-9, gnus-cite-10)
(gnus-cite-11): Remove "-face" suffix from face names.
(gnus-cite-attribution-face, gnus-cite-face-1, gnus-cite-face-2)
(gnus-cite-face-3, gnus-cite-face-4, gnus-cite-face-5)
(gnus-cite-face-6, gnus-cite-face-7, gnus-cite-face-8)
(gnus-cite-face-9, gnus-cite-face-10, gnus-cite-face-11):
New backward-compatibility aliases for renamed faces.
(gnus-cite-attribution-face, gnus-cite-face-list)
(gnus-article-boring-faces): Use renamed gnus faces.
* lisp/gnus/gnus-art.el (gnus-signature, gnus-header-from)
(gnus-header-subject, gnus-header-newsgroups, gnus-header-name)
(gnus-header-content): Remove "-face" suffix from face names.
(gnus-signature-face, gnus-header-from-face)
(gnus-header-subject-face, gnus-header-newsgroups-face)
(gnus-header-name-face, gnus-header-content-face):
New backward-compatibility aliases for renamed faces.
(gnus-signature-face, gnus-header-face-alist): Use renamed gnus faces.
* lisp/gnus/gnus-sum.el (gnus-summary-selected-face)
(gnus-summary-highlight): Use renamed gnus faces.
* lisp/gnus/gnus-group.el (gnus-group-highlight): Likewise.
2005-06-16 03:48:20 +00:00
|
|
|
gnus-group-news-4-empty)
|
2004-09-04 13:13:48 +00:00
|
|
|
((and (eq level 4)) .
|
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Remove "-face" suffix from gnus faces
2005-06-16 Miles Bader <miles@gnu.org>
* lisp/gnus/spam.el (spam): Remove "-face" suffix from face name.
(spam-face): New backward-compatibility alias for renamed face.
(spam-face, spam-initialize): Use renamed spam face.
* lisp/gnus/message.el (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name)
(message-header-xheader, message-separator, message-cited-text)
(message-mml): Remove "-face" suffix from face names.
(message-header-to-face, message-header-cc-face)
(message-header-subject-face, message-header-newsgroups-face)
(message-header-other-face, message-header-name-face)
(message-header-xheader-face, message-separator-face)
(message-cited-text-face, message-mml-face):
New backward-compatibility aliases for renamed faces.
(message-font-lock-keywords): Use renamed message faces.
* lisp/gnus/sieve-mode.el (sieve-control-commands, sieve-action-commands)
(sieve-test-commands, sieve-tagged-arguments):
Remove "-face" suffix from face names.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
New backward-compatibility aliases for renamed faces.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
Use renamed sieve faces.
* lisp/gnus/gnus.el (gnus-group-news-1, gnus-group-news-1-empty)
(gnus-group-news-2, gnus-group-news-2-empty, gnus-group-news-3)
(gnus-group-news-3-empty, gnus-group-news-4)
(gnus-group-news-4-empty, gnus-group-news-5)
(gnus-group-news-5-empty, gnus-group-news-6)
(gnus-group-news-6-empty, gnus-group-news-low)
(gnus-group-news-low-empty, gnus-group-mail-1)
(gnus-group-mail-1-empty, gnus-group-mail-2)
(gnus-group-mail-2-empty, gnus-group-mail-3)
(gnus-group-mail-3-empty, gnus-group-mail-low)
(gnus-group-mail-low-empty, gnus-summary-selected)
(gnus-summary-cancelled, gnus-summary-high-ticked)
(gnus-summary-low-ticked, gnus-summary-normal-ticked)
(gnus-summary-high-ancient, gnus-summary-low-ancient)
(gnus-summary-normal-ancient, gnus-summary-high-undownloaded)
(gnus-summary-low-undownloaded)
(gnus-summary-normal-undownloaded, gnus-summary-high-unread)
(gnus-summary-low-unread, gnus-summary-normal-unread)
(gnus-summary-high-read, gnus-summary-low-read)
(gnus-summary-normal-read, gnus-splash):
Remove "-face" suffix from face names.
(gnus-group-news-1-face, gnus-group-news-1-empty-face)
(gnus-group-news-2-face, gnus-group-news-2-empty-face)
(gnus-group-news-3-face, gnus-group-news-3-empty-face)
(gnus-group-news-4-face, gnus-group-news-4-empty-face)
(gnus-group-news-5-face, gnus-group-news-5-empty-face)
(gnus-group-news-6-face, gnus-group-news-6-empty-face)
(gnus-group-news-low-face, gnus-group-news-low-empty-face)
(gnus-group-mail-1-face, gnus-group-mail-1-empty-face)
(gnus-group-mail-2-face, gnus-group-mail-2-empty-face)
(gnus-group-mail-3-face, gnus-group-mail-3-empty-face)
(gnus-group-mail-low-face, gnus-group-mail-low-empty-face)
(gnus-summary-selected-face, gnus-summary-cancelled-face)
(gnus-summary-high-ticked-face, gnus-summary-low-ticked-face)
(gnus-summary-normal-ticked-face)
(gnus-summary-high-ancient-face, gnus-summary-low-ancient-face)
(gnus-summary-normal-ancient-face)
(gnus-summary-high-undownloaded-face)
(gnus-summary-low-undownloaded-face)
(gnus-summary-normal-undownloaded-face)
(gnus-summary-high-unread-face, gnus-summary-low-unread-face)
(gnus-summary-normal-unread-face, gnus-summary-high-read-face)
(gnus-summary-low-read-face, gnus-summary-normal-read-face)
(gnus-splash-face):
New backward-compatibility aliases for renamed faces.
(gnus-group-startup-message): Use renamed gnus faces.
* lisp/gnus/gnus-srvr.el (gnus-server-agent, gnus-server-opened)
(gnus-server-closed, gnus-server-denied, gnus-server-offline)
(gnus-server-agent): Remove "-face" suffix from face names.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face):
New backward-compatibility aliases for renamed faces.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face): Use renamed gnus faces.
* lisp/gnus/gnus-picon.el (gnus-picon-xbm, gnus-picon):
Remove "-face" suffix from face names.
(gnus-picon-xbm-face, gnus-picon-face):
New backward-compatibility aliases for renamed faces.
* lisp/gnus/gnus-cite.el (gnus-cite-attribution, gnus-cite-1, gnus-cite-2)
(gnus-cite-3, gnus-cite-4, gnus-cite-5, gnus-cite-6)
(gnus-cite-7, gnus-cite-8, gnus-cite-9, gnus-cite-10)
(gnus-cite-11): Remove "-face" suffix from face names.
(gnus-cite-attribution-face, gnus-cite-face-1, gnus-cite-face-2)
(gnus-cite-face-3, gnus-cite-face-4, gnus-cite-face-5)
(gnus-cite-face-6, gnus-cite-face-7, gnus-cite-face-8)
(gnus-cite-face-9, gnus-cite-face-10, gnus-cite-face-11):
New backward-compatibility aliases for renamed faces.
(gnus-cite-attribution-face, gnus-cite-face-list)
(gnus-article-boring-faces): Use renamed gnus faces.
* lisp/gnus/gnus-art.el (gnus-signature, gnus-header-from)
(gnus-header-subject, gnus-header-newsgroups, gnus-header-name)
(gnus-header-content): Remove "-face" suffix from face names.
(gnus-signature-face, gnus-header-from-face)
(gnus-header-subject-face, gnus-header-newsgroups-face)
(gnus-header-name-face, gnus-header-content-face):
New backward-compatibility aliases for renamed faces.
(gnus-signature-face, gnus-header-face-alist): Use renamed gnus faces.
* lisp/gnus/gnus-sum.el (gnus-summary-selected-face)
(gnus-summary-highlight): Use renamed gnus faces.
* lisp/gnus/gnus-group.el (gnus-group-highlight): Likewise.
2005-06-16 03:48:20 +00:00
|
|
|
gnus-group-news-4)
|
2004-09-04 13:13:48 +00:00
|
|
|
((and (= unread 0) (eq level 5)) .
|
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Remove "-face" suffix from gnus faces
2005-06-16 Miles Bader <miles@gnu.org>
* lisp/gnus/spam.el (spam): Remove "-face" suffix from face name.
(spam-face): New backward-compatibility alias for renamed face.
(spam-face, spam-initialize): Use renamed spam face.
* lisp/gnus/message.el (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name)
(message-header-xheader, message-separator, message-cited-text)
(message-mml): Remove "-face" suffix from face names.
(message-header-to-face, message-header-cc-face)
(message-header-subject-face, message-header-newsgroups-face)
(message-header-other-face, message-header-name-face)
(message-header-xheader-face, message-separator-face)
(message-cited-text-face, message-mml-face):
New backward-compatibility aliases for renamed faces.
(message-font-lock-keywords): Use renamed message faces.
* lisp/gnus/sieve-mode.el (sieve-control-commands, sieve-action-commands)
(sieve-test-commands, sieve-tagged-arguments):
Remove "-face" suffix from face names.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
New backward-compatibility aliases for renamed faces.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
Use renamed sieve faces.
* lisp/gnus/gnus.el (gnus-group-news-1, gnus-group-news-1-empty)
(gnus-group-news-2, gnus-group-news-2-empty, gnus-group-news-3)
(gnus-group-news-3-empty, gnus-group-news-4)
(gnus-group-news-4-empty, gnus-group-news-5)
(gnus-group-news-5-empty, gnus-group-news-6)
(gnus-group-news-6-empty, gnus-group-news-low)
(gnus-group-news-low-empty, gnus-group-mail-1)
(gnus-group-mail-1-empty, gnus-group-mail-2)
(gnus-group-mail-2-empty, gnus-group-mail-3)
(gnus-group-mail-3-empty, gnus-group-mail-low)
(gnus-group-mail-low-empty, gnus-summary-selected)
(gnus-summary-cancelled, gnus-summary-high-ticked)
(gnus-summary-low-ticked, gnus-summary-normal-ticked)
(gnus-summary-high-ancient, gnus-summary-low-ancient)
(gnus-summary-normal-ancient, gnus-summary-high-undownloaded)
(gnus-summary-low-undownloaded)
(gnus-summary-normal-undownloaded, gnus-summary-high-unread)
(gnus-summary-low-unread, gnus-summary-normal-unread)
(gnus-summary-high-read, gnus-summary-low-read)
(gnus-summary-normal-read, gnus-splash):
Remove "-face" suffix from face names.
(gnus-group-news-1-face, gnus-group-news-1-empty-face)
(gnus-group-news-2-face, gnus-group-news-2-empty-face)
(gnus-group-news-3-face, gnus-group-news-3-empty-face)
(gnus-group-news-4-face, gnus-group-news-4-empty-face)
(gnus-group-news-5-face, gnus-group-news-5-empty-face)
(gnus-group-news-6-face, gnus-group-news-6-empty-face)
(gnus-group-news-low-face, gnus-group-news-low-empty-face)
(gnus-group-mail-1-face, gnus-group-mail-1-empty-face)
(gnus-group-mail-2-face, gnus-group-mail-2-empty-face)
(gnus-group-mail-3-face, gnus-group-mail-3-empty-face)
(gnus-group-mail-low-face, gnus-group-mail-low-empty-face)
(gnus-summary-selected-face, gnus-summary-cancelled-face)
(gnus-summary-high-ticked-face, gnus-summary-low-ticked-face)
(gnus-summary-normal-ticked-face)
(gnus-summary-high-ancient-face, gnus-summary-low-ancient-face)
(gnus-summary-normal-ancient-face)
(gnus-summary-high-undownloaded-face)
(gnus-summary-low-undownloaded-face)
(gnus-summary-normal-undownloaded-face)
(gnus-summary-high-unread-face, gnus-summary-low-unread-face)
(gnus-summary-normal-unread-face, gnus-summary-high-read-face)
(gnus-summary-low-read-face, gnus-summary-normal-read-face)
(gnus-splash-face):
New backward-compatibility aliases for renamed faces.
(gnus-group-startup-message): Use renamed gnus faces.
* lisp/gnus/gnus-srvr.el (gnus-server-agent, gnus-server-opened)
(gnus-server-closed, gnus-server-denied, gnus-server-offline)
(gnus-server-agent): Remove "-face" suffix from face names.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face):
New backward-compatibility aliases for renamed faces.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face): Use renamed gnus faces.
* lisp/gnus/gnus-picon.el (gnus-picon-xbm, gnus-picon):
Remove "-face" suffix from face names.
(gnus-picon-xbm-face, gnus-picon-face):
New backward-compatibility aliases for renamed faces.
* lisp/gnus/gnus-cite.el (gnus-cite-attribution, gnus-cite-1, gnus-cite-2)
(gnus-cite-3, gnus-cite-4, gnus-cite-5, gnus-cite-6)
(gnus-cite-7, gnus-cite-8, gnus-cite-9, gnus-cite-10)
(gnus-cite-11): Remove "-face" suffix from face names.
(gnus-cite-attribution-face, gnus-cite-face-1, gnus-cite-face-2)
(gnus-cite-face-3, gnus-cite-face-4, gnus-cite-face-5)
(gnus-cite-face-6, gnus-cite-face-7, gnus-cite-face-8)
(gnus-cite-face-9, gnus-cite-face-10, gnus-cite-face-11):
New backward-compatibility aliases for renamed faces.
(gnus-cite-attribution-face, gnus-cite-face-list)
(gnus-article-boring-faces): Use renamed gnus faces.
* lisp/gnus/gnus-art.el (gnus-signature, gnus-header-from)
(gnus-header-subject, gnus-header-newsgroups, gnus-header-name)
(gnus-header-content): Remove "-face" suffix from face names.
(gnus-signature-face, gnus-header-from-face)
(gnus-header-subject-face, gnus-header-newsgroups-face)
(gnus-header-name-face, gnus-header-content-face):
New backward-compatibility aliases for renamed faces.
(gnus-signature-face, gnus-header-face-alist): Use renamed gnus faces.
* lisp/gnus/gnus-sum.el (gnus-summary-selected-face)
(gnus-summary-highlight): Use renamed gnus faces.
* lisp/gnus/gnus-group.el (gnus-group-highlight): Likewise.
2005-06-16 03:48:20 +00:00
|
|
|
gnus-group-news-5-empty)
|
2004-09-04 13:13:48 +00:00
|
|
|
((and (eq level 5)) .
|
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Remove "-face" suffix from gnus faces
2005-06-16 Miles Bader <miles@gnu.org>
* lisp/gnus/spam.el (spam): Remove "-face" suffix from face name.
(spam-face): New backward-compatibility alias for renamed face.
(spam-face, spam-initialize): Use renamed spam face.
* lisp/gnus/message.el (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name)
(message-header-xheader, message-separator, message-cited-text)
(message-mml): Remove "-face" suffix from face names.
(message-header-to-face, message-header-cc-face)
(message-header-subject-face, message-header-newsgroups-face)
(message-header-other-face, message-header-name-face)
(message-header-xheader-face, message-separator-face)
(message-cited-text-face, message-mml-face):
New backward-compatibility aliases for renamed faces.
(message-font-lock-keywords): Use renamed message faces.
* lisp/gnus/sieve-mode.el (sieve-control-commands, sieve-action-commands)
(sieve-test-commands, sieve-tagged-arguments):
Remove "-face" suffix from face names.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
New backward-compatibility aliases for renamed faces.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
Use renamed sieve faces.
* lisp/gnus/gnus.el (gnus-group-news-1, gnus-group-news-1-empty)
(gnus-group-news-2, gnus-group-news-2-empty, gnus-group-news-3)
(gnus-group-news-3-empty, gnus-group-news-4)
(gnus-group-news-4-empty, gnus-group-news-5)
(gnus-group-news-5-empty, gnus-group-news-6)
(gnus-group-news-6-empty, gnus-group-news-low)
(gnus-group-news-low-empty, gnus-group-mail-1)
(gnus-group-mail-1-empty, gnus-group-mail-2)
(gnus-group-mail-2-empty, gnus-group-mail-3)
(gnus-group-mail-3-empty, gnus-group-mail-low)
(gnus-group-mail-low-empty, gnus-summary-selected)
(gnus-summary-cancelled, gnus-summary-high-ticked)
(gnus-summary-low-ticked, gnus-summary-normal-ticked)
(gnus-summary-high-ancient, gnus-summary-low-ancient)
(gnus-summary-normal-ancient, gnus-summary-high-undownloaded)
(gnus-summary-low-undownloaded)
(gnus-summary-normal-undownloaded, gnus-summary-high-unread)
(gnus-summary-low-unread, gnus-summary-normal-unread)
(gnus-summary-high-read, gnus-summary-low-read)
(gnus-summary-normal-read, gnus-splash):
Remove "-face" suffix from face names.
(gnus-group-news-1-face, gnus-group-news-1-empty-face)
(gnus-group-news-2-face, gnus-group-news-2-empty-face)
(gnus-group-news-3-face, gnus-group-news-3-empty-face)
(gnus-group-news-4-face, gnus-group-news-4-empty-face)
(gnus-group-news-5-face, gnus-group-news-5-empty-face)
(gnus-group-news-6-face, gnus-group-news-6-empty-face)
(gnus-group-news-low-face, gnus-group-news-low-empty-face)
(gnus-group-mail-1-face, gnus-group-mail-1-empty-face)
(gnus-group-mail-2-face, gnus-group-mail-2-empty-face)
(gnus-group-mail-3-face, gnus-group-mail-3-empty-face)
(gnus-group-mail-low-face, gnus-group-mail-low-empty-face)
(gnus-summary-selected-face, gnus-summary-cancelled-face)
(gnus-summary-high-ticked-face, gnus-summary-low-ticked-face)
(gnus-summary-normal-ticked-face)
(gnus-summary-high-ancient-face, gnus-summary-low-ancient-face)
(gnus-summary-normal-ancient-face)
(gnus-summary-high-undownloaded-face)
(gnus-summary-low-undownloaded-face)
(gnus-summary-normal-undownloaded-face)
(gnus-summary-high-unread-face, gnus-summary-low-unread-face)
(gnus-summary-normal-unread-face, gnus-summary-high-read-face)
(gnus-summary-low-read-face, gnus-summary-normal-read-face)
(gnus-splash-face):
New backward-compatibility aliases for renamed faces.
(gnus-group-startup-message): Use renamed gnus faces.
* lisp/gnus/gnus-srvr.el (gnus-server-agent, gnus-server-opened)
(gnus-server-closed, gnus-server-denied, gnus-server-offline)
(gnus-server-agent): Remove "-face" suffix from face names.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face):
New backward-compatibility aliases for renamed faces.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face): Use renamed gnus faces.
* lisp/gnus/gnus-picon.el (gnus-picon-xbm, gnus-picon):
Remove "-face" suffix from face names.
(gnus-picon-xbm-face, gnus-picon-face):
New backward-compatibility aliases for renamed faces.
* lisp/gnus/gnus-cite.el (gnus-cite-attribution, gnus-cite-1, gnus-cite-2)
(gnus-cite-3, gnus-cite-4, gnus-cite-5, gnus-cite-6)
(gnus-cite-7, gnus-cite-8, gnus-cite-9, gnus-cite-10)
(gnus-cite-11): Remove "-face" suffix from face names.
(gnus-cite-attribution-face, gnus-cite-face-1, gnus-cite-face-2)
(gnus-cite-face-3, gnus-cite-face-4, gnus-cite-face-5)
(gnus-cite-face-6, gnus-cite-face-7, gnus-cite-face-8)
(gnus-cite-face-9, gnus-cite-face-10, gnus-cite-face-11):
New backward-compatibility aliases for renamed faces.
(gnus-cite-attribution-face, gnus-cite-face-list)
(gnus-article-boring-faces): Use renamed gnus faces.
* lisp/gnus/gnus-art.el (gnus-signature, gnus-header-from)
(gnus-header-subject, gnus-header-newsgroups, gnus-header-name)
(gnus-header-content): Remove "-face" suffix from face names.
(gnus-signature-face, gnus-header-from-face)
(gnus-header-subject-face, gnus-header-newsgroups-face)
(gnus-header-name-face, gnus-header-content-face):
New backward-compatibility aliases for renamed faces.
(gnus-signature-face, gnus-header-face-alist): Use renamed gnus faces.
* lisp/gnus/gnus-sum.el (gnus-summary-selected-face)
(gnus-summary-highlight): Use renamed gnus faces.
* lisp/gnus/gnus-group.el (gnus-group-highlight): Likewise.
2005-06-16 03:48:20 +00:00
|
|
|
gnus-group-news-5)
|
2004-09-04 13:13:48 +00:00
|
|
|
((and (= unread 0) (eq level 6)) .
|
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Remove "-face" suffix from gnus faces
2005-06-16 Miles Bader <miles@gnu.org>
* lisp/gnus/spam.el (spam): Remove "-face" suffix from face name.
(spam-face): New backward-compatibility alias for renamed face.
(spam-face, spam-initialize): Use renamed spam face.
* lisp/gnus/message.el (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name)
(message-header-xheader, message-separator, message-cited-text)
(message-mml): Remove "-face" suffix from face names.
(message-header-to-face, message-header-cc-face)
(message-header-subject-face, message-header-newsgroups-face)
(message-header-other-face, message-header-name-face)
(message-header-xheader-face, message-separator-face)
(message-cited-text-face, message-mml-face):
New backward-compatibility aliases for renamed faces.
(message-font-lock-keywords): Use renamed message faces.
* lisp/gnus/sieve-mode.el (sieve-control-commands, sieve-action-commands)
(sieve-test-commands, sieve-tagged-arguments):
Remove "-face" suffix from face names.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
New backward-compatibility aliases for renamed faces.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
Use renamed sieve faces.
* lisp/gnus/gnus.el (gnus-group-news-1, gnus-group-news-1-empty)
(gnus-group-news-2, gnus-group-news-2-empty, gnus-group-news-3)
(gnus-group-news-3-empty, gnus-group-news-4)
(gnus-group-news-4-empty, gnus-group-news-5)
(gnus-group-news-5-empty, gnus-group-news-6)
(gnus-group-news-6-empty, gnus-group-news-low)
(gnus-group-news-low-empty, gnus-group-mail-1)
(gnus-group-mail-1-empty, gnus-group-mail-2)
(gnus-group-mail-2-empty, gnus-group-mail-3)
(gnus-group-mail-3-empty, gnus-group-mail-low)
(gnus-group-mail-low-empty, gnus-summary-selected)
(gnus-summary-cancelled, gnus-summary-high-ticked)
(gnus-summary-low-ticked, gnus-summary-normal-ticked)
(gnus-summary-high-ancient, gnus-summary-low-ancient)
(gnus-summary-normal-ancient, gnus-summary-high-undownloaded)
(gnus-summary-low-undownloaded)
(gnus-summary-normal-undownloaded, gnus-summary-high-unread)
(gnus-summary-low-unread, gnus-summary-normal-unread)
(gnus-summary-high-read, gnus-summary-low-read)
(gnus-summary-normal-read, gnus-splash):
Remove "-face" suffix from face names.
(gnus-group-news-1-face, gnus-group-news-1-empty-face)
(gnus-group-news-2-face, gnus-group-news-2-empty-face)
(gnus-group-news-3-face, gnus-group-news-3-empty-face)
(gnus-group-news-4-face, gnus-group-news-4-empty-face)
(gnus-group-news-5-face, gnus-group-news-5-empty-face)
(gnus-group-news-6-face, gnus-group-news-6-empty-face)
(gnus-group-news-low-face, gnus-group-news-low-empty-face)
(gnus-group-mail-1-face, gnus-group-mail-1-empty-face)
(gnus-group-mail-2-face, gnus-group-mail-2-empty-face)
(gnus-group-mail-3-face, gnus-group-mail-3-empty-face)
(gnus-group-mail-low-face, gnus-group-mail-low-empty-face)
(gnus-summary-selected-face, gnus-summary-cancelled-face)
(gnus-summary-high-ticked-face, gnus-summary-low-ticked-face)
(gnus-summary-normal-ticked-face)
(gnus-summary-high-ancient-face, gnus-summary-low-ancient-face)
(gnus-summary-normal-ancient-face)
(gnus-summary-high-undownloaded-face)
(gnus-summary-low-undownloaded-face)
(gnus-summary-normal-undownloaded-face)
(gnus-summary-high-unread-face, gnus-summary-low-unread-face)
(gnus-summary-normal-unread-face, gnus-summary-high-read-face)
(gnus-summary-low-read-face, gnus-summary-normal-read-face)
(gnus-splash-face):
New backward-compatibility aliases for renamed faces.
(gnus-group-startup-message): Use renamed gnus faces.
* lisp/gnus/gnus-srvr.el (gnus-server-agent, gnus-server-opened)
(gnus-server-closed, gnus-server-denied, gnus-server-offline)
(gnus-server-agent): Remove "-face" suffix from face names.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face):
New backward-compatibility aliases for renamed faces.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face): Use renamed gnus faces.
* lisp/gnus/gnus-picon.el (gnus-picon-xbm, gnus-picon):
Remove "-face" suffix from face names.
(gnus-picon-xbm-face, gnus-picon-face):
New backward-compatibility aliases for renamed faces.
* lisp/gnus/gnus-cite.el (gnus-cite-attribution, gnus-cite-1, gnus-cite-2)
(gnus-cite-3, gnus-cite-4, gnus-cite-5, gnus-cite-6)
(gnus-cite-7, gnus-cite-8, gnus-cite-9, gnus-cite-10)
(gnus-cite-11): Remove "-face" suffix from face names.
(gnus-cite-attribution-face, gnus-cite-face-1, gnus-cite-face-2)
(gnus-cite-face-3, gnus-cite-face-4, gnus-cite-face-5)
(gnus-cite-face-6, gnus-cite-face-7, gnus-cite-face-8)
(gnus-cite-face-9, gnus-cite-face-10, gnus-cite-face-11):
New backward-compatibility aliases for renamed faces.
(gnus-cite-attribution-face, gnus-cite-face-list)
(gnus-article-boring-faces): Use renamed gnus faces.
* lisp/gnus/gnus-art.el (gnus-signature, gnus-header-from)
(gnus-header-subject, gnus-header-newsgroups, gnus-header-name)
(gnus-header-content): Remove "-face" suffix from face names.
(gnus-signature-face, gnus-header-from-face)
(gnus-header-subject-face, gnus-header-newsgroups-face)
(gnus-header-name-face, gnus-header-content-face):
New backward-compatibility aliases for renamed faces.
(gnus-signature-face, gnus-header-face-alist): Use renamed gnus faces.
* lisp/gnus/gnus-sum.el (gnus-summary-selected-face)
(gnus-summary-highlight): Use renamed gnus faces.
* lisp/gnus/gnus-group.el (gnus-group-highlight): Likewise.
2005-06-16 03:48:20 +00:00
|
|
|
gnus-group-news-6-empty)
|
2004-09-04 13:13:48 +00:00
|
|
|
((and (eq level 6)) .
|
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Remove "-face" suffix from gnus faces
2005-06-16 Miles Bader <miles@gnu.org>
* lisp/gnus/spam.el (spam): Remove "-face" suffix from face name.
(spam-face): New backward-compatibility alias for renamed face.
(spam-face, spam-initialize): Use renamed spam face.
* lisp/gnus/message.el (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name)
(message-header-xheader, message-separator, message-cited-text)
(message-mml): Remove "-face" suffix from face names.
(message-header-to-face, message-header-cc-face)
(message-header-subject-face, message-header-newsgroups-face)
(message-header-other-face, message-header-name-face)
(message-header-xheader-face, message-separator-face)
(message-cited-text-face, message-mml-face):
New backward-compatibility aliases for renamed faces.
(message-font-lock-keywords): Use renamed message faces.
* lisp/gnus/sieve-mode.el (sieve-control-commands, sieve-action-commands)
(sieve-test-commands, sieve-tagged-arguments):
Remove "-face" suffix from face names.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
New backward-compatibility aliases for renamed faces.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
Use renamed sieve faces.
* lisp/gnus/gnus.el (gnus-group-news-1, gnus-group-news-1-empty)
(gnus-group-news-2, gnus-group-news-2-empty, gnus-group-news-3)
(gnus-group-news-3-empty, gnus-group-news-4)
(gnus-group-news-4-empty, gnus-group-news-5)
(gnus-group-news-5-empty, gnus-group-news-6)
(gnus-group-news-6-empty, gnus-group-news-low)
(gnus-group-news-low-empty, gnus-group-mail-1)
(gnus-group-mail-1-empty, gnus-group-mail-2)
(gnus-group-mail-2-empty, gnus-group-mail-3)
(gnus-group-mail-3-empty, gnus-group-mail-low)
(gnus-group-mail-low-empty, gnus-summary-selected)
(gnus-summary-cancelled, gnus-summary-high-ticked)
(gnus-summary-low-ticked, gnus-summary-normal-ticked)
(gnus-summary-high-ancient, gnus-summary-low-ancient)
(gnus-summary-normal-ancient, gnus-summary-high-undownloaded)
(gnus-summary-low-undownloaded)
(gnus-summary-normal-undownloaded, gnus-summary-high-unread)
(gnus-summary-low-unread, gnus-summary-normal-unread)
(gnus-summary-high-read, gnus-summary-low-read)
(gnus-summary-normal-read, gnus-splash):
Remove "-face" suffix from face names.
(gnus-group-news-1-face, gnus-group-news-1-empty-face)
(gnus-group-news-2-face, gnus-group-news-2-empty-face)
(gnus-group-news-3-face, gnus-group-news-3-empty-face)
(gnus-group-news-4-face, gnus-group-news-4-empty-face)
(gnus-group-news-5-face, gnus-group-news-5-empty-face)
(gnus-group-news-6-face, gnus-group-news-6-empty-face)
(gnus-group-news-low-face, gnus-group-news-low-empty-face)
(gnus-group-mail-1-face, gnus-group-mail-1-empty-face)
(gnus-group-mail-2-face, gnus-group-mail-2-empty-face)
(gnus-group-mail-3-face, gnus-group-mail-3-empty-face)
(gnus-group-mail-low-face, gnus-group-mail-low-empty-face)
(gnus-summary-selected-face, gnus-summary-cancelled-face)
(gnus-summary-high-ticked-face, gnus-summary-low-ticked-face)
(gnus-summary-normal-ticked-face)
(gnus-summary-high-ancient-face, gnus-summary-low-ancient-face)
(gnus-summary-normal-ancient-face)
(gnus-summary-high-undownloaded-face)
(gnus-summary-low-undownloaded-face)
(gnus-summary-normal-undownloaded-face)
(gnus-summary-high-unread-face, gnus-summary-low-unread-face)
(gnus-summary-normal-unread-face, gnus-summary-high-read-face)
(gnus-summary-low-read-face, gnus-summary-normal-read-face)
(gnus-splash-face):
New backward-compatibility aliases for renamed faces.
(gnus-group-startup-message): Use renamed gnus faces.
* lisp/gnus/gnus-srvr.el (gnus-server-agent, gnus-server-opened)
(gnus-server-closed, gnus-server-denied, gnus-server-offline)
(gnus-server-agent): Remove "-face" suffix from face names.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face):
New backward-compatibility aliases for renamed faces.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face): Use renamed gnus faces.
* lisp/gnus/gnus-picon.el (gnus-picon-xbm, gnus-picon):
Remove "-face" suffix from face names.
(gnus-picon-xbm-face, gnus-picon-face):
New backward-compatibility aliases for renamed faces.
* lisp/gnus/gnus-cite.el (gnus-cite-attribution, gnus-cite-1, gnus-cite-2)
(gnus-cite-3, gnus-cite-4, gnus-cite-5, gnus-cite-6)
(gnus-cite-7, gnus-cite-8, gnus-cite-9, gnus-cite-10)
(gnus-cite-11): Remove "-face" suffix from face names.
(gnus-cite-attribution-face, gnus-cite-face-1, gnus-cite-face-2)
(gnus-cite-face-3, gnus-cite-face-4, gnus-cite-face-5)
(gnus-cite-face-6, gnus-cite-face-7, gnus-cite-face-8)
(gnus-cite-face-9, gnus-cite-face-10, gnus-cite-face-11):
New backward-compatibility aliases for renamed faces.
(gnus-cite-attribution-face, gnus-cite-face-list)
(gnus-article-boring-faces): Use renamed gnus faces.
* lisp/gnus/gnus-art.el (gnus-signature, gnus-header-from)
(gnus-header-subject, gnus-header-newsgroups, gnus-header-name)
(gnus-header-content): Remove "-face" suffix from face names.
(gnus-signature-face, gnus-header-from-face)
(gnus-header-subject-face, gnus-header-newsgroups-face)
(gnus-header-name-face, gnus-header-content-face):
New backward-compatibility aliases for renamed faces.
(gnus-signature-face, gnus-header-face-alist): Use renamed gnus faces.
* lisp/gnus/gnus-sum.el (gnus-summary-selected-face)
(gnus-summary-highlight): Use renamed gnus faces.
* lisp/gnus/gnus-group.el (gnus-group-highlight): Likewise.
2005-06-16 03:48:20 +00:00
|
|
|
gnus-group-news-6)
|
2004-09-04 13:13:48 +00:00
|
|
|
((and (= unread 0)) .
|
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Remove "-face" suffix from gnus faces
2005-06-16 Miles Bader <miles@gnu.org>
* lisp/gnus/spam.el (spam): Remove "-face" suffix from face name.
(spam-face): New backward-compatibility alias for renamed face.
(spam-face, spam-initialize): Use renamed spam face.
* lisp/gnus/message.el (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name)
(message-header-xheader, message-separator, message-cited-text)
(message-mml): Remove "-face" suffix from face names.
(message-header-to-face, message-header-cc-face)
(message-header-subject-face, message-header-newsgroups-face)
(message-header-other-face, message-header-name-face)
(message-header-xheader-face, message-separator-face)
(message-cited-text-face, message-mml-face):
New backward-compatibility aliases for renamed faces.
(message-font-lock-keywords): Use renamed message faces.
* lisp/gnus/sieve-mode.el (sieve-control-commands, sieve-action-commands)
(sieve-test-commands, sieve-tagged-arguments):
Remove "-face" suffix from face names.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
New backward-compatibility aliases for renamed faces.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
Use renamed sieve faces.
* lisp/gnus/gnus.el (gnus-group-news-1, gnus-group-news-1-empty)
(gnus-group-news-2, gnus-group-news-2-empty, gnus-group-news-3)
(gnus-group-news-3-empty, gnus-group-news-4)
(gnus-group-news-4-empty, gnus-group-news-5)
(gnus-group-news-5-empty, gnus-group-news-6)
(gnus-group-news-6-empty, gnus-group-news-low)
(gnus-group-news-low-empty, gnus-group-mail-1)
(gnus-group-mail-1-empty, gnus-group-mail-2)
(gnus-group-mail-2-empty, gnus-group-mail-3)
(gnus-group-mail-3-empty, gnus-group-mail-low)
(gnus-group-mail-low-empty, gnus-summary-selected)
(gnus-summary-cancelled, gnus-summary-high-ticked)
(gnus-summary-low-ticked, gnus-summary-normal-ticked)
(gnus-summary-high-ancient, gnus-summary-low-ancient)
(gnus-summary-normal-ancient, gnus-summary-high-undownloaded)
(gnus-summary-low-undownloaded)
(gnus-summary-normal-undownloaded, gnus-summary-high-unread)
(gnus-summary-low-unread, gnus-summary-normal-unread)
(gnus-summary-high-read, gnus-summary-low-read)
(gnus-summary-normal-read, gnus-splash):
Remove "-face" suffix from face names.
(gnus-group-news-1-face, gnus-group-news-1-empty-face)
(gnus-group-news-2-face, gnus-group-news-2-empty-face)
(gnus-group-news-3-face, gnus-group-news-3-empty-face)
(gnus-group-news-4-face, gnus-group-news-4-empty-face)
(gnus-group-news-5-face, gnus-group-news-5-empty-face)
(gnus-group-news-6-face, gnus-group-news-6-empty-face)
(gnus-group-news-low-face, gnus-group-news-low-empty-face)
(gnus-group-mail-1-face, gnus-group-mail-1-empty-face)
(gnus-group-mail-2-face, gnus-group-mail-2-empty-face)
(gnus-group-mail-3-face, gnus-group-mail-3-empty-face)
(gnus-group-mail-low-face, gnus-group-mail-low-empty-face)
(gnus-summary-selected-face, gnus-summary-cancelled-face)
(gnus-summary-high-ticked-face, gnus-summary-low-ticked-face)
(gnus-summary-normal-ticked-face)
(gnus-summary-high-ancient-face, gnus-summary-low-ancient-face)
(gnus-summary-normal-ancient-face)
(gnus-summary-high-undownloaded-face)
(gnus-summary-low-undownloaded-face)
(gnus-summary-normal-undownloaded-face)
(gnus-summary-high-unread-face, gnus-summary-low-unread-face)
(gnus-summary-normal-unread-face, gnus-summary-high-read-face)
(gnus-summary-low-read-face, gnus-summary-normal-read-face)
(gnus-splash-face):
New backward-compatibility aliases for renamed faces.
(gnus-group-startup-message): Use renamed gnus faces.
* lisp/gnus/gnus-srvr.el (gnus-server-agent, gnus-server-opened)
(gnus-server-closed, gnus-server-denied, gnus-server-offline)
(gnus-server-agent): Remove "-face" suffix from face names.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face):
New backward-compatibility aliases for renamed faces.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face): Use renamed gnus faces.
* lisp/gnus/gnus-picon.el (gnus-picon-xbm, gnus-picon):
Remove "-face" suffix from face names.
(gnus-picon-xbm-face, gnus-picon-face):
New backward-compatibility aliases for renamed faces.
* lisp/gnus/gnus-cite.el (gnus-cite-attribution, gnus-cite-1, gnus-cite-2)
(gnus-cite-3, gnus-cite-4, gnus-cite-5, gnus-cite-6)
(gnus-cite-7, gnus-cite-8, gnus-cite-9, gnus-cite-10)
(gnus-cite-11): Remove "-face" suffix from face names.
(gnus-cite-attribution-face, gnus-cite-face-1, gnus-cite-face-2)
(gnus-cite-face-3, gnus-cite-face-4, gnus-cite-face-5)
(gnus-cite-face-6, gnus-cite-face-7, gnus-cite-face-8)
(gnus-cite-face-9, gnus-cite-face-10, gnus-cite-face-11):
New backward-compatibility aliases for renamed faces.
(gnus-cite-attribution-face, gnus-cite-face-list)
(gnus-article-boring-faces): Use renamed gnus faces.
* lisp/gnus/gnus-art.el (gnus-signature, gnus-header-from)
(gnus-header-subject, gnus-header-newsgroups, gnus-header-name)
(gnus-header-content): Remove "-face" suffix from face names.
(gnus-signature-face, gnus-header-from-face)
(gnus-header-subject-face, gnus-header-newsgroups-face)
(gnus-header-name-face, gnus-header-content-face):
New backward-compatibility aliases for renamed faces.
(gnus-signature-face, gnus-header-face-alist): Use renamed gnus faces.
* lisp/gnus/gnus-sum.el (gnus-summary-selected-face)
(gnus-summary-highlight): Use renamed gnus faces.
* lisp/gnus/gnus-group.el (gnus-group-highlight): Likewise.
2005-06-16 03:48:20 +00:00
|
|
|
gnus-group-news-low-empty)
|
1997-04-16 22:13:18 +00:00
|
|
|
(t .
|
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-425
Remove "-face" suffix from gnus faces
2005-06-16 Miles Bader <miles@gnu.org>
* lisp/gnus/spam.el (spam): Remove "-face" suffix from face name.
(spam-face): New backward-compatibility alias for renamed face.
(spam-face, spam-initialize): Use renamed spam face.
* lisp/gnus/message.el (message-header-to, message-header-cc)
(message-header-subject, message-header-newsgroups)
(message-header-other, message-header-name)
(message-header-xheader, message-separator, message-cited-text)
(message-mml): Remove "-face" suffix from face names.
(message-header-to-face, message-header-cc-face)
(message-header-subject-face, message-header-newsgroups-face)
(message-header-other-face, message-header-name-face)
(message-header-xheader-face, message-separator-face)
(message-cited-text-face, message-mml-face):
New backward-compatibility aliases for renamed faces.
(message-font-lock-keywords): Use renamed message faces.
* lisp/gnus/sieve-mode.el (sieve-control-commands, sieve-action-commands)
(sieve-test-commands, sieve-tagged-arguments):
Remove "-face" suffix from face names.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
New backward-compatibility aliases for renamed faces.
(sieve-control-commands-face, sieve-action-commands-face)
(sieve-test-commands-face, sieve-tagged-arguments-face):
Use renamed sieve faces.
* lisp/gnus/gnus.el (gnus-group-news-1, gnus-group-news-1-empty)
(gnus-group-news-2, gnus-group-news-2-empty, gnus-group-news-3)
(gnus-group-news-3-empty, gnus-group-news-4)
(gnus-group-news-4-empty, gnus-group-news-5)
(gnus-group-news-5-empty, gnus-group-news-6)
(gnus-group-news-6-empty, gnus-group-news-low)
(gnus-group-news-low-empty, gnus-group-mail-1)
(gnus-group-mail-1-empty, gnus-group-mail-2)
(gnus-group-mail-2-empty, gnus-group-mail-3)
(gnus-group-mail-3-empty, gnus-group-mail-low)
(gnus-group-mail-low-empty, gnus-summary-selected)
(gnus-summary-cancelled, gnus-summary-high-ticked)
(gnus-summary-low-ticked, gnus-summary-normal-ticked)
(gnus-summary-high-ancient, gnus-summary-low-ancient)
(gnus-summary-normal-ancient, gnus-summary-high-undownloaded)
(gnus-summary-low-undownloaded)
(gnus-summary-normal-undownloaded, gnus-summary-high-unread)
(gnus-summary-low-unread, gnus-summary-normal-unread)
(gnus-summary-high-read, gnus-summary-low-read)
(gnus-summary-normal-read, gnus-splash):
Remove "-face" suffix from face names.
(gnus-group-news-1-face, gnus-group-news-1-empty-face)
(gnus-group-news-2-face, gnus-group-news-2-empty-face)
(gnus-group-news-3-face, gnus-group-news-3-empty-face)
(gnus-group-news-4-face, gnus-group-news-4-empty-face)
(gnus-group-news-5-face, gnus-group-news-5-empty-face)
(gnus-group-news-6-face, gnus-group-news-6-empty-face)
(gnus-group-news-low-face, gnus-group-news-low-empty-face)
(gnus-group-mail-1-face, gnus-group-mail-1-empty-face)
(gnus-group-mail-2-face, gnus-group-mail-2-empty-face)
(gnus-group-mail-3-face, gnus-group-mail-3-empty-face)
(gnus-group-mail-low-face, gnus-group-mail-low-empty-face)
(gnus-summary-selected-face, gnus-summary-cancelled-face)
(gnus-summary-high-ticked-face, gnus-summary-low-ticked-face)
(gnus-summary-normal-ticked-face)
(gnus-summary-high-ancient-face, gnus-summary-low-ancient-face)
(gnus-summary-normal-ancient-face)
(gnus-summary-high-undownloaded-face)
(gnus-summary-low-undownloaded-face)
(gnus-summary-normal-undownloaded-face)
(gnus-summary-high-unread-face, gnus-summary-low-unread-face)
(gnus-summary-normal-unread-face, gnus-summary-high-read-face)
(gnus-summary-low-read-face, gnus-summary-normal-read-face)
(gnus-splash-face):
New backward-compatibility aliases for renamed faces.
(gnus-group-startup-message): Use renamed gnus faces.
* lisp/gnus/gnus-srvr.el (gnus-server-agent, gnus-server-opened)
(gnus-server-closed, gnus-server-denied, gnus-server-offline)
(gnus-server-agent): Remove "-face" suffix from face names.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face):
New backward-compatibility aliases for renamed faces.
(gnus-server-agent-face, gnus-server-opened-face)
(gnus-server-closed-face, gnus-server-denied-face)
(gnus-server-offline-face): Use renamed gnus faces.
* lisp/gnus/gnus-picon.el (gnus-picon-xbm, gnus-picon):
Remove "-face" suffix from face names.
(gnus-picon-xbm-face, gnus-picon-face):
New backward-compatibility aliases for renamed faces.
* lisp/gnus/gnus-cite.el (gnus-cite-attribution, gnus-cite-1, gnus-cite-2)
(gnus-cite-3, gnus-cite-4, gnus-cite-5, gnus-cite-6)
(gnus-cite-7, gnus-cite-8, gnus-cite-9, gnus-cite-10)
(gnus-cite-11): Remove "-face" suffix from face names.
(gnus-cite-attribution-face, gnus-cite-face-1, gnus-cite-face-2)
(gnus-cite-face-3, gnus-cite-face-4, gnus-cite-face-5)
(gnus-cite-face-6, gnus-cite-face-7, gnus-cite-face-8)
(gnus-cite-face-9, gnus-cite-face-10, gnus-cite-face-11):
New backward-compatibility aliases for renamed faces.
(gnus-cite-attribution-face, gnus-cite-face-list)
(gnus-article-boring-faces): Use renamed gnus faces.
* lisp/gnus/gnus-art.el (gnus-signature, gnus-header-from)
(gnus-header-subject, gnus-header-newsgroups, gnus-header-name)
(gnus-header-content): Remove "-face" suffix from face names.
(gnus-signature-face, gnus-header-from-face)
(gnus-header-subject-face, gnus-header-newsgroups-face)
(gnus-header-name-face, gnus-header-content-face):
New backward-compatibility aliases for renamed faces.
(gnus-signature-face, gnus-header-face-alist): Use renamed gnus faces.
* lisp/gnus/gnus-sum.el (gnus-summary-selected-face)
(gnus-summary-highlight): Use renamed gnus faces.
* lisp/gnus/gnus-group.el (gnus-group-highlight): Likewise.
2005-06-16 03:48:20 +00:00
|
|
|
gnus-group-news-low))
|
Remove obsolete leading * from defcustom, defface doc strings.
* lisp/cedet/ede/linux.el, lisp/cedet/ede/project-am.el:
* lisp/cedet/ede/simple.el, lisp/cedet/semantic/bovine/c.el:
* lisp/cedet/semantic/complete.el, lisp/cedet/semantic/db.el:
* lisp/cedet/semantic/decorate/include.el:
* lisp/cedet/semantic/decorate/mode.el, lisp/cedet/semantic/format.el:
* lisp/cedet/semantic/ia.el, lisp/cedet/semantic/idle.el:
* lisp/cedet/semantic/imenu.el, lisp/cedet/semantic/lex-spp.el:
* lisp/cedet/semantic/mru-bookmark.el, lisp/cedet/semantic/sb.el:
* lisp/cedet/srecode/fields.el, lisp/ecomplete.el:
* lisp/gnus/gnus-agent.el, lisp/gnus/gnus-art.el:
* lisp/gnus/gnus-async.el, lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-cite.el, lisp/gnus/gnus-delay.el:
* lisp/gnus/gnus-diary.el, lisp/gnus/gnus-dup.el:
* lisp/gnus/gnus-fun.el, lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-kill.el, lisp/gnus/gnus-msg.el:
* lisp/gnus/gnus-picon.el, lisp/gnus/gnus-salt.el:
* lisp/gnus/gnus-score.el, lisp/gnus/gnus-start.el:
* lisp/gnus/gnus-sum.el, lisp/gnus/gnus-topic.el:
* lisp/gnus/gnus-util.el, lisp/gnus/gnus-uu.el, lisp/gnus/gnus-win.el:
* lisp/gnus/gnus.el, lisp/gnus/mail-source.el, lisp/gnus/message.el:
* lisp/gnus/mm-url.el, lisp/gnus/mm-uu.el, lisp/gnus/mml.el:
* lisp/gnus/nndiary.el, lisp/gnus/nnir.el, lisp/gnus/nnmail.el:
* lisp/gnus/smiley.el, lisp/gnus/smime.el, lisp/mail/mail-extr.el:
* lisp/mh-e/mh-e.el, lisp/net/mailcap.el, lisp/net/pop3.el:
* lisp/net/starttls.el, lisp/progmodes/cc-vars.el:
* lisp/progmodes/cperl-mode.el, test/manual/cedet/tests/test.el:
Remove obsolete leading * from defcustom, defface doc strings.
2016-06-09 20:13:12 -04:00
|
|
|
"Controls the highlighting of group buffer lines.
|
1997-04-16 22:13:18 +00:00
|
|
|
|
2011-11-24 02:58:14 +01:00
|
|
|
Below is a list of `Form'/`Face' pairs. When deciding how a
|
1997-04-16 22:13:18 +00:00
|
|
|
particular group line should be displayed, each form is
|
|
|
|
evaluated. The content of the face field after the first true form is
|
|
|
|
used. You can change how those group lines are displayed by
|
|
|
|
editing the face field.
|
|
|
|
|
|
|
|
It is also possible to change and add form fields, but currently that
|
|
|
|
requires an understanding of Lisp expressions. Hopefully this will
|
|
|
|
change in a future release. For now, you can use the following
|
|
|
|
variables in the Lisp expression:
|
|
|
|
|
2021-02-02 14:12:17 -05:00
|
|
|
`group': The name of the group.
|
|
|
|
`unread': The number of unread articles in the group.
|
|
|
|
`method': The select method used.
|
|
|
|
`total': The total number of articles in the group.
|
|
|
|
`mailp': Whether it's a mail group or not.
|
|
|
|
`level': The level of the group.
|
|
|
|
`score': The score of the group.
|
|
|
|
`ticked': The number of ticked articles.
|
|
|
|
`group-age': Time in seconds since the group was last read
|
|
|
|
(see info node `(gnus)Group Timestamp')."
|
1997-04-16 22:13:18 +00:00
|
|
|
:group 'gnus-group-visual
|
2021-12-26 17:51:15 +01:00
|
|
|
:type '(repeat (cons (sexp :tag "Form") face))
|
|
|
|
:risky t)
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defcustom gnus-new-mail-mark ?%
|
|
|
|
"Mark used for groups with new mail."
|
|
|
|
:group 'gnus-group-visual
|
|
|
|
:type 'character)
|
|
|
|
|
2000-09-19 13:37:09 +00:00
|
|
|
(defgroup gnus-group-icons nil
|
2005-07-04 00:52:20 +00:00
|
|
|
"Add Icons to your group buffer."
|
2000-09-19 13:37:09 +00:00
|
|
|
:group 'gnus-group-visual)
|
|
|
|
|
2022-11-21 15:16:08 +01:00
|
|
|
(defcustom gnus-group-icon-list nil
|
Remove obsolete leading * from defcustom, defface doc strings.
* lisp/cedet/ede/linux.el, lisp/cedet/ede/project-am.el:
* lisp/cedet/ede/simple.el, lisp/cedet/semantic/bovine/c.el:
* lisp/cedet/semantic/complete.el, lisp/cedet/semantic/db.el:
* lisp/cedet/semantic/decorate/include.el:
* lisp/cedet/semantic/decorate/mode.el, lisp/cedet/semantic/format.el:
* lisp/cedet/semantic/ia.el, lisp/cedet/semantic/idle.el:
* lisp/cedet/semantic/imenu.el, lisp/cedet/semantic/lex-spp.el:
* lisp/cedet/semantic/mru-bookmark.el, lisp/cedet/semantic/sb.el:
* lisp/cedet/srecode/fields.el, lisp/ecomplete.el:
* lisp/gnus/gnus-agent.el, lisp/gnus/gnus-art.el:
* lisp/gnus/gnus-async.el, lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-cite.el, lisp/gnus/gnus-delay.el:
* lisp/gnus/gnus-diary.el, lisp/gnus/gnus-dup.el:
* lisp/gnus/gnus-fun.el, lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-kill.el, lisp/gnus/gnus-msg.el:
* lisp/gnus/gnus-picon.el, lisp/gnus/gnus-salt.el:
* lisp/gnus/gnus-score.el, lisp/gnus/gnus-start.el:
* lisp/gnus/gnus-sum.el, lisp/gnus/gnus-topic.el:
* lisp/gnus/gnus-util.el, lisp/gnus/gnus-uu.el, lisp/gnus/gnus-win.el:
* lisp/gnus/gnus.el, lisp/gnus/mail-source.el, lisp/gnus/message.el:
* lisp/gnus/mm-url.el, lisp/gnus/mm-uu.el, lisp/gnus/mml.el:
* lisp/gnus/nndiary.el, lisp/gnus/nnir.el, lisp/gnus/nnmail.el:
* lisp/gnus/smiley.el, lisp/gnus/smime.el, lisp/mail/mail-extr.el:
* lisp/mh-e/mh-e.el, lisp/net/mailcap.el, lisp/net/pop3.el:
* lisp/net/starttls.el, lisp/progmodes/cc-vars.el:
* lisp/progmodes/cperl-mode.el, test/manual/cedet/tests/test.el:
Remove obsolete leading * from defcustom, defface doc strings.
2016-06-09 20:13:12 -04:00
|
|
|
"Controls the insertion of icons into group buffer lines.
|
2000-09-19 13:37:09 +00:00
|
|
|
|
|
|
|
Below is a list of `Form'/`File' pairs. When deciding how a
|
|
|
|
particular group line should be displayed, each form is evaluated.
|
|
|
|
The icon from the file field after the first true form is used. You
|
|
|
|
can change how those group lines are displayed by editing the file
|
2022-11-21 15:16:08 +01:00
|
|
|
field. The File will either be found in the `image-load-path'
|
|
|
|
or by specifying the absolute name of the file.
|
2000-09-19 13:37:09 +00:00
|
|
|
|
|
|
|
It is also possible to change and add form fields, but currently that
|
|
|
|
requires an understanding of Lisp expressions. Hopefully this will
|
2021-02-02 14:12:17 -05:00
|
|
|
change in a future release. For now, you can use the same
|
|
|
|
variables in the Lisp expression as in `gnus-group-highlight'."
|
2000-09-19 13:37:09 +00:00
|
|
|
:group 'gnus-group-icons
|
2021-12-26 17:51:15 +01:00
|
|
|
:type '(repeat (cons (sexp :tag "Form") file))
|
|
|
|
:risky t)
|
2000-09-19 13:37:09 +00:00
|
|
|
|
|
|
|
(defcustom gnus-group-name-charset-method-alist nil
|
2004-09-04 13:13:48 +00:00
|
|
|
"Alist of method and the charset for group names.
|
2000-09-19 13:37:09 +00:00
|
|
|
|
|
|
|
For example:
|
2004-09-04 13:13:48 +00:00
|
|
|
(((nntp \"news.com.cn\") . cn-gb-2312))"
|
2000-11-10 22:55:56 +00:00
|
|
|
:version "21.1"
|
2000-09-19 13:37:09 +00:00
|
|
|
:group 'gnus-charset
|
|
|
|
:type '(repeat (cons (sexp :tag "Method") (symbol :tag "Charset"))))
|
|
|
|
|
2004-09-04 13:13:48 +00:00
|
|
|
(defcustom gnus-group-name-charset-group-alist
|
2016-02-13 17:04:00 +11:00
|
|
|
(if (mm-coding-system-p 'utf-8)
|
2004-09-04 13:13:48 +00:00
|
|
|
'((".*" . utf-8))
|
|
|
|
nil)
|
|
|
|
"Alist of group regexp and the charset for group names.
|
2000-09-19 13:37:09 +00:00
|
|
|
|
|
|
|
For example:
|
2004-09-04 13:13:48 +00:00
|
|
|
((\"\\.com\\.cn:\" . cn-gb-2312))"
|
2000-09-19 13:37:09 +00:00
|
|
|
:group 'gnus-charset
|
|
|
|
:type '(repeat (cons (regexp :tag "Group") (symbol :tag "Charset"))))
|
|
|
|
|
2004-09-04 13:13:48 +00:00
|
|
|
(defcustom gnus-group-jump-to-group-prompt nil
|
|
|
|
"Default prompt for `gnus-group-jump-to-group'.
|
2007-10-28 09:18:39 +00:00
|
|
|
|
|
|
|
If non-nil, the value should be a string or an alist. If it is a string,
|
|
|
|
e.g. \"nnml:\", in which case `gnus-group-jump-to-group' offers \"Group:
|
|
|
|
nnml:\" in the minibuffer prompt.
|
|
|
|
|
2015-09-17 16:08:20 -07:00
|
|
|
If it is an alist, it must consist of \(NUMBER . PROMPT) pairs, for example:
|
2007-10-28 09:18:39 +00:00
|
|
|
\((1 . \"\") (2 . \"nnfolder+archive:\")). The element with number 0 is
|
|
|
|
used when no prefix argument is given to `gnus-group-jump-to-group'."
|
2005-02-09 15:50:47 +00:00
|
|
|
:version "22.1"
|
2004-09-04 13:13:48 +00:00
|
|
|
:group 'gnus-group-various
|
|
|
|
:type '(choice (string :tag "Prompt string")
|
2007-10-28 09:18:39 +00:00
|
|
|
(const :tag "Empty" nil)
|
|
|
|
(repeat (cons (integer :tag "Argument")
|
|
|
|
(string :tag "Prompt string")))))
|
2004-09-04 13:13:48 +00:00
|
|
|
|
Leading "*" in the doc of defvars is long obsolete.
* lisp/plstore.el (plstore-encrypt-to):
* lisp/cedet/semantic/lex-spp.el
(semantic-lex-spp-macro-max-length-to-save):
* lisp/cedet/semantic/symref.el (semantic-symref-tool):
* lisp/cedet/semantic/bovine/el.el
(semantic-elisp-store-documentation-in-tag):
* lisp/cedet/semantic/wisent/comp.el (wisent-verbose-flag)
(wisent-expected-conflicts):
* lisp/cedet/semantic/wisent/wisent.el (wisent-parse-verbose-flag):
* lisp/gnus/gnus-agent.el (gnus-category-menu-hook):
* lisp/gnus/gnus-group.el (gnus-group-listing-limit):
* lisp/gnus/gnus-srvr.el (gnus-server-menu-hook)
(gnus-browse-menu-hook):
* lisp/gnus/message.el (message-shoot-gnksa-feet):
* lisp/gnus/mm-decode.el (mm-path-name-rewrite-functions):
* lisp/gnus/mm-util.el (mm-extra-numeric-entities):
* lisp/gnus/mm-view.el (mm-w3m-standalone-supports-m17n-p):
* lisp/gnus/mml.el (mml-generate-multipart-alist):
* lisp/gnus/nndraft.el (nndraft-required-headers):
* lisp/gnus/nnheader.el (nnheader-max-head-length)
(nnheader-head-chop-length, nnheader-file-name-translation-alist)
(nnheader-directory-separator-character)
(nnheader-pathname-coding-system):
* lisp/gnus/nnmail.el (nnmail-pathname-coding-system)
(nnmail-active-file-coding-system):
* lisp/gnus/nnrss.el (nnrss-file-coding-system):
* lisp/gnus/nntp.el (nntp-record-commands):
* lisp/gnus/score-mode.el (gnus-score-edit-done-hook)
(gnus-score-mode-hook, gnus-score-menu-hook):
* lisp/mail/rfc2047.el (rfc2047-header-encoding-alist)
(rfc2047-allow-irregular-q-encoded-words)
(rfc2047-allow-incomplete-encoded-text):
* lisp/mh-e/mh-alias.el (mh-alias-system-aliases):
* lisp/mh-e/mh-e.el (mh-mail-header-separator, mh-x-mailer-string):
* lisp/mh-e/mh-scan.el (mh-scan-format-mh, mh-scan-format-nmh):
* lisp/net/pop3.el (pop3-password):
* lisp/play/animate.el (animate-n-steps):
* lisp/progmodes/cc-vars.el (c-old-style-variable-behavior):
Convert from defvar with leading * to defcustom.
; * lisp/cedet/semantic/lex.el: Comments.
* lisp/emulation/viper-init.el (viper-heading-end):
* lisp/gnus/mm-url.el (mm-url-html-entities):
* lisp/gnus/nnmaildir.el (nnmaildir-article-file-name):
* lisp/mh-e/mh-e.el (mh-invisible-header-fields-compiled):
* lisp/net/tramp-adb.el (tramp-adb-method): Remove leading * from doc.
* lisp/gnus/messcompat.el: Mark (pointless) file not for compilation.
(message-from-style, message-interactive, message-indentation-spaces)
(message-signature, message-signature-file):
Remove settings that match the defaults.
(message-setup-hook, message-mode-hook, message-default-headers)
(message-send-hook, message-send-mail-function):
Just use setq rather than redefining.
* lisp/gnus/nnrss.el (nnrss):
* lisp/mail/rfc2047.el (rfc2047):
* lisp/play/animate.el (animate): New custom groups.
2016-06-10 00:23:33 -04:00
|
|
|
(defcustom gnus-group-listing-limit 1000
|
|
|
|
"A limit of the number of groups when listing.
|
2004-09-04 13:13:48 +00:00
|
|
|
If the number of groups is larger than the limit, list them in a
|
Leading "*" in the doc of defvars is long obsolete.
* lisp/plstore.el (plstore-encrypt-to):
* lisp/cedet/semantic/lex-spp.el
(semantic-lex-spp-macro-max-length-to-save):
* lisp/cedet/semantic/symref.el (semantic-symref-tool):
* lisp/cedet/semantic/bovine/el.el
(semantic-elisp-store-documentation-in-tag):
* lisp/cedet/semantic/wisent/comp.el (wisent-verbose-flag)
(wisent-expected-conflicts):
* lisp/cedet/semantic/wisent/wisent.el (wisent-parse-verbose-flag):
* lisp/gnus/gnus-agent.el (gnus-category-menu-hook):
* lisp/gnus/gnus-group.el (gnus-group-listing-limit):
* lisp/gnus/gnus-srvr.el (gnus-server-menu-hook)
(gnus-browse-menu-hook):
* lisp/gnus/message.el (message-shoot-gnksa-feet):
* lisp/gnus/mm-decode.el (mm-path-name-rewrite-functions):
* lisp/gnus/mm-util.el (mm-extra-numeric-entities):
* lisp/gnus/mm-view.el (mm-w3m-standalone-supports-m17n-p):
* lisp/gnus/mml.el (mml-generate-multipart-alist):
* lisp/gnus/nndraft.el (nndraft-required-headers):
* lisp/gnus/nnheader.el (nnheader-max-head-length)
(nnheader-head-chop-length, nnheader-file-name-translation-alist)
(nnheader-directory-separator-character)
(nnheader-pathname-coding-system):
* lisp/gnus/nnmail.el (nnmail-pathname-coding-system)
(nnmail-active-file-coding-system):
* lisp/gnus/nnrss.el (nnrss-file-coding-system):
* lisp/gnus/nntp.el (nntp-record-commands):
* lisp/gnus/score-mode.el (gnus-score-edit-done-hook)
(gnus-score-mode-hook, gnus-score-menu-hook):
* lisp/mail/rfc2047.el (rfc2047-header-encoding-alist)
(rfc2047-allow-irregular-q-encoded-words)
(rfc2047-allow-incomplete-encoded-text):
* lisp/mh-e/mh-alias.el (mh-alias-system-aliases):
* lisp/mh-e/mh-e.el (mh-mail-header-separator, mh-x-mailer-string):
* lisp/mh-e/mh-scan.el (mh-scan-format-mh, mh-scan-format-nmh):
* lisp/net/pop3.el (pop3-password):
* lisp/play/animate.el (animate-n-steps):
* lisp/progmodes/cc-vars.el (c-old-style-variable-behavior):
Convert from defvar with leading * to defcustom.
; * lisp/cedet/semantic/lex.el: Comments.
* lisp/emulation/viper-init.el (viper-heading-end):
* lisp/gnus/mm-url.el (mm-url-html-entities):
* lisp/gnus/nnmaildir.el (nnmaildir-article-file-name):
* lisp/mh-e/mh-e.el (mh-invisible-header-fields-compiled):
* lisp/net/tramp-adb.el (tramp-adb-method): Remove leading * from doc.
* lisp/gnus/messcompat.el: Mark (pointless) file not for compilation.
(message-from-style, message-interactive, message-indentation-spaces)
(message-signature, message-signature-file):
Remove settings that match the defaults.
(message-setup-hook, message-mode-hook, message-default-headers)
(message-send-hook, message-send-mail-function):
Just use setq rather than redefining.
* lisp/gnus/nnrss.el (nnrss):
* lisp/mail/rfc2047.el (rfc2047):
* lisp/play/animate.el (animate): New custom groups.
2016-06-10 00:23:33 -04:00
|
|
|
simple manner."
|
|
|
|
:group 'gnus-group-listing
|
|
|
|
:type 'integer)
|
2004-09-04 13:13:48 +00:00
|
|
|
|
1997-04-16 22:13:18 +00:00
|
|
|
;;; Internal variables
|
|
|
|
|
2004-09-04 13:13:48 +00:00
|
|
|
(defvar gnus-group-is-exiting-p nil)
|
|
|
|
(defvar gnus-group-is-exiting-without-update-p nil)
|
1997-04-16 22:13:18 +00:00
|
|
|
(defvar gnus-group-sort-alist-function 'gnus-group-sort-flat
|
|
|
|
"Function for sorting the group buffer.")
|
|
|
|
|
|
|
|
(defvar gnus-group-sort-selected-function 'gnus-group-sort-selected-flat
|
|
|
|
"Function for sorting the selected groups in the group buffer.")
|
|
|
|
|
|
|
|
(defvar gnus-group-indentation-function nil)
|
|
|
|
(defvar gnus-goto-missing-group-function nil)
|
|
|
|
(defvar gnus-group-update-group-function nil)
|
|
|
|
(defvar gnus-group-goto-next-group-function nil
|
|
|
|
"Function to override finding the next group after listing groups.")
|
|
|
|
|
|
|
|
(defvar gnus-group-edit-buffer nil)
|
|
|
|
|
2021-01-31 17:32:11 -05:00
|
|
|
(defvar gnus-tmp-active)
|
|
|
|
(defvar gnus-tmp-colon)
|
|
|
|
(defvar gnus-tmp-comment)
|
* lisp/gnus: Use lexical-binding in all the files
* lisp/gnus/gnus-group.el (features): Use `dlet`.
(gnus-tmp-level, gnus-tmp-marked, gnus-tmp-group): Declare vars.
(gnus-group-insert-group-line): Bind dynbound vars via `let` rather
than as formal args. Bind `number` as dynbound.
(gnus-visual, gnus-score-find-score-files-function)
(gnus-home-score-file, gnus-apply-kill-hook)
(gnus-summary-expunge-below): Declare vars.
(gnus-group-restart, gnus-group-list-plus): Fix `interactive` spec
since the arg is unused.
* lisp/gnus/mail-source.el (mail-source-bind, mail-source-bind-common):
Use `dlet` and suppress the warnings about the non-prefixed dynbound vars.
(mail-source-set-1): Remove unused var `auth-info`.
(mail-source-call-script): Remove unused var `background`.
(mail-source-fetch-pop, mail-source-check-pop): Bind pop3 vars with `dlet`.
* lisp/gnus/gnus-int.el (mail-source-plugged, gnus-inhibit-demon):
Declare vars.
(gnus-server-opened, gnus-status-message)
(gnus-open-server, gnus-close-server, gnus-request-list)
(gnus-finish-retrieve-group-infos, gnus-retrieve-group-data-early)
(gnus-request-list-newsgroups, gnus-request-newgroups)
(gnus-request-regenerate, gnus-request-compact, gnus-request-group)
(gnus-retrieve-groups, gnus-request-post, gnus-request-expunge-group)
(gnus-request-scan, gnus-request-update-info, gnus-request-marks)
(gnus-request-accept-article, gnus-request-create-group)
(gnus-asynchronous-p, gnus-remove-denial):
Bind `gnus-command-method` via `let` rather than as formal args.
* lisp/gnus/gnus-topic.el (gnus-topic-insert-topic-line):
Pass documented vars to eval for `gnus-topic-line-format-spec`.
* lisp/gnus/message.el (message-yank-original): Use `cl-progv` rather
than `eval` to bind the vars from `message-cite-style`.
* lisp/gnus/mml.el (mml-parse-1): Use `apply` instead of `eval`.
(gnus-newsgroup-name, gnus-displaying-mime, gnus-newsgroup-name)
(gnus-article-prepare-hook, gnus-newsgroup-charset)
(gnus-original-article-buffer, gnus-message-buffer)
(message-this-is-news, message-this-is-mail): Declare vars.
* lisp/gnus/deuglify.el (gnus-outlook-rearrange-article): Remove unused
var `cite-marks`.
* lisp/gnus/gnus-art.el (ansi-color-context-region): Declare var.
(gnus-mime-display-attachment-buttons-in-header): Move declaration
before first use.
(gnus-mime-display-alternative): Remove unused var `from`.
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-list): Remove unused
var `start` `end`.
* lisp/gnus/gnus-cache.el (gnus-article-decode-hook)
(nnml-generate-active-function): Declare var.
* lisp/gnus/gnus-cite.el (gnus-message-citation-mode): Remove unused
var `keywords`.
* lisp/gnus/gnus-cloud.el (gnus-cloud-encode-data): Remove unused var
`cipher`.
(gnus-cloud-ensure-cloud-group): Remove unused var `method`.
* lisp/gnus/gnus-delay.el (gnus-delay-article): Remove unused var `days`.
* lisp/gnus/gnus-html.el (gnus-html-wash-images): Remove unused vars
`tag`, `string`, and `images`.
(gnus-html-wash-tags): Remove unused vars `string` and `images`.
* lisp/gnus/gnus-msg.el (gnus-msg-mail): Remove unused var `group-name`.
(gnus-group-mail, gnus-group-news, gnus-summary-mail-other-window)
(gnus-summary-news-other-window):
Remove unused vars `group` and `buffer`.
(gnus-configure-posting-styles): Remove unused vars `style` and `attribute`.
* lisp/gnus/gnus-picon.el (gnus-picon-find-face): Remove unused vars
`database`, `directory`, and `instance`.
(gnus-picon-transform-newsgroups): Remove unused var `point`.
* lisp/gnus/gnus-range.el (gnus-range-difference): Remove unused var `safe`.
* lisp/gnus/gnus-score.el (gnus-score-load-file): Remove unused var
`score-fn`.
* lisp/gnus/gnus-sum.el (message-options-set-recipient): Declare var.
* lisp/gnus/gnus-undo.el (gnus-undo): Fix docstring lie.
* lisp/gnus/gnus-util.el (print-string-length)
(iswitchb-make-buflist-hook): Declare vars.
(gnus-emacs-version): Remove unused var `codename`.
(gnus-rename-file): Remove unused vars `old-name` and `new-name`.
* lisp/gnus/gnus-uu.el (gnus-uu-yenc-article): Remove unused var
`start-char`.
(gnus-asynchronous): Declare var.
* lisp/gnus/mm-partial.el (gnus-displaying-mime): Declare var.
(mm-inline-partial): Remove unused var `buffer`.
* lisp/gnus/mm-view.el (w3m-force-redisplay, w3m-safe-url-regexp)
(gnus-displaying-mime, gnus-original-article-buffer)
(gnus-article-prepare-hook): Declare vars.
* lisp/gnus/mml-smime.el (mml-smime-epg-encrypt): Remove unused var
`boundary`.
(mml-smime-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/mml1991.el (pgg-text-mode): Declare var.
* lisp/gnus/mml2015.el (pgg-text-mode): Declare var.
(mml2015-pgg-decrypt): Remove unused var `result`.
(mml2015-epg-key-image-to-string): Remove unused var `error`.
(mml2015-epg-decrypt): Remove unused var `result`.
(mml2015-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/nnbabyl.el (nnml-current-directory): Declare var.
* lisp/gnus/nndiary.el (nndiary-files): Move declaration before first use.
* lisp/gnus/nnfolder.el (nnfolder-request-accept-article):
Remove unused var `buf`.
* lisp/gnus/nnmail.el (nnmail-parse-active): Remove unused var `err`.
* lisp/gnus/nnmairix.el (nnmairix-request-group): Remove unused var `args`.
(nnmairix-request-create-group): Remove unused var `info`.
(nnmairix-request-list): Remove unused var `folder`.
(nnmairix-request-set-mark): Remove unused var `propto`.
(nnmairix-request-set-mark): Remove unused vars `number` and `method`.
(nnmairix-close-group): Remove unused var `method`.
(nnmairix-create-search-group-from-message): Remove unused var `cq`.
(nnmairix-create-server-and-default-group): Remove unused var `create`.
(nnmairix-purge-old-groups): Remove unused var `folder`.
(nnmairix-remove-tick-mark-original-article, nnmairix-get-valid-servers):
Remove unused var `cur`.
(nnmairix-replace-group-and-numbers): Remove unused var `header`.
(nnmairix-goto-original-article): Remove unused var `rval`.
(nnmairix-widget-create-query): Remove unused var `allwidgets`.
* lisp/gnus/nnmbox.el (nnml-current-directory): Declare var.
* lisp/gnus/nnmh.el (nnmh-toplev): Move declaration before first use.
(nnmh-request-list-1): Remove unused var `rdir`.
* lisp/gnus/nnml.el (nnml-generate-nov-file): Remove unused var `file`.
* lisp/gnus/nnrss.el (nnrss-request-article): Remove unused var `post`.
(nnrss-request-article): Remove unused var `fn`.
(nnrss-check-group): Remove unused var `rdf-ns`.
* lisp/gnus/nnweb.el (nnweb-request-article): Remove unused var `active`.
(nnweb-google-parse-1): Remove unused var `Score`.
* lisp/gnus/spam-stat.el (spam-stat-error-holder): Remove var.
(spam-stat-buffer-words-with-scores): Remove unused var `word`.
(spam-stat-score-buffer): Remove unused var `spam-stat-error-holder`.
(spam-stat-split-fancy): Use `err` instead of `spam-stat-error-holder`.
* lisp/gnus/spam-wash.el (spam-wash): Remove unused var `handle`.
* lisp/gnus/spam.el (spam-copy-or-move-routine): Remove unused vars
`article` and `mark`.
(spam-register-routine): Remove unused var `article`.
(spam-log-undo-registration): Remove unused var `found`.
(spam-ifile-register-with-ifile): Remove unused var `parameters`.
(spam-check-stat): Remove unused vars `category` and `return`.
(spam-parse-list): Remove unused var `found`.
(spam-filelist-register-routine): Remove unused var `from`.
2021-01-30 18:44:00 -05:00
|
|
|
(defvar gnus-tmp-group)
|
2021-01-31 17:32:11 -05:00
|
|
|
(defvar gnus-tmp-group-icon)
|
|
|
|
(defvar gnus-tmp-header)
|
* lisp/gnus: Use lexical-binding in all the files
* lisp/gnus/gnus-group.el (features): Use `dlet`.
(gnus-tmp-level, gnus-tmp-marked, gnus-tmp-group): Declare vars.
(gnus-group-insert-group-line): Bind dynbound vars via `let` rather
than as formal args. Bind `number` as dynbound.
(gnus-visual, gnus-score-find-score-files-function)
(gnus-home-score-file, gnus-apply-kill-hook)
(gnus-summary-expunge-below): Declare vars.
(gnus-group-restart, gnus-group-list-plus): Fix `interactive` spec
since the arg is unused.
* lisp/gnus/mail-source.el (mail-source-bind, mail-source-bind-common):
Use `dlet` and suppress the warnings about the non-prefixed dynbound vars.
(mail-source-set-1): Remove unused var `auth-info`.
(mail-source-call-script): Remove unused var `background`.
(mail-source-fetch-pop, mail-source-check-pop): Bind pop3 vars with `dlet`.
* lisp/gnus/gnus-int.el (mail-source-plugged, gnus-inhibit-demon):
Declare vars.
(gnus-server-opened, gnus-status-message)
(gnus-open-server, gnus-close-server, gnus-request-list)
(gnus-finish-retrieve-group-infos, gnus-retrieve-group-data-early)
(gnus-request-list-newsgroups, gnus-request-newgroups)
(gnus-request-regenerate, gnus-request-compact, gnus-request-group)
(gnus-retrieve-groups, gnus-request-post, gnus-request-expunge-group)
(gnus-request-scan, gnus-request-update-info, gnus-request-marks)
(gnus-request-accept-article, gnus-request-create-group)
(gnus-asynchronous-p, gnus-remove-denial):
Bind `gnus-command-method` via `let` rather than as formal args.
* lisp/gnus/gnus-topic.el (gnus-topic-insert-topic-line):
Pass documented vars to eval for `gnus-topic-line-format-spec`.
* lisp/gnus/message.el (message-yank-original): Use `cl-progv` rather
than `eval` to bind the vars from `message-cite-style`.
* lisp/gnus/mml.el (mml-parse-1): Use `apply` instead of `eval`.
(gnus-newsgroup-name, gnus-displaying-mime, gnus-newsgroup-name)
(gnus-article-prepare-hook, gnus-newsgroup-charset)
(gnus-original-article-buffer, gnus-message-buffer)
(message-this-is-news, message-this-is-mail): Declare vars.
* lisp/gnus/deuglify.el (gnus-outlook-rearrange-article): Remove unused
var `cite-marks`.
* lisp/gnus/gnus-art.el (ansi-color-context-region): Declare var.
(gnus-mime-display-attachment-buttons-in-header): Move declaration
before first use.
(gnus-mime-display-alternative): Remove unused var `from`.
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-list): Remove unused
var `start` `end`.
* lisp/gnus/gnus-cache.el (gnus-article-decode-hook)
(nnml-generate-active-function): Declare var.
* lisp/gnus/gnus-cite.el (gnus-message-citation-mode): Remove unused
var `keywords`.
* lisp/gnus/gnus-cloud.el (gnus-cloud-encode-data): Remove unused var
`cipher`.
(gnus-cloud-ensure-cloud-group): Remove unused var `method`.
* lisp/gnus/gnus-delay.el (gnus-delay-article): Remove unused var `days`.
* lisp/gnus/gnus-html.el (gnus-html-wash-images): Remove unused vars
`tag`, `string`, and `images`.
(gnus-html-wash-tags): Remove unused vars `string` and `images`.
* lisp/gnus/gnus-msg.el (gnus-msg-mail): Remove unused var `group-name`.
(gnus-group-mail, gnus-group-news, gnus-summary-mail-other-window)
(gnus-summary-news-other-window):
Remove unused vars `group` and `buffer`.
(gnus-configure-posting-styles): Remove unused vars `style` and `attribute`.
* lisp/gnus/gnus-picon.el (gnus-picon-find-face): Remove unused vars
`database`, `directory`, and `instance`.
(gnus-picon-transform-newsgroups): Remove unused var `point`.
* lisp/gnus/gnus-range.el (gnus-range-difference): Remove unused var `safe`.
* lisp/gnus/gnus-score.el (gnus-score-load-file): Remove unused var
`score-fn`.
* lisp/gnus/gnus-sum.el (message-options-set-recipient): Declare var.
* lisp/gnus/gnus-undo.el (gnus-undo): Fix docstring lie.
* lisp/gnus/gnus-util.el (print-string-length)
(iswitchb-make-buflist-hook): Declare vars.
(gnus-emacs-version): Remove unused var `codename`.
(gnus-rename-file): Remove unused vars `old-name` and `new-name`.
* lisp/gnus/gnus-uu.el (gnus-uu-yenc-article): Remove unused var
`start-char`.
(gnus-asynchronous): Declare var.
* lisp/gnus/mm-partial.el (gnus-displaying-mime): Declare var.
(mm-inline-partial): Remove unused var `buffer`.
* lisp/gnus/mm-view.el (w3m-force-redisplay, w3m-safe-url-regexp)
(gnus-displaying-mime, gnus-original-article-buffer)
(gnus-article-prepare-hook): Declare vars.
* lisp/gnus/mml-smime.el (mml-smime-epg-encrypt): Remove unused var
`boundary`.
(mml-smime-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/mml1991.el (pgg-text-mode): Declare var.
* lisp/gnus/mml2015.el (pgg-text-mode): Declare var.
(mml2015-pgg-decrypt): Remove unused var `result`.
(mml2015-epg-key-image-to-string): Remove unused var `error`.
(mml2015-epg-decrypt): Remove unused var `result`.
(mml2015-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/nnbabyl.el (nnml-current-directory): Declare var.
* lisp/gnus/nndiary.el (nndiary-files): Move declaration before first use.
* lisp/gnus/nnfolder.el (nnfolder-request-accept-article):
Remove unused var `buf`.
* lisp/gnus/nnmail.el (nnmail-parse-active): Remove unused var `err`.
* lisp/gnus/nnmairix.el (nnmairix-request-group): Remove unused var `args`.
(nnmairix-request-create-group): Remove unused var `info`.
(nnmairix-request-list): Remove unused var `folder`.
(nnmairix-request-set-mark): Remove unused var `propto`.
(nnmairix-request-set-mark): Remove unused vars `number` and `method`.
(nnmairix-close-group): Remove unused var `method`.
(nnmairix-create-search-group-from-message): Remove unused var `cq`.
(nnmairix-create-server-and-default-group): Remove unused var `create`.
(nnmairix-purge-old-groups): Remove unused var `folder`.
(nnmairix-remove-tick-mark-original-article, nnmairix-get-valid-servers):
Remove unused var `cur`.
(nnmairix-replace-group-and-numbers): Remove unused var `header`.
(nnmairix-goto-original-article): Remove unused var `rval`.
(nnmairix-widget-create-query): Remove unused var `allwidgets`.
* lisp/gnus/nnmbox.el (nnml-current-directory): Declare var.
* lisp/gnus/nnmh.el (nnmh-toplev): Move declaration before first use.
(nnmh-request-list-1): Remove unused var `rdir`.
* lisp/gnus/nnml.el (nnml-generate-nov-file): Remove unused var `file`.
* lisp/gnus/nnrss.el (nnrss-request-article): Remove unused var `post`.
(nnrss-request-article): Remove unused var `fn`.
(nnrss-check-group): Remove unused var `rdf-ns`.
* lisp/gnus/nnweb.el (nnweb-request-article): Remove unused var `active`.
(nnweb-google-parse-1): Remove unused var `Score`.
* lisp/gnus/spam-stat.el (spam-stat-error-holder): Remove var.
(spam-stat-buffer-words-with-scores): Remove unused var `word`.
(spam-stat-score-buffer): Remove unused var `spam-stat-error-holder`.
(spam-stat-split-fancy): Use `err` instead of `spam-stat-error-holder`.
* lisp/gnus/spam-wash.el (spam-wash): Remove unused var `handle`.
* lisp/gnus/spam.el (spam-copy-or-move-routine): Remove unused vars
`article` and `mark`.
(spam-register-routine): Remove unused var `article`.
(spam-log-undo-registration): Remove unused var `found`.
(spam-ifile-register-with-ifile): Remove unused var `parameters`.
(spam-check-stat): Remove unused vars `category` and `return`.
(spam-parse-list): Remove unused var `found`.
(spam-filelist-register-routine): Remove unused var `from`.
2021-01-30 18:44:00 -05:00
|
|
|
(defvar gnus-tmp-level)
|
|
|
|
(defvar gnus-tmp-marked)
|
2021-01-31 17:32:11 -05:00
|
|
|
(defvar gnus-tmp-marked-mark)
|
|
|
|
(defvar gnus-tmp-method)
|
|
|
|
(defvar gnus-tmp-moderated)
|
|
|
|
(defvar gnus-tmp-moderated-string)
|
|
|
|
(defvar gnus-tmp-newsgroup-description)
|
Deprecate `intangible' and `point-entered' properties
* lisp/emacs-lisp/cursor-sensor.el: New file.
* lisp/simple.el (pre-redisplay-functions): New hook.
(redisplay--pre-redisplay-functions): New function.
(pre-redisplay-function): Use it.
(minibuffer-avoid-prompt): Mark obsolete.
(redisplay--update-region-highlight): Adapt it to work as a function on
pre-redisplay-functions.
* lisp/cus-start.el (minibuffer-prompt-properties--setter): New fun.
(minibuffer-prompt-properties): Use it. Use cursor-intangible rather
than point-entered to make the prompt intangible.
* lisp/forms.el: Move `provide' calls to the end.
(forms-mode): Don't use `run-hooks' on a local var.
(forms--make-format, forms--make-format-elt-using-text-properties):
Use cursor-intangible rather than `intangible'.
(forms-mode): Enable cursor-intangible-mode.
* lisp/isearch.el (isearch-mode): Use defvar-local.
(cursor-sensor-inhibit): Declare.
(isearch-mode): Set cursor-sensor-inhibit.
(isearch-done): Set it back.
(isearch-open-overlay-temporary, isearch-open-necessary-overlays)
(isearch-close-unnecessary-overlays): Don't bother with `intangible'
any more.
* lisp/ses.el (ses-localvars): Remove `mode-line-process'.
(ses-sym-rowcol, ses-cell-value, ses-col-width, ses-col-printer):
Add Edebug spec.
(ses-goto-print, ses-print-cell, ses-adjust-print-width)
(ses-goto-data, ses-setup, ses-copy-region): Don't let-bind
inhibit-point-motion-hooks any more.
(ses--cell-at-pos, ses--curcell): New functions, extracted from
ses-set-curcell.
(ses-set-curcell): Use them.
(ses-print-cell, ses-setup): Use cursor-intangible instead of
`intangible'. Make sure cursor-intangible isn't sticky at BOB.
(ses-print-cell-new-width, ses-reprint-all, ses-recalculate-all):
Use ses--cell-at-pos.
(ses--mode-line-process, ses--cursor-sensor-highlight): New functions,
extracted from ses-command-hook. Make them work with multiple windows
displaying the same buffer.
(ses-mode): Use them via mode-line-process and pre-redisplay-functions.
Enable cursor-intangible-mode.
(ses-command-hook): Remove cell highlight and mode-line update code.
(ses-forward-or-insert, ses-copy-region-helper, ses-sort-column):
Update for new name of text-property holding the cell name.
(ses-rename-cell): Don't mess with mode-line-process.
* lisp/erc/erc-stamp.el (erc-add-timestamp): Use the new
cursor-sensor-functions property instead of point-entered.
(erc-insert-timestamp-right, erc-format-timestamp):
Use cursor-intangible rather than `intangible'.
(erc-munge-invisibility-spec): Use add-to-invisibility-spec and
remove-from-invisibility-spec. Enable cursor-intangible-mode and
cursor-sensor-mode if needed.
(erc-echo-timestamp): Adapt to calling convention of
cursor-sensor-functions.
(erc-insert-timestamp-right): Remove unused vars `current-window' and
`indent'.
* lisp/gnus/gnus-group.el (gnus-tmp-*): Declare.
(gnus-update-group-mark-positions): Remove unused `topic' var.
(gnus-group-insert-group-line): Remove unused var `header'.
(gnus-group--setup-tool-bar-update): New function.
(gnus-group-insert-group-line): Use it.
(gnus-group-update-eval-form): Declare local
dynamically-bound variables.
(gnus-group-unsubscribe-group): Use \` and \' to match string bounds.
* lisp/gnus/gnus-topic.el (gnus-topic-jump-to-topic)
(gnus-group-prepare-topics, gnus-topic-update-topic)
(gnus-topic-change-level, gnus-topic-catchup-articles)
(gnus-topic-remove-group, gnus-topic-delete, gnus-topic-indent):
Use inhibit-read-only.
(gnus-topic-prepare-topic): Use gnus-group--setup-tool-bar-update.
(gnus-topic-mode): Use define-minor-mode and derived-mode-p.
* lisp/textmodes/reftex-index.el (reftex-display-index):
Use cursor-intangible-mode if available.
(reftex-index-post-command-hook): Check cursor-intangible.
* lisp/textmodes/reftex-toc.el (reftex-toc):
Use cursor-intangible-mode if available.
(reftex-toc-recenter, reftex-toc-post-command-hook):
Check cursor-intangible.
* lisp/textmodes/sgml-mode.el: Use lexical-binding.
(sgml-tag): Use cursor-sensor-functions instead of point-entered.
(sgml-tags-invisible): Use with-silent-modifications and
inhibit-read-only. Enable cursor-sensor-mode.
(sgml-cursor-sensor): Rename from sgml-point-entered and adjust to
calling convention of cursor-sensor-functions.
* lisp/textmodes/table.el (table-cell-map-hook, table-load-hook)
(table-point-entered-cell-hook, table-point-left-cell-hook):
Don't autoload.
(table-cell-entered-state): Remove var.
(table--put-cell-point-entered/left-property)
(table--remove-cell-properties):
Use cursor-sensor-functions rather than point-entered/left.
(table--point-entered/left-cell-function): Merge
table--point-entered-cell-function and table--point-left-cell-function
and adjust to calling convention of cursor-sensor-functions.
2015-04-13 15:51:15 -04:00
|
|
|
(defvar gnus-tmp-news-method)
|
2021-01-31 17:32:11 -05:00
|
|
|
(defvar gnus-tmp-news-method-string)
|
Deprecate `intangible' and `point-entered' properties
* lisp/emacs-lisp/cursor-sensor.el: New file.
* lisp/simple.el (pre-redisplay-functions): New hook.
(redisplay--pre-redisplay-functions): New function.
(pre-redisplay-function): Use it.
(minibuffer-avoid-prompt): Mark obsolete.
(redisplay--update-region-highlight): Adapt it to work as a function on
pre-redisplay-functions.
* lisp/cus-start.el (minibuffer-prompt-properties--setter): New fun.
(minibuffer-prompt-properties): Use it. Use cursor-intangible rather
than point-entered to make the prompt intangible.
* lisp/forms.el: Move `provide' calls to the end.
(forms-mode): Don't use `run-hooks' on a local var.
(forms--make-format, forms--make-format-elt-using-text-properties):
Use cursor-intangible rather than `intangible'.
(forms-mode): Enable cursor-intangible-mode.
* lisp/isearch.el (isearch-mode): Use defvar-local.
(cursor-sensor-inhibit): Declare.
(isearch-mode): Set cursor-sensor-inhibit.
(isearch-done): Set it back.
(isearch-open-overlay-temporary, isearch-open-necessary-overlays)
(isearch-close-unnecessary-overlays): Don't bother with `intangible'
any more.
* lisp/ses.el (ses-localvars): Remove `mode-line-process'.
(ses-sym-rowcol, ses-cell-value, ses-col-width, ses-col-printer):
Add Edebug spec.
(ses-goto-print, ses-print-cell, ses-adjust-print-width)
(ses-goto-data, ses-setup, ses-copy-region): Don't let-bind
inhibit-point-motion-hooks any more.
(ses--cell-at-pos, ses--curcell): New functions, extracted from
ses-set-curcell.
(ses-set-curcell): Use them.
(ses-print-cell, ses-setup): Use cursor-intangible instead of
`intangible'. Make sure cursor-intangible isn't sticky at BOB.
(ses-print-cell-new-width, ses-reprint-all, ses-recalculate-all):
Use ses--cell-at-pos.
(ses--mode-line-process, ses--cursor-sensor-highlight): New functions,
extracted from ses-command-hook. Make them work with multiple windows
displaying the same buffer.
(ses-mode): Use them via mode-line-process and pre-redisplay-functions.
Enable cursor-intangible-mode.
(ses-command-hook): Remove cell highlight and mode-line update code.
(ses-forward-or-insert, ses-copy-region-helper, ses-sort-column):
Update for new name of text-property holding the cell name.
(ses-rename-cell): Don't mess with mode-line-process.
* lisp/erc/erc-stamp.el (erc-add-timestamp): Use the new
cursor-sensor-functions property instead of point-entered.
(erc-insert-timestamp-right, erc-format-timestamp):
Use cursor-intangible rather than `intangible'.
(erc-munge-invisibility-spec): Use add-to-invisibility-spec and
remove-from-invisibility-spec. Enable cursor-intangible-mode and
cursor-sensor-mode if needed.
(erc-echo-timestamp): Adapt to calling convention of
cursor-sensor-functions.
(erc-insert-timestamp-right): Remove unused vars `current-window' and
`indent'.
* lisp/gnus/gnus-group.el (gnus-tmp-*): Declare.
(gnus-update-group-mark-positions): Remove unused `topic' var.
(gnus-group-insert-group-line): Remove unused var `header'.
(gnus-group--setup-tool-bar-update): New function.
(gnus-group-insert-group-line): Use it.
(gnus-group-update-eval-form): Declare local
dynamically-bound variables.
(gnus-group-unsubscribe-group): Use \` and \' to match string bounds.
* lisp/gnus/gnus-topic.el (gnus-topic-jump-to-topic)
(gnus-group-prepare-topics, gnus-topic-update-topic)
(gnus-topic-change-level, gnus-topic-catchup-articles)
(gnus-topic-remove-group, gnus-topic-delete, gnus-topic-indent):
Use inhibit-read-only.
(gnus-topic-prepare-topic): Use gnus-group--setup-tool-bar-update.
(gnus-topic-mode): Use define-minor-mode and derived-mode-p.
* lisp/textmodes/reftex-index.el (reftex-display-index):
Use cursor-intangible-mode if available.
(reftex-index-post-command-hook): Check cursor-intangible.
* lisp/textmodes/reftex-toc.el (reftex-toc):
Use cursor-intangible-mode if available.
(reftex-toc-recenter, reftex-toc-post-command-hook):
Check cursor-intangible.
* lisp/textmodes/sgml-mode.el: Use lexical-binding.
(sgml-tag): Use cursor-sensor-functions instead of point-entered.
(sgml-tags-invisible): Use with-silent-modifications and
inhibit-read-only. Enable cursor-sensor-mode.
(sgml-cursor-sensor): Rename from sgml-point-entered and adjust to
calling convention of cursor-sensor-functions.
* lisp/textmodes/table.el (table-cell-map-hook, table-load-hook)
(table-point-entered-cell-hook, table-point-left-cell-hook):
Don't autoload.
(table-cell-entered-state): Remove var.
(table--put-cell-point-entered/left-property)
(table--remove-cell-properties):
Use cursor-sensor-functions rather than point-entered/left.
(table--point-entered/left-cell-function): Merge
table--point-entered-cell-function and table--point-left-cell-function
and adjust to calling convention of cursor-sensor-functions.
2015-04-13 15:51:15 -04:00
|
|
|
(defvar gnus-tmp-news-server)
|
2021-01-31 17:32:11 -05:00
|
|
|
(defvar gnus-tmp-number-of-read)
|
|
|
|
(defvar gnus-tmp-number-of-unread)
|
|
|
|
(defvar gnus-tmp-number-total)
|
Deprecate `intangible' and `point-entered' properties
* lisp/emacs-lisp/cursor-sensor.el: New file.
* lisp/simple.el (pre-redisplay-functions): New hook.
(redisplay--pre-redisplay-functions): New function.
(pre-redisplay-function): Use it.
(minibuffer-avoid-prompt): Mark obsolete.
(redisplay--update-region-highlight): Adapt it to work as a function on
pre-redisplay-functions.
* lisp/cus-start.el (minibuffer-prompt-properties--setter): New fun.
(minibuffer-prompt-properties): Use it. Use cursor-intangible rather
than point-entered to make the prompt intangible.
* lisp/forms.el: Move `provide' calls to the end.
(forms-mode): Don't use `run-hooks' on a local var.
(forms--make-format, forms--make-format-elt-using-text-properties):
Use cursor-intangible rather than `intangible'.
(forms-mode): Enable cursor-intangible-mode.
* lisp/isearch.el (isearch-mode): Use defvar-local.
(cursor-sensor-inhibit): Declare.
(isearch-mode): Set cursor-sensor-inhibit.
(isearch-done): Set it back.
(isearch-open-overlay-temporary, isearch-open-necessary-overlays)
(isearch-close-unnecessary-overlays): Don't bother with `intangible'
any more.
* lisp/ses.el (ses-localvars): Remove `mode-line-process'.
(ses-sym-rowcol, ses-cell-value, ses-col-width, ses-col-printer):
Add Edebug spec.
(ses-goto-print, ses-print-cell, ses-adjust-print-width)
(ses-goto-data, ses-setup, ses-copy-region): Don't let-bind
inhibit-point-motion-hooks any more.
(ses--cell-at-pos, ses--curcell): New functions, extracted from
ses-set-curcell.
(ses-set-curcell): Use them.
(ses-print-cell, ses-setup): Use cursor-intangible instead of
`intangible'. Make sure cursor-intangible isn't sticky at BOB.
(ses-print-cell-new-width, ses-reprint-all, ses-recalculate-all):
Use ses--cell-at-pos.
(ses--mode-line-process, ses--cursor-sensor-highlight): New functions,
extracted from ses-command-hook. Make them work with multiple windows
displaying the same buffer.
(ses-mode): Use them via mode-line-process and pre-redisplay-functions.
Enable cursor-intangible-mode.
(ses-command-hook): Remove cell highlight and mode-line update code.
(ses-forward-or-insert, ses-copy-region-helper, ses-sort-column):
Update for new name of text-property holding the cell name.
(ses-rename-cell): Don't mess with mode-line-process.
* lisp/erc/erc-stamp.el (erc-add-timestamp): Use the new
cursor-sensor-functions property instead of point-entered.
(erc-insert-timestamp-right, erc-format-timestamp):
Use cursor-intangible rather than `intangible'.
(erc-munge-invisibility-spec): Use add-to-invisibility-spec and
remove-from-invisibility-spec. Enable cursor-intangible-mode and
cursor-sensor-mode if needed.
(erc-echo-timestamp): Adapt to calling convention of
cursor-sensor-functions.
(erc-insert-timestamp-right): Remove unused vars `current-window' and
`indent'.
* lisp/gnus/gnus-group.el (gnus-tmp-*): Declare.
(gnus-update-group-mark-positions): Remove unused `topic' var.
(gnus-group-insert-group-line): Remove unused var `header'.
(gnus-group--setup-tool-bar-update): New function.
(gnus-group-insert-group-line): Use it.
(gnus-group-update-eval-form): Declare local
dynamically-bound variables.
(gnus-group-unsubscribe-group): Use \` and \' to match string bounds.
* lisp/gnus/gnus-topic.el (gnus-topic-jump-to-topic)
(gnus-group-prepare-topics, gnus-topic-update-topic)
(gnus-topic-change-level, gnus-topic-catchup-articles)
(gnus-topic-remove-group, gnus-topic-delete, gnus-topic-indent):
Use inhibit-read-only.
(gnus-topic-prepare-topic): Use gnus-group--setup-tool-bar-update.
(gnus-topic-mode): Use define-minor-mode and derived-mode-p.
* lisp/textmodes/reftex-index.el (reftex-display-index):
Use cursor-intangible-mode if available.
(reftex-index-post-command-hook): Check cursor-intangible.
* lisp/textmodes/reftex-toc.el (reftex-toc):
Use cursor-intangible-mode if available.
(reftex-toc-recenter, reftex-toc-post-command-hook):
Check cursor-intangible.
* lisp/textmodes/sgml-mode.el: Use lexical-binding.
(sgml-tag): Use cursor-sensor-functions instead of point-entered.
(sgml-tags-invisible): Use with-silent-modifications and
inhibit-read-only. Enable cursor-sensor-mode.
(sgml-cursor-sensor): Rename from sgml-point-entered and adjust to
calling convention of cursor-sensor-functions.
* lisp/textmodes/table.el (table-cell-map-hook, table-load-hook)
(table-point-entered-cell-hook, table-point-left-cell-hook):
Don't autoload.
(table-cell-entered-state): Remove var.
(table--put-cell-point-entered/left-property)
(table--remove-cell-properties):
Use cursor-sensor-functions rather than point-entered/left.
(table--point-entered/left-cell-function): Merge
table--point-entered-cell-function and table--point-left-cell-function
and adjust to calling convention of cursor-sensor-functions.
2015-04-13 15:51:15 -04:00
|
|
|
(defvar gnus-tmp-process-marked)
|
|
|
|
(defvar gnus-tmp-qualified-group)
|
|
|
|
(defvar gnus-tmp-subscribed)
|
2021-01-31 17:32:11 -05:00
|
|
|
(defvar gnus-tmp-summary-live)
|
|
|
|
(defvar gnus-tmp-user-defined)
|
|
|
|
|
Deprecate `intangible' and `point-entered' properties
* lisp/emacs-lisp/cursor-sensor.el: New file.
* lisp/simple.el (pre-redisplay-functions): New hook.
(redisplay--pre-redisplay-functions): New function.
(pre-redisplay-function): Use it.
(minibuffer-avoid-prompt): Mark obsolete.
(redisplay--update-region-highlight): Adapt it to work as a function on
pre-redisplay-functions.
* lisp/cus-start.el (minibuffer-prompt-properties--setter): New fun.
(minibuffer-prompt-properties): Use it. Use cursor-intangible rather
than point-entered to make the prompt intangible.
* lisp/forms.el: Move `provide' calls to the end.
(forms-mode): Don't use `run-hooks' on a local var.
(forms--make-format, forms--make-format-elt-using-text-properties):
Use cursor-intangible rather than `intangible'.
(forms-mode): Enable cursor-intangible-mode.
* lisp/isearch.el (isearch-mode): Use defvar-local.
(cursor-sensor-inhibit): Declare.
(isearch-mode): Set cursor-sensor-inhibit.
(isearch-done): Set it back.
(isearch-open-overlay-temporary, isearch-open-necessary-overlays)
(isearch-close-unnecessary-overlays): Don't bother with `intangible'
any more.
* lisp/ses.el (ses-localvars): Remove `mode-line-process'.
(ses-sym-rowcol, ses-cell-value, ses-col-width, ses-col-printer):
Add Edebug spec.
(ses-goto-print, ses-print-cell, ses-adjust-print-width)
(ses-goto-data, ses-setup, ses-copy-region): Don't let-bind
inhibit-point-motion-hooks any more.
(ses--cell-at-pos, ses--curcell): New functions, extracted from
ses-set-curcell.
(ses-set-curcell): Use them.
(ses-print-cell, ses-setup): Use cursor-intangible instead of
`intangible'. Make sure cursor-intangible isn't sticky at BOB.
(ses-print-cell-new-width, ses-reprint-all, ses-recalculate-all):
Use ses--cell-at-pos.
(ses--mode-line-process, ses--cursor-sensor-highlight): New functions,
extracted from ses-command-hook. Make them work with multiple windows
displaying the same buffer.
(ses-mode): Use them via mode-line-process and pre-redisplay-functions.
Enable cursor-intangible-mode.
(ses-command-hook): Remove cell highlight and mode-line update code.
(ses-forward-or-insert, ses-copy-region-helper, ses-sort-column):
Update for new name of text-property holding the cell name.
(ses-rename-cell): Don't mess with mode-line-process.
* lisp/erc/erc-stamp.el (erc-add-timestamp): Use the new
cursor-sensor-functions property instead of point-entered.
(erc-insert-timestamp-right, erc-format-timestamp):
Use cursor-intangible rather than `intangible'.
(erc-munge-invisibility-spec): Use add-to-invisibility-spec and
remove-from-invisibility-spec. Enable cursor-intangible-mode and
cursor-sensor-mode if needed.
(erc-echo-timestamp): Adapt to calling convention of
cursor-sensor-functions.
(erc-insert-timestamp-right): Remove unused vars `current-window' and
`indent'.
* lisp/gnus/gnus-group.el (gnus-tmp-*): Declare.
(gnus-update-group-mark-positions): Remove unused `topic' var.
(gnus-group-insert-group-line): Remove unused var `header'.
(gnus-group--setup-tool-bar-update): New function.
(gnus-group-insert-group-line): Use it.
(gnus-group-update-eval-form): Declare local
dynamically-bound variables.
(gnus-group-unsubscribe-group): Use \` and \' to match string bounds.
* lisp/gnus/gnus-topic.el (gnus-topic-jump-to-topic)
(gnus-group-prepare-topics, gnus-topic-update-topic)
(gnus-topic-change-level, gnus-topic-catchup-articles)
(gnus-topic-remove-group, gnus-topic-delete, gnus-topic-indent):
Use inhibit-read-only.
(gnus-topic-prepare-topic): Use gnus-group--setup-tool-bar-update.
(gnus-topic-mode): Use define-minor-mode and derived-mode-p.
* lisp/textmodes/reftex-index.el (reftex-display-index):
Use cursor-intangible-mode if available.
(reftex-index-post-command-hook): Check cursor-intangible.
* lisp/textmodes/reftex-toc.el (reftex-toc):
Use cursor-intangible-mode if available.
(reftex-toc-recenter, reftex-toc-post-command-hook):
Check cursor-intangible.
* lisp/textmodes/sgml-mode.el: Use lexical-binding.
(sgml-tag): Use cursor-sensor-functions instead of point-entered.
(sgml-tags-invisible): Use with-silent-modifications and
inhibit-read-only. Enable cursor-sensor-mode.
(sgml-cursor-sensor): Rename from sgml-point-entered and adjust to
calling convention of cursor-sensor-functions.
* lisp/textmodes/table.el (table-cell-map-hook, table-load-hook)
(table-point-entered-cell-hook, table-point-left-cell-hook):
Don't autoload.
(table-cell-entered-state): Remove var.
(table--put-cell-point-entered/left-property)
(table--remove-cell-properties):
Use cursor-sensor-functions rather than point-entered/left.
(table--point-entered/left-cell-function): Merge
table--point-entered-cell-function and table--point-left-cell-function
and adjust to calling convention of cursor-sensor-functions.
2015-04-13 15:51:15 -04:00
|
|
|
(defvar gnus-inhibit-demon)
|
|
|
|
(defvar gnus-pick-mode)
|
|
|
|
(defvar gnus-tmp-marked-mark)
|
|
|
|
(defvar gnus-tmp-number-of-unread)
|
|
|
|
|
1997-04-16 22:13:18 +00:00
|
|
|
(defvar gnus-group-line-format-alist
|
2018-11-05 01:22:15 +01:00
|
|
|
'((?M gnus-tmp-marked-mark ?c)
|
1997-04-16 22:13:18 +00:00
|
|
|
(?S gnus-tmp-subscribed ?c)
|
|
|
|
(?L gnus-tmp-level ?d)
|
|
|
|
(?N (cond ((eq number t) "*" )
|
|
|
|
((numberp number)
|
|
|
|
(int-to-string
|
|
|
|
(+ number
|
2022-01-17 12:40:43 +01:00
|
|
|
(range-length (cdr (assq 'dormant gnus-tmp-marked)))
|
|
|
|
(range-length (cdr (assq 'tick gnus-tmp-marked))))))
|
* lisp/gnus: Misc simplifications found during conversion to lexical
* lisp/gnus/nnoo.el (noo-import-1, nnoo-define-skeleton-1): Use `dolist`.
(noo-map-functions, nnoo-define-basics): Directly emit the code rather than
going through an intermediate function; this also avoids the use of `eval`.
(noo-map-functions-1, nnoo-define-basics-1): Delete functions,
folded into their corresponding macro.
* lisp/gnus/gmm-utils.el (gmm-tool-bar-from-list): Demote `eval` to
`symbol-value`.
* lisp/gnus/gnus-art.el (gnus-button-handle-describe-key): Avoid `eval`
since `kbd` is a function nowadays.
(gnus-treat-part-number): Rename from `part-number`.
(gnus-treat-total-parts): Rename from `total-parts`.
(gnus-treat-article, gnus-treat-predicate): Adjust accordingly.
* lisp/gnus/gnus-cache.el (gnus-agent-load-alist): Use `declare-function`.
* lisp/gnus/gnus-group.el (gnus-cache-active-hashtb): Use `defvar`.
(gnus-group-iterate): Make it a normal function since lexical scoping
avoids the risk of name capture anyway.
(gnus-group-delete-articles): Actually use the `oldp` arg.
* lisp/gnus/gnus-html.el (gnus-html-wash-images): Fix debug message so
it's emitted after the `url` var it prints is actually initialized.
And avoid `setq` while we're at it.
* lisp/gnus/gnus-msg.el (gnus-group-mail, gnus-group-news)
(gnus-summary-mail-other-window, gnus-summary-news-other-window):
Merge `let`s using `let*`.
* lisp/gnus/gnus-spec.el (gnus-update-format-specifications):
Tighten the scope of `buffer`, and tighten a regexp.
(gnus-parse-simple-format): Reduce code duplication.
* lisp/gnus/gnus-start.el (gnus-child-mode): Don't `defvar` it since we
never use that variable and accordingly don't define it as a minor mode.
* lisp/gnus/gnus-util.el (gnus-byte-compile): Simplify so it obeys
`gnus-use-byte-compile` not just on the first call.
(iswitchb-minibuffer-setup): Declare.
* lisp/gnus/mail-source.el (mail-source-bind-1)
(mail-source-bind-common-1): Use `mapcar`.
(mail-source-set-common-1): Use `dolist`.
(display-time-event-handler): Declare.
* lisp/gnus/mml-smime.el (mml-smime-epg-verify): Reduce code duplication.
* lisp/gnus/mml.el (mml-parse-1): Reduce code duplication.
* lisp/gnus/mml2015.el (mml2015-epg-verify): Reduce code duplication.
* lisp/gnus/nnmail.el (nnmail-get-split-group): Tighten regexp.
(nnmail-split-it): Reduce code duplication.
* lisp/gnus/nnweb.el (nnweb-request-article): Avoid `setq`.
* lisp/gnus/spam.el (BBDB): Use the `noerror` arg of `require`, and
define all the functions for BBDB regardless if the require succeeded.
(spam-exists-in-BBDB-p): Don't inline, not worth it.
2021-01-30 16:45:25 -05:00
|
|
|
(t number))
|
|
|
|
?s)
|
1997-04-16 22:13:18 +00:00
|
|
|
(?R gnus-tmp-number-of-read ?s)
|
2010-09-21 23:13:46 +00:00
|
|
|
(?U (if (gnus-active gnus-tmp-group)
|
|
|
|
(gnus-number-of-unseen-articles-in-group gnus-tmp-group)
|
|
|
|
"*")
|
|
|
|
?s)
|
1997-04-16 22:13:18 +00:00
|
|
|
(?t gnus-tmp-number-total ?d)
|
|
|
|
(?y gnus-tmp-number-of-unread ?s)
|
2022-01-17 12:40:43 +01:00
|
|
|
(?I (range-length (cdr (assq 'dormant gnus-tmp-marked))) ?d)
|
|
|
|
(?T (range-length (cdr (assq 'tick gnus-tmp-marked))) ?d)
|
|
|
|
(?i (+ (range-length (cdr (assq 'dormant gnus-tmp-marked)))
|
|
|
|
(range-length (cdr (assq 'tick gnus-tmp-marked))))
|
* lisp/gnus: Misc simplifications found during conversion to lexical
* lisp/gnus/nnoo.el (noo-import-1, nnoo-define-skeleton-1): Use `dolist`.
(noo-map-functions, nnoo-define-basics): Directly emit the code rather than
going through an intermediate function; this also avoids the use of `eval`.
(noo-map-functions-1, nnoo-define-basics-1): Delete functions,
folded into their corresponding macro.
* lisp/gnus/gmm-utils.el (gmm-tool-bar-from-list): Demote `eval` to
`symbol-value`.
* lisp/gnus/gnus-art.el (gnus-button-handle-describe-key): Avoid `eval`
since `kbd` is a function nowadays.
(gnus-treat-part-number): Rename from `part-number`.
(gnus-treat-total-parts): Rename from `total-parts`.
(gnus-treat-article, gnus-treat-predicate): Adjust accordingly.
* lisp/gnus/gnus-cache.el (gnus-agent-load-alist): Use `declare-function`.
* lisp/gnus/gnus-group.el (gnus-cache-active-hashtb): Use `defvar`.
(gnus-group-iterate): Make it a normal function since lexical scoping
avoids the risk of name capture anyway.
(gnus-group-delete-articles): Actually use the `oldp` arg.
* lisp/gnus/gnus-html.el (gnus-html-wash-images): Fix debug message so
it's emitted after the `url` var it prints is actually initialized.
And avoid `setq` while we're at it.
* lisp/gnus/gnus-msg.el (gnus-group-mail, gnus-group-news)
(gnus-summary-mail-other-window, gnus-summary-news-other-window):
Merge `let`s using `let*`.
* lisp/gnus/gnus-spec.el (gnus-update-format-specifications):
Tighten the scope of `buffer`, and tighten a regexp.
(gnus-parse-simple-format): Reduce code duplication.
* lisp/gnus/gnus-start.el (gnus-child-mode): Don't `defvar` it since we
never use that variable and accordingly don't define it as a minor mode.
* lisp/gnus/gnus-util.el (gnus-byte-compile): Simplify so it obeys
`gnus-use-byte-compile` not just on the first call.
(iswitchb-minibuffer-setup): Declare.
* lisp/gnus/mail-source.el (mail-source-bind-1)
(mail-source-bind-common-1): Use `mapcar`.
(mail-source-set-common-1): Use `dolist`.
(display-time-event-handler): Declare.
* lisp/gnus/mml-smime.el (mml-smime-epg-verify): Reduce code duplication.
* lisp/gnus/mml.el (mml-parse-1): Reduce code duplication.
* lisp/gnus/mml2015.el (mml2015-epg-verify): Reduce code duplication.
* lisp/gnus/nnmail.el (nnmail-get-split-group): Tighten regexp.
(nnmail-split-it): Reduce code duplication.
* lisp/gnus/nnweb.el (nnweb-request-article): Avoid `setq`.
* lisp/gnus/spam.el (BBDB): Use the `noerror` arg of `require`, and
define all the functions for BBDB regardless if the require succeeded.
(spam-exists-in-BBDB-p): Don't inline, not worth it.
2021-01-30 16:45:25 -05:00
|
|
|
?d)
|
2018-11-16 12:53:56 -08:00
|
|
|
(?g gnus-tmp-group ?s)
|
1997-04-16 22:13:18 +00:00
|
|
|
(?G gnus-tmp-qualified-group ?s)
|
2018-11-16 12:53:56 -08:00
|
|
|
(?c (gnus-short-group-name gnus-tmp-group)
|
2005-04-10 04:20:14 +00:00
|
|
|
?s)
|
2004-09-04 13:13:48 +00:00
|
|
|
(?C gnus-tmp-comment ?s)
|
1997-04-16 22:13:18 +00:00
|
|
|
(?D gnus-tmp-newsgroup-description ?s)
|
|
|
|
(?o gnus-tmp-moderated ?c)
|
|
|
|
(?O gnus-tmp-moderated-string ?s)
|
|
|
|
(?p gnus-tmp-process-marked ?c)
|
|
|
|
(?s gnus-tmp-news-server ?s)
|
2016-02-11 15:22:45 +11:00
|
|
|
(?n gnus-tmp-news-method ?s)
|
1997-04-16 22:13:18 +00:00
|
|
|
(?P gnus-group-indentation ?s)
|
2000-09-19 13:37:09 +00:00
|
|
|
(?E gnus-tmp-group-icon ?s)
|
2004-09-04 13:13:48 +00:00
|
|
|
(?B gnus-tmp-summary-live ?c)
|
1997-04-16 22:13:18 +00:00
|
|
|
(?z gnus-tmp-news-method-string ?s)
|
|
|
|
(?m (gnus-group-new-mail gnus-tmp-group) ?c)
|
|
|
|
(?d (gnus-group-timestamp-string gnus-tmp-group) ?s)
|
2007-10-28 09:18:39 +00:00
|
|
|
(?u gnus-tmp-user-defined ?s)
|
|
|
|
(?F (gnus-total-fetched-for gnus-tmp-group) ?s)
|
|
|
|
))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defvar gnus-group-mode-line-format-alist
|
2018-11-05 01:22:15 +01:00
|
|
|
'((?S gnus-tmp-news-server ?s)
|
1997-04-16 22:13:18 +00:00
|
|
|
(?M gnus-tmp-news-method ?s)
|
|
|
|
(?u gnus-tmp-user-defined ?s)
|
|
|
|
(?: gnus-tmp-colon ?s)))
|
|
|
|
|
|
|
|
(defvar gnus-topic-topology nil
|
|
|
|
"The complete topic hierarchy.")
|
|
|
|
|
|
|
|
(defvar gnus-topic-alist nil
|
|
|
|
"The complete topic-group alist.")
|
|
|
|
|
|
|
|
(defvar gnus-group-marked nil)
|
|
|
|
|
|
|
|
(defvar gnus-group-list-mode nil)
|
|
|
|
|
2000-09-19 13:37:09 +00:00
|
|
|
|
2004-09-04 13:13:48 +00:00
|
|
|
(defvar gnus-group-listed-groups nil)
|
|
|
|
(defvar gnus-group-list-option nil)
|
|
|
|
|
1997-04-16 22:13:18 +00:00
|
|
|
;;;
|
|
|
|
;;; Gnus group mode
|
|
|
|
;;;
|
|
|
|
|
2021-10-04 10:15:04 +02:00
|
|
|
(define-keymap :keymap gnus-group-mode-map
|
2021-11-16 08:18:30 +01:00
|
|
|
"SPC" #'gnus-group-read-group
|
2021-10-04 10:15:04 +02:00
|
|
|
"=" #'gnus-group-select-group
|
2021-11-16 08:18:30 +01:00
|
|
|
"RET" #'gnus-group-select-group
|
|
|
|
"M-RET" #'gnus-group-quick-select-group
|
|
|
|
"M-SPC" #'gnus-group-visible-select-group
|
|
|
|
"C-M-<return>" #'gnus-group-select-group-ephemerally
|
2021-10-04 10:15:04 +02:00
|
|
|
"j" #'gnus-group-jump-to-group
|
|
|
|
"n" #'gnus-group-next-unread-group
|
|
|
|
"p" #'gnus-group-prev-unread-group
|
2021-11-16 08:18:30 +01:00
|
|
|
"DEL" #'gnus-group-prev-unread-group
|
|
|
|
"<delete>" #'gnus-group-prev-unread-group
|
2021-10-04 10:15:04 +02:00
|
|
|
"N" #'gnus-group-next-group
|
|
|
|
"P" #'gnus-group-prev-group
|
2021-11-16 08:18:30 +01:00
|
|
|
"M-n" #'gnus-group-next-unread-group-same-level
|
|
|
|
"M-p" #'gnus-group-prev-unread-group-same-level
|
2021-10-04 10:15:04 +02:00
|
|
|
"," #'gnus-group-best-unread-group
|
|
|
|
"." #'gnus-group-first-unread-group
|
|
|
|
"u" #'gnus-group-toggle-subscription-at-point
|
|
|
|
"U" #'gnus-group-toggle-subscription
|
|
|
|
"c" #'gnus-group-catchup-current
|
|
|
|
"C" #'gnus-group-catchup-current-all
|
2021-11-16 08:18:30 +01:00
|
|
|
"M-c" #'gnus-group-clear-data
|
2021-10-04 10:15:04 +02:00
|
|
|
"l" #'gnus-group-list-groups
|
|
|
|
"L" #'gnus-group-list-all-groups
|
|
|
|
"m" #'gnus-group-mail
|
|
|
|
"i" #'gnus-group-news
|
|
|
|
"g" #'gnus-group-get-new-news
|
2021-11-16 08:18:30 +01:00
|
|
|
"M-g" #'gnus-group-get-new-news-this-group
|
2021-10-04 10:15:04 +02:00
|
|
|
"R" #'gnus-group-restart
|
|
|
|
"r" #'gnus-group-read-init-file
|
|
|
|
"B" #'gnus-group-browse-foreign-server
|
|
|
|
"b" #'gnus-group-check-bogus-groups
|
|
|
|
"F" #'gnus-group-find-new-groups
|
2021-11-16 08:18:30 +01:00
|
|
|
"C-c C-d" #'gnus-group-describe-group
|
|
|
|
"M-d" #'gnus-group-describe-all-groups
|
|
|
|
"C-c C-a" #'gnus-group-apropos
|
|
|
|
"C-c C-M-a" #'gnus-group-description-apropos
|
2021-10-04 10:15:04 +02:00
|
|
|
"a" #'gnus-group-post-news
|
2021-11-16 08:18:30 +01:00
|
|
|
"ESC k" #'gnus-group-edit-local-kill
|
|
|
|
"ESC K" #'gnus-group-edit-global-kill
|
|
|
|
"C-k" #'gnus-group-kill-group
|
|
|
|
"C-y" #'gnus-group-yank-group
|
|
|
|
"C-w" #'gnus-group-kill-region
|
|
|
|
"C-x C-t" #'gnus-group-transpose-groups
|
|
|
|
"C-c C-l" #'gnus-group-list-killed
|
|
|
|
"C-c C-x" #'gnus-group-expire-articles
|
|
|
|
"C-c C-M-x" #'gnus-group-expire-all-groups
|
2021-10-04 10:15:04 +02:00
|
|
|
"V" #'gnus-version
|
|
|
|
"s" #'gnus-group-save-newsrc
|
|
|
|
"z" #'gnus-group-suspend
|
|
|
|
"q" #'gnus-group-exit
|
|
|
|
"Q" #'gnus-group-quit
|
|
|
|
"?" #'gnus-group-describe-briefly
|
2021-11-16 08:18:30 +01:00
|
|
|
"C-c C-i" #'gnus-info-find-node
|
|
|
|
"M-e" #'gnus-group-edit-group-method
|
2021-10-04 10:15:04 +02:00
|
|
|
"^" #'gnus-group-enter-server-mode
|
2021-11-16 08:18:30 +01:00
|
|
|
"<mouse-2>" #'gnus-mouse-pick-group
|
|
|
|
"<follow-link>" 'mouse-face
|
2021-10-04 10:15:04 +02:00
|
|
|
"<" #'beginning-of-buffer
|
|
|
|
">" #'end-of-buffer
|
2021-11-16 08:18:30 +01:00
|
|
|
"C-c C-b" #'gnus-bug
|
|
|
|
"C-c C-s" #'gnus-group-sort-groups
|
2021-10-04 10:15:04 +02:00
|
|
|
"t" #'gnus-topic-mode
|
2021-11-16 08:18:30 +01:00
|
|
|
"C-c M-g" #'gnus-activate-all-groups
|
|
|
|
"M-&" #'gnus-group-universal-argument
|
2021-10-04 10:15:04 +02:00
|
|
|
"#" #'gnus-group-mark-group
|
2021-11-16 08:18:30 +01:00
|
|
|
"M-#" #'gnus-group-unmark-group
|
2021-10-04 10:15:04 +02:00
|
|
|
|
|
|
|
"~" (define-keymap :prefix 'gnus-group-cloud-map
|
|
|
|
"u" #'gnus-cloud-upload-all-data
|
|
|
|
"~" #'gnus-cloud-upload-all-data
|
|
|
|
"d" #'gnus-cloud-download-all-data
|
2021-11-16 08:18:30 +01:00
|
|
|
"RET" #'gnus-cloud-download-all-data)
|
2021-10-04 10:15:04 +02:00
|
|
|
|
|
|
|
"M" (define-keymap :prefix 'gnus-group-mark-map
|
|
|
|
"m" #'gnus-group-mark-group
|
|
|
|
"u" #'gnus-group-unmark-group
|
|
|
|
"w" #'gnus-group-mark-region
|
|
|
|
"b" #'gnus-group-mark-buffer
|
|
|
|
"r" #'gnus-group-mark-regexp
|
|
|
|
"U" #'gnus-group-unmark-all-groups)
|
|
|
|
|
|
|
|
"D" (define-keymap :prefix 'gnus-group-sieve-map
|
|
|
|
"u" #'gnus-sieve-update
|
|
|
|
"g" #'gnus-sieve-generate)
|
|
|
|
|
|
|
|
"G" (define-keymap :prefix 'gnus-group-group-map
|
|
|
|
"d" #'gnus-group-make-directory-group
|
|
|
|
"h" #'gnus-group-make-help-group
|
|
|
|
"u" #'gnus-group-make-useful-group
|
|
|
|
"l" #'gnus-group-nnimap-edit-acl
|
|
|
|
"m" #'gnus-group-make-group
|
|
|
|
"E" #'gnus-group-edit-group
|
|
|
|
"e" #'gnus-group-edit-group-method
|
|
|
|
"p" #'gnus-group-edit-group-parameters
|
|
|
|
"v" #'gnus-group-add-to-virtual
|
|
|
|
"V" #'gnus-group-make-empty-virtual
|
|
|
|
"D" #'gnus-group-enter-directory
|
|
|
|
"f" #'gnus-group-make-doc-group
|
|
|
|
"w" #'gnus-group-make-web-group
|
|
|
|
"G" #'gnus-group-read-ephemeral-search-group
|
|
|
|
"g" #'gnus-group-make-search-group
|
|
|
|
"M" #'gnus-group-read-ephemeral-group
|
|
|
|
"r" #'gnus-group-rename-group
|
|
|
|
"R" #'gnus-group-make-rss-group
|
|
|
|
"c" #'gnus-group-customize
|
|
|
|
"z" #'gnus-group-compact-group
|
|
|
|
"x" #'gnus-group-expunge-group
|
2021-11-16 08:18:30 +01:00
|
|
|
"DEL" #'gnus-group-delete-group
|
|
|
|
"<delete>" #'gnus-group-delete-group
|
2021-10-12 14:27:29 +02:00
|
|
|
|
|
|
|
"S" (define-keymap :prefix 'gnus-group-sort-map
|
|
|
|
"s" #'gnus-group-sort-groups
|
|
|
|
"a" #'gnus-group-sort-groups-by-alphabet
|
|
|
|
"u" #'gnus-group-sort-groups-by-unread
|
|
|
|
"l" #'gnus-group-sort-groups-by-level
|
|
|
|
"v" #'gnus-group-sort-groups-by-score
|
|
|
|
"r" #'gnus-group-sort-groups-by-rank
|
|
|
|
"m" #'gnus-group-sort-groups-by-method
|
|
|
|
"n" #'gnus-group-sort-groups-by-real-name)
|
|
|
|
|
|
|
|
"P" (define-keymap :prefix 'gnus-group-sort-selected-map
|
|
|
|
"s" #'gnus-group-sort-selected-groups
|
|
|
|
"a" #'gnus-group-sort-selected-groups-by-alphabet
|
|
|
|
"u" #'gnus-group-sort-selected-groups-by-unread
|
|
|
|
"l" #'gnus-group-sort-selected-groups-by-level
|
|
|
|
"v" #'gnus-group-sort-selected-groups-by-score
|
|
|
|
"r" #'gnus-group-sort-selected-groups-by-rank
|
|
|
|
"m" #'gnus-group-sort-selected-groups-by-method
|
|
|
|
"n" #'gnus-group-sort-selected-groups-by-real-name))
|
2021-10-04 10:15:04 +02:00
|
|
|
|
|
|
|
"A" (define-keymap :prefix 'gnus-group-list-map
|
|
|
|
"k" #'gnus-group-list-killed
|
|
|
|
"z" #'gnus-group-list-zombies
|
|
|
|
"s" #'gnus-group-list-groups
|
|
|
|
"u" #'gnus-group-list-all-groups
|
|
|
|
"A" #'gnus-group-list-active
|
|
|
|
"a" #'gnus-group-apropos
|
|
|
|
"d" #'gnus-group-description-apropos
|
|
|
|
"m" #'gnus-group-list-matching
|
|
|
|
"M" #'gnus-group-list-all-matching
|
|
|
|
"l" #'gnus-group-list-level
|
|
|
|
"c" #'gnus-group-list-cached
|
|
|
|
"?" #'gnus-group-list-dormant
|
2021-10-04 16:19:40 +02:00
|
|
|
"!" #'gnus-group-list-ticked
|
|
|
|
|
|
|
|
"/" (define-keymap :prefix 'gnus-group-list-limit-map
|
|
|
|
"k" #'gnus-group-list-limit
|
|
|
|
"z" #'gnus-group-list-limit
|
|
|
|
"s" #'gnus-group-list-limit
|
|
|
|
"u" #'gnus-group-list-limit
|
|
|
|
"A" #'gnus-group-list-limit
|
|
|
|
"m" #'gnus-group-list-limit
|
|
|
|
"M" #'gnus-group-list-limit
|
|
|
|
"l" #'gnus-group-list-limit
|
|
|
|
"c" #'gnus-group-list-limit
|
|
|
|
"?" #'gnus-group-list-limit
|
|
|
|
"!" #'gnus-group-list-limit)
|
|
|
|
|
|
|
|
"f" (define-keymap :prefix 'gnus-group-list-flush-map
|
|
|
|
"k" #'gnus-group-list-flush
|
|
|
|
"z" #'gnus-group-list-flush
|
|
|
|
"s" #'gnus-group-list-flush
|
|
|
|
"u" #'gnus-group-list-flush
|
|
|
|
"A" #'gnus-group-list-flush
|
|
|
|
"m" #'gnus-group-list-flush
|
|
|
|
"M" #'gnus-group-list-flush
|
|
|
|
"l" #'gnus-group-list-flush
|
|
|
|
"c" #'gnus-group-list-flush
|
|
|
|
"?" #'gnus-group-list-flush
|
|
|
|
"!" #'gnus-group-list-flush)
|
|
|
|
|
|
|
|
"p" (define-keymap :prefix 'gnus-group-list-plus-map
|
|
|
|
"k" #'gnus-group-list-plus
|
|
|
|
"z" #'gnus-group-list-plus
|
|
|
|
"s" #'gnus-group-list-plus
|
|
|
|
"u" #'gnus-group-list-plus
|
|
|
|
"A" #'gnus-group-list-plus
|
|
|
|
"m" #'gnus-group-list-plus
|
|
|
|
"M" #'gnus-group-list-plus
|
|
|
|
"l" #'gnus-group-list-plus
|
|
|
|
"c" #'gnus-group-list-plus
|
|
|
|
"?" #'gnus-group-list-plus
|
|
|
|
"!" #'gnus-group-list-plus))
|
2021-10-04 10:15:04 +02:00
|
|
|
|
|
|
|
"W" (define-keymap :prefix 'gnus-group-score-map
|
|
|
|
"f" #'gnus-score-flush-cache
|
|
|
|
"e" #'gnus-score-edit-all-score)
|
|
|
|
|
|
|
|
"H" (define-keymap :prefix 'gnus-group-help-map
|
|
|
|
"d" #'gnus-group-describe-group
|
|
|
|
"v" #'gnus-version)
|
|
|
|
|
|
|
|
"S" (define-keymap :prefix 'gnus-group-sub-map
|
|
|
|
"l" #'gnus-group-set-current-level
|
|
|
|
"t" #'gnus-group-toggle-subscription-at-point
|
|
|
|
"s" #'gnus-group-toggle-subscription
|
|
|
|
"k" #'gnus-group-kill-group
|
|
|
|
"y" #'gnus-group-yank-group
|
|
|
|
"w" #'gnus-group-kill-region
|
2021-11-16 08:18:30 +01:00
|
|
|
"C-k" #'gnus-group-kill-level
|
2021-10-04 10:15:04 +02:00
|
|
|
"z" #'gnus-group-kill-all-zombies))
|
2004-09-04 13:13:48 +00:00
|
|
|
|
|
|
|
(defun gnus-topic-mode-p ()
|
|
|
|
"Return non-nil in `gnus-topic-mode'."
|
|
|
|
(and (boundp 'gnus-topic-mode)
|
|
|
|
(symbol-value 'gnus-topic-mode)))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-make-menu-bar ()
|
|
|
|
(unless (boundp 'gnus-group-reading-menu)
|
|
|
|
|
|
|
|
(easy-menu-define
|
|
|
|
gnus-group-reading-menu gnus-group-mode-map ""
|
2018-11-05 01:22:15 +01:00
|
|
|
'("Group"
|
2004-09-04 13:13:48 +00:00
|
|
|
["Read" gnus-group-read-group
|
|
|
|
:included (not (gnus-topic-mode-p))
|
|
|
|
:active (gnus-group-group-name)]
|
|
|
|
["Read " gnus-topic-read-group
|
|
|
|
:included (gnus-topic-mode-p)]
|
|
|
|
["Select" gnus-group-select-group
|
|
|
|
:included (not (gnus-topic-mode-p))
|
|
|
|
:active (gnus-group-group-name)]
|
|
|
|
["Select " gnus-topic-select-group
|
|
|
|
:included (gnus-topic-mode-p)]
|
1997-04-16 22:13:18 +00:00
|
|
|
["See old articles" (gnus-group-select-group 'all)
|
|
|
|
:keys "C-u SPC" :active (gnus-group-group-name)]
|
2004-09-04 13:13:48 +00:00
|
|
|
["Catch up" gnus-group-catchup-current
|
|
|
|
:included (not (gnus-topic-mode-p))
|
|
|
|
:active (gnus-group-group-name)
|
2016-02-11 15:22:45 +11:00
|
|
|
:help "Mark unread articles in the current group as read"]
|
2004-09-04 13:13:48 +00:00
|
|
|
["Catch up " gnus-topic-catchup-articles
|
|
|
|
:included (gnus-topic-mode-p)
|
2016-02-11 15:22:45 +11:00
|
|
|
:help "Mark unread articles in the current group or topic as read"]
|
1997-04-16 22:13:18 +00:00
|
|
|
["Catch up all articles" gnus-group-catchup-current-all
|
|
|
|
(gnus-group-group-name)]
|
|
|
|
["Check for new articles" gnus-group-get-new-news-this-group
|
2004-09-04 13:13:48 +00:00
|
|
|
:included (not (gnus-topic-mode-p))
|
2000-10-27 17:13:45 +00:00
|
|
|
:active (gnus-group-group-name)
|
2016-02-11 15:22:45 +11:00
|
|
|
:help "Check for new messages in current group"]
|
2004-09-04 13:13:48 +00:00
|
|
|
["Check for new articles " gnus-topic-get-new-news-this-topic
|
|
|
|
:included (gnus-topic-mode-p)
|
2016-02-11 15:22:45 +11:00
|
|
|
:help "Check for new messages in current group or topic"]
|
2021-07-28 20:52:51 +02:00
|
|
|
["Toggle subscription" gnus-group-toggle-subscription-at-point
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-group-name)]
|
2000-10-27 17:13:45 +00:00
|
|
|
["Kill" gnus-group-kill-group :active (gnus-group-group-name)
|
2016-02-11 15:22:45 +11:00
|
|
|
:help "Kill (remove) current group"]
|
1997-04-16 22:13:18 +00:00
|
|
|
["Yank" gnus-group-yank-group gnus-list-of-killed-groups]
|
2000-10-27 17:13:45 +00:00
|
|
|
["Describe" gnus-group-describe-group :active (gnus-group-group-name)
|
2016-02-11 15:22:45 +11:00
|
|
|
:help "Display description of the current group"]
|
1997-04-16 22:13:18 +00:00
|
|
|
;; Actually one should check, if any of the marked groups gives t for
|
|
|
|
;; (gnus-check-backend-function 'request-expire-articles ...)
|
|
|
|
["Expire articles" gnus-group-expire-articles
|
2004-09-04 13:13:48 +00:00
|
|
|
:included (not (gnus-topic-mode-p))
|
|
|
|
:active (or (and (gnus-group-group-name)
|
|
|
|
(gnus-check-backend-function
|
|
|
|
'request-expire-articles
|
|
|
|
(gnus-group-group-name))) gnus-group-marked)]
|
|
|
|
["Expire articles " gnus-topic-expire-articles
|
|
|
|
:included (gnus-topic-mode-p)]
|
|
|
|
["Set group level..." gnus-group-set-current-level
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-group-name)]
|
|
|
|
["Select quick" gnus-group-quick-select-group (gnus-group-group-name)]
|
|
|
|
["Customize" gnus-group-customize (gnus-group-group-name)]
|
2007-10-28 09:18:39 +00:00
|
|
|
["Compact" gnus-group-compact-group
|
|
|
|
:active (gnus-group-group-name)]
|
1997-04-16 22:13:18 +00:00
|
|
|
("Edit"
|
|
|
|
["Parameters" gnus-group-edit-group-parameters
|
2004-09-04 13:13:48 +00:00
|
|
|
:included (not (gnus-topic-mode-p))
|
|
|
|
:active (gnus-group-group-name)]
|
|
|
|
["Parameters " gnus-topic-edit-parameters
|
|
|
|
:included (gnus-topic-mode-p)]
|
1997-04-16 22:13:18 +00:00
|
|
|
["Select method" gnus-group-edit-group-method
|
|
|
|
(gnus-group-group-name)]
|
|
|
|
["Info" gnus-group-edit-group (gnus-group-group-name)]
|
|
|
|
["Local kill file" gnus-group-edit-local-kill (gnus-group-group-name)]
|
1997-09-24 01:50:24 +00:00
|
|
|
["Global kill file" gnus-group-edit-global-kill t])))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(easy-menu-define
|
|
|
|
gnus-group-group-menu gnus-group-mode-map ""
|
|
|
|
'("Groups"
|
|
|
|
("Listing"
|
|
|
|
["List unread subscribed groups" gnus-group-list-groups t]
|
|
|
|
["List (un)subscribed groups" gnus-group-list-all-groups t]
|
|
|
|
["List killed groups" gnus-group-list-killed gnus-killed-list]
|
|
|
|
["List zombie groups" gnus-group-list-zombies gnus-zombie-list]
|
|
|
|
["List level..." gnus-group-list-level t]
|
|
|
|
["Describe all groups" gnus-group-describe-all-groups t]
|
|
|
|
["Group apropos..." gnus-group-apropos t]
|
|
|
|
["Group and description apropos..." gnus-group-description-apropos t]
|
|
|
|
["List groups matching..." gnus-group-list-matching t]
|
|
|
|
["List all groups matching..." gnus-group-list-all-matching t]
|
2000-09-19 13:37:09 +00:00
|
|
|
["List active file" gnus-group-list-active t]
|
|
|
|
["List groups with cached" gnus-group-list-cached t]
|
2011-03-18 13:45:04 +00:00
|
|
|
["List groups with dormant" gnus-group-list-dormant t]
|
|
|
|
["List groups with ticked" gnus-group-list-ticked t])
|
1997-04-16 22:13:18 +00:00
|
|
|
("Sort"
|
|
|
|
["Default sort" gnus-group-sort-groups t]
|
|
|
|
["Sort by method" gnus-group-sort-groups-by-method t]
|
|
|
|
["Sort by rank" gnus-group-sort-groups-by-rank t]
|
|
|
|
["Sort by score" gnus-group-sort-groups-by-score t]
|
|
|
|
["Sort by level" gnus-group-sort-groups-by-level t]
|
|
|
|
["Sort by unread" gnus-group-sort-groups-by-unread t]
|
2004-09-04 13:13:48 +00:00
|
|
|
["Sort by name" gnus-group-sort-groups-by-alphabet t]
|
|
|
|
["Sort by real name" gnus-group-sort-groups-by-real-name t])
|
1997-04-16 22:13:18 +00:00
|
|
|
("Sort process/prefixed"
|
|
|
|
["Default sort" gnus-group-sort-selected-groups
|
2004-09-04 13:13:48 +00:00
|
|
|
(not (gnus-topic-mode-p))]
|
1997-04-16 22:13:18 +00:00
|
|
|
["Sort by method" gnus-group-sort-selected-groups-by-method
|
2004-09-04 13:13:48 +00:00
|
|
|
(not (gnus-topic-mode-p))]
|
1997-04-16 22:13:18 +00:00
|
|
|
["Sort by rank" gnus-group-sort-selected-groups-by-rank
|
2004-09-04 13:13:48 +00:00
|
|
|
(not (gnus-topic-mode-p))]
|
1997-04-16 22:13:18 +00:00
|
|
|
["Sort by score" gnus-group-sort-selected-groups-by-score
|
2004-09-04 13:13:48 +00:00
|
|
|
(not (gnus-topic-mode-p))]
|
1997-04-16 22:13:18 +00:00
|
|
|
["Sort by level" gnus-group-sort-selected-groups-by-level
|
2004-09-04 13:13:48 +00:00
|
|
|
(not (gnus-topic-mode-p))]
|
1997-04-16 22:13:18 +00:00
|
|
|
["Sort by unread" gnus-group-sort-selected-groups-by-unread
|
2004-09-04 13:13:48 +00:00
|
|
|
(not (gnus-topic-mode-p))]
|
1997-04-16 22:13:18 +00:00
|
|
|
["Sort by name" gnus-group-sort-selected-groups-by-alphabet
|
2004-09-04 13:13:48 +00:00
|
|
|
(not (gnus-topic-mode-p))]
|
|
|
|
["Sort by real name" gnus-group-sort-selected-groups-by-real-name
|
|
|
|
(not (gnus-topic-mode-p))])
|
1997-04-16 22:13:18 +00:00
|
|
|
("Mark"
|
2021-06-08 13:34:24 +02:00
|
|
|
["Toggle/Set mark" gnus-group-mark-group
|
1997-04-16 22:13:18 +00:00
|
|
|
(and (gnus-group-group-name)
|
|
|
|
(not (memq (gnus-group-group-name) gnus-group-marked)))]
|
2021-06-02 07:41:25 +02:00
|
|
|
["Remove mark" gnus-group-unmark-group
|
1997-04-16 22:13:18 +00:00
|
|
|
(and (gnus-group-group-name)
|
|
|
|
(memq (gnus-group-group-name) gnus-group-marked))]
|
2021-06-02 07:41:25 +02:00
|
|
|
["Remove all marks" gnus-group-unmark-all-groups gnus-group-marked]
|
|
|
|
["Mark by regexp..." gnus-group-mark-regexp t]
|
2016-02-10 10:58:59 +11:00
|
|
|
["Mark region" gnus-group-mark-region :active mark-active]
|
1997-04-16 22:13:18 +00:00
|
|
|
["Mark buffer" gnus-group-mark-buffer t]
|
|
|
|
["Execute command" gnus-group-universal-argument
|
|
|
|
(or gnus-group-marked (gnus-group-group-name))])
|
|
|
|
("Subscribe"
|
2021-07-28 20:52:51 +02:00
|
|
|
["Toggle subscription..." gnus-group-toggle-subscription t]
|
2004-09-04 13:13:48 +00:00
|
|
|
["Kill all newsgroups in region" gnus-group-kill-region
|
2016-02-10 10:58:59 +11:00
|
|
|
:active mark-active]
|
1997-04-16 22:13:18 +00:00
|
|
|
["Kill all zombie groups" gnus-group-kill-all-zombies
|
|
|
|
gnus-zombie-list]
|
|
|
|
["Kill all groups on level..." gnus-group-kill-level t])
|
|
|
|
("Foreign groups"
|
2004-09-04 13:13:48 +00:00
|
|
|
["Make a foreign group..." gnus-group-make-group t]
|
|
|
|
["Add a directory group..." gnus-group-make-directory-group t]
|
1997-04-16 22:13:18 +00:00
|
|
|
["Add the help group" gnus-group-make-help-group t]
|
2004-09-04 13:13:48 +00:00
|
|
|
["Make a doc group..." gnus-group-make-doc-group t]
|
|
|
|
["Make a web group..." gnus-group-make-web-group t]
|
2020-09-05 08:46:43 +08:00
|
|
|
["Read a search group..." gnus-group-read-ephemeral-search-group t]
|
|
|
|
["Make a search group..." gnus-group-make-search-group t]
|
2004-09-04 13:13:48 +00:00
|
|
|
["Make a virtual group..." gnus-group-make-empty-virtual t]
|
|
|
|
["Add a group to a virtual..." gnus-group-add-to-virtual t]
|
|
|
|
["Make an ephemeral group..." gnus-group-read-ephemeral-group t]
|
|
|
|
["Make an RSS group..." gnus-group-make-rss-group t]
|
|
|
|
["Rename group..." gnus-group-rename-group
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-check-backend-function
|
|
|
|
'request-rename-group (gnus-group-group-name))]
|
|
|
|
["Delete group" gnus-group-delete-group
|
|
|
|
(gnus-check-backend-function
|
|
|
|
'request-delete-group (gnus-group-group-name))])
|
|
|
|
("Move"
|
|
|
|
["Next" gnus-group-next-group t]
|
|
|
|
["Previous" gnus-group-prev-group t]
|
|
|
|
["Next unread" gnus-group-next-unread-group t]
|
|
|
|
["Previous unread" gnus-group-prev-unread-group t]
|
|
|
|
["Next unread same level" gnus-group-next-unread-group-same-level t]
|
|
|
|
["Previous unread same level"
|
|
|
|
gnus-group-prev-unread-group-same-level t]
|
2004-09-04 13:13:48 +00:00
|
|
|
["Jump to group..." gnus-group-jump-to-group t]
|
1997-04-16 22:13:18 +00:00
|
|
|
["First unread group" gnus-group-first-unread-group t]
|
|
|
|
["Best unread group" gnus-group-best-unread-group t])
|
2004-09-04 13:13:48 +00:00
|
|
|
("Sieve"
|
|
|
|
["Generate" gnus-sieve-generate t]
|
|
|
|
["Generate and update" gnus-sieve-update t])
|
1997-04-16 22:13:18 +00:00
|
|
|
["Delete bogus groups" gnus-group-check-bogus-groups t]
|
1997-09-24 01:50:24 +00:00
|
|
|
["Find new newsgroups" gnus-group-find-new-groups t]
|
1997-04-16 22:13:18 +00:00
|
|
|
["Transpose" gnus-group-transpose-groups
|
|
|
|
(gnus-group-group-name)]
|
1997-09-24 01:50:24 +00:00
|
|
|
["Read a directory as a group..." gnus-group-enter-directory t]))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(easy-menu-define
|
|
|
|
gnus-group-misc-menu gnus-group-mode-map ""
|
2018-11-05 01:22:15 +01:00
|
|
|
'("Gnus"
|
1997-04-16 22:13:18 +00:00
|
|
|
["Send a mail" gnus-group-mail t]
|
2004-09-04 13:13:48 +00:00
|
|
|
["Send a message (mail or news)" gnus-group-post-news t]
|
|
|
|
["Create a local message" gnus-group-news t]
|
2000-10-27 17:13:45 +00:00
|
|
|
["Check for new news" gnus-group-get-new-news
|
2016-02-11 15:22:45 +11:00
|
|
|
:help "Get newly arrived articles"]
|
2004-09-04 13:13:48 +00:00
|
|
|
["Send queued messages" gnus-delay-send-queue
|
2016-02-11 15:22:45 +11:00
|
|
|
:help "Send all messages that are scheduled to be sent now"]
|
1997-04-16 22:13:18 +00:00
|
|
|
["Activate all groups" gnus-activate-all-groups t]
|
|
|
|
["Restart Gnus" gnus-group-restart t]
|
|
|
|
["Read init file" gnus-group-read-init-file t]
|
2004-09-04 13:13:48 +00:00
|
|
|
["Browse foreign server..." gnus-group-browse-foreign-server t]
|
1997-04-16 22:13:18 +00:00
|
|
|
["Enter server buffer" gnus-group-enter-server-mode t]
|
|
|
|
["Expire all expirable articles" gnus-group-expire-all-groups t]
|
|
|
|
["Gnus version" gnus-version t]
|
|
|
|
["Save .newsrc files" gnus-group-save-newsrc t]
|
|
|
|
["Suspend Gnus" gnus-group-suspend t]
|
|
|
|
["Clear dribble buffer" gnus-group-clear-dribble t]
|
|
|
|
["Read manual" gnus-info-find-node t]
|
|
|
|
["Flush score cache" gnus-score-flush-cache t]
|
|
|
|
["Toggle topics" gnus-topic-mode t]
|
1999-02-20 14:05:57 +00:00
|
|
|
["Send a bug report" gnus-bug t]
|
2016-02-11 15:22:45 +11:00
|
|
|
["Exit from Gnus" gnus-group-exit :help "Quit reading news"]
|
1997-09-24 01:50:24 +00:00
|
|
|
["Exit without saving" gnus-group-quit t]))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
1999-02-20 14:05:57 +00:00
|
|
|
(gnus-run-hooks 'gnus-group-menu-hook)))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
2006-04-17 18:26:22 +00:00
|
|
|
(defvar gnus-group-tool-bar-map nil)
|
|
|
|
|
2022-04-30 18:17:47 +02:00
|
|
|
(defcustom gnus-group-tool-bar
|
2006-04-17 18:26:22 +00:00
|
|
|
'((gnus-group-post-news "mail/compose")
|
|
|
|
;; Some useful agent icons? I don't use the agent so agent users should
|
|
|
|
;; suggest useful commands:
|
2022-04-30 18:17:47 +02:00
|
|
|
(gnus-agent-toggle-plugged
|
|
|
|
"unplugged" t
|
|
|
|
:help "Gnus is currently unplugged. Click to work online."
|
|
|
|
:visible (and gnus-agent (not gnus-plugged)))
|
|
|
|
(gnus-agent-toggle-plugged
|
|
|
|
"plugged" t
|
|
|
|
:help "Gnus is currently plugged. Click to work offline."
|
|
|
|
:visible (and gnus-agent gnus-plugged))
|
|
|
|
(gnus-group-send-queue
|
|
|
|
"mail/outbox" t
|
|
|
|
:visible (and gnus-agent gnus-plugged)
|
|
|
|
:help "Send articles from the queue group")
|
|
|
|
(gnus-group-get-new-news
|
|
|
|
"mail/inbox" nil
|
|
|
|
:visible (or (not gnus-agent)
|
|
|
|
gnus-plugged))
|
|
|
|
(gnus-topic-read-group
|
|
|
|
"open" nil
|
|
|
|
:visible (and (boundp 'gnus-topic-mode)
|
|
|
|
gnus-topic-mode))
|
|
|
|
(gnus-group-read-group
|
|
|
|
"open" nil
|
|
|
|
:visible (not (and (boundp 'gnus-topic-mode)
|
|
|
|
gnus-topic-mode)))
|
2006-04-17 18:26:22 +00:00
|
|
|
(gnus-group-save-newsrc "save")
|
|
|
|
(gnus-group-describe-group "describe")
|
2021-07-28 20:52:51 +02:00
|
|
|
(gnus-group-toggle-subscription-at-point "gnus/toggle-subscription")
|
2006-04-17 18:26:22 +00:00
|
|
|
(gnus-group-prev-unread-group "left-arrow")
|
|
|
|
(gnus-group-next-unread-group "right-arrow")
|
|
|
|
(gnus-group-exit "exit")
|
|
|
|
(gmm-customize-mode "preferences" t :help "Edit mode preferences")
|
|
|
|
(gnus-info-find-node "help"))
|
2022-04-30 18:17:47 +02:00
|
|
|
"Specifies the Gnus group tool bar.
|
2006-04-17 18:26:22 +00:00
|
|
|
|
2022-04-30 18:17:47 +02:00
|
|
|
It can be either a list or a symbol referring to a list. See
|
|
|
|
`gmm-tool-bar-from-list' for the format of the list. The
|
|
|
|
default key map is `gnus-group-mode-map'."
|
|
|
|
:type '(choice (repeat :tag "User defined list" gmm-tool-bar-item)
|
|
|
|
(symbol))
|
|
|
|
:version "29.1"
|
2006-04-17 18:26:22 +00:00
|
|
|
:group 'gnus-group)
|
|
|
|
|
2022-04-30 18:17:47 +02:00
|
|
|
(defvar gnus-group-tool-bar-gnome nil)
|
|
|
|
(make-obsolete-variable 'gnus-group-tool-bar-gnome nil "29.1")
|
|
|
|
(defvar gnus-group-tool-bar-retro nil)
|
|
|
|
(make-obsolete-variable 'gnus-group-tool-bar-retro nil "29.1")
|
|
|
|
(defvar gnus-group-tool-bar-zap-list t)
|
|
|
|
(make-obsolete-variable 'gnus-group-tool-bar-zap-list nil "29.1")
|
2006-04-17 18:26:22 +00:00
|
|
|
|
|
|
|
(defvar image-load-path)
|
2008-06-11 03:11:44 +00:00
|
|
|
(defvar tool-bar-map)
|
2018-02-27 18:43:23 -05:00
|
|
|
(declare-function image-load-path-for-library "image"
|
|
|
|
(library image &optional path no-error))
|
2006-04-17 18:26:22 +00:00
|
|
|
|
|
|
|
(defun gnus-group-make-tool-bar (&optional force)
|
|
|
|
"Make a group mode tool bar from `gnus-group-tool-bar'.
|
|
|
|
When FORCE, rebuild the tool bar."
|
2016-02-11 15:22:45 +11:00
|
|
|
(when (and (boundp 'tool-bar-mode)
|
2006-04-17 18:26:22 +00:00
|
|
|
tool-bar-mode
|
2010-10-29 11:24:23 +00:00
|
|
|
(display-graphic-p)
|
2006-04-17 18:26:22 +00:00
|
|
|
(or (not gnus-group-tool-bar-map) force))
|
|
|
|
(let* ((load-path
|
2016-02-14 16:35:24 +11:00
|
|
|
(image-load-path-for-library
|
|
|
|
"gnus" "gnus/toggle-subscription.xpm" nil t))
|
2016-02-13 16:58:25 +11:00
|
|
|
(image-load-path (cons (car load-path) image-load-path))
|
2006-04-17 18:26:22 +00:00
|
|
|
(map (gmm-tool-bar-from-list gnus-group-tool-bar
|
|
|
|
gnus-group-tool-bar-zap-list
|
|
|
|
'gnus-group-mode-map)))
|
|
|
|
(if map
|
Prefer setq-local in gnus/*.el
* lisp/gnus/gnus-agent.el (gnus-agent-mode)
(gnus-agent-get-undownloaded-list, gnus-agent-open-history):
* lisp/gnus/gnus-art.el (gnus-article-setup-highlight-words)
(gnus-article-mode, gnus-article-setup-buffer, defsubst)
(gnus-article-describe-bindings, gnus-article-edit-mode):
* lisp/gnus/gnus-cus.el (gnus-custom-mode, gnus-group-customize)
(gnus-score-customize, gnus-agent-customize-category):
* lisp/gnus/gnus-group.el (gnus-group-make-tool-bar):
* lisp/gnus/gnus-msg.el (gnus-setup-message)
(gnus-summary-news-other-window, gnus-configure-posting-styles):
* lisp/gnus/gnus-salt.el (gnus-pick-mode, gnus-binary-mode):
* lisp/gnus/gnus-score.el (gnus-score-edit-current-scores)
(gnus-score-edit-file):
* lisp/gnus/gnus-srvr.el (gnus-server-mode):
* lisp/gnus/gnus-start.el (gnus-no-server-1)
(gnus-dribble-read-file, gnus-save-newsrc-file)
(gnus-gnus-to-newsrc-format):
* lisp/gnus/gnus-sum.el (gnus-summary-make-tool-bar)
(gnus-summary-mode, gnus-summary-setup-buffer)
(gnus-select-newsgroup, gnus-summary-edit-article)
(gnus-summary-setup-default-charset):
* lisp/gnus/gnus-topic.el (gnus-topic-mode):
* lisp/gnus/gnus-undo.el (gnus-undo-mode):
* lisp/gnus/gnus.el (gnus-simplify-mode-line):
* lisp/gnus/message.el (message-cite-reply-position)
(message-cite-style, message-mode, message-setup-fill-variables):
* lisp/gnus/mm-view.el (mm-display-inline-fontify):
* lisp/gnus/mml.el (mml-mode):
* lisp/gnus/nndiary.el (nndiary-open-nov):
* lisp/gnus/nnfolder.el (nnfolder-save-buffer)
(nnfolder-open-nov):
* lisp/gnus/nnheader.el (nnheader-init-server-buffer):
* lisp/gnus/nnimap.el (nnimap-make-process-buffer):
* lisp/gnus/nnml.el (nnml-get-nov-buffer): Prefer setq-local.
2020-12-07 16:27:50 +01:00
|
|
|
(setq-local tool-bar-map map))))
|
2006-04-17 18:26:22 +00:00
|
|
|
gnus-group-tool-bar-map)
|
2000-10-27 17:13:45 +00:00
|
|
|
|
2018-06-25 17:40:19 -07:00
|
|
|
(define-derived-mode gnus-group-mode gnus-mode "Group"
|
1997-04-16 22:13:18 +00:00
|
|
|
"Major mode for reading news.
|
|
|
|
All normal editing commands are switched off.
|
|
|
|
\\<gnus-group-mode-map>
|
2006-11-24 10:42:46 +00:00
|
|
|
The group buffer lists (some of) the groups available. For instance,
|
1997-04-16 22:13:18 +00:00
|
|
|
`\\[gnus-group-list-groups]' will list all subscribed groups with unread articles, while `\\[gnus-group-list-zombies]'
|
|
|
|
lists all zombie groups.
|
|
|
|
|
|
|
|
Groups that are displayed can be entered with `\\[gnus-group-read-group]'. To subscribe
|
2021-07-28 20:52:51 +02:00
|
|
|
to a group not displayed, type `\\[gnus-group-toggle-subscription]'.
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
For more in-depth information on this mode, read the manual (`\\[gnus-info-find-node]').
|
|
|
|
|
|
|
|
The following commands are available:
|
|
|
|
|
|
|
|
\\{gnus-group-mode-map}"
|
|
|
|
(when (gnus-visual-p 'group-menu 'menu)
|
2000-10-27 17:13:45 +00:00
|
|
|
(gnus-group-make-menu-bar)
|
|
|
|
(gnus-group-make-tool-bar))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-simplify-mode-line)
|
|
|
|
(gnus-group-set-mode-line)
|
|
|
|
(setq mode-line-process nil)
|
2000-09-19 13:37:09 +00:00
|
|
|
(buffer-disable-undo)
|
1997-04-16 22:13:18 +00:00
|
|
|
(setq truncate-lines t)
|
2018-06-25 17:40:19 -07:00
|
|
|
(setq show-trailing-whitespace nil)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-set-default-directory)
|
|
|
|
(gnus-update-format-specifications nil 'group 'group-mode)
|
|
|
|
(gnus-update-group-mark-positions)
|
|
|
|
(when gnus-use-undo
|
|
|
|
(gnus-undo-mode 1))
|
2020-07-17 01:46:57 +02:00
|
|
|
(when gnus-child
|
|
|
|
(gnus-child-mode)))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-update-group-mark-positions ()
|
|
|
|
(save-excursion
|
1999-02-20 14:05:57 +00:00
|
|
|
(let ((gnus-process-mark ?\200)
|
2004-09-04 13:13:48 +00:00
|
|
|
(gnus-group-update-hook nil)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-marked '("dummy.group"))
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(gnus-active-hashtb (gnus-make-hashtable 10)))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-set-active "dummy.group" '(0 . 0))
|
|
|
|
(gnus-set-work-buffer)
|
|
|
|
(gnus-group-insert-group-line "dummy.group" 0 nil 0 nil)
|
|
|
|
(goto-char (point-min))
|
|
|
|
(setq gnus-group-mark-positions
|
2004-10-04 23:18:11 +00:00
|
|
|
(list (cons 'process (and (search-forward
|
2018-04-15 00:40:23 +02:00
|
|
|
(string gnus-process-mark) nil t)
|
2008-03-03 03:49:06 +00:00
|
|
|
(- (point) (point-min) 1))))))))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-mouse-pick-group (e)
|
|
|
|
"Enter the group under the mouse pointer."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "e" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(mouse-set-point e)
|
|
|
|
(gnus-group-read-group nil))
|
|
|
|
|
2010-10-27 22:08:36 +00:00
|
|
|
(defun gnus-group-default-list-level ()
|
|
|
|
"Return the real value for `gnus-group-default-list-level'."
|
|
|
|
(if (functionp gnus-group-default-list-level)
|
|
|
|
(funcall gnus-group-default-list-level)
|
|
|
|
gnus-group-default-list-level))
|
|
|
|
|
1997-04-16 22:13:18 +00:00
|
|
|
;; Look at LEVEL and find out what the level is really supposed to be.
|
|
|
|
;; If LEVEL is non-nil, LEVEL will be returned, if not, what happens
|
|
|
|
;; will depend on whether `gnus-group-use-permanent-levels' is used.
|
|
|
|
(defun gnus-group-default-level (&optional level number-or-nil)
|
|
|
|
(cond
|
|
|
|
(gnus-group-use-permanent-levels
|
2021-09-06 10:59:54 +02:00
|
|
|
(or level
|
|
|
|
(if (numberp gnus-group-use-permanent-levels)
|
|
|
|
gnus-group-use-permanent-levels
|
|
|
|
(or (gnus-group-default-list-level)
|
|
|
|
gnus-level-subscribed))
|
2010-10-27 22:08:36 +00:00
|
|
|
(gnus-group-default-list-level) gnus-level-subscribed))
|
1997-04-16 22:13:18 +00:00
|
|
|
(number-or-nil
|
|
|
|
level)
|
|
|
|
(t
|
2010-10-27 22:08:36 +00:00
|
|
|
(or level (gnus-group-default-list-level) gnus-level-subscribed))))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-setup-buffer ()
|
1999-02-20 14:05:57 +00:00
|
|
|
(set-buffer (gnus-get-buffer-create gnus-group-buffer))
|
2013-09-10 23:31:56 -04:00
|
|
|
(unless (derived-mode-p 'gnus-group-mode)
|
2010-10-04 22:26:51 +00:00
|
|
|
(gnus-group-mode)))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
;; FIXME: If we never have to coerce group names to unibyte now, how
|
|
|
|
;; much of this is necessary? How much encoding/decoding do we still
|
|
|
|
;; have to do?
|
2004-09-04 13:13:48 +00:00
|
|
|
(defun gnus-group-name-charset (method group)
|
2011-08-30 22:07:52 +00:00
|
|
|
(unless method
|
|
|
|
(setq method (gnus-find-method-for-group group)))
|
|
|
|
(when (stringp method)
|
|
|
|
(setq method (gnus-server-to-method method)))
|
|
|
|
(if (eq (car method) 'nnimap)
|
|
|
|
;; IMAP groups should not be encoded, since they do the encoding
|
|
|
|
;; in utf7 in the protocol.
|
2011-09-10 23:30:53 +00:00
|
|
|
'utf-8
|
2011-08-30 22:07:52 +00:00
|
|
|
(let ((item (or (assoc method gnus-group-name-charset-method-alist)
|
|
|
|
(and (consp method)
|
|
|
|
(assoc (list (car method) (cadr method))
|
|
|
|
gnus-group-name-charset-method-alist))))
|
|
|
|
(alist gnus-group-name-charset-group-alist)
|
|
|
|
result)
|
|
|
|
(if item
|
|
|
|
(cdr item)
|
|
|
|
(while (setq item (pop alist))
|
|
|
|
(if (string-match (car item) group)
|
|
|
|
(setq alist nil
|
|
|
|
result (cdr item))))
|
|
|
|
result))))
|
2000-09-19 13:37:09 +00:00
|
|
|
|
2004-09-04 13:13:48 +00:00
|
|
|
(defun gnus-group-name-decode (string charset)
|
|
|
|
;; Fixme: Don't decode in unibyte mode.
|
2016-02-14 15:02:59 +11:00
|
|
|
(if (and string charset)
|
2016-02-12 14:39:30 +11:00
|
|
|
(decode-coding-string string charset)
|
2000-09-19 13:37:09 +00:00
|
|
|
string))
|
|
|
|
|
|
|
|
(defun gnus-group-decoded-name (string)
|
|
|
|
(let ((charset (gnus-group-name-charset nil string)))
|
|
|
|
(gnus-group-name-decode string charset)))
|
|
|
|
|
2021-09-06 10:59:54 +02:00
|
|
|
(defun gnus-group-list-groups (&optional level unread lowest update-level)
|
1997-04-16 22:13:18 +00:00
|
|
|
"List newsgroups with level LEVEL or lower that have unread articles.
|
|
|
|
Default is all subscribed groups.
|
|
|
|
If argument UNREAD is non-nil, groups with no unread articles are also
|
|
|
|
listed.
|
|
|
|
|
2021-09-06 10:59:54 +02:00
|
|
|
Also see the `gnus-group-use-permanent-levels' variable. If this
|
|
|
|
variable is non-nil, and UPDATE-LEVEL is non-nil (which is the
|
|
|
|
case interactively), the level will be updated by this command."
|
1997-04-16 22:13:18 +00:00
|
|
|
(interactive
|
|
|
|
(list (if current-prefix-arg
|
|
|
|
(prefix-numeric-value current-prefix-arg)
|
|
|
|
(or
|
|
|
|
(gnus-group-default-level nil t)
|
2010-10-27 22:08:36 +00:00
|
|
|
(gnus-group-default-list-level)
|
2021-09-06 10:59:54 +02:00
|
|
|
gnus-level-subscribed))
|
|
|
|
nil nil t)
|
2021-02-14 14:14:48 +01:00
|
|
|
gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(unless level
|
|
|
|
(setq level (car gnus-group-list-mode)
|
|
|
|
unread (cdr gnus-group-list-mode)))
|
|
|
|
(setq level (gnus-group-default-level level))
|
|
|
|
(gnus-group-setup-buffer)
|
|
|
|
(gnus-update-format-specifications nil 'group 'group-mode)
|
|
|
|
(let ((case-fold-search nil)
|
2022-08-23 04:54:57 +02:00
|
|
|
(props (text-properties-at (line-beginning-position)))
|
1997-04-16 22:13:18 +00:00
|
|
|
(empty (= (point-min) (point-max)))
|
|
|
|
(group (gnus-group-group-name))
|
|
|
|
number)
|
|
|
|
(set-buffer gnus-group-buffer)
|
|
|
|
(setq number (funcall gnus-group-prepare-function level unread lowest))
|
|
|
|
(when (or (and (numberp number)
|
|
|
|
(zerop number))
|
|
|
|
(zerop (buffer-size)))
|
|
|
|
;; No groups in the buffer.
|
2010-09-20 00:36:54 +00:00
|
|
|
(gnus-message 5 "%s" gnus-no-groups-message))
|
1997-04-16 22:13:18 +00:00
|
|
|
;; We have some groups displayed.
|
|
|
|
(goto-char (point-max))
|
|
|
|
(when (or (not gnus-group-goto-next-group-function)
|
|
|
|
(not (funcall gnus-group-goto-next-group-function
|
|
|
|
group props)))
|
|
|
|
(cond
|
|
|
|
(empty
|
|
|
|
(goto-char (point-min)))
|
|
|
|
((not group)
|
|
|
|
;; Go to the first group with unread articles.
|
|
|
|
(gnus-group-search-forward t))
|
|
|
|
(t
|
|
|
|
;; Find the right group to put point on. If the current group
|
|
|
|
;; has disappeared in the new listing, try to find the next
|
|
|
|
;; one. If no next one can be found, just leave point at the
|
|
|
|
;; first newsgroup in the buffer.
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(when (not (gnus-text-property-search
|
|
|
|
'gnus-group group nil 'goto))
|
|
|
|
(let ((groups (cdr-safe (member group gnus-group-list))))
|
|
|
|
(while (and groups
|
|
|
|
(not (gnus-text-property-search
|
|
|
|
'gnus-group (car groups) 'forward 'goto)))
|
|
|
|
(setq groups (cdr groups)))
|
|
|
|
(unless groups
|
1997-04-16 22:13:18 +00:00
|
|
|
(goto-char (point-max))
|
|
|
|
(forward-line -1)))))))
|
|
|
|
;; Adjust cursor point.
|
2021-09-06 10:59:54 +02:00
|
|
|
(gnus-group-position-point)
|
|
|
|
(when (and update-level gnus-group-use-permanent-levels)
|
|
|
|
(setq gnus-group-use-permanent-levels level))))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-list-level (level &optional all)
|
|
|
|
"List groups on LEVEL.
|
|
|
|
If ALL (the prefix), also list groups that have no unread articles."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "nList groups on level: \nP" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-list-groups level all level))
|
|
|
|
|
2004-09-04 13:13:48 +00:00
|
|
|
(defun gnus-group-prepare-logic (group test)
|
|
|
|
(or (and gnus-group-listed-groups
|
|
|
|
(null gnus-group-list-option)
|
|
|
|
(member group gnus-group-listed-groups))
|
|
|
|
(cond
|
|
|
|
((null gnus-group-listed-groups) test)
|
|
|
|
((null gnus-group-list-option) test)
|
|
|
|
(t (and (member group gnus-group-listed-groups)
|
|
|
|
(if (eq gnus-group-list-option 'flush)
|
|
|
|
(not test)
|
|
|
|
test))))))
|
|
|
|
|
|
|
|
(defun gnus-group-prepare-flat (level &optional predicate lowest regexp)
|
1997-04-16 22:13:18 +00:00
|
|
|
"List all newsgroups with unread articles of level LEVEL or lower.
|
2004-09-04 13:13:48 +00:00
|
|
|
If PREDICATE is a function, list groups that the function returns non-nil;
|
|
|
|
if it is t, list groups that have no unread articles.
|
1997-04-16 22:13:18 +00:00
|
|
|
If LOWEST is non-nil, list all newsgroups of level LOWEST or higher.
|
2004-09-04 13:13:48 +00:00
|
|
|
If REGEXP is a function, list dead groups that the function returns non-nil;
|
|
|
|
if it is a string, only list groups matching REGEXP."
|
1997-04-16 22:13:18 +00:00
|
|
|
(set-buffer gnus-group-buffer)
|
|
|
|
(let ((buffer-read-only nil)
|
|
|
|
(lowest (or lowest 1))
|
2004-09-04 13:13:48 +00:00
|
|
|
(not-in-list (and gnus-group-listed-groups
|
|
|
|
(copy-sequence gnus-group-listed-groups)))
|
1997-04-16 22:13:18 +00:00
|
|
|
info clevel unread group params)
|
|
|
|
(erase-buffer)
|
2004-09-04 13:13:48 +00:00
|
|
|
(when (or (< lowest gnus-level-zombie)
|
|
|
|
gnus-group-listed-groups)
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
;; List living groups, according to order in `gnus-group-list'.
|
|
|
|
(dolist (g (cdr gnus-group-list))
|
2019-04-11 17:24:36 +01:00
|
|
|
(setq info (gnus-get-info g)
|
1997-04-16 22:13:18 +00:00
|
|
|
group (gnus-info-group info)
|
|
|
|
params (gnus-info-params info)
|
2007-10-28 09:18:39 +00:00
|
|
|
unread (gnus-group-unread group))
|
2004-09-04 13:13:48 +00:00
|
|
|
(when not-in-list
|
|
|
|
(setq not-in-list (delete group not-in-list)))
|
|
|
|
(when (gnus-group-prepare-logic
|
|
|
|
group
|
2009-12-02 00:48:21 +00:00
|
|
|
(and (or unread ; This group might be unchecked
|
|
|
|
predicate) ; Check if this group should be listed
|
2004-09-04 13:13:48 +00:00
|
|
|
(or (not (stringp regexp))
|
|
|
|
(string-match regexp group))
|
|
|
|
(<= (setq clevel (gnus-info-level info)) level)
|
|
|
|
(>= clevel lowest)
|
|
|
|
(cond
|
|
|
|
((functionp predicate)
|
|
|
|
(funcall predicate info))
|
|
|
|
(predicate t) ; We list all groups?
|
|
|
|
(t
|
|
|
|
(or
|
2011-11-27 10:17:40 -08:00
|
|
|
(if (eq unread t) ; Inactive?
|
2004-09-04 13:13:48 +00:00
|
|
|
gnus-group-list-inactive-groups
|
2011-11-24 23:14:48 -08:00
|
|
|
; We list inactive
|
2009-12-02 00:48:21 +00:00
|
|
|
(and (numberp unread) (> unread 0)))
|
2004-09-04 13:13:48 +00:00
|
|
|
; We list groups with unread articles
|
|
|
|
(and gnus-list-groups-with-ticked-articles
|
|
|
|
(cdr (assq 'tick (gnus-info-marks info))))
|
2011-11-19 23:30:16 -08:00
|
|
|
; And groups with ticked articles
|
2004-09-04 13:13:48 +00:00
|
|
|
;; Check for permanent visibility.
|
|
|
|
(and gnus-permanently-visible-groups
|
|
|
|
(string-match gnus-permanently-visible-groups
|
|
|
|
group))
|
2017-05-15 17:26:16 +08:00
|
|
|
;; Marked groups are always visible.
|
|
|
|
(member group gnus-group-marked)
|
2004-09-04 13:13:48 +00:00
|
|
|
(memq 'visible params)
|
|
|
|
(cdr (assq 'visible params)))))))
|
|
|
|
(gnus-group-insert-group-line
|
|
|
|
group (gnus-info-level info)
|
|
|
|
(gnus-info-marks info) unread (gnus-info-method info)))))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
;; List dead groups.
|
2004-09-04 13:13:48 +00:00
|
|
|
(when (or gnus-group-listed-groups
|
|
|
|
(and (>= level gnus-level-zombie)
|
|
|
|
(<= lowest gnus-level-zombie)))
|
|
|
|
(gnus-group-prepare-flat-list-dead
|
2021-01-30 00:35:24 -05:00
|
|
|
(setq gnus-zombie-list (sort gnus-zombie-list #'string<))
|
2004-09-04 13:13:48 +00:00
|
|
|
gnus-level-zombie ?Z
|
|
|
|
regexp))
|
|
|
|
(when not-in-list
|
|
|
|
(dolist (group gnus-zombie-list)
|
|
|
|
(setq not-in-list (delete group not-in-list))))
|
|
|
|
(when (or gnus-group-listed-groups
|
|
|
|
(and (>= level gnus-level-killed) (<= lowest gnus-level-killed)))
|
|
|
|
(gnus-group-prepare-flat-list-dead
|
2016-02-13 17:33:25 +11:00
|
|
|
(cl-union
|
2004-09-04 13:13:48 +00:00
|
|
|
not-in-list
|
2021-01-30 00:35:24 -05:00
|
|
|
(setq gnus-killed-list (sort gnus-killed-list #'string<))
|
2015-12-23 23:08:55 +00:00
|
|
|
:test 'equal)
|
2004-09-04 13:13:48 +00:00
|
|
|
gnus-level-killed ?K regexp))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(gnus-group-set-mode-line)
|
2004-09-04 13:13:48 +00:00
|
|
|
(setq gnus-group-list-mode (cons level predicate))
|
1999-02-20 14:05:57 +00:00
|
|
|
(gnus-run-hooks 'gnus-group-prepare-hook)
|
1997-04-16 22:13:18 +00:00
|
|
|
t))
|
|
|
|
|
|
|
|
(defun gnus-group-prepare-flat-list-dead (groups level mark regexp)
|
|
|
|
;; List zombies and killed lists somewhat faster, which was
|
|
|
|
;; suggested by Jack Vinson <vinson@unagi.cis.upenn.edu>. It does
|
|
|
|
;; this by ignoring the group format specification altogether.
|
2019-04-11 17:24:36 +01:00
|
|
|
(if (nthcdr gnus-group-listing-limit groups)
|
|
|
|
(dolist (group groups)
|
2004-09-04 13:13:48 +00:00
|
|
|
(when (gnus-group-prepare-logic
|
|
|
|
group
|
2019-04-11 17:24:36 +01:00
|
|
|
(cond ((not regexp))
|
|
|
|
((stringp regexp) (string-match-p regexp group))
|
|
|
|
((functionp regexp) (funcall regexp group))))
|
|
|
|
(add-text-properties
|
|
|
|
(point) (prog1 (1+ (point))
|
2018-11-16 12:53:56 -08:00
|
|
|
(insert " " mark " *: " group
|
2019-04-11 17:24:36 +01:00
|
|
|
"\n"))
|
|
|
|
(list 'gnus-group group
|
|
|
|
'gnus-unread t
|
|
|
|
'gnus-level level))))
|
|
|
|
(dolist (group groups)
|
|
|
|
(when (gnus-group-prepare-logic
|
|
|
|
group
|
|
|
|
(cond ((not regexp))
|
|
|
|
((stringp regexp) (string-match-p regexp group))
|
|
|
|
((functionp regexp) (funcall regexp group))))
|
|
|
|
(gnus-group-insert-group-line
|
|
|
|
group level nil
|
|
|
|
(let ((active (gnus-active group)))
|
|
|
|
(and active
|
|
|
|
(if (zerop (cdr active))
|
|
|
|
0
|
|
|
|
(- (cdr active) (car active) -1))))
|
|
|
|
(gnus-method-simplify (gnus-find-method-for-group group)))))))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-update-group-line ()
|
|
|
|
"Update the current line in the group buffer."
|
|
|
|
(let* ((buffer-read-only nil)
|
|
|
|
(group (gnus-group-group-name))
|
2007-10-28 09:18:39 +00:00
|
|
|
(entry (and group (gnus-group-entry group)))
|
1997-04-16 22:13:18 +00:00
|
|
|
gnus-group-indentation)
|
|
|
|
(when group
|
|
|
|
(and entry
|
|
|
|
(not (gnus-ephemeral-group-p group))
|
|
|
|
(gnus-dribble-enter
|
|
|
|
(concat "(gnus-group-set-info '"
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(gnus-prin1-to-string (nth 1 entry))
|
2011-06-10 00:10:24 +00:00
|
|
|
")")
|
|
|
|
(concat "^(gnus-group-set-info '(\"" (regexp-quote group) "\"")))
|
1997-04-16 22:13:18 +00:00
|
|
|
(setq gnus-group-indentation (gnus-group-group-indentation))
|
|
|
|
(gnus-delete-line)
|
|
|
|
(gnus-group-insert-group-line-info group)
|
|
|
|
(forward-line -1)
|
|
|
|
(gnus-group-position-point))))
|
|
|
|
|
|
|
|
(defun gnus-group-insert-group-line-info (group)
|
|
|
|
"Insert GROUP on the current line."
|
2007-10-28 09:18:39 +00:00
|
|
|
(let ((entry (gnus-group-entry group))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-indentation (gnus-group-group-indentation))
|
|
|
|
active info)
|
|
|
|
(if entry
|
|
|
|
(progn
|
|
|
|
;; (Un)subscribed group.
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(setq info (nth 1 entry))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-insert-group-line
|
|
|
|
group (gnus-info-level info) (gnus-info-marks info)
|
|
|
|
(or (car entry) t) (gnus-info-method info)))
|
|
|
|
;; This group is dead.
|
|
|
|
(gnus-group-insert-group-line
|
|
|
|
group
|
|
|
|
(if (member group gnus-zombie-list) gnus-level-zombie gnus-level-killed)
|
|
|
|
nil
|
|
|
|
(if (setq active (gnus-active group))
|
|
|
|
(if (zerop (cdr active))
|
|
|
|
0
|
|
|
|
(- (1+ (cdr active)) (car active)))
|
|
|
|
nil)
|
2004-09-04 13:13:48 +00:00
|
|
|
(gnus-method-simplify (gnus-find-method-for-group group))))))
|
|
|
|
|
|
|
|
(defun gnus-number-of-unseen-articles-in-group (group)
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(let* ((info (nth 1 (gnus-group-entry group)))
|
2004-09-04 13:13:48 +00:00
|
|
|
(marked (gnus-info-marks info))
|
|
|
|
(seen (cdr (assq 'seen marked)))
|
|
|
|
(active (gnus-active group)))
|
|
|
|
(if (not active)
|
|
|
|
0
|
2022-01-17 12:40:43 +01:00
|
|
|
(length (range-uncompress
|
|
|
|
(range-difference
|
|
|
|
(range-difference (list active) (gnus-info-read info))
|
2004-09-04 13:13:48 +00:00
|
|
|
seen))))))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
2006-04-17 18:26:22 +00:00
|
|
|
;; Moving through the Group buffer (in topic mode) e.g. with C-n doesn't
|
2006-04-18 02:14:00 +00:00
|
|
|
;; update the state (enabled/disabled) of the icon `gnus-group-describe-group'
|
|
|
|
;; automatically. After `C-l' the state is correct. See the following report
|
|
|
|
;; on emacs-devel
|
2006-04-17 18:26:22 +00:00
|
|
|
;; <http://thread.gmane.org/v9acdmrcse.fsf@marauder.physik.uni-ulm.de>:
|
|
|
|
;; From: Reiner Steib
|
|
|
|
;; Subject: tool bar icons not updated according to :active condition
|
|
|
|
;; Newsgroups: gmane.emacs.devel
|
|
|
|
;; Date: Mon, 23 Jan 2006 19:59:13 +0100
|
|
|
|
;; Message-ID: <v9acdmrcse.fsf@marauder.physik.uni-ulm.de>
|
|
|
|
|
2016-02-13 16:58:25 +11:00
|
|
|
;; Using `redraw-frame' (see `gnus-tool-bar-update') in Emacs might
|
|
|
|
;; be confusing, so maybe we shouldn't call it by default.
|
|
|
|
(defcustom gnus-group-update-tool-bar (and (boundp 'tool-bar-mode)
|
|
|
|
tool-bar-mode)
|
2006-03-08 14:27:20 +00:00
|
|
|
"Force updating the group buffer tool bar."
|
|
|
|
:group 'gnus-group
|
|
|
|
:version "22.1"
|
2006-04-02 01:08:04 +00:00
|
|
|
:initialize 'custom-initialize-default
|
|
|
|
:set (lambda (symbol value)
|
|
|
|
(set-default symbol value)
|
|
|
|
(when (gnus-alive-p)
|
|
|
|
(with-current-buffer gnus-group-buffer
|
|
|
|
;; FIXME: Is there a better way to redraw the group buffer?
|
|
|
|
(gnus-group-get-new-news 0))))
|
2006-03-08 14:27:20 +00:00
|
|
|
:type 'boolean)
|
|
|
|
|
2021-01-31 17:32:11 -05:00
|
|
|
(defun gnus-group-insert-group-line (group level marked number method)
|
1997-04-16 22:13:18 +00:00
|
|
|
"Insert a group line in the group buffer."
|
* lisp/gnus: Use lexical-binding in all the files
* lisp/gnus/gnus-group.el (features): Use `dlet`.
(gnus-tmp-level, gnus-tmp-marked, gnus-tmp-group): Declare vars.
(gnus-group-insert-group-line): Bind dynbound vars via `let` rather
than as formal args. Bind `number` as dynbound.
(gnus-visual, gnus-score-find-score-files-function)
(gnus-home-score-file, gnus-apply-kill-hook)
(gnus-summary-expunge-below): Declare vars.
(gnus-group-restart, gnus-group-list-plus): Fix `interactive` spec
since the arg is unused.
* lisp/gnus/mail-source.el (mail-source-bind, mail-source-bind-common):
Use `dlet` and suppress the warnings about the non-prefixed dynbound vars.
(mail-source-set-1): Remove unused var `auth-info`.
(mail-source-call-script): Remove unused var `background`.
(mail-source-fetch-pop, mail-source-check-pop): Bind pop3 vars with `dlet`.
* lisp/gnus/gnus-int.el (mail-source-plugged, gnus-inhibit-demon):
Declare vars.
(gnus-server-opened, gnus-status-message)
(gnus-open-server, gnus-close-server, gnus-request-list)
(gnus-finish-retrieve-group-infos, gnus-retrieve-group-data-early)
(gnus-request-list-newsgroups, gnus-request-newgroups)
(gnus-request-regenerate, gnus-request-compact, gnus-request-group)
(gnus-retrieve-groups, gnus-request-post, gnus-request-expunge-group)
(gnus-request-scan, gnus-request-update-info, gnus-request-marks)
(gnus-request-accept-article, gnus-request-create-group)
(gnus-asynchronous-p, gnus-remove-denial):
Bind `gnus-command-method` via `let` rather than as formal args.
* lisp/gnus/gnus-topic.el (gnus-topic-insert-topic-line):
Pass documented vars to eval for `gnus-topic-line-format-spec`.
* lisp/gnus/message.el (message-yank-original): Use `cl-progv` rather
than `eval` to bind the vars from `message-cite-style`.
* lisp/gnus/mml.el (mml-parse-1): Use `apply` instead of `eval`.
(gnus-newsgroup-name, gnus-displaying-mime, gnus-newsgroup-name)
(gnus-article-prepare-hook, gnus-newsgroup-charset)
(gnus-original-article-buffer, gnus-message-buffer)
(message-this-is-news, message-this-is-mail): Declare vars.
* lisp/gnus/deuglify.el (gnus-outlook-rearrange-article): Remove unused
var `cite-marks`.
* lisp/gnus/gnus-art.el (ansi-color-context-region): Declare var.
(gnus-mime-display-attachment-buttons-in-header): Move declaration
before first use.
(gnus-mime-display-alternative): Remove unused var `from`.
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-list): Remove unused
var `start` `end`.
* lisp/gnus/gnus-cache.el (gnus-article-decode-hook)
(nnml-generate-active-function): Declare var.
* lisp/gnus/gnus-cite.el (gnus-message-citation-mode): Remove unused
var `keywords`.
* lisp/gnus/gnus-cloud.el (gnus-cloud-encode-data): Remove unused var
`cipher`.
(gnus-cloud-ensure-cloud-group): Remove unused var `method`.
* lisp/gnus/gnus-delay.el (gnus-delay-article): Remove unused var `days`.
* lisp/gnus/gnus-html.el (gnus-html-wash-images): Remove unused vars
`tag`, `string`, and `images`.
(gnus-html-wash-tags): Remove unused vars `string` and `images`.
* lisp/gnus/gnus-msg.el (gnus-msg-mail): Remove unused var `group-name`.
(gnus-group-mail, gnus-group-news, gnus-summary-mail-other-window)
(gnus-summary-news-other-window):
Remove unused vars `group` and `buffer`.
(gnus-configure-posting-styles): Remove unused vars `style` and `attribute`.
* lisp/gnus/gnus-picon.el (gnus-picon-find-face): Remove unused vars
`database`, `directory`, and `instance`.
(gnus-picon-transform-newsgroups): Remove unused var `point`.
* lisp/gnus/gnus-range.el (gnus-range-difference): Remove unused var `safe`.
* lisp/gnus/gnus-score.el (gnus-score-load-file): Remove unused var
`score-fn`.
* lisp/gnus/gnus-sum.el (message-options-set-recipient): Declare var.
* lisp/gnus/gnus-undo.el (gnus-undo): Fix docstring lie.
* lisp/gnus/gnus-util.el (print-string-length)
(iswitchb-make-buflist-hook): Declare vars.
(gnus-emacs-version): Remove unused var `codename`.
(gnus-rename-file): Remove unused vars `old-name` and `new-name`.
* lisp/gnus/gnus-uu.el (gnus-uu-yenc-article): Remove unused var
`start-char`.
(gnus-asynchronous): Declare var.
* lisp/gnus/mm-partial.el (gnus-displaying-mime): Declare var.
(mm-inline-partial): Remove unused var `buffer`.
* lisp/gnus/mm-view.el (w3m-force-redisplay, w3m-safe-url-regexp)
(gnus-displaying-mime, gnus-original-article-buffer)
(gnus-article-prepare-hook): Declare vars.
* lisp/gnus/mml-smime.el (mml-smime-epg-encrypt): Remove unused var
`boundary`.
(mml-smime-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/mml1991.el (pgg-text-mode): Declare var.
* lisp/gnus/mml2015.el (pgg-text-mode): Declare var.
(mml2015-pgg-decrypt): Remove unused var `result`.
(mml2015-epg-key-image-to-string): Remove unused var `error`.
(mml2015-epg-decrypt): Remove unused var `result`.
(mml2015-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/nnbabyl.el (nnml-current-directory): Declare var.
* lisp/gnus/nndiary.el (nndiary-files): Move declaration before first use.
* lisp/gnus/nnfolder.el (nnfolder-request-accept-article):
Remove unused var `buf`.
* lisp/gnus/nnmail.el (nnmail-parse-active): Remove unused var `err`.
* lisp/gnus/nnmairix.el (nnmairix-request-group): Remove unused var `args`.
(nnmairix-request-create-group): Remove unused var `info`.
(nnmairix-request-list): Remove unused var `folder`.
(nnmairix-request-set-mark): Remove unused var `propto`.
(nnmairix-request-set-mark): Remove unused vars `number` and `method`.
(nnmairix-close-group): Remove unused var `method`.
(nnmairix-create-search-group-from-message): Remove unused var `cq`.
(nnmairix-create-server-and-default-group): Remove unused var `create`.
(nnmairix-purge-old-groups): Remove unused var `folder`.
(nnmairix-remove-tick-mark-original-article, nnmairix-get-valid-servers):
Remove unused var `cur`.
(nnmairix-replace-group-and-numbers): Remove unused var `header`.
(nnmairix-goto-original-article): Remove unused var `rval`.
(nnmairix-widget-create-query): Remove unused var `allwidgets`.
* lisp/gnus/nnmbox.el (nnml-current-directory): Declare var.
* lisp/gnus/nnmh.el (nnmh-toplev): Move declaration before first use.
(nnmh-request-list-1): Remove unused var `rdir`.
* lisp/gnus/nnml.el (nnml-generate-nov-file): Remove unused var `file`.
* lisp/gnus/nnrss.el (nnrss-request-article): Remove unused var `post`.
(nnrss-request-article): Remove unused var `fn`.
(nnrss-check-group): Remove unused var `rdf-ns`.
* lisp/gnus/nnweb.el (nnweb-request-article): Remove unused var `active`.
(nnweb-google-parse-1): Remove unused var `Score`.
* lisp/gnus/spam-stat.el (spam-stat-error-holder): Remove var.
(spam-stat-buffer-words-with-scores): Remove unused var `word`.
(spam-stat-score-buffer): Remove unused var `spam-stat-error-holder`.
(spam-stat-split-fancy): Use `err` instead of `spam-stat-error-holder`.
* lisp/gnus/spam-wash.el (spam-wash): Remove unused var `handle`.
* lisp/gnus/spam.el (spam-copy-or-move-routine): Remove unused vars
`article` and `mark`.
(spam-register-routine): Remove unused var `article`.
(spam-log-undo-registration): Remove unused var `found`.
(spam-ifile-register-with-ifile): Remove unused var `parameters`.
(spam-check-stat): Remove unused vars `category` and `return`.
(spam-parse-list): Remove unused var `found`.
(spam-filelist-register-routine): Remove unused var `from`.
2021-01-30 18:44:00 -05:00
|
|
|
(with-suppressed-warnings ((lexical number))
|
|
|
|
(defvar number)) ;FIXME: Used in `gnus-group-line-format-alist'.
|
|
|
|
(let* ((number number)
|
|
|
|
(gnus-tmp-level level)
|
|
|
|
(gnus-tmp-marked marked)
|
|
|
|
(gnus-tmp-group group)
|
|
|
|
(gnus-tmp-method
|
2021-01-31 17:32:11 -05:00
|
|
|
(gnus-server-get-method gnus-tmp-group method))
|
2000-09-19 13:37:09 +00:00
|
|
|
(gnus-tmp-active (gnus-active gnus-tmp-group))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-tmp-number-total
|
|
|
|
(if gnus-tmp-active
|
|
|
|
(1+ (- (cdr gnus-tmp-active) (car gnus-tmp-active)))
|
|
|
|
0))
|
|
|
|
(gnus-tmp-number-of-unread
|
|
|
|
(if (numberp number) (int-to-string (max 0 number))
|
|
|
|
"*"))
|
|
|
|
(gnus-tmp-number-of-read
|
|
|
|
(if (numberp number)
|
|
|
|
(int-to-string (max 0 (- gnus-tmp-number-total number)))
|
|
|
|
"*"))
|
|
|
|
(gnus-tmp-subscribed
|
2019-04-11 17:24:36 +01:00
|
|
|
(cond ((<= gnus-tmp-level gnus-level-subscribed) ?\s)
|
1997-04-16 22:13:18 +00:00
|
|
|
((<= gnus-tmp-level gnus-level-unsubscribed) ?U)
|
|
|
|
((= gnus-tmp-level gnus-level-zombie) ?Z)
|
|
|
|
(t ?K)))
|
2003-02-04 13:24:35 +00:00
|
|
|
(gnus-tmp-qualified-group
|
2018-11-16 12:53:56 -08:00
|
|
|
(gnus-group-real-name gnus-tmp-group))
|
2004-09-04 13:13:48 +00:00
|
|
|
(gnus-tmp-comment
|
|
|
|
(or (gnus-group-get-parameter gnus-tmp-group 'comment t)
|
|
|
|
gnus-tmp-group))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-tmp-newsgroup-description
|
|
|
|
(if gnus-description-hashtb
|
2018-11-16 12:53:56 -08:00
|
|
|
(or (gethash gnus-tmp-group gnus-description-hashtb) "")
|
1997-04-16 22:13:18 +00:00
|
|
|
""))
|
|
|
|
(gnus-tmp-moderated
|
|
|
|
(if (and gnus-moderated-hashtb
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(gethash gnus-tmp-group gnus-moderated-hashtb))
|
2019-04-11 17:24:36 +01:00
|
|
|
?m ?\s))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-tmp-moderated-string
|
|
|
|
(if (eq gnus-tmp-moderated ?m) "(m)" ""))
|
2010-10-14 10:16:59 +00:00
|
|
|
(gnus-tmp-group-icon (gnus-group-get-icon gnus-tmp-group))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-tmp-news-server (or (cadr gnus-tmp-method) ""))
|
|
|
|
(gnus-tmp-news-method (or (car gnus-tmp-method) ""))
|
|
|
|
(gnus-tmp-news-method-string
|
|
|
|
(if gnus-tmp-method
|
|
|
|
(format "(%s:%s)" (car gnus-tmp-method)
|
* lisp/gnus: Misc simplifications found during conversion to lexical
* lisp/gnus/nnoo.el (noo-import-1, nnoo-define-skeleton-1): Use `dolist`.
(noo-map-functions, nnoo-define-basics): Directly emit the code rather than
going through an intermediate function; this also avoids the use of `eval`.
(noo-map-functions-1, nnoo-define-basics-1): Delete functions,
folded into their corresponding macro.
* lisp/gnus/gmm-utils.el (gmm-tool-bar-from-list): Demote `eval` to
`symbol-value`.
* lisp/gnus/gnus-art.el (gnus-button-handle-describe-key): Avoid `eval`
since `kbd` is a function nowadays.
(gnus-treat-part-number): Rename from `part-number`.
(gnus-treat-total-parts): Rename from `total-parts`.
(gnus-treat-article, gnus-treat-predicate): Adjust accordingly.
* lisp/gnus/gnus-cache.el (gnus-agent-load-alist): Use `declare-function`.
* lisp/gnus/gnus-group.el (gnus-cache-active-hashtb): Use `defvar`.
(gnus-group-iterate): Make it a normal function since lexical scoping
avoids the risk of name capture anyway.
(gnus-group-delete-articles): Actually use the `oldp` arg.
* lisp/gnus/gnus-html.el (gnus-html-wash-images): Fix debug message so
it's emitted after the `url` var it prints is actually initialized.
And avoid `setq` while we're at it.
* lisp/gnus/gnus-msg.el (gnus-group-mail, gnus-group-news)
(gnus-summary-mail-other-window, gnus-summary-news-other-window):
Merge `let`s using `let*`.
* lisp/gnus/gnus-spec.el (gnus-update-format-specifications):
Tighten the scope of `buffer`, and tighten a regexp.
(gnus-parse-simple-format): Reduce code duplication.
* lisp/gnus/gnus-start.el (gnus-child-mode): Don't `defvar` it since we
never use that variable and accordingly don't define it as a minor mode.
* lisp/gnus/gnus-util.el (gnus-byte-compile): Simplify so it obeys
`gnus-use-byte-compile` not just on the first call.
(iswitchb-minibuffer-setup): Declare.
* lisp/gnus/mail-source.el (mail-source-bind-1)
(mail-source-bind-common-1): Use `mapcar`.
(mail-source-set-common-1): Use `dolist`.
(display-time-event-handler): Declare.
* lisp/gnus/mml-smime.el (mml-smime-epg-verify): Reduce code duplication.
* lisp/gnus/mml.el (mml-parse-1): Reduce code duplication.
* lisp/gnus/mml2015.el (mml2015-epg-verify): Reduce code duplication.
* lisp/gnus/nnmail.el (nnmail-get-split-group): Tighten regexp.
(nnmail-split-it): Reduce code duplication.
* lisp/gnus/nnweb.el (nnweb-request-article): Avoid `setq`.
* lisp/gnus/spam.el (BBDB): Use the `noerror` arg of `require`, and
define all the functions for BBDB regardless if the require succeeded.
(spam-exists-in-BBDB-p): Don't inline, not worth it.
2021-01-30 16:45:25 -05:00
|
|
|
(cadr gnus-tmp-method))
|
|
|
|
""))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-tmp-marked-mark
|
|
|
|
(if (and (numberp number)
|
|
|
|
(zerop number)
|
|
|
|
(cdr (assq 'tick gnus-tmp-marked)))
|
2019-04-11 17:24:36 +01:00
|
|
|
?* ?\s))
|
2004-09-04 13:13:48 +00:00
|
|
|
(gnus-tmp-summary-live
|
|
|
|
(if (and (not gnus-group-is-exiting-p)
|
|
|
|
(gnus-buffer-live-p (gnus-summary-buffer-name
|
|
|
|
gnus-tmp-group)))
|
2019-04-11 17:24:36 +01:00
|
|
|
?* ?\s))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-tmp-process-marked
|
|
|
|
(if (member gnus-tmp-group gnus-group-marked)
|
2019-04-11 17:24:36 +01:00
|
|
|
gnus-process-mark ?\s))
|
1997-04-16 22:13:18 +00:00
|
|
|
(buffer-read-only nil)
|
2006-03-08 14:27:20 +00:00
|
|
|
beg end
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
gnus-tmp-header) ; passed as parameter to user-funcs.
|
1997-04-16 22:13:18 +00:00
|
|
|
(beginning-of-line)
|
2006-03-08 14:27:20 +00:00
|
|
|
(setq beg (point))
|
2016-02-13 18:13:03 +11:00
|
|
|
(add-text-properties
|
1997-04-16 22:13:18 +00:00
|
|
|
(point)
|
|
|
|
(prog1 (1+ (point))
|
|
|
|
;; Insert the text.
|
* lisp/gnus: Use lexical-binding in all the files
* lisp/gnus/gnus-group.el (features): Use `dlet`.
(gnus-tmp-level, gnus-tmp-marked, gnus-tmp-group): Declare vars.
(gnus-group-insert-group-line): Bind dynbound vars via `let` rather
than as formal args. Bind `number` as dynbound.
(gnus-visual, gnus-score-find-score-files-function)
(gnus-home-score-file, gnus-apply-kill-hook)
(gnus-summary-expunge-below): Declare vars.
(gnus-group-restart, gnus-group-list-plus): Fix `interactive` spec
since the arg is unused.
* lisp/gnus/mail-source.el (mail-source-bind, mail-source-bind-common):
Use `dlet` and suppress the warnings about the non-prefixed dynbound vars.
(mail-source-set-1): Remove unused var `auth-info`.
(mail-source-call-script): Remove unused var `background`.
(mail-source-fetch-pop, mail-source-check-pop): Bind pop3 vars with `dlet`.
* lisp/gnus/gnus-int.el (mail-source-plugged, gnus-inhibit-demon):
Declare vars.
(gnus-server-opened, gnus-status-message)
(gnus-open-server, gnus-close-server, gnus-request-list)
(gnus-finish-retrieve-group-infos, gnus-retrieve-group-data-early)
(gnus-request-list-newsgroups, gnus-request-newgroups)
(gnus-request-regenerate, gnus-request-compact, gnus-request-group)
(gnus-retrieve-groups, gnus-request-post, gnus-request-expunge-group)
(gnus-request-scan, gnus-request-update-info, gnus-request-marks)
(gnus-request-accept-article, gnus-request-create-group)
(gnus-asynchronous-p, gnus-remove-denial):
Bind `gnus-command-method` via `let` rather than as formal args.
* lisp/gnus/gnus-topic.el (gnus-topic-insert-topic-line):
Pass documented vars to eval for `gnus-topic-line-format-spec`.
* lisp/gnus/message.el (message-yank-original): Use `cl-progv` rather
than `eval` to bind the vars from `message-cite-style`.
* lisp/gnus/mml.el (mml-parse-1): Use `apply` instead of `eval`.
(gnus-newsgroup-name, gnus-displaying-mime, gnus-newsgroup-name)
(gnus-article-prepare-hook, gnus-newsgroup-charset)
(gnus-original-article-buffer, gnus-message-buffer)
(message-this-is-news, message-this-is-mail): Declare vars.
* lisp/gnus/deuglify.el (gnus-outlook-rearrange-article): Remove unused
var `cite-marks`.
* lisp/gnus/gnus-art.el (ansi-color-context-region): Declare var.
(gnus-mime-display-attachment-buttons-in-header): Move declaration
before first use.
(gnus-mime-display-alternative): Remove unused var `from`.
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-list): Remove unused
var `start` `end`.
* lisp/gnus/gnus-cache.el (gnus-article-decode-hook)
(nnml-generate-active-function): Declare var.
* lisp/gnus/gnus-cite.el (gnus-message-citation-mode): Remove unused
var `keywords`.
* lisp/gnus/gnus-cloud.el (gnus-cloud-encode-data): Remove unused var
`cipher`.
(gnus-cloud-ensure-cloud-group): Remove unused var `method`.
* lisp/gnus/gnus-delay.el (gnus-delay-article): Remove unused var `days`.
* lisp/gnus/gnus-html.el (gnus-html-wash-images): Remove unused vars
`tag`, `string`, and `images`.
(gnus-html-wash-tags): Remove unused vars `string` and `images`.
* lisp/gnus/gnus-msg.el (gnus-msg-mail): Remove unused var `group-name`.
(gnus-group-mail, gnus-group-news, gnus-summary-mail-other-window)
(gnus-summary-news-other-window):
Remove unused vars `group` and `buffer`.
(gnus-configure-posting-styles): Remove unused vars `style` and `attribute`.
* lisp/gnus/gnus-picon.el (gnus-picon-find-face): Remove unused vars
`database`, `directory`, and `instance`.
(gnus-picon-transform-newsgroups): Remove unused var `point`.
* lisp/gnus/gnus-range.el (gnus-range-difference): Remove unused var `safe`.
* lisp/gnus/gnus-score.el (gnus-score-load-file): Remove unused var
`score-fn`.
* lisp/gnus/gnus-sum.el (message-options-set-recipient): Declare var.
* lisp/gnus/gnus-undo.el (gnus-undo): Fix docstring lie.
* lisp/gnus/gnus-util.el (print-string-length)
(iswitchb-make-buflist-hook): Declare vars.
(gnus-emacs-version): Remove unused var `codename`.
(gnus-rename-file): Remove unused vars `old-name` and `new-name`.
* lisp/gnus/gnus-uu.el (gnus-uu-yenc-article): Remove unused var
`start-char`.
(gnus-asynchronous): Declare var.
* lisp/gnus/mm-partial.el (gnus-displaying-mime): Declare var.
(mm-inline-partial): Remove unused var `buffer`.
* lisp/gnus/mm-view.el (w3m-force-redisplay, w3m-safe-url-regexp)
(gnus-displaying-mime, gnus-original-article-buffer)
(gnus-article-prepare-hook): Declare vars.
* lisp/gnus/mml-smime.el (mml-smime-epg-encrypt): Remove unused var
`boundary`.
(mml-smime-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/mml1991.el (pgg-text-mode): Declare var.
* lisp/gnus/mml2015.el (pgg-text-mode): Declare var.
(mml2015-pgg-decrypt): Remove unused var `result`.
(mml2015-epg-key-image-to-string): Remove unused var `error`.
(mml2015-epg-decrypt): Remove unused var `result`.
(mml2015-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/nnbabyl.el (nnml-current-directory): Declare var.
* lisp/gnus/nndiary.el (nndiary-files): Move declaration before first use.
* lisp/gnus/nnfolder.el (nnfolder-request-accept-article):
Remove unused var `buf`.
* lisp/gnus/nnmail.el (nnmail-parse-active): Remove unused var `err`.
* lisp/gnus/nnmairix.el (nnmairix-request-group): Remove unused var `args`.
(nnmairix-request-create-group): Remove unused var `info`.
(nnmairix-request-list): Remove unused var `folder`.
(nnmairix-request-set-mark): Remove unused var `propto`.
(nnmairix-request-set-mark): Remove unused vars `number` and `method`.
(nnmairix-close-group): Remove unused var `method`.
(nnmairix-create-search-group-from-message): Remove unused var `cq`.
(nnmairix-create-server-and-default-group): Remove unused var `create`.
(nnmairix-purge-old-groups): Remove unused var `folder`.
(nnmairix-remove-tick-mark-original-article, nnmairix-get-valid-servers):
Remove unused var `cur`.
(nnmairix-replace-group-and-numbers): Remove unused var `header`.
(nnmairix-goto-original-article): Remove unused var `rval`.
(nnmairix-widget-create-query): Remove unused var `allwidgets`.
* lisp/gnus/nnmbox.el (nnml-current-directory): Declare var.
* lisp/gnus/nnmh.el (nnmh-toplev): Move declaration before first use.
(nnmh-request-list-1): Remove unused var `rdir`.
* lisp/gnus/nnml.el (nnml-generate-nov-file): Remove unused var `file`.
* lisp/gnus/nnrss.el (nnrss-request-article): Remove unused var `post`.
(nnrss-request-article): Remove unused var `fn`.
(nnrss-check-group): Remove unused var `rdf-ns`.
* lisp/gnus/nnweb.el (nnweb-request-article): Remove unused var `active`.
(nnweb-google-parse-1): Remove unused var `Score`.
* lisp/gnus/spam-stat.el (spam-stat-error-holder): Remove var.
(spam-stat-buffer-words-with-scores): Remove unused var `word`.
(spam-stat-score-buffer): Remove unused var `spam-stat-error-holder`.
(spam-stat-split-fancy): Use `err` instead of `spam-stat-error-holder`.
* lisp/gnus/spam-wash.el (spam-wash): Remove unused var `handle`.
* lisp/gnus/spam.el (spam-copy-or-move-routine): Remove unused vars
`article` and `mark`.
(spam-register-routine): Remove unused var `article`.
(spam-log-undo-registration): Remove unused var `found`.
(spam-ifile-register-with-ifile): Remove unused var `parameters`.
(spam-check-stat): Remove unused vars `category` and `return`.
(spam-parse-list): Remove unused var `found`.
(spam-filelist-register-routine): Remove unused var `from`.
2021-01-30 18:44:00 -05:00
|
|
|
(eval gnus-group-line-format-spec t))
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
`(gnus-group ,gnus-tmp-group
|
1997-04-16 22:13:18 +00:00
|
|
|
gnus-unread ,(if (numberp number)
|
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-339
Merge from gnus--rel--5.10
Patches applied:
* gnus--rel--5.10 (patch 76)
- Update from CVS
2005-05-30 Reiner Steib <Reiner.Steib@gmx.de>
* lisp/gnus/gnus-agent.el (gnus-agent-regenerate-group)
(gnus-agent-fetch-articles): Replace `string-to-int' by
`string-to-number'.
* lisp/gnus/gnus-art.el (gnus-button-fetch-group): Ditto.
* lisp/gnus/gnus-cache.el (gnus-cache-generate-active)
(gnus-cache-articles-in-group): Ditto.
* lisp/gnus/gnus-group.el (gnus-group-set-current-level)
(gnus-group-insert-group-line): Ditto.
* lisp/gnus/gnus-score.el (gnus-score-set-expunge-below)
(gnus-score-set-mark-below, gnus-summary-score-effect)
(gnus-summary-score-entry): Ditto.
* lisp/gnus/gnus-soup.el (gnus-soup-send-packet, gnus-soup-parse-areas)
(gnus-soup-pack): Ditto.
* lisp/gnus/gnus-spec.el (gnus-xmas-format): Ditto.
* lisp/gnus/gnus-start.el (gnus-newsrc-to-gnus-format): Ditto.
* lisp/gnus/gnus-sum.el (gnus-create-xref-hashtb): Ditto.
* lisp/gnus/gnus-uu.el (gnus-uu-expand-numbers): Ditto.
* lisp/gnus/nnbabyl.el (nnbabyl-article-group-number): Ditto.
* lisp/gnus/nndb.el (nndb-get-remote-expire-response): Ditto.
* lisp/gnus/nndiary.el (nndiary-parse-schedule-value)
(nndiary-string-to-number, nndiary-request-replace-article)
(nndiary-request-article): Ditto.
* lisp/gnus/nndoc.el (nndoc-rnews-body-end, nndoc-mbox-body-end): Ditto.
* lisp/gnus/nndraft.el (nndraft-articles, nndraft-request-group): Ditto.
* lisp/gnus/nneething.el (nneething-make-head): Ditto.
* lisp/gnus/nnfolder.el (nnfolder-request-article)
(nnfolder-retrieve-headers): Ditto.
* lisp/gnus/nnheader.el (nnheader-file-to-number): Ditto.
* lisp/gnus/nnkiboze.el (nnkiboze-request-article): Ditto.
* lisp/gnus/nnmail.el (nnmail-process-unix-mail-format)
(nnmail-process-babyl-mail-format): Ditto.
* lisp/gnus/nnmbox.el (nnmbox-read-mbox, nnmbox-article-group-number): Ditto.
* lisp/gnus/nnmh.el (nnmh-update-gnus-unreads, nnmh-active-number)
(nnmh-request-create-group, nnmh-request-list-1)
(nnmh-request-group, nnmh-request-article): Ditto.
* lisp/gnus/nnml.el (nnml-request-replace-article, nnml-request-article): Ditto.
* lisp/gnus/nnrss.el (nnrss-find-rss-via-syndic8): Ditto.
* lisp/gnus/nnsoup.el (nnsoup-make-active): Ditto.
* lisp/gnus/nnspool.el (nnspool-find-id, nnspool-request-group): Ditto.
* lisp/gnus/nntp.el (nntp-find-group-and-number)
(nntp-retrieve-headers-with-xover): Ditto.
* lisp/gnus/pgg-gpg.el (pgg-gpg-snarf-keys-region): Ditto.
* lisp/gnus/pgg-parse.el (pgg-read-body, pgg-read-bytes)
(pgg-format-key-identifier): Ditto.
* lisp/gnus/pop3.el (pop3-last, pop3-stat): Ditto.
* lisp/gnus/qp.el (quoted-printable-decode-region): Ditto.
* lisp/gnus/spam-report.el (spam-report-url-ping-mm-url): Use format instead
of concat.
2005-05-30 17:13:58 +00:00
|
|
|
(string-to-number gnus-tmp-number-of-unread)
|
1997-04-16 22:13:18 +00:00
|
|
|
t)
|
|
|
|
gnus-marked ,gnus-tmp-marked-mark
|
|
|
|
gnus-indentation ,gnus-group-indentation
|
|
|
|
gnus-level ,gnus-tmp-level))
|
2006-03-08 14:27:20 +00:00
|
|
|
(setq end (point))
|
Deprecate `intangible' and `point-entered' properties
* lisp/emacs-lisp/cursor-sensor.el: New file.
* lisp/simple.el (pre-redisplay-functions): New hook.
(redisplay--pre-redisplay-functions): New function.
(pre-redisplay-function): Use it.
(minibuffer-avoid-prompt): Mark obsolete.
(redisplay--update-region-highlight): Adapt it to work as a function on
pre-redisplay-functions.
* lisp/cus-start.el (minibuffer-prompt-properties--setter): New fun.
(minibuffer-prompt-properties): Use it. Use cursor-intangible rather
than point-entered to make the prompt intangible.
* lisp/forms.el: Move `provide' calls to the end.
(forms-mode): Don't use `run-hooks' on a local var.
(forms--make-format, forms--make-format-elt-using-text-properties):
Use cursor-intangible rather than `intangible'.
(forms-mode): Enable cursor-intangible-mode.
* lisp/isearch.el (isearch-mode): Use defvar-local.
(cursor-sensor-inhibit): Declare.
(isearch-mode): Set cursor-sensor-inhibit.
(isearch-done): Set it back.
(isearch-open-overlay-temporary, isearch-open-necessary-overlays)
(isearch-close-unnecessary-overlays): Don't bother with `intangible'
any more.
* lisp/ses.el (ses-localvars): Remove `mode-line-process'.
(ses-sym-rowcol, ses-cell-value, ses-col-width, ses-col-printer):
Add Edebug spec.
(ses-goto-print, ses-print-cell, ses-adjust-print-width)
(ses-goto-data, ses-setup, ses-copy-region): Don't let-bind
inhibit-point-motion-hooks any more.
(ses--cell-at-pos, ses--curcell): New functions, extracted from
ses-set-curcell.
(ses-set-curcell): Use them.
(ses-print-cell, ses-setup): Use cursor-intangible instead of
`intangible'. Make sure cursor-intangible isn't sticky at BOB.
(ses-print-cell-new-width, ses-reprint-all, ses-recalculate-all):
Use ses--cell-at-pos.
(ses--mode-line-process, ses--cursor-sensor-highlight): New functions,
extracted from ses-command-hook. Make them work with multiple windows
displaying the same buffer.
(ses-mode): Use them via mode-line-process and pre-redisplay-functions.
Enable cursor-intangible-mode.
(ses-command-hook): Remove cell highlight and mode-line update code.
(ses-forward-or-insert, ses-copy-region-helper, ses-sort-column):
Update for new name of text-property holding the cell name.
(ses-rename-cell): Don't mess with mode-line-process.
* lisp/erc/erc-stamp.el (erc-add-timestamp): Use the new
cursor-sensor-functions property instead of point-entered.
(erc-insert-timestamp-right, erc-format-timestamp):
Use cursor-intangible rather than `intangible'.
(erc-munge-invisibility-spec): Use add-to-invisibility-spec and
remove-from-invisibility-spec. Enable cursor-intangible-mode and
cursor-sensor-mode if needed.
(erc-echo-timestamp): Adapt to calling convention of
cursor-sensor-functions.
(erc-insert-timestamp-right): Remove unused vars `current-window' and
`indent'.
* lisp/gnus/gnus-group.el (gnus-tmp-*): Declare.
(gnus-update-group-mark-positions): Remove unused `topic' var.
(gnus-group-insert-group-line): Remove unused var `header'.
(gnus-group--setup-tool-bar-update): New function.
(gnus-group-insert-group-line): Use it.
(gnus-group-update-eval-form): Declare local
dynamically-bound variables.
(gnus-group-unsubscribe-group): Use \` and \' to match string bounds.
* lisp/gnus/gnus-topic.el (gnus-topic-jump-to-topic)
(gnus-group-prepare-topics, gnus-topic-update-topic)
(gnus-topic-change-level, gnus-topic-catchup-articles)
(gnus-topic-remove-group, gnus-topic-delete, gnus-topic-indent):
Use inhibit-read-only.
(gnus-topic-prepare-topic): Use gnus-group--setup-tool-bar-update.
(gnus-topic-mode): Use define-minor-mode and derived-mode-p.
* lisp/textmodes/reftex-index.el (reftex-display-index):
Use cursor-intangible-mode if available.
(reftex-index-post-command-hook): Check cursor-intangible.
* lisp/textmodes/reftex-toc.el (reftex-toc):
Use cursor-intangible-mode if available.
(reftex-toc-recenter, reftex-toc-post-command-hook):
Check cursor-intangible.
* lisp/textmodes/sgml-mode.el: Use lexical-binding.
(sgml-tag): Use cursor-sensor-functions instead of point-entered.
(sgml-tags-invisible): Use with-silent-modifications and
inhibit-read-only. Enable cursor-sensor-mode.
(sgml-cursor-sensor): Rename from sgml-point-entered and adjust to
calling convention of cursor-sensor-functions.
* lisp/textmodes/table.el (table-cell-map-hook, table-load-hook)
(table-point-entered-cell-hook, table-point-left-cell-hook):
Don't autoload.
(table-cell-entered-state): Remove var.
(table--put-cell-point-entered/left-property)
(table--remove-cell-properties):
Use cursor-sensor-functions rather than point-entered/left.
(table--point-entered/left-cell-function): Merge
table--point-entered-cell-function and table--point-left-cell-function
and adjust to calling convention of cursor-sensor-functions.
2015-04-13 15:51:15 -04:00
|
|
|
(gnus-group--setup-tool-bar-update beg end)
|
2000-09-19 13:37:09 +00:00
|
|
|
(forward-line -1)
|
1997-04-16 22:13:18 +00:00
|
|
|
(when (inline (gnus-visual-p 'group-highlight 'highlight))
|
2010-09-23 00:30:37 +00:00
|
|
|
(gnus-group-highlight-line gnus-tmp-group beg end))
|
|
|
|
(gnus-run-hooks 'gnus-group-update-hook)
|
2010-10-29 11:24:23 +00:00
|
|
|
(forward-line)))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
Deprecate `intangible' and `point-entered' properties
* lisp/emacs-lisp/cursor-sensor.el: New file.
* lisp/simple.el (pre-redisplay-functions): New hook.
(redisplay--pre-redisplay-functions): New function.
(pre-redisplay-function): Use it.
(minibuffer-avoid-prompt): Mark obsolete.
(redisplay--update-region-highlight): Adapt it to work as a function on
pre-redisplay-functions.
* lisp/cus-start.el (minibuffer-prompt-properties--setter): New fun.
(minibuffer-prompt-properties): Use it. Use cursor-intangible rather
than point-entered to make the prompt intangible.
* lisp/forms.el: Move `provide' calls to the end.
(forms-mode): Don't use `run-hooks' on a local var.
(forms--make-format, forms--make-format-elt-using-text-properties):
Use cursor-intangible rather than `intangible'.
(forms-mode): Enable cursor-intangible-mode.
* lisp/isearch.el (isearch-mode): Use defvar-local.
(cursor-sensor-inhibit): Declare.
(isearch-mode): Set cursor-sensor-inhibit.
(isearch-done): Set it back.
(isearch-open-overlay-temporary, isearch-open-necessary-overlays)
(isearch-close-unnecessary-overlays): Don't bother with `intangible'
any more.
* lisp/ses.el (ses-localvars): Remove `mode-line-process'.
(ses-sym-rowcol, ses-cell-value, ses-col-width, ses-col-printer):
Add Edebug spec.
(ses-goto-print, ses-print-cell, ses-adjust-print-width)
(ses-goto-data, ses-setup, ses-copy-region): Don't let-bind
inhibit-point-motion-hooks any more.
(ses--cell-at-pos, ses--curcell): New functions, extracted from
ses-set-curcell.
(ses-set-curcell): Use them.
(ses-print-cell, ses-setup): Use cursor-intangible instead of
`intangible'. Make sure cursor-intangible isn't sticky at BOB.
(ses-print-cell-new-width, ses-reprint-all, ses-recalculate-all):
Use ses--cell-at-pos.
(ses--mode-line-process, ses--cursor-sensor-highlight): New functions,
extracted from ses-command-hook. Make them work with multiple windows
displaying the same buffer.
(ses-mode): Use them via mode-line-process and pre-redisplay-functions.
Enable cursor-intangible-mode.
(ses-command-hook): Remove cell highlight and mode-line update code.
(ses-forward-or-insert, ses-copy-region-helper, ses-sort-column):
Update for new name of text-property holding the cell name.
(ses-rename-cell): Don't mess with mode-line-process.
* lisp/erc/erc-stamp.el (erc-add-timestamp): Use the new
cursor-sensor-functions property instead of point-entered.
(erc-insert-timestamp-right, erc-format-timestamp):
Use cursor-intangible rather than `intangible'.
(erc-munge-invisibility-spec): Use add-to-invisibility-spec and
remove-from-invisibility-spec. Enable cursor-intangible-mode and
cursor-sensor-mode if needed.
(erc-echo-timestamp): Adapt to calling convention of
cursor-sensor-functions.
(erc-insert-timestamp-right): Remove unused vars `current-window' and
`indent'.
* lisp/gnus/gnus-group.el (gnus-tmp-*): Declare.
(gnus-update-group-mark-positions): Remove unused `topic' var.
(gnus-group-insert-group-line): Remove unused var `header'.
(gnus-group--setup-tool-bar-update): New function.
(gnus-group-insert-group-line): Use it.
(gnus-group-update-eval-form): Declare local
dynamically-bound variables.
(gnus-group-unsubscribe-group): Use \` and \' to match string bounds.
* lisp/gnus/gnus-topic.el (gnus-topic-jump-to-topic)
(gnus-group-prepare-topics, gnus-topic-update-topic)
(gnus-topic-change-level, gnus-topic-catchup-articles)
(gnus-topic-remove-group, gnus-topic-delete, gnus-topic-indent):
Use inhibit-read-only.
(gnus-topic-prepare-topic): Use gnus-group--setup-tool-bar-update.
(gnus-topic-mode): Use define-minor-mode and derived-mode-p.
* lisp/textmodes/reftex-index.el (reftex-display-index):
Use cursor-intangible-mode if available.
(reftex-index-post-command-hook): Check cursor-intangible.
* lisp/textmodes/reftex-toc.el (reftex-toc):
Use cursor-intangible-mode if available.
(reftex-toc-recenter, reftex-toc-post-command-hook):
Check cursor-intangible.
* lisp/textmodes/sgml-mode.el: Use lexical-binding.
(sgml-tag): Use cursor-sensor-functions instead of point-entered.
(sgml-tags-invisible): Use with-silent-modifications and
inhibit-read-only. Enable cursor-sensor-mode.
(sgml-cursor-sensor): Rename from sgml-point-entered and adjust to
calling convention of cursor-sensor-functions.
* lisp/textmodes/table.el (table-cell-map-hook, table-load-hook)
(table-point-entered-cell-hook, table-point-left-cell-hook):
Don't autoload.
(table-cell-entered-state): Remove var.
(table--put-cell-point-entered/left-property)
(table--remove-cell-properties):
Use cursor-sensor-functions rather than point-entered/left.
(table--point-entered/left-cell-function): Merge
table--point-entered-cell-function and table--point-left-cell-function
and adjust to calling convention of cursor-sensor-functions.
2015-04-13 15:51:15 -04:00
|
|
|
(defun gnus-group--setup-tool-bar-update (beg end)
|
|
|
|
(when gnus-group-update-tool-bar
|
|
|
|
(if (fboundp 'cursor-sensor-mode)
|
|
|
|
(progn
|
|
|
|
(unless (bound-and-true-p cursor-sensor-mode)
|
|
|
|
(cursor-sensor-mode 1))
|
2016-02-13 18:13:03 +11:00
|
|
|
(put-text-property beg end 'cursor-sensor-functions
|
2015-04-13 21:30:27 -04:00
|
|
|
'(gnus-tool-bar-update)))
|
2016-02-13 18:13:03 +11:00
|
|
|
(put-text-property beg end 'point-entered
|
Deprecate `intangible' and `point-entered' properties
* lisp/emacs-lisp/cursor-sensor.el: New file.
* lisp/simple.el (pre-redisplay-functions): New hook.
(redisplay--pre-redisplay-functions): New function.
(pre-redisplay-function): Use it.
(minibuffer-avoid-prompt): Mark obsolete.
(redisplay--update-region-highlight): Adapt it to work as a function on
pre-redisplay-functions.
* lisp/cus-start.el (minibuffer-prompt-properties--setter): New fun.
(minibuffer-prompt-properties): Use it. Use cursor-intangible rather
than point-entered to make the prompt intangible.
* lisp/forms.el: Move `provide' calls to the end.
(forms-mode): Don't use `run-hooks' on a local var.
(forms--make-format, forms--make-format-elt-using-text-properties):
Use cursor-intangible rather than `intangible'.
(forms-mode): Enable cursor-intangible-mode.
* lisp/isearch.el (isearch-mode): Use defvar-local.
(cursor-sensor-inhibit): Declare.
(isearch-mode): Set cursor-sensor-inhibit.
(isearch-done): Set it back.
(isearch-open-overlay-temporary, isearch-open-necessary-overlays)
(isearch-close-unnecessary-overlays): Don't bother with `intangible'
any more.
* lisp/ses.el (ses-localvars): Remove `mode-line-process'.
(ses-sym-rowcol, ses-cell-value, ses-col-width, ses-col-printer):
Add Edebug spec.
(ses-goto-print, ses-print-cell, ses-adjust-print-width)
(ses-goto-data, ses-setup, ses-copy-region): Don't let-bind
inhibit-point-motion-hooks any more.
(ses--cell-at-pos, ses--curcell): New functions, extracted from
ses-set-curcell.
(ses-set-curcell): Use them.
(ses-print-cell, ses-setup): Use cursor-intangible instead of
`intangible'. Make sure cursor-intangible isn't sticky at BOB.
(ses-print-cell-new-width, ses-reprint-all, ses-recalculate-all):
Use ses--cell-at-pos.
(ses--mode-line-process, ses--cursor-sensor-highlight): New functions,
extracted from ses-command-hook. Make them work with multiple windows
displaying the same buffer.
(ses-mode): Use them via mode-line-process and pre-redisplay-functions.
Enable cursor-intangible-mode.
(ses-command-hook): Remove cell highlight and mode-line update code.
(ses-forward-or-insert, ses-copy-region-helper, ses-sort-column):
Update for new name of text-property holding the cell name.
(ses-rename-cell): Don't mess with mode-line-process.
* lisp/erc/erc-stamp.el (erc-add-timestamp): Use the new
cursor-sensor-functions property instead of point-entered.
(erc-insert-timestamp-right, erc-format-timestamp):
Use cursor-intangible rather than `intangible'.
(erc-munge-invisibility-spec): Use add-to-invisibility-spec and
remove-from-invisibility-spec. Enable cursor-intangible-mode and
cursor-sensor-mode if needed.
(erc-echo-timestamp): Adapt to calling convention of
cursor-sensor-functions.
(erc-insert-timestamp-right): Remove unused vars `current-window' and
`indent'.
* lisp/gnus/gnus-group.el (gnus-tmp-*): Declare.
(gnus-update-group-mark-positions): Remove unused `topic' var.
(gnus-group-insert-group-line): Remove unused var `header'.
(gnus-group--setup-tool-bar-update): New function.
(gnus-group-insert-group-line): Use it.
(gnus-group-update-eval-form): Declare local
dynamically-bound variables.
(gnus-group-unsubscribe-group): Use \` and \' to match string bounds.
* lisp/gnus/gnus-topic.el (gnus-topic-jump-to-topic)
(gnus-group-prepare-topics, gnus-topic-update-topic)
(gnus-topic-change-level, gnus-topic-catchup-articles)
(gnus-topic-remove-group, gnus-topic-delete, gnus-topic-indent):
Use inhibit-read-only.
(gnus-topic-prepare-topic): Use gnus-group--setup-tool-bar-update.
(gnus-topic-mode): Use define-minor-mode and derived-mode-p.
* lisp/textmodes/reftex-index.el (reftex-display-index):
Use cursor-intangible-mode if available.
(reftex-index-post-command-hook): Check cursor-intangible.
* lisp/textmodes/reftex-toc.el (reftex-toc):
Use cursor-intangible-mode if available.
(reftex-toc-recenter, reftex-toc-post-command-hook):
Check cursor-intangible.
* lisp/textmodes/sgml-mode.el: Use lexical-binding.
(sgml-tag): Use cursor-sensor-functions instead of point-entered.
(sgml-tags-invisible): Use with-silent-modifications and
inhibit-read-only. Enable cursor-sensor-mode.
(sgml-cursor-sensor): Rename from sgml-point-entered and adjust to
calling convention of cursor-sensor-functions.
* lisp/textmodes/table.el (table-cell-map-hook, table-load-hook)
(table-point-entered-cell-hook, table-point-left-cell-hook):
Don't autoload.
(table-cell-entered-state): Remove var.
(table--put-cell-point-entered/left-property)
(table--remove-cell-properties):
Use cursor-sensor-functions rather than point-entered/left.
(table--point-entered/left-cell-function): Merge
table--point-entered-cell-function and table--point-left-cell-function
and adjust to calling convention of cursor-sensor-functions.
2015-04-13 15:51:15 -04:00
|
|
|
#'gnus-tool-bar-update)
|
2016-02-13 18:13:03 +11:00
|
|
|
(put-text-property beg end 'point-left
|
Deprecate `intangible' and `point-entered' properties
* lisp/emacs-lisp/cursor-sensor.el: New file.
* lisp/simple.el (pre-redisplay-functions): New hook.
(redisplay--pre-redisplay-functions): New function.
(pre-redisplay-function): Use it.
(minibuffer-avoid-prompt): Mark obsolete.
(redisplay--update-region-highlight): Adapt it to work as a function on
pre-redisplay-functions.
* lisp/cus-start.el (minibuffer-prompt-properties--setter): New fun.
(minibuffer-prompt-properties): Use it. Use cursor-intangible rather
than point-entered to make the prompt intangible.
* lisp/forms.el: Move `provide' calls to the end.
(forms-mode): Don't use `run-hooks' on a local var.
(forms--make-format, forms--make-format-elt-using-text-properties):
Use cursor-intangible rather than `intangible'.
(forms-mode): Enable cursor-intangible-mode.
* lisp/isearch.el (isearch-mode): Use defvar-local.
(cursor-sensor-inhibit): Declare.
(isearch-mode): Set cursor-sensor-inhibit.
(isearch-done): Set it back.
(isearch-open-overlay-temporary, isearch-open-necessary-overlays)
(isearch-close-unnecessary-overlays): Don't bother with `intangible'
any more.
* lisp/ses.el (ses-localvars): Remove `mode-line-process'.
(ses-sym-rowcol, ses-cell-value, ses-col-width, ses-col-printer):
Add Edebug spec.
(ses-goto-print, ses-print-cell, ses-adjust-print-width)
(ses-goto-data, ses-setup, ses-copy-region): Don't let-bind
inhibit-point-motion-hooks any more.
(ses--cell-at-pos, ses--curcell): New functions, extracted from
ses-set-curcell.
(ses-set-curcell): Use them.
(ses-print-cell, ses-setup): Use cursor-intangible instead of
`intangible'. Make sure cursor-intangible isn't sticky at BOB.
(ses-print-cell-new-width, ses-reprint-all, ses-recalculate-all):
Use ses--cell-at-pos.
(ses--mode-line-process, ses--cursor-sensor-highlight): New functions,
extracted from ses-command-hook. Make them work with multiple windows
displaying the same buffer.
(ses-mode): Use them via mode-line-process and pre-redisplay-functions.
Enable cursor-intangible-mode.
(ses-command-hook): Remove cell highlight and mode-line update code.
(ses-forward-or-insert, ses-copy-region-helper, ses-sort-column):
Update for new name of text-property holding the cell name.
(ses-rename-cell): Don't mess with mode-line-process.
* lisp/erc/erc-stamp.el (erc-add-timestamp): Use the new
cursor-sensor-functions property instead of point-entered.
(erc-insert-timestamp-right, erc-format-timestamp):
Use cursor-intangible rather than `intangible'.
(erc-munge-invisibility-spec): Use add-to-invisibility-spec and
remove-from-invisibility-spec. Enable cursor-intangible-mode and
cursor-sensor-mode if needed.
(erc-echo-timestamp): Adapt to calling convention of
cursor-sensor-functions.
(erc-insert-timestamp-right): Remove unused vars `current-window' and
`indent'.
* lisp/gnus/gnus-group.el (gnus-tmp-*): Declare.
(gnus-update-group-mark-positions): Remove unused `topic' var.
(gnus-group-insert-group-line): Remove unused var `header'.
(gnus-group--setup-tool-bar-update): New function.
(gnus-group-insert-group-line): Use it.
(gnus-group-update-eval-form): Declare local
dynamically-bound variables.
(gnus-group-unsubscribe-group): Use \` and \' to match string bounds.
* lisp/gnus/gnus-topic.el (gnus-topic-jump-to-topic)
(gnus-group-prepare-topics, gnus-topic-update-topic)
(gnus-topic-change-level, gnus-topic-catchup-articles)
(gnus-topic-remove-group, gnus-topic-delete, gnus-topic-indent):
Use inhibit-read-only.
(gnus-topic-prepare-topic): Use gnus-group--setup-tool-bar-update.
(gnus-topic-mode): Use define-minor-mode and derived-mode-p.
* lisp/textmodes/reftex-index.el (reftex-display-index):
Use cursor-intangible-mode if available.
(reftex-index-post-command-hook): Check cursor-intangible.
* lisp/textmodes/reftex-toc.el (reftex-toc):
Use cursor-intangible-mode if available.
(reftex-toc-recenter, reftex-toc-post-command-hook):
Check cursor-intangible.
* lisp/textmodes/sgml-mode.el: Use lexical-binding.
(sgml-tag): Use cursor-sensor-functions instead of point-entered.
(sgml-tags-invisible): Use with-silent-modifications and
inhibit-read-only. Enable cursor-sensor-mode.
(sgml-cursor-sensor): Rename from sgml-point-entered and adjust to
calling convention of cursor-sensor-functions.
* lisp/textmodes/table.el (table-cell-map-hook, table-load-hook)
(table-point-entered-cell-hook, table-point-left-cell-hook):
Don't autoload.
(table-cell-entered-state): Remove var.
(table--put-cell-point-entered/left-property)
(table--remove-cell-properties):
Use cursor-sensor-functions rather than point-entered/left.
(table--point-entered/left-cell-function): Merge
table--point-entered-cell-function and table--point-left-cell-function
and adjust to calling convention of cursor-sensor-functions.
2015-04-13 15:51:15 -04:00
|
|
|
#'gnus-tool-bar-update))))
|
|
|
|
|
2010-09-23 00:30:37 +00:00
|
|
|
(defun gnus-group-update-eval-form (group list)
|
|
|
|
"Eval `car' of each element of LIST, and return the first that return t.
|
|
|
|
Some value are bound so the form can use them."
|
|
|
|
(when list
|
|
|
|
(let* ((entry (gnus-group-entry group))
|
|
|
|
(active (gnus-active group))
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(info (nth 1 entry))
|
2016-02-13 16:20:34 +11:00
|
|
|
(method (inline (gnus-server-get-method
|
|
|
|
group (gnus-info-method info))))
|
2010-09-23 00:30:37 +00:00
|
|
|
(marked (gnus-info-marks info))
|
2016-02-13 16:20:34 +11:00
|
|
|
(env
|
|
|
|
(list
|
2021-02-02 14:12:17 -05:00
|
|
|
(cons 'group group)
|
2016-02-13 16:20:34 +11:00
|
|
|
(cons 'unread (if (numberp (car entry)) (car entry) 0))
|
2021-02-02 14:12:17 -05:00
|
|
|
(cons 'method method)
|
2016-02-13 16:20:34 +11:00
|
|
|
(cons 'total (if active (1+ (- (cdr active) (car active))) 0))
|
|
|
|
(cons 'mailp (apply
|
2021-01-30 00:35:24 -05:00
|
|
|
#'append
|
2016-02-13 16:20:34 +11:00
|
|
|
(mapcar
|
|
|
|
(lambda (x)
|
|
|
|
(memq x (assoc
|
|
|
|
(symbol-name
|
|
|
|
(car (or method gnus-select-method)))
|
|
|
|
gnus-valid-select-methods)))
|
|
|
|
'(mail post-mail))))
|
|
|
|
(cons 'level (or (gnus-info-level info) gnus-level-killed))
|
|
|
|
(cons 'score (or (gnus-info-score info) 0))
|
2022-01-17 12:40:43 +01:00
|
|
|
(cons 'ticked (range-length (cdr (assq 'tick marked))))
|
2016-02-13 16:20:34 +11:00
|
|
|
(cons 'group-age (gnus-group-timestamp-delta group)))))
|
2010-09-23 00:30:37 +00:00
|
|
|
(while (and list
|
2016-02-13 16:20:34 +11:00
|
|
|
(not (eval (caar list) env)))
|
2010-09-23 00:30:37 +00:00
|
|
|
(setq list (cdr list)))
|
|
|
|
list)))
|
|
|
|
|
|
|
|
(defun gnus-group-highlight-line (group beg end)
|
|
|
|
"Highlight the current line according to `gnus-group-highlight'.
|
2010-09-23 07:59:12 +00:00
|
|
|
GROUP is current group, and the line to highlight starts at BEG
|
2010-09-23 00:30:37 +00:00
|
|
|
and ends at END."
|
|
|
|
(let ((face (cdar (gnus-group-update-eval-form
|
2016-02-13 14:00:06 +11:00
|
|
|
group
|
|
|
|
gnus-group-highlight))))
|
2016-02-13 18:13:03 +11:00
|
|
|
(unless (eq face (gnus-get-text-property-excluding-characters-with-faces
|
|
|
|
beg 'face))
|
2010-09-23 00:30:37 +00:00
|
|
|
(let ((inhibit-read-only t))
|
2012-09-07 12:07:00 +08:00
|
|
|
(gnus-put-text-property-excluding-characters-with-faces
|
|
|
|
beg end 'face
|
2016-02-13 18:13:03 +11:00
|
|
|
(if (boundp face) (symbol-value face) face))))))
|
2010-09-23 00:30:37 +00:00
|
|
|
|
|
|
|
(defun gnus-group-get-icon (group)
|
|
|
|
"Return an icon for GROUP according to `gnus-group-icon-list'."
|
|
|
|
(if gnus-group-icon-list
|
|
|
|
(let ((image-path
|
|
|
|
(cdar (gnus-group-update-eval-form group gnus-group-icon-list))))
|
|
|
|
(if image-path
|
|
|
|
(propertize " "
|
|
|
|
'display
|
|
|
|
(append
|
|
|
|
(gnus-create-image (expand-file-name image-path))
|
|
|
|
'(:ascent center)))
|
|
|
|
" "))
|
|
|
|
" "))
|
2010-09-22 12:49:48 +00:00
|
|
|
|
2011-01-23 00:34:08 +00:00
|
|
|
|
|
|
|
(defun gnus-group-refresh-group (group)
|
|
|
|
(gnus-activate-group group)
|
|
|
|
(gnus-get-unread-articles-in-group (gnus-get-info group)
|
|
|
|
(gnus-active group))
|
2011-01-28 00:14:08 +00:00
|
|
|
(gnus-group-update-group group))
|
2011-01-23 00:34:08 +00:00
|
|
|
|
2011-06-10 00:10:24 +00:00
|
|
|
(defun gnus-group-update-group (group &optional visible-only
|
|
|
|
info-unchanged)
|
1997-04-16 22:13:18 +00:00
|
|
|
"Update all lines where GROUP appear.
|
|
|
|
If VISIBLE-ONLY is non-nil, the group won't be displayed if it isn't
|
2011-06-10 00:10:24 +00:00
|
|
|
already. If INFO-UNCHANGED is non-nil, dribble buffer is not updated."
|
2010-09-01 17:42:37 +02:00
|
|
|
(with-current-buffer gnus-group-buffer
|
|
|
|
(save-excursion
|
|
|
|
;; The buffer may be narrowed.
|
|
|
|
(save-restriction
|
|
|
|
(widen)
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(let (found buffer-read-only)
|
2011-06-10 00:10:24 +00:00
|
|
|
(unless info-unchanged
|
|
|
|
;; Enter the current status into the dribble buffer.
|
|
|
|
(let ((entry (gnus-group-entry group)))
|
|
|
|
(when (and entry
|
|
|
|
(not (gnus-ephemeral-group-p group)))
|
|
|
|
(gnus-dribble-enter
|
|
|
|
(concat "(gnus-group-set-info '"
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(gnus-prin1-to-string (nth 1 entry))
|
2011-06-10 00:10:24 +00:00
|
|
|
")")
|
|
|
|
(concat "^(gnus-group-set-info '(\""
|
|
|
|
(regexp-quote group) "\"")))))
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
;; Find all group instances. If topics are in use, groups
|
|
|
|
;; may be listed more than once.
|
|
|
|
(goto-char (point-min))
|
|
|
|
(while (gnus-text-property-search
|
|
|
|
'gnus-group group 'forward 'goto)
|
2010-09-01 17:42:37 +02:00
|
|
|
(setq found t)
|
|
|
|
(let ((gnus-group-indentation (gnus-group-group-indentation)))
|
|
|
|
(gnus-delete-line)
|
|
|
|
(gnus-group-insert-group-line-info group)
|
|
|
|
(save-excursion
|
|
|
|
(forward-line -1)
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(gnus-run-hooks 'gnus-group-update-group-hook))))
|
2010-09-01 17:42:37 +02:00
|
|
|
(unless (or found visible-only)
|
|
|
|
;; No such line in the buffer, find out where it's supposed to
|
|
|
|
;; go, and insert it there (or at the end of the buffer).
|
|
|
|
(if gnus-goto-missing-group-function
|
|
|
|
(funcall gnus-goto-missing-group-function group)
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(let ((entry (cdr (member group gnus-group-list))))
|
|
|
|
(goto-char (point-min))
|
|
|
|
(while (and (car-safe entry)
|
2010-09-01 17:42:37 +02:00
|
|
|
(not
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(gnus-text-property-search
|
|
|
|
'gnus-group (car entry) 'forward 'goto)))
|
2010-09-01 17:42:37 +02:00
|
|
|
(setq entry (cdr entry)))
|
|
|
|
(or entry (goto-char (point-max)))))
|
|
|
|
;; Finally insert the line.
|
|
|
|
(let ((gnus-group-indentation (gnus-group-group-indentation)))
|
|
|
|
(gnus-group-insert-group-line-info group)
|
|
|
|
(save-excursion
|
|
|
|
(forward-line -1)
|
|
|
|
(gnus-run-hooks 'gnus-group-update-group-hook))))
|
|
|
|
(when gnus-group-update-group-function
|
|
|
|
(funcall gnus-group-update-group-function group))
|
|
|
|
(gnus-group-set-mode-line))))))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-set-mode-line ()
|
|
|
|
"Update the mode line in the group buffer."
|
|
|
|
(when (memq 'group gnus-updated-mode-lines)
|
|
|
|
;; Yes, we want to keep this mode line updated.
|
2010-09-01 17:42:37 +02:00
|
|
|
(with-current-buffer gnus-group-buffer
|
1997-04-16 22:13:18 +00:00
|
|
|
(let* ((gformat (or gnus-group-mode-line-format-spec
|
1999-02-20 14:05:57 +00:00
|
|
|
(gnus-set-format 'group-mode)))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-tmp-news-server (cadr gnus-select-method))
|
|
|
|
(gnus-tmp-news-method (car gnus-select-method))
|
|
|
|
(gnus-tmp-colon (if (equal gnus-tmp-news-server "") "" ":"))
|
|
|
|
(max-len 60)
|
|
|
|
gnus-tmp-header ;Dummy binding for user-defined formats
|
|
|
|
;; Get the resulting string.
|
|
|
|
(modified
|
Simplify Gnus buffer liveness checking and killing
* lisp/gnus/gnus-agent.el (gnus-agent-synchronize-group-flags):
Fix indentation.
* lisp/gnus/gnus-util.el (gnus-buffer-exists-p): Define as obsolete
alias of gnus-buffer-live-p.
(gnus-buffer-live-p): If the given argument is or names a live
buffer, return the corresponding buffer object instead of a boolean.
* lisp/gnus/gnus-win.el (gnus-delete-windows-in-gnusey-frames)
(gnus-remove-some-windows): Simplify.
* lisp/gnus/gnus.el (gnus-prune-buffers): Redefine as alias of
gnus-buffers.
(gnus-kill-buffer, gnus-buffers, gnus-group-find-parameter):
* lisp/gnus/gnus-art.el (gnus-kill-sticky-article-buffers)
(gnus-request-article-this-buffer):
* lisp/gnus/gnus-bcklg.el (gnus-backlog-shutdown):
* lisp/gnus/gnus-cus.el (gnus-group-customize)
(gnus-agent-customize-category):
* lisp/gnus/gnus-draft.el (gnus-draft-edit-message):
* lisp/gnus/gnus-group.el (gnus-group-set-mode-line)
(gnus--abort-on-unsaved-message-buffers, gnus-group-compact-group):
* lisp/gnus/gnus-msg.el (gnus-inews-add-send-actions)
(gnus-summary-supersede-article, gnus-copy-article-buffer):
* lisp/gnus/gnus-score.el (gnus-score-edit-current-scores)
(gnus-score-edit-file):
* lisp/gnus/gnus-spec.el (gnus-update-format-specifications):
* lisp/gnus/gnus-srvr.el (gnus-server-compact-server):
* lisp/gnus/gnus-start.el (gnus-clear-system, gnus-dribble-enter)
(gnus-dribble-save, gnus-dribble-clear, gnus-save-newsrc-file):
* lisp/gnus/gnus-sum.el (gnus-summary-setup-buffer)
(gnus-update-summary-mark-positions, gnus-summary-exit)
(gnus-deaden-summary, gnus-kill-or-deaden-summary)
(gnus-summary-next-group):
* lisp/gnus/gnus-win.el (gnus-configure-frame):
* lisp/gnus/mail-source.el (mail-source-movemail):
* lisp/gnus/message.el (message-with-reply-buffer)
(message-with-reply, message-send-and-exit)
(message-send-mail-with-sendmail, message-pop-to-buffer)
(message-do-send-housekeeping, message-forward-make-body-plain)
(message-forward-make-body-mml):
* lisp/gnus/mm-decode.el (mm-display-external, mm-remove-part):
* lisp/gnus/nnbabyl.el (nnbabyl-server-opened)
(nnbabyl-possibly-change-newsgroup, nnbabyl-read-mbox)
(nnbabyl-check-mbox):
* lisp/gnus/nndiary.el (nndiary-save-nov):
* lisp/gnus/nndoc.el (nndoc-close-group)
(nndoc-possibly-change-buffer):
* lisp/gnus/nnfolder.el (nnfolder-close-group, nnfolder-save-nov):
* lisp/gnus/nnimap.el (nnimap-make-process-buffer, nnimap-keepalive)
(nnimap-find-connection):
* lisp/gnus/nnmail.el (nnmail-cache-open, nnmail-cache-close):
* lisp/gnus/nnmbox.el (nnmbox-close-server, nnmbox-server-opened)
(nnmbox-possibly-change-newsgroup, nnmbox-read-mbox):
* lisp/gnus/nnml.el (nnml-save-incremental-nov, nnml-open-nov)
(nnml-save-nov):
* lisp/gnus/nnoo.el (nnoo-server-opened):
* lisp/gnus/nntp.el (nntp-kill-buffer, nntp-make-process-buffer)
(nntp-open-connection, nntp-async-trigger):
* lisp/net/mairix.el (mairix-gnus-fetch-field): Simplify buffer
liveness checking and killing, replacing buffer-name with
buffer-live-p and gnus-buffer-exists-p with gnus-buffer-live-p or
equivalent where applicable.
2019-05-05 01:28:57 +01:00
|
|
|
(and (buffer-live-p gnus-dribble-buffer)
|
1997-04-16 22:13:18 +00:00
|
|
|
(buffer-modified-p gnus-dribble-buffer)
|
2010-09-01 17:42:37 +02:00
|
|
|
(with-current-buffer gnus-dribble-buffer
|
1997-04-16 22:13:18 +00:00
|
|
|
(not (zerop (buffer-size))))))
|
* lisp/gnus: Use lexical-binding in all the files
* lisp/gnus/gnus-group.el (features): Use `dlet`.
(gnus-tmp-level, gnus-tmp-marked, gnus-tmp-group): Declare vars.
(gnus-group-insert-group-line): Bind dynbound vars via `let` rather
than as formal args. Bind `number` as dynbound.
(gnus-visual, gnus-score-find-score-files-function)
(gnus-home-score-file, gnus-apply-kill-hook)
(gnus-summary-expunge-below): Declare vars.
(gnus-group-restart, gnus-group-list-plus): Fix `interactive` spec
since the arg is unused.
* lisp/gnus/mail-source.el (mail-source-bind, mail-source-bind-common):
Use `dlet` and suppress the warnings about the non-prefixed dynbound vars.
(mail-source-set-1): Remove unused var `auth-info`.
(mail-source-call-script): Remove unused var `background`.
(mail-source-fetch-pop, mail-source-check-pop): Bind pop3 vars with `dlet`.
* lisp/gnus/gnus-int.el (mail-source-plugged, gnus-inhibit-demon):
Declare vars.
(gnus-server-opened, gnus-status-message)
(gnus-open-server, gnus-close-server, gnus-request-list)
(gnus-finish-retrieve-group-infos, gnus-retrieve-group-data-early)
(gnus-request-list-newsgroups, gnus-request-newgroups)
(gnus-request-regenerate, gnus-request-compact, gnus-request-group)
(gnus-retrieve-groups, gnus-request-post, gnus-request-expunge-group)
(gnus-request-scan, gnus-request-update-info, gnus-request-marks)
(gnus-request-accept-article, gnus-request-create-group)
(gnus-asynchronous-p, gnus-remove-denial):
Bind `gnus-command-method` via `let` rather than as formal args.
* lisp/gnus/gnus-topic.el (gnus-topic-insert-topic-line):
Pass documented vars to eval for `gnus-topic-line-format-spec`.
* lisp/gnus/message.el (message-yank-original): Use `cl-progv` rather
than `eval` to bind the vars from `message-cite-style`.
* lisp/gnus/mml.el (mml-parse-1): Use `apply` instead of `eval`.
(gnus-newsgroup-name, gnus-displaying-mime, gnus-newsgroup-name)
(gnus-article-prepare-hook, gnus-newsgroup-charset)
(gnus-original-article-buffer, gnus-message-buffer)
(message-this-is-news, message-this-is-mail): Declare vars.
* lisp/gnus/deuglify.el (gnus-outlook-rearrange-article): Remove unused
var `cite-marks`.
* lisp/gnus/gnus-art.el (ansi-color-context-region): Declare var.
(gnus-mime-display-attachment-buttons-in-header): Move declaration
before first use.
(gnus-mime-display-alternative): Remove unused var `from`.
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-list): Remove unused
var `start` `end`.
* lisp/gnus/gnus-cache.el (gnus-article-decode-hook)
(nnml-generate-active-function): Declare var.
* lisp/gnus/gnus-cite.el (gnus-message-citation-mode): Remove unused
var `keywords`.
* lisp/gnus/gnus-cloud.el (gnus-cloud-encode-data): Remove unused var
`cipher`.
(gnus-cloud-ensure-cloud-group): Remove unused var `method`.
* lisp/gnus/gnus-delay.el (gnus-delay-article): Remove unused var `days`.
* lisp/gnus/gnus-html.el (gnus-html-wash-images): Remove unused vars
`tag`, `string`, and `images`.
(gnus-html-wash-tags): Remove unused vars `string` and `images`.
* lisp/gnus/gnus-msg.el (gnus-msg-mail): Remove unused var `group-name`.
(gnus-group-mail, gnus-group-news, gnus-summary-mail-other-window)
(gnus-summary-news-other-window):
Remove unused vars `group` and `buffer`.
(gnus-configure-posting-styles): Remove unused vars `style` and `attribute`.
* lisp/gnus/gnus-picon.el (gnus-picon-find-face): Remove unused vars
`database`, `directory`, and `instance`.
(gnus-picon-transform-newsgroups): Remove unused var `point`.
* lisp/gnus/gnus-range.el (gnus-range-difference): Remove unused var `safe`.
* lisp/gnus/gnus-score.el (gnus-score-load-file): Remove unused var
`score-fn`.
* lisp/gnus/gnus-sum.el (message-options-set-recipient): Declare var.
* lisp/gnus/gnus-undo.el (gnus-undo): Fix docstring lie.
* lisp/gnus/gnus-util.el (print-string-length)
(iswitchb-make-buflist-hook): Declare vars.
(gnus-emacs-version): Remove unused var `codename`.
(gnus-rename-file): Remove unused vars `old-name` and `new-name`.
* lisp/gnus/gnus-uu.el (gnus-uu-yenc-article): Remove unused var
`start-char`.
(gnus-asynchronous): Declare var.
* lisp/gnus/mm-partial.el (gnus-displaying-mime): Declare var.
(mm-inline-partial): Remove unused var `buffer`.
* lisp/gnus/mm-view.el (w3m-force-redisplay, w3m-safe-url-regexp)
(gnus-displaying-mime, gnus-original-article-buffer)
(gnus-article-prepare-hook): Declare vars.
* lisp/gnus/mml-smime.el (mml-smime-epg-encrypt): Remove unused var
`boundary`.
(mml-smime-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/mml1991.el (pgg-text-mode): Declare var.
* lisp/gnus/mml2015.el (pgg-text-mode): Declare var.
(mml2015-pgg-decrypt): Remove unused var `result`.
(mml2015-epg-key-image-to-string): Remove unused var `error`.
(mml2015-epg-decrypt): Remove unused var `result`.
(mml2015-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/nnbabyl.el (nnml-current-directory): Declare var.
* lisp/gnus/nndiary.el (nndiary-files): Move declaration before first use.
* lisp/gnus/nnfolder.el (nnfolder-request-accept-article):
Remove unused var `buf`.
* lisp/gnus/nnmail.el (nnmail-parse-active): Remove unused var `err`.
* lisp/gnus/nnmairix.el (nnmairix-request-group): Remove unused var `args`.
(nnmairix-request-create-group): Remove unused var `info`.
(nnmairix-request-list): Remove unused var `folder`.
(nnmairix-request-set-mark): Remove unused var `propto`.
(nnmairix-request-set-mark): Remove unused vars `number` and `method`.
(nnmairix-close-group): Remove unused var `method`.
(nnmairix-create-search-group-from-message): Remove unused var `cq`.
(nnmairix-create-server-and-default-group): Remove unused var `create`.
(nnmairix-purge-old-groups): Remove unused var `folder`.
(nnmairix-remove-tick-mark-original-article, nnmairix-get-valid-servers):
Remove unused var `cur`.
(nnmairix-replace-group-and-numbers): Remove unused var `header`.
(nnmairix-goto-original-article): Remove unused var `rval`.
(nnmairix-widget-create-query): Remove unused var `allwidgets`.
* lisp/gnus/nnmbox.el (nnml-current-directory): Declare var.
* lisp/gnus/nnmh.el (nnmh-toplev): Move declaration before first use.
(nnmh-request-list-1): Remove unused var `rdir`.
* lisp/gnus/nnml.el (nnml-generate-nov-file): Remove unused var `file`.
* lisp/gnus/nnrss.el (nnrss-request-article): Remove unused var `post`.
(nnrss-request-article): Remove unused var `fn`.
(nnrss-check-group): Remove unused var `rdf-ns`.
* lisp/gnus/nnweb.el (nnweb-request-article): Remove unused var `active`.
(nnweb-google-parse-1): Remove unused var `Score`.
* lisp/gnus/spam-stat.el (spam-stat-error-holder): Remove var.
(spam-stat-buffer-words-with-scores): Remove unused var `word`.
(spam-stat-score-buffer): Remove unused var `spam-stat-error-holder`.
(spam-stat-split-fancy): Use `err` instead of `spam-stat-error-holder`.
* lisp/gnus/spam-wash.el (spam-wash): Remove unused var `handle`.
* lisp/gnus/spam.el (spam-copy-or-move-routine): Remove unused vars
`article` and `mark`.
(spam-register-routine): Remove unused var `article`.
(spam-log-undo-registration): Remove unused var `found`.
(spam-ifile-register-with-ifile): Remove unused var `parameters`.
(spam-check-stat): Remove unused vars `category` and `return`.
(spam-parse-list): Remove unused var `found`.
(spam-filelist-register-routine): Remove unused var `from`.
2021-01-30 18:44:00 -05:00
|
|
|
(mode-string (eval gformat t)))
|
1997-04-16 22:13:18 +00:00
|
|
|
;; Say whether the dribble buffer has been modified.
|
1997-09-24 01:50:24 +00:00
|
|
|
(setq mode-line-modified
|
2016-02-10 14:34:22 +11:00
|
|
|
(if modified "**" "--"))
|
1997-04-16 22:13:18 +00:00
|
|
|
;; If the line is too long, we chop it off.
|
|
|
|
(when (> (length mode-string) max-len)
|
|
|
|
(setq mode-string (substring mode-string 0 (- max-len 4))))
|
|
|
|
(prog1
|
|
|
|
(setq mode-line-buffer-identification
|
2022-09-23 18:21:55 +02:00
|
|
|
(gnus-mode-line-buffer-identification (list mode-string)))
|
1997-04-16 22:13:18 +00:00
|
|
|
(set-buffer-modified-p modified))))))
|
|
|
|
|
|
|
|
(defun gnus-group-group-name ()
|
|
|
|
"Get the name of the newsgroup on the current line."
|
2022-08-23 04:54:57 +02:00
|
|
|
(let ((group (get-text-property (line-beginning-position) 'gnus-group)))
|
2019-04-11 17:24:36 +01:00
|
|
|
(cond ((stringp group) group)
|
|
|
|
(group (symbol-name group)))))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-group-level ()
|
|
|
|
"Get the level of the newsgroup on the current line."
|
2022-08-23 04:54:57 +02:00
|
|
|
(get-text-property (line-beginning-position) 'gnus-level))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-group-indentation ()
|
|
|
|
"Get the indentation of the newsgroup on the current line."
|
2022-08-23 04:54:57 +02:00
|
|
|
(or (get-text-property (line-beginning-position) 'gnus-indentation)
|
1997-04-16 22:13:18 +00:00
|
|
|
(and gnus-group-indentation-function
|
|
|
|
(funcall gnus-group-indentation-function))
|
|
|
|
""))
|
|
|
|
|
|
|
|
(defun gnus-group-group-unread ()
|
|
|
|
"Get the number of unread articles of the newsgroup on the current line."
|
2022-08-23 04:54:57 +02:00
|
|
|
(get-text-property (line-beginning-position) 'gnus-unread))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-new-mail (group)
|
2020-07-28 00:46:30 +02:00
|
|
|
(if (nnmail-new-mail-p group)
|
1997-04-16 22:13:18 +00:00
|
|
|
gnus-new-mail-mark
|
2019-04-11 17:24:36 +01:00
|
|
|
?\s))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-level (group)
|
|
|
|
"Return the estimated level of GROUP."
|
|
|
|
(or (gnus-info-level (gnus-get-info group))
|
1999-02-20 14:05:57 +00:00
|
|
|
(and (member group gnus-zombie-list) gnus-level-zombie)
|
|
|
|
gnus-level-killed))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-search-forward (&optional backward all level first-too)
|
|
|
|
"Find the next newsgroup with unread articles.
|
|
|
|
If BACKWARD is non-nil, find the previous newsgroup instead.
|
|
|
|
If ALL is non-nil, just find any newsgroup.
|
|
|
|
If LEVEL is non-nil, find group with level LEVEL, or higher if no such
|
|
|
|
group exists.
|
|
|
|
If FIRST-TOO, the current line is also eligible as a target."
|
|
|
|
(let ((way (if backward -1 1))
|
|
|
|
(low gnus-level-killed)
|
|
|
|
(beg (point))
|
|
|
|
pos found lev)
|
|
|
|
(if (and backward (progn (beginning-of-line)) (bobp))
|
|
|
|
nil
|
|
|
|
(unless first-too
|
|
|
|
(forward-line way))
|
|
|
|
(while (and
|
|
|
|
(not (eobp))
|
|
|
|
(not (setq
|
|
|
|
found
|
1997-09-24 01:50:24 +00:00
|
|
|
(and
|
|
|
|
(get-text-property (point) 'gnus-group)
|
|
|
|
(or all
|
|
|
|
(and
|
|
|
|
(let ((unread
|
|
|
|
(get-text-property (point) 'gnus-unread)))
|
|
|
|
(and (numberp unread) (> unread 0)))
|
|
|
|
(setq lev (get-text-property (point)
|
|
|
|
'gnus-level))
|
|
|
|
(<= lev gnus-level-subscribed)))
|
|
|
|
(or (not level)
|
|
|
|
(and (setq lev (get-text-property (point)
|
1997-04-16 22:13:18 +00:00
|
|
|
'gnus-level))
|
1997-09-24 01:50:24 +00:00
|
|
|
(or (= lev level)
|
|
|
|
(and (< lev low)
|
|
|
|
(< level lev)
|
|
|
|
(progn
|
|
|
|
(setq low lev)
|
|
|
|
(setq pos (point))
|
|
|
|
nil))))))))
|
1997-04-16 22:13:18 +00:00
|
|
|
(zerop (forward-line way)))))
|
|
|
|
(if found
|
|
|
|
(progn (gnus-group-position-point) t)
|
|
|
|
(goto-char (or pos beg))
|
|
|
|
(and pos t))))
|
|
|
|
|
2007-10-28 09:18:39 +00:00
|
|
|
(defun gnus-total-fetched-for (group)
|
|
|
|
(let* ((size-in-cache (or (gnus-cache-total-fetched-for group) 0))
|
|
|
|
(size-in-agent (or (gnus-agent-total-fetched-for group) 0))
|
|
|
|
(size (+ size-in-cache size-in-agent))
|
|
|
|
(suffix '("B" "K" "M" "G"))
|
|
|
|
(scale 1024.0)
|
|
|
|
(cutoff scale))
|
|
|
|
(while (> size cutoff)
|
|
|
|
(setq size (/ size scale)
|
|
|
|
suffix (cdr suffix)))
|
|
|
|
(format "%5.1f%s" size (car suffix))))
|
|
|
|
|
1997-04-16 22:13:18 +00:00
|
|
|
;;; Gnus group mode commands
|
|
|
|
|
|
|
|
;; Group marking.
|
|
|
|
|
2000-09-19 13:37:09 +00:00
|
|
|
(defun gnus-group-mark-line-p ()
|
|
|
|
(save-excursion
|
|
|
|
(beginning-of-line)
|
|
|
|
(forward-char (or (cdr (assq 'process gnus-group-mark-positions)) 2))
|
|
|
|
(eq (char-after) gnus-process-mark)))
|
|
|
|
|
2021-06-02 07:41:25 +02:00
|
|
|
(defun gnus-group-mark-group (n &optional unmark no-advance no-toggle)
|
1997-04-16 22:13:18 +00:00
|
|
|
"Mark the current group."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "p" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(let ((buffer-read-only nil)
|
|
|
|
group)
|
|
|
|
(while (and (> n 0)
|
|
|
|
(not (eobp)))
|
|
|
|
(when (setq group (gnus-group-group-name))
|
|
|
|
;; Go to the mark position.
|
|
|
|
(beginning-of-line)
|
|
|
|
(forward-char (or (cdr (assq 'process gnus-group-mark-positions)) 2))
|
2007-10-28 09:18:39 +00:00
|
|
|
(delete-char 1)
|
2021-06-02 07:41:25 +02:00
|
|
|
(if (and gnus-process-mark-toggle (not no-toggle))
|
|
|
|
(if (memq group gnus-group-marked)
|
|
|
|
(gnus-group-mark-update group t)
|
|
|
|
(gnus-group-mark-update group))
|
|
|
|
(gnus-group-mark-update group unmark)))
|
1997-04-16 22:13:18 +00:00
|
|
|
(unless no-advance
|
|
|
|
(gnus-group-next-group 1))
|
gnus: replace cl with cl-lib
* lisp/gnus/gnus-agent.el, lisp/gnus/gnus-art.el:
* lisp/gnus/gnus-async.el, lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-demon.el, lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-icalendar.el, lisp/gnus/gnus-logic.el:
* lisp/gnus/gnus-msg.el, lisp/gnus/gnus-picon.el:
* lisp/gnus/gnus-registry.el, lisp/gnus/gnus-salt.el:
* lisp/gnus/gnus-score.el, lisp/gnus/gnus-spec.el:
* lisp/gnus/gnus-srvr.el, lisp/gnus/gnus-start.el:
* lisp/gnus/gnus-sum.el, lisp/gnus/gnus-topic.el:
* lisp/gnus/gnus-util.el, lisp/gnus/gnus-uu.el, lisp/gnus/gnus-win.el:
* lisp/gnus/mail-source.el, lisp/gnus/mm-decode.el:
* lisp/gnus/mm-encode.el, lisp/gnus/mm-url.el, lisp/gnus/mm-view.el:
* lisp/gnus/mml-smime.el, lisp/gnus/mml.el, lisp/gnus/mml2015.el:
* lisp/gnus/nnbabyl.el, lisp/gnus/nndoc.el, lisp/gnus/nneething.el:
* lisp/gnus/nnheader.el, lisp/gnus/nnimap.el, lisp/gnus/nnmail.el:
* lisp/gnus/nnmaildir.el, lisp/gnus/nnoo.el, lisp/gnus/nnrss.el:
* lisp/gnus/nnspool.el, lisp/gnus/nntp.el, lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el, lisp/gnus/spam.el: Replace cl with cl-lib.
* lisp/gnus/canlock.el, lisp/gnus/gnus-bcklg.el:
* lisp/gnus/gnus-cite.el, lisp/gnus/gnus-cloud.el:
* lisp/gnus/gnus-draft.el, lisp/gnus/gnus-dup.el:
* lisp/gnus/gnus-fun.el, lisp/gnus/gnus-html.el:
* lisp/gnus/gnus-int.el, lisp/gnus/gnus-kill.el, lisp/gnus/gnus-ml.el:
* lisp/gnus/gnus-mlspl.el, lisp/gnus/gnus-range.el:
* lisp/gnus/gnus-undo.el, lisp/gnus/gnus-vm.el:
* lisp/gnus/mm-partial.el, lisp/gnus/mm-uu.el, lisp/gnus/mml1991.el:
* lisp/gnus/nnagent.el, lisp/gnus/nndiary.el, lisp/gnus/nndir.el:
* lisp/gnus/nndraft.el, lisp/gnus/nnfolder.el, lisp/gnus/nngateway.el:
* lisp/gnus/nnmairix.el, lisp/gnus/nnmbox.el, lisp/gnus/nnmh.el:
* lisp/gnus/nnml.el, lisp/gnus/score-mode.el, lisp/gnus/smiley.el:
No need for cl.
2018-03-23 16:13:09 -04:00
|
|
|
(cl-decf n))
|
2010-10-23 00:01:49 +00:00
|
|
|
(gnus-group-position-point)
|
1997-04-16 22:13:18 +00:00
|
|
|
n))
|
|
|
|
|
2021-06-02 07:41:25 +02:00
|
|
|
(defun gnus-group-mark-update (n &optional unmark)
|
|
|
|
"Set the process mark on current group and update the group line."
|
|
|
|
(if unmark
|
|
|
|
(progn
|
|
|
|
(setq gnus-group-marked
|
|
|
|
(delete n gnus-group-marked))
|
|
|
|
(insert-char ?\s 1 t))
|
|
|
|
(progn
|
|
|
|
(setq gnus-group-marked
|
|
|
|
(cons n (delete n gnus-group-marked)))
|
|
|
|
(insert-char gnus-process-mark 1 t))))
|
|
|
|
|
1997-04-16 22:13:18 +00:00
|
|
|
(defun gnus-group-unmark-group (n)
|
|
|
|
"Remove the mark from the current group."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "p" gnus-group-mode)
|
2021-06-02 07:41:25 +02:00
|
|
|
(gnus-group-mark-group n 'unmark nil t)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-position-point))
|
|
|
|
|
|
|
|
(defun gnus-group-unmark-all-groups ()
|
|
|
|
"Unmark all groups."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive nil gnus-group-mode)
|
2007-10-28 09:18:39 +00:00
|
|
|
(save-excursion
|
2021-01-30 00:35:24 -05:00
|
|
|
(mapc #'gnus-group-remove-mark gnus-group-marked))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-position-point))
|
|
|
|
|
|
|
|
(defun gnus-group-mark-region (unmark beg end)
|
|
|
|
"Mark all groups between point and mark.
|
|
|
|
If UNMARK, remove the mark instead."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P\nr" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(let ((num (count-lines beg end)))
|
|
|
|
(save-excursion
|
|
|
|
(goto-char beg)
|
2021-06-02 07:41:25 +02:00
|
|
|
(- num (gnus-group-mark-group num unmark nil t)))))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-mark-buffer (&optional unmark)
|
|
|
|
"Mark all groups in the buffer.
|
|
|
|
If UNMARK, remove the mark instead."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-mark-region unmark (point-min) (point-max)))
|
|
|
|
|
|
|
|
(defun gnus-group-mark-regexp (regexp)
|
|
|
|
"Mark all groups that match some regexp."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "sMark (regexp): " gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(let ((alist (cdr gnus-newsrc-alist))
|
|
|
|
group)
|
2004-09-04 13:13:48 +00:00
|
|
|
(save-excursion
|
|
|
|
(while alist
|
|
|
|
(when (string-match regexp (setq group (gnus-info-group (pop alist))))
|
|
|
|
(gnus-group-jump-to-group group)
|
|
|
|
(gnus-group-set-mark group)))))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-position-point))
|
|
|
|
|
2000-09-19 13:37:09 +00:00
|
|
|
(defun gnus-group-remove-mark (group &optional test-marked)
|
1997-04-16 22:13:18 +00:00
|
|
|
"Remove the process mark from GROUP and move point there.
|
|
|
|
Return nil if the group isn't displayed."
|
2000-09-19 13:37:09 +00:00
|
|
|
(if (gnus-group-goto-group group nil test-marked)
|
1997-04-16 22:13:18 +00:00
|
|
|
(save-excursion
|
2021-06-02 07:41:25 +02:00
|
|
|
(gnus-group-mark-group 1 'unmark t t)
|
1997-04-16 22:13:18 +00:00
|
|
|
t)
|
|
|
|
(setq gnus-group-marked
|
|
|
|
(delete group gnus-group-marked))
|
|
|
|
nil))
|
|
|
|
|
|
|
|
(defun gnus-group-set-mark (group)
|
|
|
|
"Set the process mark on GROUP."
|
|
|
|
(if (gnus-group-goto-group group)
|
|
|
|
(save-excursion
|
2021-06-02 07:41:25 +02:00
|
|
|
(gnus-group-mark-group 1 nil t t))
|
1997-04-16 22:13:18 +00:00
|
|
|
(setq gnus-group-marked (cons group (delete group gnus-group-marked)))))
|
|
|
|
|
* lisp/gnus: Use lexical-binding in all the files
* lisp/gnus/gnus-group.el (features): Use `dlet`.
(gnus-tmp-level, gnus-tmp-marked, gnus-tmp-group): Declare vars.
(gnus-group-insert-group-line): Bind dynbound vars via `let` rather
than as formal args. Bind `number` as dynbound.
(gnus-visual, gnus-score-find-score-files-function)
(gnus-home-score-file, gnus-apply-kill-hook)
(gnus-summary-expunge-below): Declare vars.
(gnus-group-restart, gnus-group-list-plus): Fix `interactive` spec
since the arg is unused.
* lisp/gnus/mail-source.el (mail-source-bind, mail-source-bind-common):
Use `dlet` and suppress the warnings about the non-prefixed dynbound vars.
(mail-source-set-1): Remove unused var `auth-info`.
(mail-source-call-script): Remove unused var `background`.
(mail-source-fetch-pop, mail-source-check-pop): Bind pop3 vars with `dlet`.
* lisp/gnus/gnus-int.el (mail-source-plugged, gnus-inhibit-demon):
Declare vars.
(gnus-server-opened, gnus-status-message)
(gnus-open-server, gnus-close-server, gnus-request-list)
(gnus-finish-retrieve-group-infos, gnus-retrieve-group-data-early)
(gnus-request-list-newsgroups, gnus-request-newgroups)
(gnus-request-regenerate, gnus-request-compact, gnus-request-group)
(gnus-retrieve-groups, gnus-request-post, gnus-request-expunge-group)
(gnus-request-scan, gnus-request-update-info, gnus-request-marks)
(gnus-request-accept-article, gnus-request-create-group)
(gnus-asynchronous-p, gnus-remove-denial):
Bind `gnus-command-method` via `let` rather than as formal args.
* lisp/gnus/gnus-topic.el (gnus-topic-insert-topic-line):
Pass documented vars to eval for `gnus-topic-line-format-spec`.
* lisp/gnus/message.el (message-yank-original): Use `cl-progv` rather
than `eval` to bind the vars from `message-cite-style`.
* lisp/gnus/mml.el (mml-parse-1): Use `apply` instead of `eval`.
(gnus-newsgroup-name, gnus-displaying-mime, gnus-newsgroup-name)
(gnus-article-prepare-hook, gnus-newsgroup-charset)
(gnus-original-article-buffer, gnus-message-buffer)
(message-this-is-news, message-this-is-mail): Declare vars.
* lisp/gnus/deuglify.el (gnus-outlook-rearrange-article): Remove unused
var `cite-marks`.
* lisp/gnus/gnus-art.el (ansi-color-context-region): Declare var.
(gnus-mime-display-attachment-buttons-in-header): Move declaration
before first use.
(gnus-mime-display-alternative): Remove unused var `from`.
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-list): Remove unused
var `start` `end`.
* lisp/gnus/gnus-cache.el (gnus-article-decode-hook)
(nnml-generate-active-function): Declare var.
* lisp/gnus/gnus-cite.el (gnus-message-citation-mode): Remove unused
var `keywords`.
* lisp/gnus/gnus-cloud.el (gnus-cloud-encode-data): Remove unused var
`cipher`.
(gnus-cloud-ensure-cloud-group): Remove unused var `method`.
* lisp/gnus/gnus-delay.el (gnus-delay-article): Remove unused var `days`.
* lisp/gnus/gnus-html.el (gnus-html-wash-images): Remove unused vars
`tag`, `string`, and `images`.
(gnus-html-wash-tags): Remove unused vars `string` and `images`.
* lisp/gnus/gnus-msg.el (gnus-msg-mail): Remove unused var `group-name`.
(gnus-group-mail, gnus-group-news, gnus-summary-mail-other-window)
(gnus-summary-news-other-window):
Remove unused vars `group` and `buffer`.
(gnus-configure-posting-styles): Remove unused vars `style` and `attribute`.
* lisp/gnus/gnus-picon.el (gnus-picon-find-face): Remove unused vars
`database`, `directory`, and `instance`.
(gnus-picon-transform-newsgroups): Remove unused var `point`.
* lisp/gnus/gnus-range.el (gnus-range-difference): Remove unused var `safe`.
* lisp/gnus/gnus-score.el (gnus-score-load-file): Remove unused var
`score-fn`.
* lisp/gnus/gnus-sum.el (message-options-set-recipient): Declare var.
* lisp/gnus/gnus-undo.el (gnus-undo): Fix docstring lie.
* lisp/gnus/gnus-util.el (print-string-length)
(iswitchb-make-buflist-hook): Declare vars.
(gnus-emacs-version): Remove unused var `codename`.
(gnus-rename-file): Remove unused vars `old-name` and `new-name`.
* lisp/gnus/gnus-uu.el (gnus-uu-yenc-article): Remove unused var
`start-char`.
(gnus-asynchronous): Declare var.
* lisp/gnus/mm-partial.el (gnus-displaying-mime): Declare var.
(mm-inline-partial): Remove unused var `buffer`.
* lisp/gnus/mm-view.el (w3m-force-redisplay, w3m-safe-url-regexp)
(gnus-displaying-mime, gnus-original-article-buffer)
(gnus-article-prepare-hook): Declare vars.
* lisp/gnus/mml-smime.el (mml-smime-epg-encrypt): Remove unused var
`boundary`.
(mml-smime-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/mml1991.el (pgg-text-mode): Declare var.
* lisp/gnus/mml2015.el (pgg-text-mode): Declare var.
(mml2015-pgg-decrypt): Remove unused var `result`.
(mml2015-epg-key-image-to-string): Remove unused var `error`.
(mml2015-epg-decrypt): Remove unused var `result`.
(mml2015-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/nnbabyl.el (nnml-current-directory): Declare var.
* lisp/gnus/nndiary.el (nndiary-files): Move declaration before first use.
* lisp/gnus/nnfolder.el (nnfolder-request-accept-article):
Remove unused var `buf`.
* lisp/gnus/nnmail.el (nnmail-parse-active): Remove unused var `err`.
* lisp/gnus/nnmairix.el (nnmairix-request-group): Remove unused var `args`.
(nnmairix-request-create-group): Remove unused var `info`.
(nnmairix-request-list): Remove unused var `folder`.
(nnmairix-request-set-mark): Remove unused var `propto`.
(nnmairix-request-set-mark): Remove unused vars `number` and `method`.
(nnmairix-close-group): Remove unused var `method`.
(nnmairix-create-search-group-from-message): Remove unused var `cq`.
(nnmairix-create-server-and-default-group): Remove unused var `create`.
(nnmairix-purge-old-groups): Remove unused var `folder`.
(nnmairix-remove-tick-mark-original-article, nnmairix-get-valid-servers):
Remove unused var `cur`.
(nnmairix-replace-group-and-numbers): Remove unused var `header`.
(nnmairix-goto-original-article): Remove unused var `rval`.
(nnmairix-widget-create-query): Remove unused var `allwidgets`.
* lisp/gnus/nnmbox.el (nnml-current-directory): Declare var.
* lisp/gnus/nnmh.el (nnmh-toplev): Move declaration before first use.
(nnmh-request-list-1): Remove unused var `rdir`.
* lisp/gnus/nnml.el (nnml-generate-nov-file): Remove unused var `file`.
* lisp/gnus/nnrss.el (nnrss-request-article): Remove unused var `post`.
(nnrss-request-article): Remove unused var `fn`.
(nnrss-check-group): Remove unused var `rdf-ns`.
* lisp/gnus/nnweb.el (nnweb-request-article): Remove unused var `active`.
(nnweb-google-parse-1): Remove unused var `Score`.
* lisp/gnus/spam-stat.el (spam-stat-error-holder): Remove var.
(spam-stat-buffer-words-with-scores): Remove unused var `word`.
(spam-stat-score-buffer): Remove unused var `spam-stat-error-holder`.
(spam-stat-split-fancy): Use `err` instead of `spam-stat-error-holder`.
* lisp/gnus/spam-wash.el (spam-wash): Remove unused var `handle`.
* lisp/gnus/spam.el (spam-copy-or-move-routine): Remove unused vars
`article` and `mark`.
(spam-register-routine): Remove unused var `article`.
(spam-log-undo-registration): Remove unused var `found`.
(spam-ifile-register-with-ifile): Remove unused var `parameters`.
(spam-check-stat): Remove unused vars `category` and `return`.
(spam-parse-list): Remove unused var `found`.
(spam-filelist-register-routine): Remove unused var `from`.
2021-01-30 18:44:00 -05:00
|
|
|
(defun gnus-group-universal-argument (arg &optional _groups func)
|
1997-04-16 22:13:18 +00:00
|
|
|
"Perform any command on all groups according to the process/prefix convention."
|
|
|
|
(interactive "P")
|
|
|
|
(if (eq (setq func (or func
|
|
|
|
(key-binding
|
|
|
|
(read-key-sequence
|
|
|
|
(substitute-command-keys
|
|
|
|
"\\<gnus-group-mode-map>\\[gnus-group-universal-argument]")))))
|
|
|
|
'undefined)
|
|
|
|
(gnus-error 1 "Undefined key")
|
|
|
|
(gnus-group-iterate arg
|
* lisp/gnus: Use lexical-binding in all the files
* lisp/gnus/gnus-group.el (features): Use `dlet`.
(gnus-tmp-level, gnus-tmp-marked, gnus-tmp-group): Declare vars.
(gnus-group-insert-group-line): Bind dynbound vars via `let` rather
than as formal args. Bind `number` as dynbound.
(gnus-visual, gnus-score-find-score-files-function)
(gnus-home-score-file, gnus-apply-kill-hook)
(gnus-summary-expunge-below): Declare vars.
(gnus-group-restart, gnus-group-list-plus): Fix `interactive` spec
since the arg is unused.
* lisp/gnus/mail-source.el (mail-source-bind, mail-source-bind-common):
Use `dlet` and suppress the warnings about the non-prefixed dynbound vars.
(mail-source-set-1): Remove unused var `auth-info`.
(mail-source-call-script): Remove unused var `background`.
(mail-source-fetch-pop, mail-source-check-pop): Bind pop3 vars with `dlet`.
* lisp/gnus/gnus-int.el (mail-source-plugged, gnus-inhibit-demon):
Declare vars.
(gnus-server-opened, gnus-status-message)
(gnus-open-server, gnus-close-server, gnus-request-list)
(gnus-finish-retrieve-group-infos, gnus-retrieve-group-data-early)
(gnus-request-list-newsgroups, gnus-request-newgroups)
(gnus-request-regenerate, gnus-request-compact, gnus-request-group)
(gnus-retrieve-groups, gnus-request-post, gnus-request-expunge-group)
(gnus-request-scan, gnus-request-update-info, gnus-request-marks)
(gnus-request-accept-article, gnus-request-create-group)
(gnus-asynchronous-p, gnus-remove-denial):
Bind `gnus-command-method` via `let` rather than as formal args.
* lisp/gnus/gnus-topic.el (gnus-topic-insert-topic-line):
Pass documented vars to eval for `gnus-topic-line-format-spec`.
* lisp/gnus/message.el (message-yank-original): Use `cl-progv` rather
than `eval` to bind the vars from `message-cite-style`.
* lisp/gnus/mml.el (mml-parse-1): Use `apply` instead of `eval`.
(gnus-newsgroup-name, gnus-displaying-mime, gnus-newsgroup-name)
(gnus-article-prepare-hook, gnus-newsgroup-charset)
(gnus-original-article-buffer, gnus-message-buffer)
(message-this-is-news, message-this-is-mail): Declare vars.
* lisp/gnus/deuglify.el (gnus-outlook-rearrange-article): Remove unused
var `cite-marks`.
* lisp/gnus/gnus-art.el (ansi-color-context-region): Declare var.
(gnus-mime-display-attachment-buttons-in-header): Move declaration
before first use.
(gnus-mime-display-alternative): Remove unused var `from`.
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-list): Remove unused
var `start` `end`.
* lisp/gnus/gnus-cache.el (gnus-article-decode-hook)
(nnml-generate-active-function): Declare var.
* lisp/gnus/gnus-cite.el (gnus-message-citation-mode): Remove unused
var `keywords`.
* lisp/gnus/gnus-cloud.el (gnus-cloud-encode-data): Remove unused var
`cipher`.
(gnus-cloud-ensure-cloud-group): Remove unused var `method`.
* lisp/gnus/gnus-delay.el (gnus-delay-article): Remove unused var `days`.
* lisp/gnus/gnus-html.el (gnus-html-wash-images): Remove unused vars
`tag`, `string`, and `images`.
(gnus-html-wash-tags): Remove unused vars `string` and `images`.
* lisp/gnus/gnus-msg.el (gnus-msg-mail): Remove unused var `group-name`.
(gnus-group-mail, gnus-group-news, gnus-summary-mail-other-window)
(gnus-summary-news-other-window):
Remove unused vars `group` and `buffer`.
(gnus-configure-posting-styles): Remove unused vars `style` and `attribute`.
* lisp/gnus/gnus-picon.el (gnus-picon-find-face): Remove unused vars
`database`, `directory`, and `instance`.
(gnus-picon-transform-newsgroups): Remove unused var `point`.
* lisp/gnus/gnus-range.el (gnus-range-difference): Remove unused var `safe`.
* lisp/gnus/gnus-score.el (gnus-score-load-file): Remove unused var
`score-fn`.
* lisp/gnus/gnus-sum.el (message-options-set-recipient): Declare var.
* lisp/gnus/gnus-undo.el (gnus-undo): Fix docstring lie.
* lisp/gnus/gnus-util.el (print-string-length)
(iswitchb-make-buflist-hook): Declare vars.
(gnus-emacs-version): Remove unused var `codename`.
(gnus-rename-file): Remove unused vars `old-name` and `new-name`.
* lisp/gnus/gnus-uu.el (gnus-uu-yenc-article): Remove unused var
`start-char`.
(gnus-asynchronous): Declare var.
* lisp/gnus/mm-partial.el (gnus-displaying-mime): Declare var.
(mm-inline-partial): Remove unused var `buffer`.
* lisp/gnus/mm-view.el (w3m-force-redisplay, w3m-safe-url-regexp)
(gnus-displaying-mime, gnus-original-article-buffer)
(gnus-article-prepare-hook): Declare vars.
* lisp/gnus/mml-smime.el (mml-smime-epg-encrypt): Remove unused var
`boundary`.
(mml-smime-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/mml1991.el (pgg-text-mode): Declare var.
* lisp/gnus/mml2015.el (pgg-text-mode): Declare var.
(mml2015-pgg-decrypt): Remove unused var `result`.
(mml2015-epg-key-image-to-string): Remove unused var `error`.
(mml2015-epg-decrypt): Remove unused var `result`.
(mml2015-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/nnbabyl.el (nnml-current-directory): Declare var.
* lisp/gnus/nndiary.el (nndiary-files): Move declaration before first use.
* lisp/gnus/nnfolder.el (nnfolder-request-accept-article):
Remove unused var `buf`.
* lisp/gnus/nnmail.el (nnmail-parse-active): Remove unused var `err`.
* lisp/gnus/nnmairix.el (nnmairix-request-group): Remove unused var `args`.
(nnmairix-request-create-group): Remove unused var `info`.
(nnmairix-request-list): Remove unused var `folder`.
(nnmairix-request-set-mark): Remove unused var `propto`.
(nnmairix-request-set-mark): Remove unused vars `number` and `method`.
(nnmairix-close-group): Remove unused var `method`.
(nnmairix-create-search-group-from-message): Remove unused var `cq`.
(nnmairix-create-server-and-default-group): Remove unused var `create`.
(nnmairix-purge-old-groups): Remove unused var `folder`.
(nnmairix-remove-tick-mark-original-article, nnmairix-get-valid-servers):
Remove unused var `cur`.
(nnmairix-replace-group-and-numbers): Remove unused var `header`.
(nnmairix-goto-original-article): Remove unused var `rval`.
(nnmairix-widget-create-query): Remove unused var `allwidgets`.
* lisp/gnus/nnmbox.el (nnml-current-directory): Declare var.
* lisp/gnus/nnmh.el (nnmh-toplev): Move declaration before first use.
(nnmh-request-list-1): Remove unused var `rdir`.
* lisp/gnus/nnml.el (nnml-generate-nov-file): Remove unused var `file`.
* lisp/gnus/nnrss.el (nnrss-request-article): Remove unused var `post`.
(nnrss-request-article): Remove unused var `fn`.
(nnrss-check-group): Remove unused var `rdf-ns`.
* lisp/gnus/nnweb.el (nnweb-request-article): Remove unused var `active`.
(nnweb-google-parse-1): Remove unused var `Score`.
* lisp/gnus/spam-stat.el (spam-stat-error-holder): Remove var.
(spam-stat-buffer-words-with-scores): Remove unused var `word`.
(spam-stat-score-buffer): Remove unused var `spam-stat-error-holder`.
(spam-stat-split-fancy): Use `err` instead of `spam-stat-error-holder`.
* lisp/gnus/spam-wash.el (spam-wash): Remove unused var `handle`.
* lisp/gnus/spam.el (spam-copy-or-move-routine): Remove unused vars
`article` and `mark`.
(spam-register-routine): Remove unused var `article`.
(spam-log-undo-registration): Remove unused var `found`.
(spam-ifile-register-with-ifile): Remove unused var `parameters`.
(spam-check-stat): Remove unused vars `category` and `return`.
(spam-parse-list): Remove unused var `found`.
(spam-filelist-register-routine): Remove unused var `from`.
2021-01-30 18:44:00 -05:00
|
|
|
(lambda (_group)
|
1997-04-16 22:13:18 +00:00
|
|
|
(command-execute func))))
|
|
|
|
(gnus-group-position-point))
|
|
|
|
|
|
|
|
(defun gnus-group-process-prefix (n)
|
|
|
|
"Return a list of groups to work on.
|
|
|
|
Take into consideration N (the prefix) and the list of marked groups."
|
|
|
|
(cond
|
|
|
|
(n
|
|
|
|
(setq n (prefix-numeric-value n))
|
|
|
|
;; There is a prefix, so we return a list of the N next
|
|
|
|
;; groups.
|
|
|
|
(let ((way (if (< n 0) -1 1))
|
|
|
|
(n (abs n))
|
|
|
|
group groups)
|
|
|
|
(save-excursion
|
1999-02-20 14:05:57 +00:00
|
|
|
(while (> n 0)
|
|
|
|
(if (setq group (gnus-group-group-name))
|
|
|
|
(push group groups))
|
1997-04-16 22:13:18 +00:00
|
|
|
(setq n (1- n))
|
|
|
|
(gnus-group-next-group way)))
|
|
|
|
(nreverse groups)))
|
2016-02-10 10:58:59 +11:00
|
|
|
((and transient-mark-mode mark-active (mark))
|
1997-04-16 22:13:18 +00:00
|
|
|
;; Work on the region between point and mark.
|
|
|
|
(let ((max (max (point) (mark)))
|
|
|
|
groups)
|
|
|
|
(save-excursion
|
|
|
|
(goto-char (min (point) (mark)))
|
|
|
|
(while
|
|
|
|
(and
|
|
|
|
(push (gnus-group-group-name) groups)
|
|
|
|
(zerop (gnus-group-next-group 1))
|
|
|
|
(< (point) max)))
|
|
|
|
(nreverse groups))))
|
|
|
|
(gnus-group-marked
|
|
|
|
;; No prefix, but a list of marked articles.
|
|
|
|
(reverse gnus-group-marked))
|
|
|
|
(t
|
|
|
|
;; Neither marked articles or a prefix, so we return the
|
|
|
|
;; current group.
|
|
|
|
(let ((group (gnus-group-group-name)))
|
|
|
|
(and group (list group))))))
|
|
|
|
|
* lisp/gnus: Misc simplifications found during conversion to lexical
* lisp/gnus/nnoo.el (noo-import-1, nnoo-define-skeleton-1): Use `dolist`.
(noo-map-functions, nnoo-define-basics): Directly emit the code rather than
going through an intermediate function; this also avoids the use of `eval`.
(noo-map-functions-1, nnoo-define-basics-1): Delete functions,
folded into their corresponding macro.
* lisp/gnus/gmm-utils.el (gmm-tool-bar-from-list): Demote `eval` to
`symbol-value`.
* lisp/gnus/gnus-art.el (gnus-button-handle-describe-key): Avoid `eval`
since `kbd` is a function nowadays.
(gnus-treat-part-number): Rename from `part-number`.
(gnus-treat-total-parts): Rename from `total-parts`.
(gnus-treat-article, gnus-treat-predicate): Adjust accordingly.
* lisp/gnus/gnus-cache.el (gnus-agent-load-alist): Use `declare-function`.
* lisp/gnus/gnus-group.el (gnus-cache-active-hashtb): Use `defvar`.
(gnus-group-iterate): Make it a normal function since lexical scoping
avoids the risk of name capture anyway.
(gnus-group-delete-articles): Actually use the `oldp` arg.
* lisp/gnus/gnus-html.el (gnus-html-wash-images): Fix debug message so
it's emitted after the `url` var it prints is actually initialized.
And avoid `setq` while we're at it.
* lisp/gnus/gnus-msg.el (gnus-group-mail, gnus-group-news)
(gnus-summary-mail-other-window, gnus-summary-news-other-window):
Merge `let`s using `let*`.
* lisp/gnus/gnus-spec.el (gnus-update-format-specifications):
Tighten the scope of `buffer`, and tighten a regexp.
(gnus-parse-simple-format): Reduce code duplication.
* lisp/gnus/gnus-start.el (gnus-child-mode): Don't `defvar` it since we
never use that variable and accordingly don't define it as a minor mode.
* lisp/gnus/gnus-util.el (gnus-byte-compile): Simplify so it obeys
`gnus-use-byte-compile` not just on the first call.
(iswitchb-minibuffer-setup): Declare.
* lisp/gnus/mail-source.el (mail-source-bind-1)
(mail-source-bind-common-1): Use `mapcar`.
(mail-source-set-common-1): Use `dolist`.
(display-time-event-handler): Declare.
* lisp/gnus/mml-smime.el (mml-smime-epg-verify): Reduce code duplication.
* lisp/gnus/mml.el (mml-parse-1): Reduce code duplication.
* lisp/gnus/mml2015.el (mml2015-epg-verify): Reduce code duplication.
* lisp/gnus/nnmail.el (nnmail-get-split-group): Tighten regexp.
(nnmail-split-it): Reduce code duplication.
* lisp/gnus/nnweb.el (nnweb-request-article): Avoid `setq`.
* lisp/gnus/spam.el (BBDB): Use the `noerror` arg of `require`, and
define all the functions for BBDB regardless if the require succeeded.
(spam-exists-in-BBDB-p): Don't inline, not worth it.
2021-01-30 16:45:25 -05:00
|
|
|
(defun gnus-group-iterate (arg function)
|
|
|
|
"Iterate FUNCTION over all process/prefixed groups.
|
2000-09-19 13:37:09 +00:00
|
|
|
FUNCTION will be called with the group name as the parameter
|
1997-04-16 22:13:18 +00:00
|
|
|
and with point over the group in question."
|
* lisp/gnus: Misc simplifications found during conversion to lexical
* lisp/gnus/nnoo.el (noo-import-1, nnoo-define-skeleton-1): Use `dolist`.
(noo-map-functions, nnoo-define-basics): Directly emit the code rather than
going through an intermediate function; this also avoids the use of `eval`.
(noo-map-functions-1, nnoo-define-basics-1): Delete functions,
folded into their corresponding macro.
* lisp/gnus/gmm-utils.el (gmm-tool-bar-from-list): Demote `eval` to
`symbol-value`.
* lisp/gnus/gnus-art.el (gnus-button-handle-describe-key): Avoid `eval`
since `kbd` is a function nowadays.
(gnus-treat-part-number): Rename from `part-number`.
(gnus-treat-total-parts): Rename from `total-parts`.
(gnus-treat-article, gnus-treat-predicate): Adjust accordingly.
* lisp/gnus/gnus-cache.el (gnus-agent-load-alist): Use `declare-function`.
* lisp/gnus/gnus-group.el (gnus-cache-active-hashtb): Use `defvar`.
(gnus-group-iterate): Make it a normal function since lexical scoping
avoids the risk of name capture anyway.
(gnus-group-delete-articles): Actually use the `oldp` arg.
* lisp/gnus/gnus-html.el (gnus-html-wash-images): Fix debug message so
it's emitted after the `url` var it prints is actually initialized.
And avoid `setq` while we're at it.
* lisp/gnus/gnus-msg.el (gnus-group-mail, gnus-group-news)
(gnus-summary-mail-other-window, gnus-summary-news-other-window):
Merge `let`s using `let*`.
* lisp/gnus/gnus-spec.el (gnus-update-format-specifications):
Tighten the scope of `buffer`, and tighten a regexp.
(gnus-parse-simple-format): Reduce code duplication.
* lisp/gnus/gnus-start.el (gnus-child-mode): Don't `defvar` it since we
never use that variable and accordingly don't define it as a minor mode.
* lisp/gnus/gnus-util.el (gnus-byte-compile): Simplify so it obeys
`gnus-use-byte-compile` not just on the first call.
(iswitchb-minibuffer-setup): Declare.
* lisp/gnus/mail-source.el (mail-source-bind-1)
(mail-source-bind-common-1): Use `mapcar`.
(mail-source-set-common-1): Use `dolist`.
(display-time-event-handler): Declare.
* lisp/gnus/mml-smime.el (mml-smime-epg-verify): Reduce code duplication.
* lisp/gnus/mml.el (mml-parse-1): Reduce code duplication.
* lisp/gnus/mml2015.el (mml2015-epg-verify): Reduce code duplication.
* lisp/gnus/nnmail.el (nnmail-get-split-group): Tighten regexp.
(nnmail-split-it): Reduce code duplication.
* lisp/gnus/nnweb.el (nnweb-request-article): Avoid `setq`.
* lisp/gnus/spam.el (BBDB): Use the `noerror` arg of `require`, and
define all the functions for BBDB regardless if the require succeeded.
(spam-exists-in-BBDB-p): Don't inline, not worth it.
2021-01-30 16:45:25 -05:00
|
|
|
(declare (indent 1))
|
|
|
|
(let ((window (selected-window)))
|
|
|
|
(dolist (group (gnus-group-process-prefix arg))
|
|
|
|
(select-window window)
|
|
|
|
(gnus-group-remove-mark group)
|
|
|
|
(save-selected-window
|
|
|
|
(save-excursion
|
|
|
|
(funcall function group))))))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
;; Selecting groups.
|
|
|
|
|
1999-02-20 14:05:57 +00:00
|
|
|
(defun gnus-group-read-group (&optional all no-article group select-articles)
|
1997-04-16 22:13:18 +00:00
|
|
|
"Read news in this newsgroup.
|
|
|
|
If the prefix argument ALL is non-nil, already read articles become
|
2008-02-24 06:43:15 +00:00
|
|
|
readable.
|
|
|
|
|
|
|
|
If ALL is a positive number, fetch this number of the latest
|
|
|
|
articles in the group. If ALL is a negative number, fetch this
|
|
|
|
number of the earliest articles in the group.
|
|
|
|
|
|
|
|
If the optional argument NO-ARTICLE is non-nil, no article will
|
|
|
|
be auto-selected upon group entry. If GROUP is non-nil, fetch
|
|
|
|
that group."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(let ((no-display (eq all 0))
|
|
|
|
(group (or group (gnus-group-group-name)))
|
|
|
|
number active marked entry)
|
|
|
|
(when (eq all 0)
|
|
|
|
(setq all nil))
|
|
|
|
(unless group
|
|
|
|
(error "No group on current line"))
|
|
|
|
(setq marked (gnus-info-marks
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(nth 1 (setq entry (gnus-group-entry group)))))
|
1997-04-16 22:13:18 +00:00
|
|
|
;; This group might be a dead group. In that case we have to get
|
|
|
|
;; the number of unread articles from `gnus-active-hashtb'.
|
|
|
|
(setq number
|
|
|
|
(cond ((numberp all) all)
|
|
|
|
(entry (car entry))
|
|
|
|
((setq active (gnus-active group))
|
|
|
|
(- (1+ (cdr active)) (car active)))))
|
|
|
|
(gnus-summary-read-group
|
|
|
|
group (or all (and (numberp number)
|
2022-01-17 12:40:43 +01:00
|
|
|
(zerop (+ number (range-length
|
1997-04-16 22:13:18 +00:00
|
|
|
(cdr (assq 'tick marked)))
|
2022-01-17 12:40:43 +01:00
|
|
|
(range-length
|
1997-04-16 22:13:18 +00:00
|
|
|
(cdr (assq 'dormant marked)))))))
|
1999-02-20 14:05:57 +00:00
|
|
|
no-article nil no-display nil select-articles)))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-select-group (&optional all)
|
|
|
|
"Select this newsgroup.
|
|
|
|
No article is selected automatically.
|
2004-09-04 13:13:48 +00:00
|
|
|
If the group is opened, just switch the summary buffer.
|
1997-04-16 22:13:18 +00:00
|
|
|
If ALL is non-nil, already read articles become readable.
|
2006-06-29 22:54:24 +00:00
|
|
|
If ALL is a positive number, fetch this number of the latest
|
|
|
|
articles in the group.
|
|
|
|
If ALL is a negative number, fetch this number of the earliest
|
|
|
|
articles in the group."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
2004-09-04 13:13:48 +00:00
|
|
|
(when (and (eobp) (not (gnus-group-group-name)))
|
|
|
|
(forward-line -1))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-read-group all t))
|
|
|
|
|
* lisp/gnus: Use lexical-binding in all the files
* lisp/gnus/gnus-group.el (features): Use `dlet`.
(gnus-tmp-level, gnus-tmp-marked, gnus-tmp-group): Declare vars.
(gnus-group-insert-group-line): Bind dynbound vars via `let` rather
than as formal args. Bind `number` as dynbound.
(gnus-visual, gnus-score-find-score-files-function)
(gnus-home-score-file, gnus-apply-kill-hook)
(gnus-summary-expunge-below): Declare vars.
(gnus-group-restart, gnus-group-list-plus): Fix `interactive` spec
since the arg is unused.
* lisp/gnus/mail-source.el (mail-source-bind, mail-source-bind-common):
Use `dlet` and suppress the warnings about the non-prefixed dynbound vars.
(mail-source-set-1): Remove unused var `auth-info`.
(mail-source-call-script): Remove unused var `background`.
(mail-source-fetch-pop, mail-source-check-pop): Bind pop3 vars with `dlet`.
* lisp/gnus/gnus-int.el (mail-source-plugged, gnus-inhibit-demon):
Declare vars.
(gnus-server-opened, gnus-status-message)
(gnus-open-server, gnus-close-server, gnus-request-list)
(gnus-finish-retrieve-group-infos, gnus-retrieve-group-data-early)
(gnus-request-list-newsgroups, gnus-request-newgroups)
(gnus-request-regenerate, gnus-request-compact, gnus-request-group)
(gnus-retrieve-groups, gnus-request-post, gnus-request-expunge-group)
(gnus-request-scan, gnus-request-update-info, gnus-request-marks)
(gnus-request-accept-article, gnus-request-create-group)
(gnus-asynchronous-p, gnus-remove-denial):
Bind `gnus-command-method` via `let` rather than as formal args.
* lisp/gnus/gnus-topic.el (gnus-topic-insert-topic-line):
Pass documented vars to eval for `gnus-topic-line-format-spec`.
* lisp/gnus/message.el (message-yank-original): Use `cl-progv` rather
than `eval` to bind the vars from `message-cite-style`.
* lisp/gnus/mml.el (mml-parse-1): Use `apply` instead of `eval`.
(gnus-newsgroup-name, gnus-displaying-mime, gnus-newsgroup-name)
(gnus-article-prepare-hook, gnus-newsgroup-charset)
(gnus-original-article-buffer, gnus-message-buffer)
(message-this-is-news, message-this-is-mail): Declare vars.
* lisp/gnus/deuglify.el (gnus-outlook-rearrange-article): Remove unused
var `cite-marks`.
* lisp/gnus/gnus-art.el (ansi-color-context-region): Declare var.
(gnus-mime-display-attachment-buttons-in-header): Move declaration
before first use.
(gnus-mime-display-alternative): Remove unused var `from`.
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-list): Remove unused
var `start` `end`.
* lisp/gnus/gnus-cache.el (gnus-article-decode-hook)
(nnml-generate-active-function): Declare var.
* lisp/gnus/gnus-cite.el (gnus-message-citation-mode): Remove unused
var `keywords`.
* lisp/gnus/gnus-cloud.el (gnus-cloud-encode-data): Remove unused var
`cipher`.
(gnus-cloud-ensure-cloud-group): Remove unused var `method`.
* lisp/gnus/gnus-delay.el (gnus-delay-article): Remove unused var `days`.
* lisp/gnus/gnus-html.el (gnus-html-wash-images): Remove unused vars
`tag`, `string`, and `images`.
(gnus-html-wash-tags): Remove unused vars `string` and `images`.
* lisp/gnus/gnus-msg.el (gnus-msg-mail): Remove unused var `group-name`.
(gnus-group-mail, gnus-group-news, gnus-summary-mail-other-window)
(gnus-summary-news-other-window):
Remove unused vars `group` and `buffer`.
(gnus-configure-posting-styles): Remove unused vars `style` and `attribute`.
* lisp/gnus/gnus-picon.el (gnus-picon-find-face): Remove unused vars
`database`, `directory`, and `instance`.
(gnus-picon-transform-newsgroups): Remove unused var `point`.
* lisp/gnus/gnus-range.el (gnus-range-difference): Remove unused var `safe`.
* lisp/gnus/gnus-score.el (gnus-score-load-file): Remove unused var
`score-fn`.
* lisp/gnus/gnus-sum.el (message-options-set-recipient): Declare var.
* lisp/gnus/gnus-undo.el (gnus-undo): Fix docstring lie.
* lisp/gnus/gnus-util.el (print-string-length)
(iswitchb-make-buflist-hook): Declare vars.
(gnus-emacs-version): Remove unused var `codename`.
(gnus-rename-file): Remove unused vars `old-name` and `new-name`.
* lisp/gnus/gnus-uu.el (gnus-uu-yenc-article): Remove unused var
`start-char`.
(gnus-asynchronous): Declare var.
* lisp/gnus/mm-partial.el (gnus-displaying-mime): Declare var.
(mm-inline-partial): Remove unused var `buffer`.
* lisp/gnus/mm-view.el (w3m-force-redisplay, w3m-safe-url-regexp)
(gnus-displaying-mime, gnus-original-article-buffer)
(gnus-article-prepare-hook): Declare vars.
* lisp/gnus/mml-smime.el (mml-smime-epg-encrypt): Remove unused var
`boundary`.
(mml-smime-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/mml1991.el (pgg-text-mode): Declare var.
* lisp/gnus/mml2015.el (pgg-text-mode): Declare var.
(mml2015-pgg-decrypt): Remove unused var `result`.
(mml2015-epg-key-image-to-string): Remove unused var `error`.
(mml2015-epg-decrypt): Remove unused var `result`.
(mml2015-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/nnbabyl.el (nnml-current-directory): Declare var.
* lisp/gnus/nndiary.el (nndiary-files): Move declaration before first use.
* lisp/gnus/nnfolder.el (nnfolder-request-accept-article):
Remove unused var `buf`.
* lisp/gnus/nnmail.el (nnmail-parse-active): Remove unused var `err`.
* lisp/gnus/nnmairix.el (nnmairix-request-group): Remove unused var `args`.
(nnmairix-request-create-group): Remove unused var `info`.
(nnmairix-request-list): Remove unused var `folder`.
(nnmairix-request-set-mark): Remove unused var `propto`.
(nnmairix-request-set-mark): Remove unused vars `number` and `method`.
(nnmairix-close-group): Remove unused var `method`.
(nnmairix-create-search-group-from-message): Remove unused var `cq`.
(nnmairix-create-server-and-default-group): Remove unused var `create`.
(nnmairix-purge-old-groups): Remove unused var `folder`.
(nnmairix-remove-tick-mark-original-article, nnmairix-get-valid-servers):
Remove unused var `cur`.
(nnmairix-replace-group-and-numbers): Remove unused var `header`.
(nnmairix-goto-original-article): Remove unused var `rval`.
(nnmairix-widget-create-query): Remove unused var `allwidgets`.
* lisp/gnus/nnmbox.el (nnml-current-directory): Declare var.
* lisp/gnus/nnmh.el (nnmh-toplev): Move declaration before first use.
(nnmh-request-list-1): Remove unused var `rdir`.
* lisp/gnus/nnml.el (nnml-generate-nov-file): Remove unused var `file`.
* lisp/gnus/nnrss.el (nnrss-request-article): Remove unused var `post`.
(nnrss-request-article): Remove unused var `fn`.
(nnrss-check-group): Remove unused var `rdf-ns`.
* lisp/gnus/nnweb.el (nnweb-request-article): Remove unused var `active`.
(nnweb-google-parse-1): Remove unused var `Score`.
* lisp/gnus/spam-stat.el (spam-stat-error-holder): Remove var.
(spam-stat-buffer-words-with-scores): Remove unused var `word`.
(spam-stat-score-buffer): Remove unused var `spam-stat-error-holder`.
(spam-stat-split-fancy): Use `err` instead of `spam-stat-error-holder`.
* lisp/gnus/spam-wash.el (spam-wash): Remove unused var `handle`.
* lisp/gnus/spam.el (spam-copy-or-move-routine): Remove unused vars
`article` and `mark`.
(spam-register-routine): Remove unused var `article`.
(spam-log-undo-registration): Remove unused var `found`.
(spam-ifile-register-with-ifile): Remove unused var `parameters`.
(spam-check-stat): Remove unused vars `category` and `return`.
(spam-parse-list): Remove unused var `found`.
(spam-filelist-register-routine): Remove unused var `from`.
2021-01-30 18:44:00 -05:00
|
|
|
(defvar gnus-visual)
|
|
|
|
(defvar gnus-score-find-score-files-function)
|
|
|
|
(defvar gnus-home-score-file)
|
|
|
|
(defvar gnus-apply-kill-hook)
|
|
|
|
(defvar gnus-summary-expunge-below)
|
|
|
|
|
2007-10-28 09:18:39 +00:00
|
|
|
(defun gnus-group-quick-select-group (&optional all group)
|
|
|
|
"Select the GROUP \"quickly\".
|
|
|
|
This means that no highlighting or scoring will be performed. If
|
|
|
|
ALL (the prefix argument) is 0, don't even generate the summary
|
|
|
|
buffer. If GROUP is nil, use current group.
|
1999-02-20 14:05:57 +00:00
|
|
|
|
|
|
|
This might be useful if you want to toggle threading
|
|
|
|
before entering the group."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(require 'gnus-score)
|
|
|
|
(let (gnus-visual
|
|
|
|
gnus-score-find-score-files-function
|
|
|
|
gnus-home-score-file
|
|
|
|
gnus-apply-kill-hook
|
|
|
|
gnus-summary-expunge-below)
|
2007-10-28 09:18:39 +00:00
|
|
|
(gnus-group-read-group all t group)))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-visible-select-group (&optional all)
|
|
|
|
"Select the current group without hiding any articles."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(let ((gnus-inhibit-limiting t))
|
|
|
|
(gnus-group-read-group all t)))
|
|
|
|
|
|
|
|
(defun gnus-group-select-group-ephemerally ()
|
|
|
|
"Select the current group without doing any processing whatsoever.
|
|
|
|
You will actually be entered into a group that's a copy of
|
|
|
|
the current group; no changes you make while in this group will
|
|
|
|
be permanent."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive nil gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(require 'gnus-score)
|
|
|
|
(let* (gnus-visual
|
|
|
|
gnus-score-find-score-files-function gnus-apply-kill-hook
|
|
|
|
gnus-summary-expunge-below gnus-show-threads gnus-suppress-duplicates
|
|
|
|
gnus-summary-mode-hook gnus-select-group-hook
|
|
|
|
(group (gnus-group-group-name))
|
|
|
|
(method (gnus-find-method-for-group group)))
|
|
|
|
(gnus-group-read-ephemeral-group
|
|
|
|
(gnus-group-prefixed-name group method) method)))
|
|
|
|
|
2007-10-28 09:18:39 +00:00
|
|
|
(defun gnus-group-name-at-point ()
|
|
|
|
"Return a group name from around point if it exists, or nil."
|
2013-09-10 23:31:56 -04:00
|
|
|
(if (derived-mode-p 'gnus-group-mode)
|
2018-11-16 12:53:56 -08:00
|
|
|
(gnus-group-group-name)
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
;; FIXME: Use rx.
|
2007-10-28 09:18:39 +00:00
|
|
|
(let ((regexp "[][\C-@-\t\v-*,/:-@\\^`{-\C-?]*\
|
|
|
|
\\(nn[a-z]+\\(?:\\+[^][\C-@-*,/:-@\\^`{-\C-?]+\\)?:\
|
2015-09-17 16:08:20 -07:00
|
|
|
[^][\C-@-*,./:-@\\^`{-\C-?]+\\(?:\\.[^][\C-@-*,./:-@\\^`{-\C-?]+\\)*\
|
2007-10-28 09:18:39 +00:00
|
|
|
\\|[^][\C-@-*,./:-@\\^`{-\C-?]+\\(?:\\.[^][\C-@-*,./:-@\\^`{-\C-?]+\\)+\\)")
|
|
|
|
(start (point))
|
|
|
|
(case-fold-search nil))
|
|
|
|
(prog1
|
|
|
|
(if (or (and (not (or (eobp)
|
|
|
|
(looking-at "[][\C-@-*,/;-@\\^`{-\C-?]")))
|
|
|
|
(prog1 t
|
|
|
|
(skip-chars-backward "^][\C-@-\t\v-*,/;-@\\^`{-\C-?"
|
2022-08-23 04:54:57 +02:00
|
|
|
(line-beginning-position))))
|
2007-10-28 09:18:39 +00:00
|
|
|
(and (looking-at "[][\C-@-\t\v-*,/;-@\\^`{-\C-?]*$")
|
|
|
|
(prog1 t
|
|
|
|
(skip-chars-backward "][\C-@-\t\v-*,/;-@\\^`{-\C-?")
|
|
|
|
(skip-chars-backward "^][\C-@-\t\v-*,/;-@\\^`{-\C-?"
|
2022-08-23 04:54:57 +02:00
|
|
|
(line-beginning-position))))
|
2007-10-28 09:18:39 +00:00
|
|
|
(string-match "\\`[][\C-@-\t\v-*,/;-@\\^`{-\C-?]*\\'"
|
2022-08-23 04:54:57 +02:00
|
|
|
(buffer-substring (line-beginning-position) (point))))
|
2007-10-28 09:18:39 +00:00
|
|
|
(when (looking-at regexp)
|
|
|
|
(match-string 1))
|
|
|
|
(let (group distance)
|
|
|
|
(when (looking-at regexp)
|
|
|
|
(setq group (match-string 1)
|
|
|
|
distance (- (match-beginning 1) (match-beginning 0))))
|
|
|
|
(skip-chars-backward "][\C-@-\t\v-*,/;-@\\^`{-\C-?")
|
|
|
|
(skip-chars-backward "^][\C-@-\t\v-*,/;-@\\^`{-\C-?"
|
2022-08-23 04:54:57 +02:00
|
|
|
(line-beginning-position))
|
2007-10-28 09:18:39 +00:00
|
|
|
(if (looking-at regexp)
|
|
|
|
(if (and group (<= distance (- start (match-end 0))))
|
|
|
|
group
|
|
|
|
(match-string 1))
|
|
|
|
group)))
|
|
|
|
(goto-char start)))))
|
|
|
|
|
Merge changes made in Gnus trunk.
nndraft.el (nndraft-request-expire-articles): Use the group name instead if "nndraft".
gnus.texi (Using IMAP): Remove the @acronyms from the headings.
nnregistry.el: Added.
nnimap.el (nnimap-insert-partial-structure): Be way more permissive when interpreting the structures.
GNUS-NEWS: Minor error in GNUS-NEWS - password-cache.el.
nnimap.el (nnimap-request-accept-article): Add \r\n to the lines to make this work with Cyrus.
gnus-registry.el: Don't prompt on load, which makes it impossible to build Gnus.
gnus-gravatar.el: Add gnus-gravatar-properties.
gnus-agent.el, gnus-art.el, gnus-bookmark.el, gnus-dired.el, gnus-group.el,\
gnus-int.el, gnus-msg.el, gnus-registry.el, gnus-score.el, gnus-srvr.el,\
gnus-sum.el, gnus-topic.el, gnus-util.el, gnus.el, mm-decode.el, mm-util.el,\
mm-view.el, mml-smime.el, mml.el, nnmairix.el, nnrss.el, smime.el:\
Introduce gnus-completing-read.
gnus-util.el: Make completing-read function configurable.
gnus-util.el: Add requires and fix history for iswitchb.
webmail.el: Remove netscape/my-deja, since they no longer exist.
gnus.el (gnus-local-domain): Declare variable obsolete.
nnimap.el (nnimap-insert-partial-structure): Get the type from the correct slot, too.
pop3.el (pop3-send-streaming-command, pop3-stream-length): New variable.
nnimap.el (nnimap-open-connection): Revert the auto-network->starttls code.
nnimap.el (nnimap-request-set-mark): Erase the buffer before issuing commands.
nnimap.el (nnimap-split-rule): Mark as obsolete.
gnus-sum.el (gnus-valid-move-group-p): Make sure that `group' is a symbol.
nnimap.el (nnimap-split-incoming-mail): Allow `default' as nnimap-split-methods value.
nnimap.el (nnimap-request-article): Downcase the NILs so that they are nil.
nndoc.el (nndoc-retrieve-groups): New function.
gnus.texi: Fix Gravatar documentation.
2010-09-30 08:39:23 +00:00
|
|
|
(defun gnus-group-completing-read (&optional prompt collection
|
2010-10-06 01:09:32 +00:00
|
|
|
require-match initial-input hist
|
|
|
|
def)
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
"Read a group name with completion.
|
2018-11-16 12:53:56 -08:00
|
|
|
The arguments are the same as `completing-read' except that
|
|
|
|
COLLECTION and HIST default to `gnus-active-hashtb' and
|
|
|
|
`gnus-group-history' respectively if they are omitted. Can
|
|
|
|
handle COLLECTION as a list, hash table, or vector."
|
|
|
|
;; This function handles vectors for backwards compatibility. In
|
|
|
|
;; theory, `collection' will only ever be a list or a hash table.
|
2010-10-06 01:09:32 +00:00
|
|
|
(or collection (setq collection gnus-active-hashtb))
|
2019-03-31 09:18:43 -07:00
|
|
|
(let* ((choices
|
|
|
|
(cond ((listp collection)
|
|
|
|
collection)
|
|
|
|
((vectorp collection)
|
|
|
|
(mapatoms #'symbol-name collection))
|
|
|
|
((hash-table-p collection)
|
2018-11-16 12:53:56 -08:00
|
|
|
(hash-table-keys collection))))
|
2019-03-31 09:18:43 -07:00
|
|
|
(group
|
|
|
|
(gnus-completing-read (or prompt "Group") (reverse choices)
|
|
|
|
require-match initial-input
|
|
|
|
(or hist 'gnus-group-history)
|
|
|
|
def)))
|
Use string-replace instead of replace-regexp-in-string
`string-replace` is easier to understand, less error-prone, much
faster, and results in shorter Lisp and byte code. Use it where
applicable and obviously safe (erring on the conservative side).
* admin/authors.el (authors-scan-change-log):
* lisp/autoinsert.el (auto-insert-alist):
* lisp/calc/calc-prog.el (calc-edit-macro-combine-alg-ent)
(calc-edit-macro-combine-ext-command)
(calc-edit-macro-combine-var-name):
* lisp/calc/calc-units.el (math-make-unit-string):
* lisp/calendar/cal-html.el (cal-html-comment):
* lisp/calendar/cal-tex.el (cal-tex-comment):
* lisp/calendar/icalendar.el (icalendar--convert-string-for-export)
(icalendar--convert-string-for-import):
* lisp/calendar/iso8601.el (iso8601--concat-regexps)
(iso8601--full-time-match, iso8601--combined-match):
* lisp/calendar/time-date.el (format-seconds):
* lisp/calendar/todo-mode.el (todo-filter-items-filename):
* lisp/cedet/cedet-files.el (cedet-directory-name-to-file-name)
(cedet-file-name-to-directory-name):
* lisp/comint.el (comint-watch-for-password-prompt):
* lisp/dired-aux.el (dired-do-chmod):
* lisp/dired-x.el (dired-man):
* lisp/dired.el (dired-insert-directory, dired-goto-file-1):
* lisp/emacs-lisp/comp.el (comp-c-func-name):
* lisp/emacs-lisp/re-builder.el (reb-copy):
* lisp/erc/erc-dcc.el (erc-dcc-unquote-filename):
* lisp/erc/erc.el (erc-quit-reason-zippy, erc-part-reason-zippy)
(erc-update-mode-line-buffer, erc-message-english-PART):
* lisp/files.el (make-backup-file-name-1, files--transform-file-name)
(read-file-modes):
* lisp/fringe.el (fringe-mode):
* lisp/gnus/gnus-art.el (gnus-button-handle-info-url):
* lisp/gnus/gnus-group.el (gnus-group-completing-read):
* lisp/gnus/gnus-icalendar.el (gnus-icalendar-event-from-ical):
* lisp/gnus/gnus-mlspl.el (gnus-group-split-fancy):
* lisp/gnus/gnus-search.el (gnus-search-query-parse-date)
(gnus-search-transform-expression, gnus-search-run-search):
* lisp/gnus/gnus-start.el (gnus-dribble-enter):
* lisp/gnus/gnus-sum.el (gnus-summary-refer-article):
* lisp/gnus/gnus-util.el (gnus-mode-string-quote):
* lisp/gnus/message.el (message-put-addresses-in-ecomplete)
(message-parse-mailto-url, message-mailto-1):
* lisp/gnus/mml-sec.el (mml-secure-epg-sign):
* lisp/gnus/mml-smime.el (mml-smime-epg-verify):
* lisp/gnus/mml2015.el (mml2015-epg-verify):
* lisp/gnus/nnmaildir.el (nnmaildir--system-name)
(nnmaildir-request-list, nnmaildir-retrieve-groups)
(nnmaildir-request-group, nnmaildir-retrieve-headers):
* lisp/gnus/nnrss.el (nnrss-node-text):
* lisp/gnus/spam-report.el (spam-report-gmane-internal)
(spam-report-user-mail-address):
* lisp/ibuffer.el (name):
* lisp/image-dired.el (image-dired-pngnq-thumb)
(image-dired-pngcrush-thumb, image-dired-optipng-thumb)
(image-dired-create-thumb-1):
* lisp/info.el (Info-set-mode-line):
* lisp/international/mule-cmds.el (describe-language-environment):
* lisp/mail/rfc2231.el (rfc2231-parse-string):
* lisp/mail/rfc2368.el (rfc2368-parse-mailto-url):
* lisp/mail/rmail.el (rmail-insert-inbox-text)
(rmail-simplified-subject-regexp):
* lisp/mail/rmailout.el (rmail-output-body-to-file):
* lisp/mail/undigest.el (rmail-digest-rfc1153):
* lisp/man.el (Man-default-man-entry):
* lisp/mouse.el (minor-mode-menu-from-indicator):
* lisp/mpc.el (mpc--debug):
* lisp/net/browse-url.el (browse-url-mail):
* lisp/net/eww.el (eww-update-header-line-format):
* lisp/net/newst-backend.el (newsticker-save-item):
* lisp/net/rcirc.el (rcirc-sentinel):
* lisp/net/soap-client.el (soap-decode-date-time):
* lisp/nxml/rng-cmpct.el (rng-c-literal-2-re):
* lisp/nxml/xmltok.el (let*):
* lisp/obsolete/nnir.el (nnir-run-swish-e, nnir-run-hyrex)
(nnir-run-find-grep):
* lisp/play/dunnet.el (dun-doassign):
* lisp/play/handwrite.el (handwrite):
* lisp/proced.el (proced-format-args):
* lisp/profiler.el (profiler-report-header-line-format):
* lisp/progmodes/gdb-mi.el (gdb-mi-quote):
* lisp/progmodes/make-mode.el (makefile-bsdmake-rule-action-regex)
(makefile-make-font-lock-keywords):
* lisp/progmodes/prolog.el (prolog-guess-fill-prefix):
* lisp/progmodes/ruby-mode.el (ruby-toggle-string-quotes):
* lisp/progmodes/sql.el (sql-remove-tabs-filter, sql-str-literal):
* lisp/progmodes/which-func.el (which-func-current):
* lisp/replace.el (query-replace-read-from)
(occur-engine, replace-quote):
* lisp/select.el (xselect--encode-string):
* lisp/ses.el (ses-export-tab):
* lisp/subr.el (shell-quote-argument):
* lisp/term/pc-win.el (msdos-show-help):
* lisp/term/w32-win.el (w32--set-selection):
* lisp/term/xterm.el (gui-backend-set-selection):
* lisp/textmodes/picture.el (picture-tab-search):
* lisp/thumbs.el (thumbs-call-setroot-command):
* lisp/tooltip.el (tooltip-show-help-non-mode):
* lisp/transient.el (transient-format-key):
* lisp/url/url-mailto.el (url-mailto):
* lisp/vc/log-edit.el (log-edit-changelog-ours-p):
* lisp/vc/vc-bzr.el (vc-bzr-status):
* lisp/vc/vc-hg.el (vc-hg--glob-to-pcre):
* lisp/vc/vc-svn.el (vc-svn-after-dir-status):
* lisp/xdg.el (xdg-desktop-strings):
* test/lisp/electric-tests.el (defun):
* test/lisp/term-tests.el (term-simple-lines):
* test/lisp/time-stamp-tests.el (formatz-mod-del-colons):
* test/lisp/wdired-tests.el (wdired-test-bug32173-01)
(wdired-test-unfinished-edit-01):
* test/src/json-tests.el (json-parse-with-custom-null-and-false-objects):
Use `string-replace` instead of `replace-regexp-in-string`.
2021-08-08 18:58:46 +02:00
|
|
|
(string-replace "\n" "" group)))
|
2007-10-28 09:18:39 +00:00
|
|
|
|
1997-04-16 22:13:18 +00:00
|
|
|
;;;###autoload
|
2004-09-04 13:13:48 +00:00
|
|
|
(defun gnus-fetch-group (group &optional articles)
|
1997-04-16 22:13:18 +00:00
|
|
|
"Start Gnus if necessary and enter GROUP.
|
2007-10-28 09:18:39 +00:00
|
|
|
If ARTICLES, display those articles.
|
1997-04-16 22:13:18 +00:00
|
|
|
Returns whether the fetching was successful or not."
|
Merge changes made in Gnus trunk.
nndraft.el (nndraft-request-expire-articles): Use the group name instead if "nndraft".
gnus.texi (Using IMAP): Remove the @acronyms from the headings.
nnregistry.el: Added.
nnimap.el (nnimap-insert-partial-structure): Be way more permissive when interpreting the structures.
GNUS-NEWS: Minor error in GNUS-NEWS - password-cache.el.
nnimap.el (nnimap-request-accept-article): Add \r\n to the lines to make this work with Cyrus.
gnus-registry.el: Don't prompt on load, which makes it impossible to build Gnus.
gnus-gravatar.el: Add gnus-gravatar-properties.
gnus-agent.el, gnus-art.el, gnus-bookmark.el, gnus-dired.el, gnus-group.el,\
gnus-int.el, gnus-msg.el, gnus-registry.el, gnus-score.el, gnus-srvr.el,\
gnus-sum.el, gnus-topic.el, gnus-util.el, gnus.el, mm-decode.el, mm-util.el,\
mm-view.el, mml-smime.el, mml.el, nnmairix.el, nnrss.el, smime.el:\
Introduce gnus-completing-read.
gnus-util.el: Make completing-read function configurable.
gnus-util.el: Add requires and fix history for iswitchb.
webmail.el: Remove netscape/my-deja, since they no longer exist.
gnus.el (gnus-local-domain): Declare variable obsolete.
nnimap.el (nnimap-insert-partial-structure): Get the type from the correct slot, too.
pop3.el (pop3-send-streaming-command, pop3-stream-length): New variable.
nnimap.el (nnimap-open-connection): Revert the auto-network->starttls code.
nnimap.el (nnimap-request-set-mark): Erase the buffer before issuing commands.
nnimap.el (nnimap-split-rule): Mark as obsolete.
gnus-sum.el (gnus-valid-move-group-p): Make sure that `group' is a symbol.
nnimap.el (nnimap-split-incoming-mail): Allow `default' as nnimap-split-methods value.
nnimap.el (nnimap-request-article): Downcase the NILs so that they are nil.
nndoc.el (nndoc-retrieve-groups): New function.
gnus.texi: Fix Gravatar documentation.
2010-09-30 08:39:23 +00:00
|
|
|
(interactive (list (gnus-group-completing-read nil
|
|
|
|
nil nil
|
2007-10-28 09:18:39 +00:00
|
|
|
(gnus-group-name-at-point))))
|
|
|
|
(unless (gnus-alive-p)
|
1999-02-20 14:05:57 +00:00
|
|
|
(gnus-no-server))
|
2007-10-28 09:18:39 +00:00
|
|
|
(gnus-group-read-group (if articles nil t) nil group articles))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
1999-02-20 14:05:57 +00:00
|
|
|
;;;###autoload
|
|
|
|
(defun gnus-fetch-group-other-frame (group)
|
|
|
|
"Pop up a frame and enter GROUP."
|
|
|
|
(interactive "P")
|
|
|
|
(let ((window (get-buffer-window gnus-group-buffer)))
|
|
|
|
(cond (window
|
|
|
|
(select-frame (window-frame window)))
|
|
|
|
((= (length (frame-list)) 1)
|
|
|
|
(select-frame (make-frame)))
|
|
|
|
(t
|
|
|
|
(other-frame 1))))
|
|
|
|
(gnus-fetch-group group))
|
|
|
|
|
2004-09-04 13:13:48 +00:00
|
|
|
(defcustom gnus-large-ephemeral-newsgroup 200
|
|
|
|
"The number of articles which indicates a large ephemeral newsgroup.
|
|
|
|
Same as `gnus-large-newsgroup', but only used for ephemeral newsgroups.
|
|
|
|
|
|
|
|
If the number of articles in a newsgroup is greater than this value,
|
|
|
|
confirmation is required for selecting the newsgroup. If it is nil, no
|
|
|
|
confirmation is required."
|
2005-02-09 15:50:47 +00:00
|
|
|
:version "22.1"
|
2004-09-04 13:13:48 +00:00
|
|
|
:group 'gnus-group-select
|
|
|
|
:type '(choice (const :tag "No limit" nil)
|
|
|
|
integer))
|
|
|
|
|
|
|
|
(defcustom gnus-fetch-old-ephemeral-headers nil
|
|
|
|
"Same as `gnus-fetch-old-headers', but only used for ephemeral newsgroups."
|
2005-02-09 15:50:47 +00:00
|
|
|
:version "22.1"
|
2004-09-04 13:13:48 +00:00
|
|
|
:group 'gnus-thread
|
|
|
|
:type '(choice (const :tag "off" nil)
|
|
|
|
(const some)
|
|
|
|
number
|
|
|
|
(sexp :menu-tag "other" t)))
|
|
|
|
|
1997-04-16 22:13:18 +00:00
|
|
|
;; Enter a group that is not in the group buffer. Non-nil is returned
|
|
|
|
;; if selection was successful.
|
|
|
|
(defun gnus-group-read-ephemeral-group (group method &optional activate
|
1999-02-20 14:05:57 +00:00
|
|
|
quit-config request-only
|
2004-09-04 13:13:48 +00:00
|
|
|
select-articles
|
2005-03-30 08:14:32 +00:00
|
|
|
parameters
|
|
|
|
number)
|
1997-04-16 22:13:18 +00:00
|
|
|
"Read GROUP from METHOD as an ephemeral group.
|
|
|
|
If ACTIVATE, request the group first.
|
2012-01-07 01:13:52 +00:00
|
|
|
If QUIT-CONFIG, use that Gnus window configuration name when
|
|
|
|
exiting from the ephemeral group.
|
1997-04-16 22:13:18 +00:00
|
|
|
If REQUEST-ONLY, don't actually read the group; just request it.
|
1999-02-20 14:05:57 +00:00
|
|
|
If SELECT-ARTICLES, only select those articles.
|
2004-09-04 13:13:48 +00:00
|
|
|
If PARAMETERS, use those as the group parameters.
|
2005-03-30 08:14:32 +00:00
|
|
|
If NUMBER, fetch this number of articles.
|
1997-04-16 22:13:18 +00:00
|
|
|
|
2000-09-19 13:37:09 +00:00
|
|
|
Return the name of the group if selection was successful."
|
2004-09-04 13:13:48 +00:00
|
|
|
(interactive
|
|
|
|
(list
|
|
|
|
;; (gnus-read-group "Group name: ")
|
Merge changes made in Gnus trunk.
nndraft.el (nndraft-request-expire-articles): Use the group name instead if "nndraft".
gnus.texi (Using IMAP): Remove the @acronyms from the headings.
nnregistry.el: Added.
nnimap.el (nnimap-insert-partial-structure): Be way more permissive when interpreting the structures.
GNUS-NEWS: Minor error in GNUS-NEWS - password-cache.el.
nnimap.el (nnimap-request-accept-article): Add \r\n to the lines to make this work with Cyrus.
gnus-registry.el: Don't prompt on load, which makes it impossible to build Gnus.
gnus-gravatar.el: Add gnus-gravatar-properties.
gnus-agent.el, gnus-art.el, gnus-bookmark.el, gnus-dired.el, gnus-group.el,\
gnus-int.el, gnus-msg.el, gnus-registry.el, gnus-score.el, gnus-srvr.el,\
gnus-sum.el, gnus-topic.el, gnus-util.el, gnus.el, mm-decode.el, mm-util.el,\
mm-view.el, mml-smime.el, mml.el, nnmairix.el, nnrss.el, smime.el:\
Introduce gnus-completing-read.
gnus-util.el: Make completing-read function configurable.
gnus-util.el: Add requires and fix history for iswitchb.
webmail.el: Remove netscape/my-deja, since they no longer exist.
gnus.el (gnus-local-domain): Declare variable obsolete.
nnimap.el (nnimap-insert-partial-structure): Get the type from the correct slot, too.
pop3.el (pop3-send-streaming-command, pop3-stream-length): New variable.
nnimap.el (nnimap-open-connection): Revert the auto-network->starttls code.
nnimap.el (nnimap-request-set-mark): Erase the buffer before issuing commands.
nnimap.el (nnimap-split-rule): Mark as obsolete.
gnus-sum.el (gnus-valid-move-group-p): Make sure that `group' is a symbol.
nnimap.el (nnimap-split-incoming-mail): Allow `default' as nnimap-split-methods value.
nnimap.el (nnimap-request-article): Downcase the NILs so that they are nil.
nndoc.el (nndoc-retrieve-groups): New function.
gnus.texi: Fix Gravatar documentation.
2010-09-30 08:39:23 +00:00
|
|
|
(gnus-group-completing-read)
|
2010-11-08 01:38:47 +00:00
|
|
|
(gnus-read-method "From method")))
|
2011-07-17 00:11:27 +00:00
|
|
|
(unless (gnus-alive-p)
|
Merge changes made in Gnus master ever since feature freeze
:::::::::::::::::
::: doc/misc/ :::
:::::::::::::::::
2012-06-11 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.texi (POP before SMTP): POP-before-SMTP works with all sending
methods, so don't mention smtpmail here.
2012-05-04 Wolfgang Jenkner <wjenkner@inode.at>
* gnus.texi (Picons): Document gnus-picon-properties.
2012-06-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.texi: Remove mention of compilation, as that's no longer
supported.
2012-03-14 Christopher Schmidt <christopher@ch.ristopher.com>
* gnus.texi (Archived Messages): Mention
gnus-gcc-pre-body-encode-hook and gnus-gcc-post-body-encode-hook.
2012-02-16 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Various Summary Stuff):
Remove mention of `gnus-propagate-marks'.
2012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi: Remove mentions of nnml/nnfolder/nntp backend marks,
which no longer exist.
2012-02-08 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus.texi (Archived Messages):
Document gnus-gcc-self-resent-messages.
2012-02-06 Lars Ingebrigtsen <larsi@gnus.org>
* message.texi (Mail Variables):
Mention the optional user parameter for X-Message-SMTP-Method.
2012-02-02 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Posting Styles): Mention X-Message-SMTP-Method.
* message.texi (Mail Variables): Document X-Message-SMTP-Method.
2012-01-31 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Key Index): Change encoding to utf-8.
::::::::::::::::::
::: lisp/gnus/ :::
::::::::::::::::::
2012-06-26 Katsumi Yamaoka <yamaoka@jpl.org>
* mm-decode.el: Add coding cookie for a soft hyphen that mm-shr uses.
2012-06-11 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus-art.el (gnus-article-read-summary-keys): Protect against the key
being bound to a lambda form.
2012-05-04 Wolfgang Jenkner <wjenkner@inode.at>
* gnus-picon.el (gnus-picon-properties): New defcustom.
(gnus-picon-create-glyph): Use it.
2012-06-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* shr.el: Add a iso-8859-1 cookie to make stuff work under other
locales.
* mm-decode.el (mm-display-part): Dissect archives when hitting `RET'
on a handle.
* gnus-sum.el (gnus-summary-limit-to-author): Use the current From
address as the default.
* nnfolder.el (nnfolder-save-buffer): Delete old versions silently.
It makes no sense to query the user about internal files.
* gnus-spec.el: Remove all the byte-compilation stuff, since
benchmarking shows that it doesn't help when entering large summary
buffers.
* gnus-util.el (gnus-byte-code): Remove.
* gnus-spec.el (gnus-update-format-specifications): Remove outdated
grouplens stuff.
2012-06-07 Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk>
* message.el (message-buffers): Return all buffers derived from Message
to make `gnus-dired-attach' work with mu4e.
2012-05-28 Daiki Ueno <ueno@unixuser.org>
* mm-decode.el (mm-inhibit-auto-detect-attachment): New variable.
(mm-dissect-singlepart): Don't guess the MIME type of
application/octet-stream parts if mm-inhibit-auto-detect-attachment is
set.
(mm-dissect-multipart): Bind mm-inhibit-auto-detect-attachment if the
toplevel MIME type is multipart/encrypted.
2011-12-02 Wolfgang Jenkner <wjenkner@inode.at>
* gnus-agent.el (gnus-agent-save-active): Deal with the "groups" format.
In particular, add an optional argument and a docstring.
* gnus-start.el (gnus-groups-to-gnus-format): Use it.
* nntp.el (nntp-finish-retrieve-group-infos): Make `nntp-server-buffer'
current before calling `gnus-groups-to-gnus-format'.
Note that this was already the case for `gnus-active-to-gnus-format'.
2012-04-25 Katsumi Yamaoka <yamaoka@jpl.org>
* pop3.el (pop3-wait-for-messages): Fix retrieved data size calculation.
2012-04-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
* mm-decode.el (mm-dissect-buffer): Doc fix.
* gnus-sum.el (gnus-handle-ephemeral-exit):
Avoid creating the group buffer if it doesn't exist.
* gnus-group.el (gnus-group-read-ephemeral-group): If no quit-config
is given, mark the group as ephemeral with the current window conf.
* gnus-sum.el (gnus-set-global-variables): Don't assume that the group
buffer exists, which it doesn't if we haven't started Gnus.
(gnus-summary-exit): Allow quitting when we don't have a group buffer.
2012-04-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* mml.el (mml-generate-mime):
Allow specifying what the top-level part type is.
* gnus-sum.el (gnus-auto-center-summary):
`scroll-margin' isn't defined on XEmacs.
2012-04-10 Philipp Haselwarter <philipp.haselwarter@gmx.de> (tiny change)
* gnus-sum.el (gnus-auto-center-summary):
Set default to respect `scroll-margin'.
2012-04-10 Elias Oltmanns <eo@nebensachen.de> (tiny change)
* gnus-cite.el (gnus-dissect-cited-text): A single line without
citation prefix within a block of cited text should be considered
part of that block *only* if it is a blank line.
2012-04-02 Katsumi Yamaoka <yamaoka@jpl.org>
* shr.el (shr-find-fill-point): Remove unused code; don't break a line
before kinsoku-bol characters nor within kinsoku-eol characters.
2012-03-27 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-sync.el (gnus-topic-alist, gnus-group-topic)
(gnus-topic-create-topic, gnus-topic-enter-dribble):
Silence compiler.
(gnus-sync-read): Use mapc instead of mapcar.
* mm-archive.el: Require mm-decode for some macros.
(gnus-recursive-directory-files, mailcap-extension-to-mime):
Silence the byte compiler.
(mm-archive-decoders): New function that returns the value of
the mm-archive-decoders variable.
* mm-decode.el:
Don't require mm-archive; autoload mm-archive functions instead.
(mm-dissect-singlepart): Use the function mm-archive-decoders.
* nnmail.el (mail-send-and-exit): Silence the byte compiler.
2012-03-12 Peter Munster <pmrb@free.fr>
* gnus-demon.el (gnus-demon-timers): Now a plist (function -> timer).
(gnus-demon-cancel): Ditto.
(gnus-demon-run-callback): When function cannot be called due to low
idleness, call it when idleness reaches the expected value, instead
of waiting another timer period.
(gnus-demon-init): Add `time' to arguments of call-back.
2012-03-22 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.el: Register gnus-registry functions.
* gnus-registry.el (gnus-try-warping-via-registry):
Moved here and indent.
* gnus-int.el (gnus-warp-to-article):
Check whether the registry is enabled before warping.
2012-03-22 Dave Abrahams <dave@boostpro.com>
* gnus-sum.el (gnus-summary-insert-subject): Record information
in the registry about each article retrieved.
* gnus-int.el (gnus-select-group-with-message-id): New function.
(gnus-try-warping-via-registry): Ditto.
(gnus-warp-to-article): Fall back on the registry.
2012-03-22 Lars Magne Ingebrigtsen <larsi@gnus.org>
* nnimap.el (nnimap-fetch-partial-articles): Minor doc string fixup.
2012-03-22 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-msg.el (gnus-summary-resend-message-insert-gcc): Assume that
gnus-gcc-self-resent-messages may be a group parameter.
(gnus-summary-resend-message):
Don't encode encoded words in header when Gcc'ing resent message.
2012-03-19 Lars Magne Ingebrigtsen <larsi@gnus.org>
* shr.el (shr-insert): Treat non-breaking space just like normal
space. This seems to produce more pleasing results.
(shr-insert):
Only insert a blank line if we're starting from an image.
(shr-tag-br):
Allow <br> to end lines or to make a single blank line.
(shr-ensure-paragraph): Consider lines with white space to be blank.
2012-03-14 Christopher Schmidt <christopher@ch.ristopher.com>
* gnus-msg.el (gnus-inews-do-gcc): Add gnus-gcc-pre-body-encode-hook
and gnus-gcc-post-body-encode-hook.
2012-02-16 Lars Ingebrigtsen <larsi@gnus.org>
* mm-decode.el (mm-dissect-singlepart):
Guess what the type of application/octet-stream parts really is.
* gnus-sum.el (gnus-propagate-marks): Remove.
2012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
* nntp.el (nntp-coding-system-for-read): Remove.
(nntp-coding-system-for-write): Ditto.
(nntp-open-connection): Just use `binary' directly.
2012-02-14 Teodor Zlatanov <tzz@lifelogs.com>
* registry.el (registry-usage-test, registry-persistence-test):
Move to tests/gnustest-registry.el.
(registry-make-testable-db, registry-match-test)
(registry-instantiation-test): Move to tests/gnustest-registry.el.
* gnus-registry.el (gnus-registry-misc-test)
(gnus-registry-usage-test): Move to tests/gnustest-registry.el.
* tests/gnustest-registry.el:
New file with the registry and gnus-registry ERT tests.
2012-02-13 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-msg.el (gnus-summary-resend-message):
Make gnus-summary-resend-message-insert-gcc be last item in
message-header-setup-hook.
2012-02-13 Lars Ingebrigtsen <larsi@gnus.org>
* nnfolder.el (nnfolder-marks-directory, nnfolder-marks-is-evil)
(nnfolder-marks, nnfolder-marks-file-suffix)
(nnfolder-marks-modtime): Remove.
(nnfolder-open-server): Don't use marks.
(nnfolder-request-delete-group): Ditto.
(nnfolder-request-rename-group): Ditto.
(nnfolder-request-set-mark, nnfolder-request-marks)
(nnfolder-group-marks-pathname, nnfolder-marks-changed-p)
(nnfolder-save-marks, nnfolder-open-marks): Remove.
* nnml.el (nnml-marks-is-evil, nnml-marks-file-name, nnml-marks)
(nnml-marks-modtime): Remove.
(nnml-request-delete-group): Don't use marks.
(nnml-request-rename-group): Ditto.
(nnml-request-set-mark, nnml-request-marks, nnml-marks-changed-p)
(nnml-save-marks, nnml-open-marks): Remove.
* nntp.el (nntp-marks-is-evil, nntp-marks-file-name, nntp-marks)
(nntp-marks-modtime, nntp-marks-directory, nntp-request-set-mark)
(nntp-request-marks, nntp-marks-directory, nntp-marks-changed-p)
(nntp-save-marks, nntp-open-marks, nntp-possibly-create-directory)
(nntp-server-to-method-cache): Remove.
* shr.el (shr-rescale-image): Fix wrong merge.
2012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
* shr.el (shr-remove-trailing-whitespace):
Really delete the padding on too-wide lines.
2012-02-09 Lars Ingebrigtsen <larsi@gnus.org>
* mm-archive.el (mm-archive-dissect-and-inline): New function.
(mm-archive-dissect-and-inline): Fix up the undisplayer.
* mm-decode.el (mm-display-external): Output the text from
the command in the buffer after the command finished.
This makes text-based commands behave better.
2012-02-07 Lars Ingebrigtsen <larsi@gnus.org>
* message.el (smtpmail-smtp-user): Silence compiler warning.
2012-02-06 Lars Ingebrigtsen <larsi@gnus.org>
* message.el (message-multi-smtp-send-mail):
Also allow specifying the SMTP user name.
2012-02-06 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-sum.el (gnus-summary-article-map): Fix typo.
2012-02-02 Lars Ingebrigtsen <larsi@gnus.org>
* message.el (message-multi-smtp-send-mail): New function.
(message-multi-smtp-send-mail): Respect the X-Message-SMTP-Method
header to implement multi-SMTP functionality.
* gnus-agent.el (gnus-agent-send-mail-function): Removed.
(gnus-agentize): Don't set it.
(gnus-agent-send-mail): Don't use it.
* gnus-sum.el (gnus-summary-widget-backward):
New function and keystroke.
* shr.el (shr-put-image): Remove underlines from sliced images.
(shr-zoom-image): Compute the region to be replaced more correctly.
2012-02-02 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-msg.el (gnus-gcc-self-resent-messages): New user option.
(gnus-summary-resend-message-insert-gcc): New function.
(gnus-summary-resend-message): Modify message-header-setup-hook and
message-sent-hook to make it work for Gcc.
(gnus-inews-do-gcc): Update the number of unread articles of groups
that messages are Gcc'd to.
* message.el (message-resend): Run message-sent-hook to do Gcc.
2012-02-01 Lars Ingebrigtsen <larsi@gnus.org>
* gnus-registry.el (gnus-registry-fixup-registry):
Move the message to a higher level to silence compilation.
* gnus-art.el (gnus-shr-put-image): Take and pass on a `flags'
parameter to allow controlling the scaling.
* shr.el (shr-zoom-image): New command and keystroke.
(shr-put-image): Take a `size' flag to say how to scale the image.
* mm-archive.el (mm-dissect-archive): Use it to get all file names.
Use recursive deletion.
(mm-dissect-archive): Add support for zip files.
* gnus-util.el (gnus-recursive-directory-files): New function.
* mm-archive.el (mm-archive-list-files): Inline text and image parts.
(mm-archive-decoders): Add tgz support.
* mm-decode.el (mm-shr): Make sure that the HTML ends with a newline.
Otherwise inserting text into the Gnus buffer can look odd.
* gnus-art.el (gnus-mime-inline-part): Slight clean-up.
* mm-archive.el (mm-archive-decoders): Add support for tar.
* gnus.el (gnus-logo-color-alist): Change the colours for Ma Gnus.
* nnmail.el (nnmail-extra-headers): Add Cc to the default.
2012-01-31 Lars Ingebrigtsen <larsi@gnus.org>
* mm-decode.el (mm-dissect-singlepart): Check that the decoder exists.
* mm-archive.el: New file.
* mm-decode.el (mm-dissect-singlepart):
Use it to decode ms-tnef files.
* mm-util.el (mm-find-buffer-file-coding-system): Comment fix.
* message.el (message-goto-*): Make all the `message-goto-*' commands
push the mark before moving point. This makes it easier to go back
to where you came from after editing whatever you jumped to.
2012-01-07 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el (gnus-sync-newsrc-groups): Quote normally.
(gnus-sync-lesync-pre-save-group-entry): Remove invalid invlists.
(gnus-sync-lesync-normalize-group-entry): Ignore a few more keys.
2011-11-09 Teodor Zlatanov <tzz@lifelogs.com>
* spam.el: Move BBDB autoloads.
(spam-exists-in-BBDB-p):
New function to do the BBDB search directly in BBDB 2 and 3.
(spam-check-BBDB): Use it.
(spam-enter-ham-BBDB): Use it.
2011-10-31 Peter Munster <pmrb@free.fr> (tiny change)
* gnus-group.el (gnus-group-get-new-news):
New parameter `one-level' for scanning exactly one level.
* gnus-start.el (gnus-get-unread-articles): Ditto.
2011-11-03 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: More commentary about setup.
2011-11-02 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: More commentary about `gnus-sync-read' issues.
2011-10-31 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: Improve docs about CouchDB admins.
2011-10-29 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el (gnus-sync-lesync-setup): Fix salt when user setup is
not needed. Provide xmlplistread list function to produce XML plist
output for non-Gnus LeSync clients.
2011-10-27 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: Add LeSync synchronization backend and logic to read
and save against it. Group subscriptions, read marks, other marks,
subscription levels, topic names, and topic offsets (the group's
position within the topic) are saved. This is an experimental
backend and may change significantly. Load json.el from
the gnus-fallback-lib if it's not available otherwise.
(gnus-sync-save): Don't use `apply-partially' because of XEmacs.
2011-04-20 David Engster <dengste@eml.cc>
* tests/gnustest-nntp.el: New file for simple NNTP testing.
2012-06-26 22:52:31 +00:00
|
|
|
(nnheader-init-server-buffer)
|
|
|
|
;; Necessary because of funky inlining.
|
|
|
|
(require 'gnus-cache)
|
2019-03-28 15:39:53 -07:00
|
|
|
(setq gnus-newsrc-hashtb (gnus-make-hashtable 100)
|
|
|
|
gnus-active-hashtb (gnus-make-hashtable 100)))
|
Merge changes made in Gnus master ever since feature freeze
:::::::::::::::::
::: doc/misc/ :::
:::::::::::::::::
2012-06-11 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.texi (POP before SMTP): POP-before-SMTP works with all sending
methods, so don't mention smtpmail here.
2012-05-04 Wolfgang Jenkner <wjenkner@inode.at>
* gnus.texi (Picons): Document gnus-picon-properties.
2012-06-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.texi: Remove mention of compilation, as that's no longer
supported.
2012-03-14 Christopher Schmidt <christopher@ch.ristopher.com>
* gnus.texi (Archived Messages): Mention
gnus-gcc-pre-body-encode-hook and gnus-gcc-post-body-encode-hook.
2012-02-16 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Various Summary Stuff):
Remove mention of `gnus-propagate-marks'.
2012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi: Remove mentions of nnml/nnfolder/nntp backend marks,
which no longer exist.
2012-02-08 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus.texi (Archived Messages):
Document gnus-gcc-self-resent-messages.
2012-02-06 Lars Ingebrigtsen <larsi@gnus.org>
* message.texi (Mail Variables):
Mention the optional user parameter for X-Message-SMTP-Method.
2012-02-02 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Posting Styles): Mention X-Message-SMTP-Method.
* message.texi (Mail Variables): Document X-Message-SMTP-Method.
2012-01-31 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Key Index): Change encoding to utf-8.
::::::::::::::::::
::: lisp/gnus/ :::
::::::::::::::::::
2012-06-26 Katsumi Yamaoka <yamaoka@jpl.org>
* mm-decode.el: Add coding cookie for a soft hyphen that mm-shr uses.
2012-06-11 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus-art.el (gnus-article-read-summary-keys): Protect against the key
being bound to a lambda form.
2012-05-04 Wolfgang Jenkner <wjenkner@inode.at>
* gnus-picon.el (gnus-picon-properties): New defcustom.
(gnus-picon-create-glyph): Use it.
2012-06-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* shr.el: Add a iso-8859-1 cookie to make stuff work under other
locales.
* mm-decode.el (mm-display-part): Dissect archives when hitting `RET'
on a handle.
* gnus-sum.el (gnus-summary-limit-to-author): Use the current From
address as the default.
* nnfolder.el (nnfolder-save-buffer): Delete old versions silently.
It makes no sense to query the user about internal files.
* gnus-spec.el: Remove all the byte-compilation stuff, since
benchmarking shows that it doesn't help when entering large summary
buffers.
* gnus-util.el (gnus-byte-code): Remove.
* gnus-spec.el (gnus-update-format-specifications): Remove outdated
grouplens stuff.
2012-06-07 Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk>
* message.el (message-buffers): Return all buffers derived from Message
to make `gnus-dired-attach' work with mu4e.
2012-05-28 Daiki Ueno <ueno@unixuser.org>
* mm-decode.el (mm-inhibit-auto-detect-attachment): New variable.
(mm-dissect-singlepart): Don't guess the MIME type of
application/octet-stream parts if mm-inhibit-auto-detect-attachment is
set.
(mm-dissect-multipart): Bind mm-inhibit-auto-detect-attachment if the
toplevel MIME type is multipart/encrypted.
2011-12-02 Wolfgang Jenkner <wjenkner@inode.at>
* gnus-agent.el (gnus-agent-save-active): Deal with the "groups" format.
In particular, add an optional argument and a docstring.
* gnus-start.el (gnus-groups-to-gnus-format): Use it.
* nntp.el (nntp-finish-retrieve-group-infos): Make `nntp-server-buffer'
current before calling `gnus-groups-to-gnus-format'.
Note that this was already the case for `gnus-active-to-gnus-format'.
2012-04-25 Katsumi Yamaoka <yamaoka@jpl.org>
* pop3.el (pop3-wait-for-messages): Fix retrieved data size calculation.
2012-04-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
* mm-decode.el (mm-dissect-buffer): Doc fix.
* gnus-sum.el (gnus-handle-ephemeral-exit):
Avoid creating the group buffer if it doesn't exist.
* gnus-group.el (gnus-group-read-ephemeral-group): If no quit-config
is given, mark the group as ephemeral with the current window conf.
* gnus-sum.el (gnus-set-global-variables): Don't assume that the group
buffer exists, which it doesn't if we haven't started Gnus.
(gnus-summary-exit): Allow quitting when we don't have a group buffer.
2012-04-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* mml.el (mml-generate-mime):
Allow specifying what the top-level part type is.
* gnus-sum.el (gnus-auto-center-summary):
`scroll-margin' isn't defined on XEmacs.
2012-04-10 Philipp Haselwarter <philipp.haselwarter@gmx.de> (tiny change)
* gnus-sum.el (gnus-auto-center-summary):
Set default to respect `scroll-margin'.
2012-04-10 Elias Oltmanns <eo@nebensachen.de> (tiny change)
* gnus-cite.el (gnus-dissect-cited-text): A single line without
citation prefix within a block of cited text should be considered
part of that block *only* if it is a blank line.
2012-04-02 Katsumi Yamaoka <yamaoka@jpl.org>
* shr.el (shr-find-fill-point): Remove unused code; don't break a line
before kinsoku-bol characters nor within kinsoku-eol characters.
2012-03-27 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-sync.el (gnus-topic-alist, gnus-group-topic)
(gnus-topic-create-topic, gnus-topic-enter-dribble):
Silence compiler.
(gnus-sync-read): Use mapc instead of mapcar.
* mm-archive.el: Require mm-decode for some macros.
(gnus-recursive-directory-files, mailcap-extension-to-mime):
Silence the byte compiler.
(mm-archive-decoders): New function that returns the value of
the mm-archive-decoders variable.
* mm-decode.el:
Don't require mm-archive; autoload mm-archive functions instead.
(mm-dissect-singlepart): Use the function mm-archive-decoders.
* nnmail.el (mail-send-and-exit): Silence the byte compiler.
2012-03-12 Peter Munster <pmrb@free.fr>
* gnus-demon.el (gnus-demon-timers): Now a plist (function -> timer).
(gnus-demon-cancel): Ditto.
(gnus-demon-run-callback): When function cannot be called due to low
idleness, call it when idleness reaches the expected value, instead
of waiting another timer period.
(gnus-demon-init): Add `time' to arguments of call-back.
2012-03-22 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.el: Register gnus-registry functions.
* gnus-registry.el (gnus-try-warping-via-registry):
Moved here and indent.
* gnus-int.el (gnus-warp-to-article):
Check whether the registry is enabled before warping.
2012-03-22 Dave Abrahams <dave@boostpro.com>
* gnus-sum.el (gnus-summary-insert-subject): Record information
in the registry about each article retrieved.
* gnus-int.el (gnus-select-group-with-message-id): New function.
(gnus-try-warping-via-registry): Ditto.
(gnus-warp-to-article): Fall back on the registry.
2012-03-22 Lars Magne Ingebrigtsen <larsi@gnus.org>
* nnimap.el (nnimap-fetch-partial-articles): Minor doc string fixup.
2012-03-22 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-msg.el (gnus-summary-resend-message-insert-gcc): Assume that
gnus-gcc-self-resent-messages may be a group parameter.
(gnus-summary-resend-message):
Don't encode encoded words in header when Gcc'ing resent message.
2012-03-19 Lars Magne Ingebrigtsen <larsi@gnus.org>
* shr.el (shr-insert): Treat non-breaking space just like normal
space. This seems to produce more pleasing results.
(shr-insert):
Only insert a blank line if we're starting from an image.
(shr-tag-br):
Allow <br> to end lines or to make a single blank line.
(shr-ensure-paragraph): Consider lines with white space to be blank.
2012-03-14 Christopher Schmidt <christopher@ch.ristopher.com>
* gnus-msg.el (gnus-inews-do-gcc): Add gnus-gcc-pre-body-encode-hook
and gnus-gcc-post-body-encode-hook.
2012-02-16 Lars Ingebrigtsen <larsi@gnus.org>
* mm-decode.el (mm-dissect-singlepart):
Guess what the type of application/octet-stream parts really is.
* gnus-sum.el (gnus-propagate-marks): Remove.
2012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
* nntp.el (nntp-coding-system-for-read): Remove.
(nntp-coding-system-for-write): Ditto.
(nntp-open-connection): Just use `binary' directly.
2012-02-14 Teodor Zlatanov <tzz@lifelogs.com>
* registry.el (registry-usage-test, registry-persistence-test):
Move to tests/gnustest-registry.el.
(registry-make-testable-db, registry-match-test)
(registry-instantiation-test): Move to tests/gnustest-registry.el.
* gnus-registry.el (gnus-registry-misc-test)
(gnus-registry-usage-test): Move to tests/gnustest-registry.el.
* tests/gnustest-registry.el:
New file with the registry and gnus-registry ERT tests.
2012-02-13 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-msg.el (gnus-summary-resend-message):
Make gnus-summary-resend-message-insert-gcc be last item in
message-header-setup-hook.
2012-02-13 Lars Ingebrigtsen <larsi@gnus.org>
* nnfolder.el (nnfolder-marks-directory, nnfolder-marks-is-evil)
(nnfolder-marks, nnfolder-marks-file-suffix)
(nnfolder-marks-modtime): Remove.
(nnfolder-open-server): Don't use marks.
(nnfolder-request-delete-group): Ditto.
(nnfolder-request-rename-group): Ditto.
(nnfolder-request-set-mark, nnfolder-request-marks)
(nnfolder-group-marks-pathname, nnfolder-marks-changed-p)
(nnfolder-save-marks, nnfolder-open-marks): Remove.
* nnml.el (nnml-marks-is-evil, nnml-marks-file-name, nnml-marks)
(nnml-marks-modtime): Remove.
(nnml-request-delete-group): Don't use marks.
(nnml-request-rename-group): Ditto.
(nnml-request-set-mark, nnml-request-marks, nnml-marks-changed-p)
(nnml-save-marks, nnml-open-marks): Remove.
* nntp.el (nntp-marks-is-evil, nntp-marks-file-name, nntp-marks)
(nntp-marks-modtime, nntp-marks-directory, nntp-request-set-mark)
(nntp-request-marks, nntp-marks-directory, nntp-marks-changed-p)
(nntp-save-marks, nntp-open-marks, nntp-possibly-create-directory)
(nntp-server-to-method-cache): Remove.
* shr.el (shr-rescale-image): Fix wrong merge.
2012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
* shr.el (shr-remove-trailing-whitespace):
Really delete the padding on too-wide lines.
2012-02-09 Lars Ingebrigtsen <larsi@gnus.org>
* mm-archive.el (mm-archive-dissect-and-inline): New function.
(mm-archive-dissect-and-inline): Fix up the undisplayer.
* mm-decode.el (mm-display-external): Output the text from
the command in the buffer after the command finished.
This makes text-based commands behave better.
2012-02-07 Lars Ingebrigtsen <larsi@gnus.org>
* message.el (smtpmail-smtp-user): Silence compiler warning.
2012-02-06 Lars Ingebrigtsen <larsi@gnus.org>
* message.el (message-multi-smtp-send-mail):
Also allow specifying the SMTP user name.
2012-02-06 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-sum.el (gnus-summary-article-map): Fix typo.
2012-02-02 Lars Ingebrigtsen <larsi@gnus.org>
* message.el (message-multi-smtp-send-mail): New function.
(message-multi-smtp-send-mail): Respect the X-Message-SMTP-Method
header to implement multi-SMTP functionality.
* gnus-agent.el (gnus-agent-send-mail-function): Removed.
(gnus-agentize): Don't set it.
(gnus-agent-send-mail): Don't use it.
* gnus-sum.el (gnus-summary-widget-backward):
New function and keystroke.
* shr.el (shr-put-image): Remove underlines from sliced images.
(shr-zoom-image): Compute the region to be replaced more correctly.
2012-02-02 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-msg.el (gnus-gcc-self-resent-messages): New user option.
(gnus-summary-resend-message-insert-gcc): New function.
(gnus-summary-resend-message): Modify message-header-setup-hook and
message-sent-hook to make it work for Gcc.
(gnus-inews-do-gcc): Update the number of unread articles of groups
that messages are Gcc'd to.
* message.el (message-resend): Run message-sent-hook to do Gcc.
2012-02-01 Lars Ingebrigtsen <larsi@gnus.org>
* gnus-registry.el (gnus-registry-fixup-registry):
Move the message to a higher level to silence compilation.
* gnus-art.el (gnus-shr-put-image): Take and pass on a `flags'
parameter to allow controlling the scaling.
* shr.el (shr-zoom-image): New command and keystroke.
(shr-put-image): Take a `size' flag to say how to scale the image.
* mm-archive.el (mm-dissect-archive): Use it to get all file names.
Use recursive deletion.
(mm-dissect-archive): Add support for zip files.
* gnus-util.el (gnus-recursive-directory-files): New function.
* mm-archive.el (mm-archive-list-files): Inline text and image parts.
(mm-archive-decoders): Add tgz support.
* mm-decode.el (mm-shr): Make sure that the HTML ends with a newline.
Otherwise inserting text into the Gnus buffer can look odd.
* gnus-art.el (gnus-mime-inline-part): Slight clean-up.
* mm-archive.el (mm-archive-decoders): Add support for tar.
* gnus.el (gnus-logo-color-alist): Change the colours for Ma Gnus.
* nnmail.el (nnmail-extra-headers): Add Cc to the default.
2012-01-31 Lars Ingebrigtsen <larsi@gnus.org>
* mm-decode.el (mm-dissect-singlepart): Check that the decoder exists.
* mm-archive.el: New file.
* mm-decode.el (mm-dissect-singlepart):
Use it to decode ms-tnef files.
* mm-util.el (mm-find-buffer-file-coding-system): Comment fix.
* message.el (message-goto-*): Make all the `message-goto-*' commands
push the mark before moving point. This makes it easier to go back
to where you came from after editing whatever you jumped to.
2012-01-07 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el (gnus-sync-newsrc-groups): Quote normally.
(gnus-sync-lesync-pre-save-group-entry): Remove invalid invlists.
(gnus-sync-lesync-normalize-group-entry): Ignore a few more keys.
2011-11-09 Teodor Zlatanov <tzz@lifelogs.com>
* spam.el: Move BBDB autoloads.
(spam-exists-in-BBDB-p):
New function to do the BBDB search directly in BBDB 2 and 3.
(spam-check-BBDB): Use it.
(spam-enter-ham-BBDB): Use it.
2011-10-31 Peter Munster <pmrb@free.fr> (tiny change)
* gnus-group.el (gnus-group-get-new-news):
New parameter `one-level' for scanning exactly one level.
* gnus-start.el (gnus-get-unread-articles): Ditto.
2011-11-03 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: More commentary about setup.
2011-11-02 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: More commentary about `gnus-sync-read' issues.
2011-10-31 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: Improve docs about CouchDB admins.
2011-10-29 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el (gnus-sync-lesync-setup): Fix salt when user setup is
not needed. Provide xmlplistread list function to produce XML plist
output for non-Gnus LeSync clients.
2011-10-27 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: Add LeSync synchronization backend and logic to read
and save against it. Group subscriptions, read marks, other marks,
subscription levels, topic names, and topic offsets (the group's
position within the topic) are saved. This is an experimental
backend and may change significantly. Load json.el from
the gnus-fallback-lib if it's not available otherwise.
(gnus-sync-save): Don't use `apply-partially' because of XEmacs.
2011-04-20 David Engster <dengste@eml.cc>
* tests/gnustest-nntp.el: New file for simple NNTP testing.
2012-06-26 22:52:31 +00:00
|
|
|
;; Transform the select method into a unique server.
|
1999-02-20 14:05:57 +00:00
|
|
|
(when (stringp method)
|
|
|
|
(setq method (gnus-server-to-method method)))
|
2012-02-02 11:07:55 +00:00
|
|
|
(let ((address-slot
|
|
|
|
(intern (format "%s-address" (car method)))))
|
|
|
|
(setq method
|
|
|
|
(if (assq address-slot (cddr method))
|
|
|
|
`(,(car method) ,(concat (cadr method) "-ephemeral")
|
|
|
|
,@(cddr method))
|
|
|
|
`(,(car method) ,(concat (cadr method) "-ephemeral")
|
|
|
|
(,address-slot ,(cadr method))
|
|
|
|
,@(cddr method)))))
|
1997-04-16 22:13:18 +00:00
|
|
|
(let ((group (if (gnus-group-foreign-p group) group
|
2004-09-04 13:13:48 +00:00
|
|
|
(gnus-group-prefixed-name (gnus-group-real-name group)
|
|
|
|
method))))
|
2012-12-24 22:56:47 +00:00
|
|
|
(gnus-set-active group nil)
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(puthash
|
1997-04-16 22:13:18 +00:00
|
|
|
group
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
`(-1 (,group
|
|
|
|
,gnus-level-default-subscribed nil nil ,method
|
|
|
|
,(cons
|
|
|
|
(cons 'quit-config
|
|
|
|
(cond
|
|
|
|
(quit-config
|
|
|
|
quit-config)
|
|
|
|
((assq gnus-current-window-configuration
|
|
|
|
gnus-buffer-configuration)
|
|
|
|
(cons gnus-summary-buffer
|
|
|
|
gnus-current-window-configuration))
|
|
|
|
(t
|
|
|
|
(cons (current-buffer)
|
|
|
|
(current-window-configuration)))))
|
|
|
|
parameters)))
|
1997-04-16 22:13:18 +00:00
|
|
|
gnus-newsrc-hashtb)
|
1999-02-20 14:05:57 +00:00
|
|
|
(push method gnus-ephemeral-servers)
|
Merge changes made in Gnus master ever since feature freeze
:::::::::::::::::
::: doc/misc/ :::
:::::::::::::::::
2012-06-11 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.texi (POP before SMTP): POP-before-SMTP works with all sending
methods, so don't mention smtpmail here.
2012-05-04 Wolfgang Jenkner <wjenkner@inode.at>
* gnus.texi (Picons): Document gnus-picon-properties.
2012-06-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.texi: Remove mention of compilation, as that's no longer
supported.
2012-03-14 Christopher Schmidt <christopher@ch.ristopher.com>
* gnus.texi (Archived Messages): Mention
gnus-gcc-pre-body-encode-hook and gnus-gcc-post-body-encode-hook.
2012-02-16 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Various Summary Stuff):
Remove mention of `gnus-propagate-marks'.
2012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi: Remove mentions of nnml/nnfolder/nntp backend marks,
which no longer exist.
2012-02-08 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus.texi (Archived Messages):
Document gnus-gcc-self-resent-messages.
2012-02-06 Lars Ingebrigtsen <larsi@gnus.org>
* message.texi (Mail Variables):
Mention the optional user parameter for X-Message-SMTP-Method.
2012-02-02 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Posting Styles): Mention X-Message-SMTP-Method.
* message.texi (Mail Variables): Document X-Message-SMTP-Method.
2012-01-31 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Key Index): Change encoding to utf-8.
::::::::::::::::::
::: lisp/gnus/ :::
::::::::::::::::::
2012-06-26 Katsumi Yamaoka <yamaoka@jpl.org>
* mm-decode.el: Add coding cookie for a soft hyphen that mm-shr uses.
2012-06-11 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus-art.el (gnus-article-read-summary-keys): Protect against the key
being bound to a lambda form.
2012-05-04 Wolfgang Jenkner <wjenkner@inode.at>
* gnus-picon.el (gnus-picon-properties): New defcustom.
(gnus-picon-create-glyph): Use it.
2012-06-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* shr.el: Add a iso-8859-1 cookie to make stuff work under other
locales.
* mm-decode.el (mm-display-part): Dissect archives when hitting `RET'
on a handle.
* gnus-sum.el (gnus-summary-limit-to-author): Use the current From
address as the default.
* nnfolder.el (nnfolder-save-buffer): Delete old versions silently.
It makes no sense to query the user about internal files.
* gnus-spec.el: Remove all the byte-compilation stuff, since
benchmarking shows that it doesn't help when entering large summary
buffers.
* gnus-util.el (gnus-byte-code): Remove.
* gnus-spec.el (gnus-update-format-specifications): Remove outdated
grouplens stuff.
2012-06-07 Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk>
* message.el (message-buffers): Return all buffers derived from Message
to make `gnus-dired-attach' work with mu4e.
2012-05-28 Daiki Ueno <ueno@unixuser.org>
* mm-decode.el (mm-inhibit-auto-detect-attachment): New variable.
(mm-dissect-singlepart): Don't guess the MIME type of
application/octet-stream parts if mm-inhibit-auto-detect-attachment is
set.
(mm-dissect-multipart): Bind mm-inhibit-auto-detect-attachment if the
toplevel MIME type is multipart/encrypted.
2011-12-02 Wolfgang Jenkner <wjenkner@inode.at>
* gnus-agent.el (gnus-agent-save-active): Deal with the "groups" format.
In particular, add an optional argument and a docstring.
* gnus-start.el (gnus-groups-to-gnus-format): Use it.
* nntp.el (nntp-finish-retrieve-group-infos): Make `nntp-server-buffer'
current before calling `gnus-groups-to-gnus-format'.
Note that this was already the case for `gnus-active-to-gnus-format'.
2012-04-25 Katsumi Yamaoka <yamaoka@jpl.org>
* pop3.el (pop3-wait-for-messages): Fix retrieved data size calculation.
2012-04-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
* mm-decode.el (mm-dissect-buffer): Doc fix.
* gnus-sum.el (gnus-handle-ephemeral-exit):
Avoid creating the group buffer if it doesn't exist.
* gnus-group.el (gnus-group-read-ephemeral-group): If no quit-config
is given, mark the group as ephemeral with the current window conf.
* gnus-sum.el (gnus-set-global-variables): Don't assume that the group
buffer exists, which it doesn't if we haven't started Gnus.
(gnus-summary-exit): Allow quitting when we don't have a group buffer.
2012-04-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* mml.el (mml-generate-mime):
Allow specifying what the top-level part type is.
* gnus-sum.el (gnus-auto-center-summary):
`scroll-margin' isn't defined on XEmacs.
2012-04-10 Philipp Haselwarter <philipp.haselwarter@gmx.de> (tiny change)
* gnus-sum.el (gnus-auto-center-summary):
Set default to respect `scroll-margin'.
2012-04-10 Elias Oltmanns <eo@nebensachen.de> (tiny change)
* gnus-cite.el (gnus-dissect-cited-text): A single line without
citation prefix within a block of cited text should be considered
part of that block *only* if it is a blank line.
2012-04-02 Katsumi Yamaoka <yamaoka@jpl.org>
* shr.el (shr-find-fill-point): Remove unused code; don't break a line
before kinsoku-bol characters nor within kinsoku-eol characters.
2012-03-27 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-sync.el (gnus-topic-alist, gnus-group-topic)
(gnus-topic-create-topic, gnus-topic-enter-dribble):
Silence compiler.
(gnus-sync-read): Use mapc instead of mapcar.
* mm-archive.el: Require mm-decode for some macros.
(gnus-recursive-directory-files, mailcap-extension-to-mime):
Silence the byte compiler.
(mm-archive-decoders): New function that returns the value of
the mm-archive-decoders variable.
* mm-decode.el:
Don't require mm-archive; autoload mm-archive functions instead.
(mm-dissect-singlepart): Use the function mm-archive-decoders.
* nnmail.el (mail-send-and-exit): Silence the byte compiler.
2012-03-12 Peter Munster <pmrb@free.fr>
* gnus-demon.el (gnus-demon-timers): Now a plist (function -> timer).
(gnus-demon-cancel): Ditto.
(gnus-demon-run-callback): When function cannot be called due to low
idleness, call it when idleness reaches the expected value, instead
of waiting another timer period.
(gnus-demon-init): Add `time' to arguments of call-back.
2012-03-22 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.el: Register gnus-registry functions.
* gnus-registry.el (gnus-try-warping-via-registry):
Moved here and indent.
* gnus-int.el (gnus-warp-to-article):
Check whether the registry is enabled before warping.
2012-03-22 Dave Abrahams <dave@boostpro.com>
* gnus-sum.el (gnus-summary-insert-subject): Record information
in the registry about each article retrieved.
* gnus-int.el (gnus-select-group-with-message-id): New function.
(gnus-try-warping-via-registry): Ditto.
(gnus-warp-to-article): Fall back on the registry.
2012-03-22 Lars Magne Ingebrigtsen <larsi@gnus.org>
* nnimap.el (nnimap-fetch-partial-articles): Minor doc string fixup.
2012-03-22 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-msg.el (gnus-summary-resend-message-insert-gcc): Assume that
gnus-gcc-self-resent-messages may be a group parameter.
(gnus-summary-resend-message):
Don't encode encoded words in header when Gcc'ing resent message.
2012-03-19 Lars Magne Ingebrigtsen <larsi@gnus.org>
* shr.el (shr-insert): Treat non-breaking space just like normal
space. This seems to produce more pleasing results.
(shr-insert):
Only insert a blank line if we're starting from an image.
(shr-tag-br):
Allow <br> to end lines or to make a single blank line.
(shr-ensure-paragraph): Consider lines with white space to be blank.
2012-03-14 Christopher Schmidt <christopher@ch.ristopher.com>
* gnus-msg.el (gnus-inews-do-gcc): Add gnus-gcc-pre-body-encode-hook
and gnus-gcc-post-body-encode-hook.
2012-02-16 Lars Ingebrigtsen <larsi@gnus.org>
* mm-decode.el (mm-dissect-singlepart):
Guess what the type of application/octet-stream parts really is.
* gnus-sum.el (gnus-propagate-marks): Remove.
2012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
* nntp.el (nntp-coding-system-for-read): Remove.
(nntp-coding-system-for-write): Ditto.
(nntp-open-connection): Just use `binary' directly.
2012-02-14 Teodor Zlatanov <tzz@lifelogs.com>
* registry.el (registry-usage-test, registry-persistence-test):
Move to tests/gnustest-registry.el.
(registry-make-testable-db, registry-match-test)
(registry-instantiation-test): Move to tests/gnustest-registry.el.
* gnus-registry.el (gnus-registry-misc-test)
(gnus-registry-usage-test): Move to tests/gnustest-registry.el.
* tests/gnustest-registry.el:
New file with the registry and gnus-registry ERT tests.
2012-02-13 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-msg.el (gnus-summary-resend-message):
Make gnus-summary-resend-message-insert-gcc be last item in
message-header-setup-hook.
2012-02-13 Lars Ingebrigtsen <larsi@gnus.org>
* nnfolder.el (nnfolder-marks-directory, nnfolder-marks-is-evil)
(nnfolder-marks, nnfolder-marks-file-suffix)
(nnfolder-marks-modtime): Remove.
(nnfolder-open-server): Don't use marks.
(nnfolder-request-delete-group): Ditto.
(nnfolder-request-rename-group): Ditto.
(nnfolder-request-set-mark, nnfolder-request-marks)
(nnfolder-group-marks-pathname, nnfolder-marks-changed-p)
(nnfolder-save-marks, nnfolder-open-marks): Remove.
* nnml.el (nnml-marks-is-evil, nnml-marks-file-name, nnml-marks)
(nnml-marks-modtime): Remove.
(nnml-request-delete-group): Don't use marks.
(nnml-request-rename-group): Ditto.
(nnml-request-set-mark, nnml-request-marks, nnml-marks-changed-p)
(nnml-save-marks, nnml-open-marks): Remove.
* nntp.el (nntp-marks-is-evil, nntp-marks-file-name, nntp-marks)
(nntp-marks-modtime, nntp-marks-directory, nntp-request-set-mark)
(nntp-request-marks, nntp-marks-directory, nntp-marks-changed-p)
(nntp-save-marks, nntp-open-marks, nntp-possibly-create-directory)
(nntp-server-to-method-cache): Remove.
* shr.el (shr-rescale-image): Fix wrong merge.
2012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
* shr.el (shr-remove-trailing-whitespace):
Really delete the padding on too-wide lines.
2012-02-09 Lars Ingebrigtsen <larsi@gnus.org>
* mm-archive.el (mm-archive-dissect-and-inline): New function.
(mm-archive-dissect-and-inline): Fix up the undisplayer.
* mm-decode.el (mm-display-external): Output the text from
the command in the buffer after the command finished.
This makes text-based commands behave better.
2012-02-07 Lars Ingebrigtsen <larsi@gnus.org>
* message.el (smtpmail-smtp-user): Silence compiler warning.
2012-02-06 Lars Ingebrigtsen <larsi@gnus.org>
* message.el (message-multi-smtp-send-mail):
Also allow specifying the SMTP user name.
2012-02-06 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-sum.el (gnus-summary-article-map): Fix typo.
2012-02-02 Lars Ingebrigtsen <larsi@gnus.org>
* message.el (message-multi-smtp-send-mail): New function.
(message-multi-smtp-send-mail): Respect the X-Message-SMTP-Method
header to implement multi-SMTP functionality.
* gnus-agent.el (gnus-agent-send-mail-function): Removed.
(gnus-agentize): Don't set it.
(gnus-agent-send-mail): Don't use it.
* gnus-sum.el (gnus-summary-widget-backward):
New function and keystroke.
* shr.el (shr-put-image): Remove underlines from sliced images.
(shr-zoom-image): Compute the region to be replaced more correctly.
2012-02-02 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-msg.el (gnus-gcc-self-resent-messages): New user option.
(gnus-summary-resend-message-insert-gcc): New function.
(gnus-summary-resend-message): Modify message-header-setup-hook and
message-sent-hook to make it work for Gcc.
(gnus-inews-do-gcc): Update the number of unread articles of groups
that messages are Gcc'd to.
* message.el (message-resend): Run message-sent-hook to do Gcc.
2012-02-01 Lars Ingebrigtsen <larsi@gnus.org>
* gnus-registry.el (gnus-registry-fixup-registry):
Move the message to a higher level to silence compilation.
* gnus-art.el (gnus-shr-put-image): Take and pass on a `flags'
parameter to allow controlling the scaling.
* shr.el (shr-zoom-image): New command and keystroke.
(shr-put-image): Take a `size' flag to say how to scale the image.
* mm-archive.el (mm-dissect-archive): Use it to get all file names.
Use recursive deletion.
(mm-dissect-archive): Add support for zip files.
* gnus-util.el (gnus-recursive-directory-files): New function.
* mm-archive.el (mm-archive-list-files): Inline text and image parts.
(mm-archive-decoders): Add tgz support.
* mm-decode.el (mm-shr): Make sure that the HTML ends with a newline.
Otherwise inserting text into the Gnus buffer can look odd.
* gnus-art.el (gnus-mime-inline-part): Slight clean-up.
* mm-archive.el (mm-archive-decoders): Add support for tar.
* gnus.el (gnus-logo-color-alist): Change the colours for Ma Gnus.
* nnmail.el (nnmail-extra-headers): Add Cc to the default.
2012-01-31 Lars Ingebrigtsen <larsi@gnus.org>
* mm-decode.el (mm-dissect-singlepart): Check that the decoder exists.
* mm-archive.el: New file.
* mm-decode.el (mm-dissect-singlepart):
Use it to decode ms-tnef files.
* mm-util.el (mm-find-buffer-file-coding-system): Comment fix.
* message.el (message-goto-*): Make all the `message-goto-*' commands
push the mark before moving point. This makes it easier to go back
to where you came from after editing whatever you jumped to.
2012-01-07 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el (gnus-sync-newsrc-groups): Quote normally.
(gnus-sync-lesync-pre-save-group-entry): Remove invalid invlists.
(gnus-sync-lesync-normalize-group-entry): Ignore a few more keys.
2011-11-09 Teodor Zlatanov <tzz@lifelogs.com>
* spam.el: Move BBDB autoloads.
(spam-exists-in-BBDB-p):
New function to do the BBDB search directly in BBDB 2 and 3.
(spam-check-BBDB): Use it.
(spam-enter-ham-BBDB): Use it.
2011-10-31 Peter Munster <pmrb@free.fr> (tiny change)
* gnus-group.el (gnus-group-get-new-news):
New parameter `one-level' for scanning exactly one level.
* gnus-start.el (gnus-get-unread-articles): Ditto.
2011-11-03 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: More commentary about setup.
2011-11-02 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: More commentary about `gnus-sync-read' issues.
2011-10-31 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: Improve docs about CouchDB admins.
2011-10-29 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el (gnus-sync-lesync-setup): Fix salt when user setup is
not needed. Provide xmlplistread list function to produce XML plist
output for non-Gnus LeSync clients.
2011-10-27 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: Add LeSync synchronization backend and logic to read
and save against it. Group subscriptions, read marks, other marks,
subscription levels, topic names, and topic offsets (the group's
position within the topic) are saved. This is an experimental
backend and may change significantly. Load json.el from
the gnus-fallback-lib if it's not available otherwise.
(gnus-sync-save): Don't use `apply-partially' because of XEmacs.
2011-04-20 David Engster <dengste@eml.cc>
* tests/gnustest-nntp.el: New file for simple NNTP testing.
2012-06-26 22:52:31 +00:00
|
|
|
(when (gnus-buffer-live-p gnus-group-buffer)
|
|
|
|
(set-buffer gnus-group-buffer))
|
1997-04-16 22:13:18 +00:00
|
|
|
(unless (gnus-check-server method)
|
|
|
|
(error "Unable to contact server: %s" (gnus-status-message method)))
|
|
|
|
(when activate
|
|
|
|
(gnus-activate-group group 'scan)
|
|
|
|
(unless (gnus-request-group group)
|
|
|
|
(error "Couldn't request group: %s"
|
|
|
|
(nnheader-get-report (car method)))))
|
|
|
|
(if request-only
|
|
|
|
group
|
|
|
|
(condition-case ()
|
2004-09-04 13:13:48 +00:00
|
|
|
(when (let ((gnus-large-newsgroup gnus-large-ephemeral-newsgroup)
|
|
|
|
(gnus-fetch-old-headers
|
|
|
|
gnus-fetch-old-ephemeral-headers))
|
2005-03-30 08:14:32 +00:00
|
|
|
(gnus-group-read-group (or number t) t group select-articles))
|
1997-04-16 22:13:18 +00:00
|
|
|
group)
|
2000-10-27 18:06:48 +00:00
|
|
|
(quit
|
2011-03-15 22:38:41 +00:00
|
|
|
(if debug-on-quit
|
|
|
|
(debug "Quit")
|
|
|
|
(message "Quit reading the ephemeral group"))
|
2000-10-27 18:06:48 +00:00
|
|
|
nil)))))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
2019-09-22 23:53:39 -07:00
|
|
|
;; FIXME: This URL no longer works.
|
2008-03-29 19:54:11 +00:00
|
|
|
(defcustom gnus-gmane-group-download-format
|
2008-01-10 14:18:23 +00:00
|
|
|
"http://download.gmane.org/%s/%s/%s"
|
|
|
|
"URL for downloading mbox files.
|
|
|
|
It must contain three \"%s\". They correspond to the group, the
|
|
|
|
minimal and maximal article numbers, respectively."
|
|
|
|
:group 'gnus-group-foreign
|
2008-02-29 04:03:49 +00:00
|
|
|
:version "23.1" ;; No Gnus
|
2008-01-10 14:18:23 +00:00
|
|
|
:type 'string)
|
2008-01-08 14:16:13 +00:00
|
|
|
|
2008-01-10 14:18:23 +00:00
|
|
|
(autoload 'url-insert-file-contents "url-handlers")
|
|
|
|
;; FIXME:
|
|
|
|
;; - Add documentation, menu, key bindings, ...
|
2008-01-08 14:16:13 +00:00
|
|
|
|
2008-03-29 19:54:11 +00:00
|
|
|
(defun gnus-read-ephemeral-gmane-group (group start &optional range)
|
2008-01-08 14:16:13 +00:00
|
|
|
"Read articles from Gmane group GROUP as an ephemeral group.
|
2008-01-10 14:18:23 +00:00
|
|
|
START is the first article. RANGE specifies how many articles
|
|
|
|
are fetched. The articles are downloaded via HTTP using the URL
|
2008-03-29 19:54:11 +00:00
|
|
|
specified by `gnus-gmane-group-download-format'."
|
2008-01-08 14:16:13 +00:00
|
|
|
;; See <http://gmane.org/export.php> for more information.
|
|
|
|
(interactive
|
|
|
|
(list
|
Merge changes made in Gnus trunk.
nndraft.el (nndraft-request-expire-articles): Use the group name instead if "nndraft".
gnus.texi (Using IMAP): Remove the @acronyms from the headings.
nnregistry.el: Added.
nnimap.el (nnimap-insert-partial-structure): Be way more permissive when interpreting the structures.
GNUS-NEWS: Minor error in GNUS-NEWS - password-cache.el.
nnimap.el (nnimap-request-accept-article): Add \r\n to the lines to make this work with Cyrus.
gnus-registry.el: Don't prompt on load, which makes it impossible to build Gnus.
gnus-gravatar.el: Add gnus-gravatar-properties.
gnus-agent.el, gnus-art.el, gnus-bookmark.el, gnus-dired.el, gnus-group.el,\
gnus-int.el, gnus-msg.el, gnus-registry.el, gnus-score.el, gnus-srvr.el,\
gnus-sum.el, gnus-topic.el, gnus-util.el, gnus.el, mm-decode.el, mm-util.el,\
mm-view.el, mml-smime.el, mml.el, nnmairix.el, nnrss.el, smime.el:\
Introduce gnus-completing-read.
gnus-util.el: Make completing-read function configurable.
gnus-util.el: Add requires and fix history for iswitchb.
webmail.el: Remove netscape/my-deja, since they no longer exist.
gnus.el (gnus-local-domain): Declare variable obsolete.
nnimap.el (nnimap-insert-partial-structure): Get the type from the correct slot, too.
pop3.el (pop3-send-streaming-command, pop3-stream-length): New variable.
nnimap.el (nnimap-open-connection): Revert the auto-network->starttls code.
nnimap.el (nnimap-request-set-mark): Erase the buffer before issuing commands.
nnimap.el (nnimap-split-rule): Mark as obsolete.
gnus-sum.el (gnus-valid-move-group-p): Make sure that `group' is a symbol.
nnimap.el (nnimap-split-incoming-mail): Allow `default' as nnimap-split-methods value.
nnimap.el (nnimap-request-article): Downcase the NILs so that they are nil.
nndoc.el (nndoc-retrieve-groups): New function.
gnus.texi: Fix Gravatar documentation.
2010-09-30 08:39:23 +00:00
|
|
|
(gnus-group-completing-read "Gmane group")
|
2008-01-08 14:16:13 +00:00
|
|
|
(read-number "Start article number: ")
|
2021-02-14 14:14:48 +01:00
|
|
|
(read-number "How many articles: "))
|
|
|
|
gnus-group-mode)
|
2008-01-10 14:18:23 +00:00
|
|
|
(unless range (setq range 500))
|
|
|
|
(when (< range 1)
|
|
|
|
(error "Invalid range: %s" range))
|
2016-02-12 14:39:30 +11:00
|
|
|
(let ((tmpfile (make-temp-file
|
2008-01-10 14:18:23 +00:00
|
|
|
(format "%s.start-%s.range-%s." group start range)))
|
|
|
|
(gnus-thread-sort-functions '(gnus-thread-sort-by-number)))
|
2008-01-08 14:16:13 +00:00
|
|
|
(with-temp-file tmpfile
|
|
|
|
(url-insert-file-contents
|
2008-03-29 19:54:11 +00:00
|
|
|
(format gnus-gmane-group-download-format
|
2017-10-27 01:13:25 +00:00
|
|
|
group start (+ start range))
|
|
|
|
t)
|
|
|
|
;; `url-insert-file-contents' sets this because of the 2nd arg.
|
|
|
|
(setq buffer-file-name nil)
|
2008-01-08 14:16:13 +00:00
|
|
|
(write-region (point-min) (point-max) tmpfile)
|
|
|
|
(gnus-group-read-ephemeral-group
|
2012-09-06 22:13:45 +00:00
|
|
|
(format "nndoc+ephemeral:%s.start-%s.range-%s" group start range)
|
2008-01-08 14:16:13 +00:00
|
|
|
`(nndoc ,tmpfile
|
2008-03-10 00:50:22 +00:00
|
|
|
(nndoc-article-type mbox))))
|
2008-01-08 14:16:13 +00:00
|
|
|
(delete-file tmpfile)))
|
|
|
|
|
2008-03-29 19:54:11 +00:00
|
|
|
(defun gnus-read-ephemeral-gmane-group-url (url)
|
2008-01-10 14:18:23 +00:00
|
|
|
"Create an ephemeral Gmane group from URL.
|
|
|
|
|
|
|
|
Valid input formats include:
|
|
|
|
\"http://thread.gmane.org/gmane.foo.bar/12300/focus=12399\",
|
|
|
|
\"http://thread.gmane.org/gmane.foo.bar/12345/\",
|
|
|
|
\"http://article.gmane.org/gmane.foo.bar/12345/\",
|
|
|
|
\"http://news.gmane.org/group/gmane.foo.bar/thread=12345\""
|
|
|
|
;; - Feel free to add other useful Gmane URLs here! Maybe the URLs should
|
|
|
|
;; be customizable?
|
|
|
|
;; - The URLs should be added to `gnus-button-alist'. Probably we should
|
|
|
|
;; prompt the user to decide: "View via `browse-url' or in Gnus? "
|
2008-03-29 19:54:11 +00:00
|
|
|
;; (`gnus-read-ephemeral-gmane-group-url')
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (list (gnus-group-completing-read "Gmane URL")) gnus-group-mode)
|
2008-01-10 14:18:23 +00:00
|
|
|
(let (group start range)
|
|
|
|
(cond
|
|
|
|
;; URLs providing `group', `start' and `range':
|
|
|
|
((string-match
|
|
|
|
;; http://thread.gmane.org/gmane.emacs.devel/86326/focus=86525
|
2015-09-17 12:28:45 -07:00
|
|
|
"^http://thread\\.gmane\\.org/\\([^/]+\\)/\\([0-9]+\\)/focus=\\([0-9]+\\)$"
|
2008-01-10 14:18:23 +00:00
|
|
|
url)
|
|
|
|
(setq group (match-string 1 url)
|
|
|
|
start (string-to-number (match-string 2 url))
|
|
|
|
;; Ensure that `range' is large enough to ensure focus article is
|
|
|
|
;; included.
|
|
|
|
range (- (string-to-number (match-string 3 url))
|
|
|
|
start -1)))
|
|
|
|
;; URLs providing `group' and `start':
|
|
|
|
((or (string-match
|
|
|
|
;; http://article.gmane.org/gmane.comp.gnu.make.bugs/3584
|
2015-09-17 12:28:45 -07:00
|
|
|
"^http://\\(?:thread\\|article\\|permalink\\)\\.gmane\\.org/\\([^/]+\\)/\\([0-9]+\\)"
|
2008-01-10 14:18:23 +00:00
|
|
|
url)
|
|
|
|
(string-match
|
2008-05-05 22:11:15 +00:00
|
|
|
;; Don't advertise these in the doc string yet:
|
2015-09-17 12:28:45 -07:00
|
|
|
"^\\(?:nntp\\|news\\)://news\\.gmane\\.org/\\([^/]+\\)/\\([0-9]+\\)"
|
2008-01-10 14:18:23 +00:00
|
|
|
url)
|
|
|
|
(string-match
|
|
|
|
;; http://news.gmane.org/group/gmane.emacs.gnus.general/thread=65099/force_load=t
|
2015-09-17 12:28:45 -07:00
|
|
|
"^http://news\\.gmane\\.org/group/\\([^/]+\\)/thread=\\([0-9]+\\)"
|
2008-01-10 14:18:23 +00:00
|
|
|
url))
|
|
|
|
(setq group (match-string 1 url)
|
|
|
|
start (string-to-number (match-string 2 url))))
|
|
|
|
(t
|
|
|
|
(error "Can't parse URL %s" url)))
|
2008-03-29 19:54:11 +00:00
|
|
|
(gnus-read-ephemeral-gmane-group group start range)))
|
|
|
|
|
|
|
|
(defcustom gnus-bug-group-download-format-alist
|
2019-11-02 15:36:42 +01:00
|
|
|
'((emacs . "https://debbugs.gnu.org/cgi/bugreport.cgi?bug=%s;mboxmaint=yes;mboxstat=yes")
|
2008-03-29 19:54:11 +00:00
|
|
|
(debian
|
2019-07-06 16:34:10 +02:00
|
|
|
. "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=%s&mbox=yes;mboxmaint=yes"))
|
2008-03-29 19:54:11 +00:00
|
|
|
"Alist of symbols for bug trackers and the corresponding URL format string.
|
|
|
|
The URL format string must contain a single \"%s\", specifying
|
|
|
|
the bug number, and browsing the URL must return mbox output."
|
|
|
|
:group 'gnus-group-foreign
|
2011-05-26 20:55:07 -04:00
|
|
|
;; Added mboxmaint=yes. This gets the version with the messages as
|
|
|
|
;; they went out, not as they came in.
|
2011-05-25 20:49:54 -04:00
|
|
|
;; Eg bug-gnu-emacs is replaced by ###@debbugs.
|
|
|
|
:version "24.1"
|
2008-03-29 19:54:11 +00:00
|
|
|
:type '(repeat (cons (symbol) (string :tag "URL format string"))))
|
|
|
|
|
2019-07-06 16:34:10 +02:00
|
|
|
(autoload 'thing-at-point-looking-at "thingatpt")
|
|
|
|
(defvar bug-reference-bug-regexp)
|
|
|
|
|
|
|
|
(defun gnus-group--read-bug-ids ()
|
|
|
|
"Return a list of bug IDs read in the minibuffer."
|
|
|
|
(require 'bug-reference)
|
|
|
|
(let ((def (cond ((thing-at-point-looking-at bug-reference-bug-regexp 500)
|
|
|
|
(match-string 2))
|
2020-08-31 11:43:52 +02:00
|
|
|
((and (number-at-point)
|
|
|
|
(abs (number-at-point)))))))
|
2019-07-06 16:34:10 +02:00
|
|
|
;; Pass DEF as the value of COLLECTION instead of DEF because:
|
|
|
|
;; a) null input should not cause DEF to be returned and
|
|
|
|
;; b) TAB and M-n still work this way.
|
Use `format-prompt' when prompting with default values
* lisp/woman.el (woman-file-name):
* lisp/wid-edit.el (widget-file-prompt-value)
(widget-coding-system-prompt-value):
* lisp/w32-fns.el (w32-set-system-coding-system):
* lisp/vc/vc.el (vc-print-root-log):
* lisp/vc/vc-annotate.el (vc-annotate):
* lisp/vc/emerge.el (emerge-read-file-name):
* lisp/vc/ediff.el (ediff-directories)
(ediff-directory-revisions, ediff-directories3)
(ediff-merge-directories, )
(ediff-merge-directories-with-ancestor)
(ediff-merge-directory-revisions)
(ediff-merge-directory-revisions-with-ancestor)
(ediff-merge-revisions, ediff-merge-revisions-with-ancestor)
(ediff-revision):
* lisp/vc/ediff-util.el (ediff-toggle-regexp-match):
* lisp/vc/ediff-mult.el (ediff-filegroup-action):
* lisp/vc/add-log.el (prompt-for-change-log-name):
* lisp/textmodes/table.el (table-insert-row-column)
(table-span-cell, table-split-cell-horizontally)
(table-split-cell, table-justify, table-generate-source)
(table-insert-sequence, table-capture)
(table--read-from-minibuffer, table--query-justification):
* lisp/textmodes/sgml-mode.el (sgml-tag, sgml-tag-help):
* lisp/textmodes/reftex-ref.el (reftex-goto-label):
* lisp/textmodes/refer.el (refer-get-bib-files):
* lisp/textmodes/css-mode.el (css-lookup-symbol):
* lisp/term.el (serial-read-name, serial-read-speed):
* lisp/speedbar.el (speedbar-change-initial-expansion-list):
* lisp/simple.el (previous-matching-history-element)
(set-variable):
* lisp/ses.el (ses-read-cell, ses-set-column-width):
* lisp/replace.el (query-replace-read-from)
(occur-read-primary-args):
* lisp/rect.el (string-rectangle, string-insert-rectangle):
* lisp/progmodes/tcl.el (tcl-help-on-word):
* lisp/progmodes/sh-script.el (sh-set-shell):
* lisp/progmodes/python.el (python-eldoc-at-point):
* lisp/progmodes/octave.el (octave-completing-read)
(octave-update-function-file-comment, octave-insert-defun):
* lisp/progmodes/inf-lisp.el (lisp-symprompt):
* lisp/progmodes/cperl-mode.el (cperl-info-on-command)
(cperl-perldoc):
* lisp/progmodes/compile.el (compilation-find-file):
* lisp/net/rcirc.el (rcirc-prompt-for-encryption):
* lisp/net/eww.el (eww):
* lisp/net/browse-url.el (browse-url-with-browser-kind):
* lisp/man.el (man):
* lisp/mail/sendmail.el (sendmail-query-user-about-smtp):
* lisp/mail/mailalias.el (build-mail-aliases):
* lisp/mail/mailabbrev.el (merge-mail-abbrevs)
(rebuild-mail-abbrevs):
* lisp/locate.el (locate-prompt-for-search-string):
* lisp/isearch.el (isearch-occur):
* lisp/international/ogonek.el (ogonek-read-encoding)
(ogonek-read-prefix):
* lisp/international/mule.el (read-buffer-file-coding-system)
(set-terminal-coding-system, set-keyboard-coding-system)
(set-next-selection-coding-system, recode-region):
* lisp/international/mule-cmds.el ()
(universal-coding-system-argument, search-unencodable-char)
(select-safe-coding-system-interactively):
* lisp/info.el (Info-search, Info-search-backward, Info-menu):
* lisp/info-look.el (info-lookup-interactive-arguments):
* lisp/imenu.el (imenu--completion-buffer):
* lisp/ibuf-ext.el (mode, used-mode, ibuffer-mark-by-mode):
* lisp/hi-lock.el (hi-lock-unface-buffer)
(hi-lock-read-face-name):
* lisp/help.el (view-emacs-news, where-is):
* lisp/help-fns.el (describe-variable, describe-symbol)
(describe-keymap):
* lisp/gnus/mm-decode.el (mm-save-part):
* lisp/gnus/gnus-sum.el (gnus-summary-browse-url):
* lisp/gnus/gnus-group.el (gnus-group--read-bug-ids)
(gnus-group-set-current-level):
* lisp/frame.el (make-frame-on-monitor)
(close-display-connection, select-frame-by-name):
* lisp/format.el (format-encode-buffer, format-encode-region):
* lisp/files.el (recode-file-name):
* lisp/files-x.el (read-file-local-variable)
(read-file-local-variable-value, )
(read-file-local-variable-mode):
* lisp/ffap.el (ffap-menu-ask):
* lisp/faces.el (face-read-string):
* lisp/facemenu.el (facemenu-set-charset):
* lisp/erc/erc-dcc.el (erc-dcc-do-GET-command):
* lisp/emulation/edt-mapper.el (edt-mapper):
* lisp/emacs-lisp/trace.el (trace--read-args)
(trace-function-foreground, trace-function-background):
* lisp/emacs-lisp/smie.el (smie-config-set-indent):
* lisp/emacs-lisp/re-builder.el (reb-change-syntax):
* lisp/emacs-lisp/package.el (describe-package):
* lisp/emacs-lisp/find-func.el (read-library-name)
(find-function-read):
* lisp/emacs-lisp/ert.el (ert-read-test-name)
(ert-run-tests-interactively):
* lisp/emacs-lisp/disass.el (disassemble):
* lisp/emacs-lisp/debug.el (debug-on-entry)
(debug-on-variable-change):
* lisp/emacs-lisp/advice.el (ad-read-advised-function)
(ad-read-advice-class, ad-read-advice-name, ad-read-regexp):
* lisp/dired-x.el (dired--mark-suffix-interactive-spec):
* lisp/dired-aux.el (dired-diff):
* lisp/cus-edit.el (custom-variable-prompt, customize-mode)
(customize-changed-options):
* lisp/completion.el (interactive-completion-string-reader):
* lisp/calendar/timeclock.el (timeclock-ask-for-project):
* lisp/calc/calcalg3.el (calc-get-fit-variables):
* lisp/calc/calc-store.el (calc-edit-variable):
* lisp/calc/calc-bin.el (calc-word-size):
* lisp/bookmark.el (bookmark-set-internal):
* lisp/abbrev.el (read-abbrev-file): Use `format-prompt' for
prompting (bug#12443).
2020-09-06 16:56:44 +02:00
|
|
|
(or (completing-read-multiple (format-prompt "Bug IDs" def)
|
|
|
|
(and def (list (format "%s" def))))
|
2019-07-14 18:27:50 +02:00
|
|
|
def)))
|
2019-07-06 16:34:10 +02:00
|
|
|
|
2011-07-05 22:27:16 +00:00
|
|
|
(defun gnus-read-ephemeral-bug-group (ids mbox-url &optional window-conf)
|
2019-07-06 16:34:10 +02:00
|
|
|
"Browse bug reports with IDS in an ephemeral group.
|
|
|
|
IDS can be either a single bug ID (a number or string), or a list
|
|
|
|
thereof. MBOX-URL is a URL format string identifying the bug
|
|
|
|
tracker; see `gnus-bug-group-download-format-alist' for details.
|
|
|
|
Interactively, read multiple bug IDS in the minibuffer and
|
|
|
|
default to the MBOX-URL for the Emacs bug tracker. WINDOW-CONF
|
|
|
|
is the name of the Gnus window configuration to use when exiting
|
|
|
|
the ephemeral group."
|
|
|
|
(interactive
|
|
|
|
(list (gnus-group--read-bug-ids)
|
|
|
|
(alist-get 'emacs gnus-bug-group-download-format-alist)))
|
|
|
|
(or ids (user-error "No bug IDs specified"))
|
|
|
|
(setq ids (mapcar (lambda (id) (format "%s" id))
|
|
|
|
(if (consp ids) ids (list ids))))
|
2016-02-12 14:39:30 +11:00
|
|
|
(let ((tmpfile (make-temp-file "gnus-temp-group-")))
|
2019-07-06 16:34:10 +02:00
|
|
|
(unwind-protect
|
2014-12-19 11:47:51 +01:00
|
|
|
;; Add the debbugs address so that we can respond to reports easily.
|
2019-07-06 16:34:10 +02:00
|
|
|
(let* ((address (format "%s@%s" (car ids)
|
|
|
|
(url-host (url-generic-parse-url mbox-url))))
|
|
|
|
(address-re (concat "\\(?:\\`\\|[ ,<]\\)"
|
|
|
|
(regexp-quote address)
|
|
|
|
"\\(?:\\'\\|[ ,>]\\)"))
|
|
|
|
(delim (concat "^" message-unix-mail-delimiter)))
|
2022-10-02 14:58:25 +02:00
|
|
|
(with-temp-file tmpfile
|
|
|
|
(mm-disable-multibyte)
|
|
|
|
(dolist (id ids)
|
|
|
|
(let ((file (expand-file-name id (locate-user-emacs-file
|
|
|
|
"debbugs-cache"))))
|
|
|
|
(if (and (not gnus-plugged)
|
|
|
|
(file-exists-p file))
|
|
|
|
(insert-file-contents-literally file)
|
|
|
|
(url-insert-file-contents-literally (format mbox-url id)))))
|
|
|
|
(goto-char (point-min))
|
|
|
|
;; Throw an informative error early instead of passing nonsense
|
|
|
|
;; to `gnus-group-read-ephemeral-group' (bug#36433).
|
|
|
|
(unless (save-excursion (re-search-forward delim nil t))
|
|
|
|
(error "Invalid mbox format for bug IDs: %s"
|
|
|
|
(string-join ids ", ")))
|
|
|
|
(while (re-search-forward delim nil t)
|
|
|
|
(narrow-to-region (point)
|
|
|
|
(if (search-forward "\n\n" nil t)
|
|
|
|
(1- (point))
|
|
|
|
(point-max)))
|
|
|
|
(unless (string-match-p address-re
|
|
|
|
(concat (message-fetch-field "to") " "
|
|
|
|
(message-fetch-field "cc")))
|
|
|
|
(goto-char (point-min))
|
|
|
|
(if (not (re-search-forward "^To:" nil t))
|
|
|
|
(insert "To: " address "\n")
|
|
|
|
(message-next-header)
|
|
|
|
(skip-chars-backward "\t\n ")
|
|
|
|
(insert ", " address)))
|
|
|
|
(goto-char (point-max))
|
|
|
|
(widen)))
|
2019-07-06 16:34:10 +02:00
|
|
|
(gnus-group-read-ephemeral-group
|
|
|
|
(concat "nndoc+ephemeral:bug#" (string-join ids ","))
|
|
|
|
`(nndoc ,tmpfile
|
|
|
|
(nndoc-article-type mbox))
|
|
|
|
nil window-conf))
|
|
|
|
(delete-file tmpfile))))
|
|
|
|
|
|
|
|
(defun gnus-read-ephemeral-debian-bug-group (ids &optional window-conf)
|
|
|
|
"Browse Debian bug reports with IDS in an ephemeral group.
|
|
|
|
The arguments have the same meaning as those of
|
|
|
|
`gnus-read-ephemeral-bug-group', which see."
|
|
|
|
(interactive (list (gnus-group--read-bug-ids)))
|
2008-03-29 19:54:11 +00:00
|
|
|
(gnus-read-ephemeral-bug-group
|
2019-07-06 16:34:10 +02:00
|
|
|
ids
|
|
|
|
(alist-get 'debian gnus-bug-group-download-format-alist)
|
|
|
|
window-conf))
|
2008-03-29 19:54:11 +00:00
|
|
|
|
2011-07-10 22:17:49 +00:00
|
|
|
(defvar debbugs-gnu-bug-number) ; debbugs-gnu
|
2011-07-05 19:45:24 -07:00
|
|
|
|
2019-07-09 18:52:54 +02:00
|
|
|
;;;###autoload
|
2011-07-05 22:27:16 +00:00
|
|
|
(defun gnus-read-ephemeral-emacs-bug-group (ids &optional window-conf)
|
2019-07-06 16:34:10 +02:00
|
|
|
"Browse Emacs bug reports with IDS in an ephemeral group.
|
|
|
|
The arguments have the same meaning as those of
|
|
|
|
`gnus-read-ephemeral-bug-group', which see."
|
|
|
|
(interactive (list (gnus-group--read-bug-ids)))
|
2008-03-29 19:54:11 +00:00
|
|
|
(gnus-read-ephemeral-bug-group
|
2011-07-05 22:27:16 +00:00
|
|
|
ids
|
2019-07-06 16:34:10 +02:00
|
|
|
(alist-get 'emacs gnus-bug-group-download-format-alist)
|
2011-07-03 22:17:49 +00:00
|
|
|
window-conf)
|
2019-07-06 16:34:10 +02:00
|
|
|
(when (and (require 'debbugs-gnu nil t)
|
|
|
|
(fboundp 'debbugs-gnu-summary-mode))
|
2011-07-03 22:17:49 +00:00
|
|
|
(with-current-buffer (window-buffer (selected-window))
|
2011-07-10 22:17:49 +00:00
|
|
|
(debbugs-gnu-summary-mode 1)
|
2019-07-06 16:34:10 +02:00
|
|
|
(let ((id (or (car-safe ids) ids)))
|
|
|
|
(if (stringp id) (setq id (string-to-number id)))
|
|
|
|
(setq-local debbugs-gnu-bug-number id)))))
|
2008-01-10 14:18:23 +00:00
|
|
|
|
* lisp/gnus: Use lexical-binding in all the files
* lisp/gnus/gnus-group.el (features): Use `dlet`.
(gnus-tmp-level, gnus-tmp-marked, gnus-tmp-group): Declare vars.
(gnus-group-insert-group-line): Bind dynbound vars via `let` rather
than as formal args. Bind `number` as dynbound.
(gnus-visual, gnus-score-find-score-files-function)
(gnus-home-score-file, gnus-apply-kill-hook)
(gnus-summary-expunge-below): Declare vars.
(gnus-group-restart, gnus-group-list-plus): Fix `interactive` spec
since the arg is unused.
* lisp/gnus/mail-source.el (mail-source-bind, mail-source-bind-common):
Use `dlet` and suppress the warnings about the non-prefixed dynbound vars.
(mail-source-set-1): Remove unused var `auth-info`.
(mail-source-call-script): Remove unused var `background`.
(mail-source-fetch-pop, mail-source-check-pop): Bind pop3 vars with `dlet`.
* lisp/gnus/gnus-int.el (mail-source-plugged, gnus-inhibit-demon):
Declare vars.
(gnus-server-opened, gnus-status-message)
(gnus-open-server, gnus-close-server, gnus-request-list)
(gnus-finish-retrieve-group-infos, gnus-retrieve-group-data-early)
(gnus-request-list-newsgroups, gnus-request-newgroups)
(gnus-request-regenerate, gnus-request-compact, gnus-request-group)
(gnus-retrieve-groups, gnus-request-post, gnus-request-expunge-group)
(gnus-request-scan, gnus-request-update-info, gnus-request-marks)
(gnus-request-accept-article, gnus-request-create-group)
(gnus-asynchronous-p, gnus-remove-denial):
Bind `gnus-command-method` via `let` rather than as formal args.
* lisp/gnus/gnus-topic.el (gnus-topic-insert-topic-line):
Pass documented vars to eval for `gnus-topic-line-format-spec`.
* lisp/gnus/message.el (message-yank-original): Use `cl-progv` rather
than `eval` to bind the vars from `message-cite-style`.
* lisp/gnus/mml.el (mml-parse-1): Use `apply` instead of `eval`.
(gnus-newsgroup-name, gnus-displaying-mime, gnus-newsgroup-name)
(gnus-article-prepare-hook, gnus-newsgroup-charset)
(gnus-original-article-buffer, gnus-message-buffer)
(message-this-is-news, message-this-is-mail): Declare vars.
* lisp/gnus/deuglify.el (gnus-outlook-rearrange-article): Remove unused
var `cite-marks`.
* lisp/gnus/gnus-art.el (ansi-color-context-region): Declare var.
(gnus-mime-display-attachment-buttons-in-header): Move declaration
before first use.
(gnus-mime-display-alternative): Remove unused var `from`.
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-list): Remove unused
var `start` `end`.
* lisp/gnus/gnus-cache.el (gnus-article-decode-hook)
(nnml-generate-active-function): Declare var.
* lisp/gnus/gnus-cite.el (gnus-message-citation-mode): Remove unused
var `keywords`.
* lisp/gnus/gnus-cloud.el (gnus-cloud-encode-data): Remove unused var
`cipher`.
(gnus-cloud-ensure-cloud-group): Remove unused var `method`.
* lisp/gnus/gnus-delay.el (gnus-delay-article): Remove unused var `days`.
* lisp/gnus/gnus-html.el (gnus-html-wash-images): Remove unused vars
`tag`, `string`, and `images`.
(gnus-html-wash-tags): Remove unused vars `string` and `images`.
* lisp/gnus/gnus-msg.el (gnus-msg-mail): Remove unused var `group-name`.
(gnus-group-mail, gnus-group-news, gnus-summary-mail-other-window)
(gnus-summary-news-other-window):
Remove unused vars `group` and `buffer`.
(gnus-configure-posting-styles): Remove unused vars `style` and `attribute`.
* lisp/gnus/gnus-picon.el (gnus-picon-find-face): Remove unused vars
`database`, `directory`, and `instance`.
(gnus-picon-transform-newsgroups): Remove unused var `point`.
* lisp/gnus/gnus-range.el (gnus-range-difference): Remove unused var `safe`.
* lisp/gnus/gnus-score.el (gnus-score-load-file): Remove unused var
`score-fn`.
* lisp/gnus/gnus-sum.el (message-options-set-recipient): Declare var.
* lisp/gnus/gnus-undo.el (gnus-undo): Fix docstring lie.
* lisp/gnus/gnus-util.el (print-string-length)
(iswitchb-make-buflist-hook): Declare vars.
(gnus-emacs-version): Remove unused var `codename`.
(gnus-rename-file): Remove unused vars `old-name` and `new-name`.
* lisp/gnus/gnus-uu.el (gnus-uu-yenc-article): Remove unused var
`start-char`.
(gnus-asynchronous): Declare var.
* lisp/gnus/mm-partial.el (gnus-displaying-mime): Declare var.
(mm-inline-partial): Remove unused var `buffer`.
* lisp/gnus/mm-view.el (w3m-force-redisplay, w3m-safe-url-regexp)
(gnus-displaying-mime, gnus-original-article-buffer)
(gnus-article-prepare-hook): Declare vars.
* lisp/gnus/mml-smime.el (mml-smime-epg-encrypt): Remove unused var
`boundary`.
(mml-smime-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/mml1991.el (pgg-text-mode): Declare var.
* lisp/gnus/mml2015.el (pgg-text-mode): Declare var.
(mml2015-pgg-decrypt): Remove unused var `result`.
(mml2015-epg-key-image-to-string): Remove unused var `error`.
(mml2015-epg-decrypt): Remove unused var `result`.
(mml2015-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/nnbabyl.el (nnml-current-directory): Declare var.
* lisp/gnus/nndiary.el (nndiary-files): Move declaration before first use.
* lisp/gnus/nnfolder.el (nnfolder-request-accept-article):
Remove unused var `buf`.
* lisp/gnus/nnmail.el (nnmail-parse-active): Remove unused var `err`.
* lisp/gnus/nnmairix.el (nnmairix-request-group): Remove unused var `args`.
(nnmairix-request-create-group): Remove unused var `info`.
(nnmairix-request-list): Remove unused var `folder`.
(nnmairix-request-set-mark): Remove unused var `propto`.
(nnmairix-request-set-mark): Remove unused vars `number` and `method`.
(nnmairix-close-group): Remove unused var `method`.
(nnmairix-create-search-group-from-message): Remove unused var `cq`.
(nnmairix-create-server-and-default-group): Remove unused var `create`.
(nnmairix-purge-old-groups): Remove unused var `folder`.
(nnmairix-remove-tick-mark-original-article, nnmairix-get-valid-servers):
Remove unused var `cur`.
(nnmairix-replace-group-and-numbers): Remove unused var `header`.
(nnmairix-goto-original-article): Remove unused var `rval`.
(nnmairix-widget-create-query): Remove unused var `allwidgets`.
* lisp/gnus/nnmbox.el (nnml-current-directory): Declare var.
* lisp/gnus/nnmh.el (nnmh-toplev): Move declaration before first use.
(nnmh-request-list-1): Remove unused var `rdir`.
* lisp/gnus/nnml.el (nnml-generate-nov-file): Remove unused var `file`.
* lisp/gnus/nnrss.el (nnrss-request-article): Remove unused var `post`.
(nnrss-request-article): Remove unused var `fn`.
(nnrss-check-group): Remove unused var `rdf-ns`.
* lisp/gnus/nnweb.el (nnweb-request-article): Remove unused var `active`.
(nnweb-google-parse-1): Remove unused var `Score`.
* lisp/gnus/spam-stat.el (spam-stat-error-holder): Remove var.
(spam-stat-buffer-words-with-scores): Remove unused var `word`.
(spam-stat-score-buffer): Remove unused var `spam-stat-error-holder`.
(spam-stat-split-fancy): Use `err` instead of `spam-stat-error-holder`.
* lisp/gnus/spam-wash.el (spam-wash): Remove unused var `handle`.
* lisp/gnus/spam.el (spam-copy-or-move-routine): Remove unused vars
`article` and `mark`.
(spam-register-routine): Remove unused var `article`.
(spam-log-undo-registration): Remove unused var `found`.
(spam-ifile-register-with-ifile): Remove unused var `parameters`.
(spam-check-stat): Remove unused vars `category` and `return`.
(spam-parse-list): Remove unused var `found`.
(spam-filelist-register-routine): Remove unused var `from`.
2021-01-30 18:44:00 -05:00
|
|
|
(defun gnus-group-jump-to-group (group &optional _prompt)
|
2007-10-28 09:18:39 +00:00
|
|
|
"Jump to newsgroup GROUP.
|
|
|
|
|
|
|
|
If PROMPT (the prefix) is a number, use the prompt specified in
|
|
|
|
`gnus-group-jump-to-group-prompt'."
|
1997-04-16 22:13:18 +00:00
|
|
|
(interactive
|
2007-10-28 09:18:39 +00:00
|
|
|
(list (gnus-group-completing-read
|
2011-01-31 02:19:13 +00:00
|
|
|
nil nil nil
|
Merge changes made in Gnus trunk.
nndraft.el (nndraft-request-expire-articles): Use the group name instead if "nndraft".
gnus.texi (Using IMAP): Remove the @acronyms from the headings.
nnregistry.el: Added.
nnimap.el (nnimap-insert-partial-structure): Be way more permissive when interpreting the structures.
GNUS-NEWS: Minor error in GNUS-NEWS - password-cache.el.
nnimap.el (nnimap-request-accept-article): Add \r\n to the lines to make this work with Cyrus.
gnus-registry.el: Don't prompt on load, which makes it impossible to build Gnus.
gnus-gravatar.el: Add gnus-gravatar-properties.
gnus-agent.el, gnus-art.el, gnus-bookmark.el, gnus-dired.el, gnus-group.el,\
gnus-int.el, gnus-msg.el, gnus-registry.el, gnus-score.el, gnus-srvr.el,\
gnus-sum.el, gnus-topic.el, gnus-util.el, gnus.el, mm-decode.el, mm-util.el,\
mm-view.el, mml-smime.el, mml.el, nnmairix.el, nnrss.el, smime.el:\
Introduce gnus-completing-read.
gnus-util.el: Make completing-read function configurable.
gnus-util.el: Add requires and fix history for iswitchb.
webmail.el: Remove netscape/my-deja, since they no longer exist.
gnus.el (gnus-local-domain): Declare variable obsolete.
nnimap.el (nnimap-insert-partial-structure): Get the type from the correct slot, too.
pop3.el (pop3-send-streaming-command, pop3-stream-length): New variable.
nnimap.el (nnimap-open-connection): Revert the auto-network->starttls code.
nnimap.el (nnimap-request-set-mark): Erase the buffer before issuing commands.
nnimap.el (nnimap-split-rule): Mark as obsolete.
gnus-sum.el (gnus-valid-move-group-p): Make sure that `group' is a symbol.
nnimap.el (nnimap-split-incoming-mail): Allow `default' as nnimap-split-methods value.
nnimap.el (nnimap-request-article): Downcase the NILs so that they are nil.
nndoc.el (nndoc-retrieve-groups): New function.
gnus.texi: Fix Gravatar documentation.
2010-09-30 08:39:23 +00:00
|
|
|
(if current-prefix-arg
|
|
|
|
(cdr (assq current-prefix-arg gnus-group-jump-to-group-prompt))
|
|
|
|
(or (and (stringp gnus-group-jump-to-group-prompt)
|
|
|
|
gnus-group-jump-to-group-prompt)
|
|
|
|
(let ((p (cdr (assq 0 gnus-group-jump-to-group-prompt))))
|
2021-02-14 14:14:48 +01:00
|
|
|
(and (stringp p) p))))))
|
|
|
|
gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(when (equal group "")
|
|
|
|
(error "Empty group name"))
|
|
|
|
|
2018-04-17 20:52:14 +02:00
|
|
|
(prog1
|
|
|
|
(unless (gnus-ephemeral-group-p group)
|
|
|
|
;; Either go to the line in the group buffer...
|
|
|
|
(unless (gnus-group-goto-group group)
|
|
|
|
;; ... or insert the line.
|
|
|
|
(gnus-group-update-group group)
|
|
|
|
(gnus-group-goto-group group)))
|
|
|
|
;; Adjust cursor point.
|
|
|
|
(gnus-group-position-point)))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
2000-09-19 13:37:09 +00:00
|
|
|
(defun gnus-group-goto-group (group &optional far test-marked)
|
2019-04-19 09:07:59 -07:00
|
|
|
"Go to newsgroup GROUP.
|
2000-09-19 13:37:09 +00:00
|
|
|
If FAR, it is likely that the group is not on the current line.
|
2019-04-19 09:07:59 -07:00
|
|
|
If TEST-MARKED, the line must be marked.
|
|
|
|
|
|
|
|
Return nil if GROUP is not found."
|
1997-04-16 22:13:18 +00:00
|
|
|
(when group
|
2019-04-19 09:07:59 -07:00
|
|
|
(let ((start (point)))
|
2018-04-16 23:10:03 +02:00
|
|
|
(beginning-of-line)
|
|
|
|
(cond
|
|
|
|
;; It's quite likely that we are on the right line, so
|
|
|
|
;; we check the current line first.
|
|
|
|
((and (not far)
|
2019-04-19 09:07:59 -07:00
|
|
|
(equal (get-text-property (point) 'gnus-group) group)
|
2018-04-16 23:10:03 +02:00
|
|
|
(or (not test-marked) (gnus-group-mark-line-p)))
|
|
|
|
(point))
|
|
|
|
;; Previous and next line are also likely, so we check them as well.
|
|
|
|
((and (not far)
|
|
|
|
(save-excursion
|
|
|
|
(forward-line -1)
|
2019-04-19 09:07:59 -07:00
|
|
|
(and (equal (get-text-property (point) 'gnus-group) group)
|
2018-04-16 23:10:03 +02:00
|
|
|
(or (not test-marked) (gnus-group-mark-line-p)))))
|
|
|
|
(forward-line -1)
|
|
|
|
(point))
|
|
|
|
((and (not far)
|
|
|
|
(save-excursion
|
|
|
|
(forward-line 1)
|
2019-04-19 09:07:59 -07:00
|
|
|
(and (equal (get-text-property (point) 'gnus-group) group)
|
2018-04-16 23:10:03 +02:00
|
|
|
(or (not test-marked) (gnus-group-mark-line-p)))))
|
|
|
|
(forward-line 1)
|
|
|
|
(point))
|
|
|
|
(test-marked
|
|
|
|
(goto-char (point-min))
|
|
|
|
(let (found)
|
|
|
|
(while (and (not found)
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(gnus-text-property-search
|
2019-04-19 09:07:59 -07:00
|
|
|
'gnus-group group 'forward 'goto))
|
2018-04-16 23:10:03 +02:00
|
|
|
(if (gnus-group-mark-line-p)
|
|
|
|
(setq found t)
|
|
|
|
(forward-line 1)))
|
|
|
|
found))
|
|
|
|
(t
|
|
|
|
;; Search through the entire buffer.
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(if (gnus-text-property-search
|
2019-04-19 09:07:59 -07:00
|
|
|
'gnus-group group nil 'goto)
|
2018-04-17 02:11:02 +02:00
|
|
|
(point)
|
|
|
|
(goto-char start)
|
|
|
|
nil))))))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-next-group (n &optional silent)
|
|
|
|
"Go to next N'th newsgroup.
|
|
|
|
If N is negative, search backward instead.
|
|
|
|
Returns the difference between N and the number of skips actually
|
|
|
|
done."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "p" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-next-unread-group n t nil silent))
|
|
|
|
|
|
|
|
(defun gnus-group-next-unread-group (n &optional all level silent)
|
|
|
|
"Go to next N'th unread newsgroup.
|
|
|
|
If N is negative, search backward instead.
|
|
|
|
If ALL is non-nil, choose any newsgroup, unread or not.
|
|
|
|
If LEVEL is non-nil, choose the next group with level LEVEL, or, if no
|
|
|
|
such group can be found, the next group with a level higher than
|
|
|
|
LEVEL.
|
|
|
|
Returns the difference between N and the number of skips actually
|
|
|
|
made."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "p" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(let ((backward (< n 0))
|
|
|
|
(n (abs n)))
|
|
|
|
(while (and (> n 0)
|
|
|
|
(gnus-group-search-forward
|
|
|
|
backward (or (not gnus-group-goto-unread) all) level))
|
|
|
|
(setq n (1- n)))
|
|
|
|
(when (and (/= 0 n)
|
|
|
|
(not silent))
|
|
|
|
(gnus-message 7 "No more%s newsgroups%s" (if all "" " unread")
|
|
|
|
(if level " on this level or higher" "")))
|
|
|
|
n))
|
|
|
|
|
|
|
|
(defun gnus-group-prev-group (n)
|
|
|
|
"Go to previous N'th newsgroup.
|
|
|
|
Returns the difference between N and the number of skips actually
|
|
|
|
done."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "p" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-next-unread-group (- n) t))
|
|
|
|
|
|
|
|
(defun gnus-group-prev-unread-group (n)
|
|
|
|
"Go to previous N'th unread newsgroup.
|
|
|
|
Returns the difference between N and the number of skips actually
|
|
|
|
done."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "p" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-next-unread-group (- n)))
|
|
|
|
|
|
|
|
(defun gnus-group-next-unread-group-same-level (n)
|
|
|
|
"Go to next N'th unread newsgroup on the same level.
|
|
|
|
If N is negative, search backward instead.
|
|
|
|
Returns the difference between N and the number of skips actually
|
|
|
|
done."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "p" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-next-unread-group n t (gnus-group-group-level))
|
|
|
|
(gnus-group-position-point))
|
|
|
|
|
|
|
|
(defun gnus-group-prev-unread-group-same-level (n)
|
|
|
|
"Go to next N'th unread newsgroup on the same level.
|
|
|
|
Returns the difference between N and the number of skips actually
|
|
|
|
done."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "p" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-next-unread-group (- n) t (gnus-group-group-level))
|
|
|
|
(gnus-group-position-point))
|
|
|
|
|
|
|
|
(defun gnus-group-best-unread-group (&optional exclude-group)
|
|
|
|
"Go to the group with the highest level.
|
|
|
|
If EXCLUDE-GROUP, do not go to that group."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive nil gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(goto-char (point-min))
|
|
|
|
(let ((best 100000)
|
|
|
|
unread best-point)
|
|
|
|
(while (not (eobp))
|
|
|
|
(setq unread (get-text-property (point) 'gnus-unread))
|
|
|
|
(when (and (numberp unread) (> unread 0))
|
|
|
|
(when (and (get-text-property (point) 'gnus-level)
|
|
|
|
(< (get-text-property (point) 'gnus-level) best)
|
|
|
|
(or (not exclude-group)
|
|
|
|
(not (equal exclude-group (gnus-group-group-name)))))
|
|
|
|
(setq best (get-text-property (point) 'gnus-level))
|
|
|
|
(setq best-point (point))))
|
|
|
|
(forward-line 1))
|
|
|
|
(when best-point
|
|
|
|
(goto-char best-point))
|
2004-09-04 13:13:48 +00:00
|
|
|
(gnus-group-position-point)
|
1997-04-16 22:13:18 +00:00
|
|
|
(and best-point (gnus-group-group-name))))
|
|
|
|
|
2007-10-28 09:18:39 +00:00
|
|
|
;; Is there something like an after-point-motion-hook?
|
Remove redundant let-bindings of `inhibit-point-motion-hooks`
`inhibit-point-motion-hooks` has defaulted to t (and been declared
obsolete) since Emacs-25, so remove left-over bindings to that
now default value.
* lisp/dabbrev.el (dabbrev--search):
* lisp/format.el (format-insert-file):
* lisp/forms.el (forms-next-field, forms-prev-field):
* lisp/minibuf-eldef.el (minibuf-eldef-setup-minibuffer):
* lisp/simple.el (primitive-undo):
* lisp/cedet/semantic/edit.el (semantic-change-function):
* lisp/cedet/srecode/fields.el (srecode-field-mod-hook):
* lisp/cedet/srecode/insert.el (srecode-insert-fcn):
* lisp/erc/erc-button.el (erc-button-add-buttons):
* lisp/erc/erc.el (erc-display-line):
* lisp/eshell/em-script.el (eshell-source-file):
* lisp/eshell/em-smart.el (eshell-smart-scroll-window):
* lisp/eshell/esh-arg.el (eshell-parse-arguments):
* lisp/eshell/esh-cmd.el (eshell-with-temp-command):
* lisp/eshell/esh-mode.el (eshell-send-input, eshell-output-filter):
* lisp/gnus/gnus-art.el (gnus-with-article-headers)
(article-hide-headers, article-hide-boring-headers)
(article-decode-mime-words, article-decode-charset)
(article-decode-encoded-words, article-decode-group-name)
(article-decode-idna-rhs, article-hide-list-identifiers)
(article-strip-banner, article-really-strip-banner)
(article-strip-leading-blank-lines)
(article-strip-multiple-blank-lines, article-strip-leading-space)
(article-strip-trailing-space, article-strip-all-blank-lines)
(gnus-article-narrow-to-signature, gnus-article-show-hidden-text)
(article-date-ut, article-verify-x-pgp-sig)
(gnus-article-only-boring-p, gnus-article-highlight-signature)
(gnus-article-add-buttons, gnus-signature-toggle, gnus-button-push):
* lisp/gnus/gnus-cite.el (gnus-article-highlight-citation)
(gnus-article-fill-cited-article, gnus-article-hide-citation)
(gnus-article-toggle-cited-text, gnus-article-hide-citation-maybe)
(gnus-cite-parse-wrapper, gnus-cite-add-face, gnus-cite-toggle):
* lisp/gnus/gnus-gravatar.el (gnus-gravatar-insert):
* lisp/gnus/gnus-rfc1843.el (rfc1843-decode-article-body):
* lisp/gnus/gnus-sum.el (gnus-summary-toggle-header):
* lisp/gnus/gnus-util.el (gnus-fetch-field):
* lisp/gnus/message.el (message-fetch-field, message-reply)
(message-followup, message-hide-headers):
* lisp/net/goto-addr.el (goto-address-fontify):
* lisp/obsolete/linum.el (linum-update-window):
* lisp/play/zone.el (zone-shift-left, zone-shift-right)
(zone-fill-out-screen):
* lisp/progmodes/opascal.el (opascal-save-excursion):
* lisp/progmodes/vhdl-mode.el (vhdl-prepare-search-2):
* lisp/textmodes/enriched.el (enriched-encode):
* lisp/textmodes/flyspell.el (flyspell-word-search-backward)
(flyspell-word-search-forward):
* lisp/textmodes/table.el (table--point-entered/left-cell-function):
Remove let-binding of `inhibit-point-motion-hooks`.
2022-10-07 12:16:47 -04:00
|
|
|
;; FIXME: There's `cursor-sensor-mode's `cursor-sensor-functions' property.
|
2007-10-28 09:18:39 +00:00
|
|
|
;; (inhibit-point-motion-hooks?). Is there a tool-bar-update function?
|
|
|
|
|
|
|
|
;; (defun gnus-group-menu-bar-update ()
|
|
|
|
;; (let* ((buf (list (with-current-buffer gnus-group-buffer
|
|
|
|
;; (current-buffer))))
|
|
|
|
;; (name (buffer-name (car buf))))
|
|
|
|
;; (setcdr buf
|
|
|
|
;; (if (> (length name) 27)
|
|
|
|
;; (concat (substring name 0 12)
|
|
|
|
;; "..."
|
|
|
|
;; (substring name -12))
|
|
|
|
;; name))
|
|
|
|
;; (menu-bar-update-buffers-1 buf)))
|
|
|
|
|
|
|
|
;; (defun gnus-group-position-point ()
|
|
|
|
;; (gnus-goto-colon)
|
|
|
|
;; (gnus-group-menu-bar-update))
|
|
|
|
|
1997-04-16 22:13:18 +00:00
|
|
|
(defun gnus-group-first-unread-group ()
|
|
|
|
"Go to the first group with unread articles."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive nil gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(prog1
|
|
|
|
(let ((opoint (point))
|
|
|
|
unread)
|
|
|
|
(goto-char (point-min))
|
|
|
|
(if (or (eq (setq unread (gnus-group-group-unread)) t) ; Not active.
|
|
|
|
(and (numberp unread) ; Not a topic.
|
|
|
|
(not (zerop unread))) ; Has unread articles.
|
|
|
|
(zerop (gnus-group-next-unread-group 1))) ; Next unread group.
|
|
|
|
(point) ; Success.
|
|
|
|
(goto-char opoint)
|
|
|
|
nil)) ; Not success.
|
|
|
|
(gnus-group-position-point)))
|
|
|
|
|
|
|
|
(defun gnus-group-enter-server-mode ()
|
|
|
|
"Jump to the server buffer."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive nil gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-enter-server-buffer))
|
|
|
|
|
2007-10-28 09:18:39 +00:00
|
|
|
(defun gnus-group-make-group-simple (&optional group)
|
|
|
|
"Add a new newsgroup.
|
|
|
|
The user will be prompted for GROUP."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (list (gnus-group-completing-read)) gnus-group-mode)
|
2007-10-28 09:18:39 +00:00
|
|
|
(gnus-group-make-group (gnus-group-real-name group)
|
|
|
|
(gnus-group-server group)
|
2018-11-16 12:53:56 -08:00
|
|
|
nil nil))
|
2007-10-28 09:18:39 +00:00
|
|
|
|
2018-11-16 12:53:56 -08:00
|
|
|
(defun gnus-group-make-group (name &optional method address args)
|
1997-04-16 22:13:18 +00:00
|
|
|
"Add a new newsgroup.
|
|
|
|
The user will be prompted for a NAME, for a select METHOD, and an
|
2007-10-28 09:18:39 +00:00
|
|
|
ADDRESS. NAME should be a human-readable string (i.e., not be encoded
|
2018-11-16 12:53:56 -08:00
|
|
|
even if it contains non-ASCII characters).
|
2010-10-05 22:43:06 +00:00
|
|
|
|
|
|
|
If the backend supports it, the group will also be created on the
|
|
|
|
server."
|
1997-04-16 22:13:18 +00:00
|
|
|
(interactive
|
|
|
|
(list
|
|
|
|
(gnus-read-group "Group name: ")
|
2021-02-14 14:14:48 +01:00
|
|
|
(gnus-read-method "Select method for new group (use tab for completion)"))
|
|
|
|
gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
|
1999-02-20 14:05:57 +00:00
|
|
|
(when (stringp method)
|
2000-09-19 13:37:09 +00:00
|
|
|
(setq method (or (gnus-server-to-method method) method)))
|
|
|
|
(let* ((meth (gnus-method-simplify
|
|
|
|
(when (and method
|
|
|
|
(not (gnus-server-equal method gnus-select-method)))
|
|
|
|
(if address (list (intern method) address)
|
|
|
|
method))))
|
1997-04-16 22:13:18 +00:00
|
|
|
(nname (if method (gnus-group-prefixed-name name meth) name))
|
|
|
|
backend info)
|
2007-10-28 09:18:39 +00:00
|
|
|
(when (gnus-group-entry nname)
|
2018-11-16 12:53:56 -08:00
|
|
|
(error "Group %s already exists" nname))
|
1997-04-16 22:13:18 +00:00
|
|
|
;; Subscribe to the new group.
|
|
|
|
(gnus-group-change-level
|
|
|
|
(setq info (list t nname gnus-level-default-subscribed nil nil meth))
|
|
|
|
gnus-level-default-subscribed gnus-level-killed
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(gnus-group-group-name) t)
|
1997-04-16 22:13:18 +00:00
|
|
|
;; Make it active.
|
|
|
|
(gnus-set-active nname (cons 1 0))
|
|
|
|
(unless (gnus-ephemeral-group-p name)
|
|
|
|
(gnus-dribble-enter
|
|
|
|
(concat "(gnus-group-set-info '"
|
2011-06-10 00:10:24 +00:00
|
|
|
(gnus-prin1-to-string (cdr info)) ")")
|
|
|
|
(concat "^(gnus-group-set-info '(\"" (regexp-quote name) "\"")))
|
1997-04-16 22:13:18 +00:00
|
|
|
;; Insert the line.
|
|
|
|
(gnus-group-insert-group-line-info nname)
|
|
|
|
(forward-line -1)
|
|
|
|
(gnus-group-position-point)
|
|
|
|
|
2004-09-04 13:13:48 +00:00
|
|
|
;; Load the back end and try to make the back end create
|
1997-04-16 22:13:18 +00:00
|
|
|
;; the group as well.
|
|
|
|
(when (assoc (symbol-name (setq backend (car (gnus-server-get-method
|
|
|
|
nil meth))))
|
|
|
|
gnus-valid-select-methods)
|
|
|
|
(require backend))
|
|
|
|
(gnus-check-server meth)
|
|
|
|
(when (gnus-check-backend-function 'request-create-group nname)
|
2004-09-04 13:13:48 +00:00
|
|
|
(unless (gnus-request-create-group nname nil args)
|
|
|
|
(error "Could not create group on server: %s"
|
|
|
|
(nnheader-get-report backend))))
|
1997-04-16 22:13:18 +00:00
|
|
|
t))
|
|
|
|
|
2000-09-19 13:37:09 +00:00
|
|
|
(defun gnus-group-delete-groups (&optional arg)
|
|
|
|
"Delete the current group. Only meaningful with editable groups."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
2000-09-19 13:37:09 +00:00
|
|
|
(let ((n (length (gnus-group-process-prefix arg))))
|
|
|
|
(when (gnus-yes-or-no-p
|
|
|
|
(if (= n 1)
|
|
|
|
"Delete this 1 group? "
|
|
|
|
(format "Delete these %d groups? " n)))
|
|
|
|
(gnus-group-iterate arg
|
|
|
|
(lambda (group)
|
|
|
|
(gnus-group-delete-group group nil t))))))
|
|
|
|
|
2013-08-02 13:34:22 +00:00
|
|
|
(defun gnus-group-delete-articles (group &optional oldp)
|
|
|
|
"Delete all articles in the current group.
|
|
|
|
If OLDP (the prefix), only delete articles that are \"old\",
|
|
|
|
according to the expiry settings. Note that this will delete old
|
|
|
|
not-expirable articles, too."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (list (gnus-group-group-name) current-prefix-arg)
|
|
|
|
gnus-group-mode)
|
2022-01-17 12:40:43 +01:00
|
|
|
(let ((articles (range-uncompress (gnus-active group))))
|
2010-12-17 22:45:16 +00:00
|
|
|
(when (gnus-yes-or-no-p
|
|
|
|
(format "Do you really want to delete these %d articles forever? "
|
|
|
|
(length articles)))
|
2013-08-02 13:34:22 +00:00
|
|
|
(gnus-request-expire-articles articles group
|
* lisp/gnus: Misc simplifications found during conversion to lexical
* lisp/gnus/nnoo.el (noo-import-1, nnoo-define-skeleton-1): Use `dolist`.
(noo-map-functions, nnoo-define-basics): Directly emit the code rather than
going through an intermediate function; this also avoids the use of `eval`.
(noo-map-functions-1, nnoo-define-basics-1): Delete functions,
folded into their corresponding macro.
* lisp/gnus/gmm-utils.el (gmm-tool-bar-from-list): Demote `eval` to
`symbol-value`.
* lisp/gnus/gnus-art.el (gnus-button-handle-describe-key): Avoid `eval`
since `kbd` is a function nowadays.
(gnus-treat-part-number): Rename from `part-number`.
(gnus-treat-total-parts): Rename from `total-parts`.
(gnus-treat-article, gnus-treat-predicate): Adjust accordingly.
* lisp/gnus/gnus-cache.el (gnus-agent-load-alist): Use `declare-function`.
* lisp/gnus/gnus-group.el (gnus-cache-active-hashtb): Use `defvar`.
(gnus-group-iterate): Make it a normal function since lexical scoping
avoids the risk of name capture anyway.
(gnus-group-delete-articles): Actually use the `oldp` arg.
* lisp/gnus/gnus-html.el (gnus-html-wash-images): Fix debug message so
it's emitted after the `url` var it prints is actually initialized.
And avoid `setq` while we're at it.
* lisp/gnus/gnus-msg.el (gnus-group-mail, gnus-group-news)
(gnus-summary-mail-other-window, gnus-summary-news-other-window):
Merge `let`s using `let*`.
* lisp/gnus/gnus-spec.el (gnus-update-format-specifications):
Tighten the scope of `buffer`, and tighten a regexp.
(gnus-parse-simple-format): Reduce code duplication.
* lisp/gnus/gnus-start.el (gnus-child-mode): Don't `defvar` it since we
never use that variable and accordingly don't define it as a minor mode.
* lisp/gnus/gnus-util.el (gnus-byte-compile): Simplify so it obeys
`gnus-use-byte-compile` not just on the first call.
(iswitchb-minibuffer-setup): Declare.
* lisp/gnus/mail-source.el (mail-source-bind-1)
(mail-source-bind-common-1): Use `mapcar`.
(mail-source-set-common-1): Use `dolist`.
(display-time-event-handler): Declare.
* lisp/gnus/mml-smime.el (mml-smime-epg-verify): Reduce code duplication.
* lisp/gnus/mml.el (mml-parse-1): Reduce code duplication.
* lisp/gnus/mml2015.el (mml2015-epg-verify): Reduce code duplication.
* lisp/gnus/nnmail.el (nnmail-get-split-group): Tighten regexp.
(nnmail-split-it): Reduce code duplication.
* lisp/gnus/nnweb.el (nnweb-request-article): Avoid `setq`.
* lisp/gnus/spam.el (BBDB): Use the `noerror` arg of `require`, and
define all the functions for BBDB regardless if the require succeeded.
(spam-exists-in-BBDB-p): Don't inline, not worth it.
2021-01-30 16:45:25 -05:00
|
|
|
(if oldp
|
2013-08-02 13:34:22 +00:00
|
|
|
nil
|
|
|
|
'force)))))
|
2010-12-17 22:45:16 +00:00
|
|
|
|
2000-09-19 13:37:09 +00:00
|
|
|
(defun gnus-group-delete-group (group &optional force no-prompt)
|
|
|
|
"Delete the current group. Only meaningful with editable groups.
|
1997-04-16 22:13:18 +00:00
|
|
|
If FORCE (the prefix) is non-nil, all the articles in the group will
|
|
|
|
be deleted. This is \"deleted\" as in \"removed forever from the face
|
2006-11-24 10:42:46 +00:00
|
|
|
of the Earth\". There is no undo. The user will be prompted before
|
2004-09-04 13:13:48 +00:00
|
|
|
doing the deletion.
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
|
2004-09-04 13:13:48 +00:00
|
|
|
Note that you also have to specify FORCE if you want the group to
|
|
|
|
be removed from the server, even when it's empty."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (list (gnus-group-group-name) current-prefix-arg)
|
|
|
|
gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(unless group
|
2004-09-04 13:13:48 +00:00
|
|
|
(error "No group to delete"))
|
1997-04-16 22:13:18 +00:00
|
|
|
(unless (gnus-check-backend-function 'request-delete-group group)
|
2004-09-04 13:13:48 +00:00
|
|
|
(error "This back end does not support group deletion"))
|
1997-04-16 22:13:18 +00:00
|
|
|
(prog1
|
2018-11-16 12:53:56 -08:00
|
|
|
(when (or no-prompt
|
|
|
|
(gnus-yes-or-no-p
|
|
|
|
(format
|
|
|
|
"Do you really want to delete %s%s? "
|
|
|
|
group (if force " and all its contents" ""))))
|
|
|
|
(gnus-message 6 "Deleting group %s..." group)
|
|
|
|
(if (not (gnus-request-delete-group group force))
|
|
|
|
(gnus-error 3 "Couldn't delete group %s" group)
|
|
|
|
(gnus-message 6 "Deleting group %s...done" group)
|
|
|
|
(gnus-group-goto-group group)
|
|
|
|
(gnus-group-kill-group 1 t)
|
|
|
|
(gnus-set-active group nil)
|
|
|
|
t))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-position-point)))
|
|
|
|
|
|
|
|
(defun gnus-group-rename-group (group new-name)
|
|
|
|
"Rename group from GROUP to NEW-NAME.
|
|
|
|
When used interactively, GROUP is the group under point
|
|
|
|
and NEW-NAME will be prompted for."
|
|
|
|
(interactive
|
2007-11-09 09:46:02 +00:00
|
|
|
(let ((group (gnus-group-group-name))
|
|
|
|
method new-name)
|
|
|
|
(unless (gnus-check-backend-function 'request-rename-group group)
|
|
|
|
(error "This back end does not support renaming groups"))
|
|
|
|
(setq new-name (gnus-read-group
|
|
|
|
"Rename group to: "
|
2018-11-16 12:53:56 -08:00
|
|
|
(gnus-group-real-name group))
|
2007-11-09 09:46:02 +00:00
|
|
|
method (gnus-info-method (gnus-get-info group)))
|
2021-02-14 14:14:48 +01:00
|
|
|
(list group (gnus-group-prefixed-name new-name method)))
|
|
|
|
gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(unless (gnus-check-backend-function 'request-rename-group group)
|
2004-09-04 13:13:48 +00:00
|
|
|
(error "This back end does not support renaming groups"))
|
1997-04-16 22:13:18 +00:00
|
|
|
(unless group
|
|
|
|
(error "No group to rename"))
|
|
|
|
(when (equal (gnus-group-real-name group) new-name)
|
|
|
|
(error "Can't rename to the same name"))
|
|
|
|
|
|
|
|
;; We find the proper prefixed name.
|
|
|
|
(setq new-name
|
|
|
|
(if (gnus-group-native-p group)
|
|
|
|
;; Native group.
|
|
|
|
new-name
|
|
|
|
;; Foreign group.
|
|
|
|
(gnus-group-prefixed-name
|
|
|
|
(gnus-group-real-name new-name)
|
|
|
|
(gnus-info-method (gnus-get-info group)))))
|
|
|
|
|
2018-11-16 12:53:56 -08:00
|
|
|
(when (gnus-active new-name)
|
|
|
|
(error "The group %s already exists" new-name))
|
2007-11-09 09:46:02 +00:00
|
|
|
|
2018-11-16 12:53:56 -08:00
|
|
|
(gnus-message 6 "Renaming group %s to %s..." group new-name)
|
|
|
|
(prog1
|
|
|
|
(if (progn
|
|
|
|
(gnus-group-goto-group group)
|
|
|
|
(not (when (< (gnus-group-group-level) gnus-level-zombie)
|
|
|
|
(gnus-request-rename-group group new-name))))
|
|
|
|
(gnus-error 3 "Couldn't rename group %s to %s"
|
|
|
|
group new-name)
|
|
|
|
;; We rename the group internally by killing it...
|
|
|
|
(gnus-group-kill-group)
|
|
|
|
;; ... changing its name ...
|
|
|
|
(setcar (cdar gnus-list-of-killed-groups) new-name)
|
|
|
|
;; ... and then yanking it. Magic!
|
|
|
|
(gnus-group-yank-group)
|
|
|
|
(gnus-set-active new-name (gnus-active group))
|
|
|
|
(gnus-message 6 "Renaming group %s to %s...done" group new-name)
|
|
|
|
new-name)
|
|
|
|
(setq gnus-killed-list (delete group gnus-killed-list))
|
|
|
|
(gnus-set-active group nil)
|
|
|
|
(gnus-dribble-touch)
|
|
|
|
(gnus-group-position-point)))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-edit-group (group &optional part)
|
|
|
|
"Edit the group on the current line."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (list (gnus-group-group-name)) gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(let ((part (or part 'info))
|
|
|
|
info)
|
|
|
|
(unless group
|
|
|
|
(error "No group on current line"))
|
|
|
|
(unless (setq info (gnus-get-info group))
|
|
|
|
(error "Killed group; can't be edited"))
|
|
|
|
(ignore-errors
|
|
|
|
(gnus-close-group group))
|
|
|
|
(gnus-edit-form
|
|
|
|
;; Find the proper form to edit.
|
|
|
|
(cond ((eq part 'method)
|
|
|
|
(or (gnus-info-method info) "native"))
|
|
|
|
((eq part 'params)
|
|
|
|
(gnus-info-params info))
|
|
|
|
(t info))
|
|
|
|
;; The proper documentation.
|
2016-02-11 16:45:02 +11:00
|
|
|
(format-message
|
1997-04-16 22:13:18 +00:00
|
|
|
"Editing the %s for `%s'."
|
|
|
|
(cond
|
|
|
|
((eq part 'method) "select method")
|
|
|
|
((eq part 'params) "group parameters")
|
|
|
|
(t "group info"))
|
2018-11-16 12:53:56 -08:00
|
|
|
group)
|
2021-01-30 18:56:37 -05:00
|
|
|
(lambda (form)
|
|
|
|
(gnus-group-edit-group-done part group form)))
|
2004-09-04 13:13:48 +00:00
|
|
|
(local-set-key
|
|
|
|
"\C-c\C-i"
|
|
|
|
(gnus-create-info-command
|
|
|
|
(cond
|
|
|
|
((eq part 'method)
|
|
|
|
"(gnus)Select Methods")
|
|
|
|
((eq part 'params)
|
|
|
|
"(gnus)Group Parameters")
|
|
|
|
(t
|
|
|
|
"(gnus)Group Info"))))))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-edit-group-method (group)
|
|
|
|
"Edit the select method of GROUP."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (list (gnus-group-group-name)) gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-edit-group group 'method))
|
|
|
|
|
|
|
|
(defun gnus-group-edit-group-parameters (group)
|
|
|
|
"Edit the group parameters of GROUP."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (list (gnus-group-group-name)) gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-edit-group group 'params))
|
|
|
|
|
|
|
|
(defun gnus-group-edit-group-done (part group form)
|
|
|
|
"Update variables."
|
|
|
|
(let* ((method (cond ((eq part 'info) (nth 4 form))
|
|
|
|
((eq part 'method) form)
|
|
|
|
(t nil)))
|
|
|
|
(info (cond ((eq part 'info) form)
|
|
|
|
((eq part 'method) (gnus-get-info group))
|
|
|
|
(t nil)))
|
|
|
|
(new-group (if info
|
|
|
|
(if (or (not method)
|
|
|
|
(gnus-server-equal
|
|
|
|
gnus-select-method method))
|
|
|
|
(gnus-group-real-name (car info))
|
|
|
|
(gnus-group-prefixed-name
|
|
|
|
(gnus-group-real-name (car info)) method))
|
|
|
|
nil)))
|
|
|
|
(when (and new-group
|
|
|
|
(not (equal new-group group)))
|
|
|
|
(when (gnus-group-goto-group group)
|
|
|
|
(gnus-group-kill-group 1))
|
|
|
|
(gnus-activate-group new-group))
|
|
|
|
;; Set the info.
|
|
|
|
(if (not (and info new-group))
|
|
|
|
(gnus-group-set-info form (or new-group group) part)
|
Obsolete gnus-copy-sequence and gnus-last-element
(Bug#28856, Bug#28867)
* lisp/gnus/gnus-range.el: Leave gnus-last-element in place, but
obsolete it and point to car of last. Remove gnus-copy-sequence and
define as an obsolete alias for copy-tree.
(gnus-remove-from-range):
* lisp/gnus/gnus-cache.el (gnus-cache-generate-active):
* lisp/gnus/gnus-sum.el (gnus-summary-insert-articles,
gnus-select-newsgroup, gnus-summary-read-group-1,
gnus-select-newsgroup, gnus-update-marks,
gnus-summary-insert-articles, gnus-summary-insert-new-articles):
Replace calls in these locations.
* lisp/gnus/gnus-agent.el (gnus-agent-catchup,
gnus-agent-summary-fetch-series, gnus-category-copy):
* lisp/gnus/gnus-cus.el (gnus-group-customize):
* lisp/gnus/gnus-group.el (gnus-group-edit-group-done,
gnus-group-make-useful-group):
* lisp/gnus/gnus-score.el (gnus-score-adaptive):
* lisp/gnus/gnus-srvr.el (gnus-server-copy-server): Replace calls in
these locations.
2017-05-09 19:17:29 +08:00
|
|
|
(setq info (copy-tree info))
|
1997-04-16 22:13:18 +00:00
|
|
|
(setcar info new-group)
|
|
|
|
(unless (gnus-server-equal method "native")
|
* lisp/gnus/gnus.el (gnus-info): Define with `cl-defstruct`
This makes the accessors into (inlined) functions (instead of macros),
which simplifies some uses, and it makes the gnus-info-set-<foo>
macros redundant since we can use `setf` instead. Remove them and
update all users.
(gnus-info-group, gnus-info-rank, gnus-info-read, gnus-info-marks)
(gnus-info-method, gnus-info-params): Auto-defined by defstruct.
(gnus-info-level, gnus-info-score): Define as a function. Add gv-setter.
(gnus-info-set-group, gnus-info-set-rank, gnus-info-set-read): Remove,
use `setf` instead.
(gnus-info-set-marks, gnus-info-set-method, gnus-info-set-params):
Define as a function.
(gnus-info-set-entry): Delete function.
(gnus-info--grow-entry): New function, extracted from it.
(gnus-info--set-level, gnus-info--set-score): New functions, extracted
from the `gnus-info-set-level` and `gnus-info-set-score` which they replace.
(gnus-get-info): Define as a function.
* lisp/gnus/gnus-group.el (gnus-group-edit-group-done):
Use the `extend` arg of `gnus-info-set-method`.
(gnus-group-sort-selected-flat): eta-reduce.
2019-11-29 12:26:31 -05:00
|
|
|
(gnus-info-set-method info method t))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-set-info info))
|
|
|
|
(gnus-group-update-group (or new-group group))
|
|
|
|
(gnus-group-position-point)))
|
|
|
|
|
|
|
|
(defun gnus-group-make-useful-group (group method)
|
1999-02-20 14:05:57 +00:00
|
|
|
"Create one of the groups described in `gnus-useful-groups'."
|
1997-04-16 22:13:18 +00:00
|
|
|
(interactive
|
2021-02-14 14:14:48 +01:00
|
|
|
(let ((entry (assoc (gnus-completing-read
|
|
|
|
"Create group"
|
|
|
|
(mapcar #'car gnus-useful-groups)
|
|
|
|
t)
|
1997-04-16 22:13:18 +00:00
|
|
|
gnus-useful-groups)))
|
2008-09-10 01:28:52 +00:00
|
|
|
(list (cadr entry)
|
2021-02-14 14:14:48 +01:00
|
|
|
;; Don't use `caddr' here since macros within the
|
|
|
|
;; `interactive' form won't be expanded.
|
|
|
|
(car (cddr entry))))
|
|
|
|
gnus-group-mode)
|
Obsolete gnus-copy-sequence and gnus-last-element
(Bug#28856, Bug#28867)
* lisp/gnus/gnus-range.el: Leave gnus-last-element in place, but
obsolete it and point to car of last. Remove gnus-copy-sequence and
define as an obsolete alias for copy-tree.
(gnus-remove-from-range):
* lisp/gnus/gnus-cache.el (gnus-cache-generate-active):
* lisp/gnus/gnus-sum.el (gnus-summary-insert-articles,
gnus-select-newsgroup, gnus-summary-read-group-1,
gnus-select-newsgroup, gnus-update-marks,
gnus-summary-insert-articles, gnus-summary-insert-new-articles):
Replace calls in these locations.
* lisp/gnus/gnus-agent.el (gnus-agent-catchup,
gnus-agent-summary-fetch-series, gnus-category-copy):
* lisp/gnus/gnus-cus.el (gnus-group-customize):
* lisp/gnus/gnus-group.el (gnus-group-edit-group-done,
gnus-group-make-useful-group):
* lisp/gnus/gnus-score.el (gnus-score-adaptive):
* lisp/gnus/gnus-srvr.el (gnus-server-copy-server): Replace calls in
these locations.
2017-05-09 19:17:29 +08:00
|
|
|
(setq method (copy-tree method))
|
1997-04-16 22:13:18 +00:00
|
|
|
(let (entry)
|
|
|
|
(while (setq entry (memq (assq 'eval method) method))
|
* lisp/gnus: Use lexical-binding in all the files
* lisp/gnus/gnus-group.el (features): Use `dlet`.
(gnus-tmp-level, gnus-tmp-marked, gnus-tmp-group): Declare vars.
(gnus-group-insert-group-line): Bind dynbound vars via `let` rather
than as formal args. Bind `number` as dynbound.
(gnus-visual, gnus-score-find-score-files-function)
(gnus-home-score-file, gnus-apply-kill-hook)
(gnus-summary-expunge-below): Declare vars.
(gnus-group-restart, gnus-group-list-plus): Fix `interactive` spec
since the arg is unused.
* lisp/gnus/mail-source.el (mail-source-bind, mail-source-bind-common):
Use `dlet` and suppress the warnings about the non-prefixed dynbound vars.
(mail-source-set-1): Remove unused var `auth-info`.
(mail-source-call-script): Remove unused var `background`.
(mail-source-fetch-pop, mail-source-check-pop): Bind pop3 vars with `dlet`.
* lisp/gnus/gnus-int.el (mail-source-plugged, gnus-inhibit-demon):
Declare vars.
(gnus-server-opened, gnus-status-message)
(gnus-open-server, gnus-close-server, gnus-request-list)
(gnus-finish-retrieve-group-infos, gnus-retrieve-group-data-early)
(gnus-request-list-newsgroups, gnus-request-newgroups)
(gnus-request-regenerate, gnus-request-compact, gnus-request-group)
(gnus-retrieve-groups, gnus-request-post, gnus-request-expunge-group)
(gnus-request-scan, gnus-request-update-info, gnus-request-marks)
(gnus-request-accept-article, gnus-request-create-group)
(gnus-asynchronous-p, gnus-remove-denial):
Bind `gnus-command-method` via `let` rather than as formal args.
* lisp/gnus/gnus-topic.el (gnus-topic-insert-topic-line):
Pass documented vars to eval for `gnus-topic-line-format-spec`.
* lisp/gnus/message.el (message-yank-original): Use `cl-progv` rather
than `eval` to bind the vars from `message-cite-style`.
* lisp/gnus/mml.el (mml-parse-1): Use `apply` instead of `eval`.
(gnus-newsgroup-name, gnus-displaying-mime, gnus-newsgroup-name)
(gnus-article-prepare-hook, gnus-newsgroup-charset)
(gnus-original-article-buffer, gnus-message-buffer)
(message-this-is-news, message-this-is-mail): Declare vars.
* lisp/gnus/deuglify.el (gnus-outlook-rearrange-article): Remove unused
var `cite-marks`.
* lisp/gnus/gnus-art.el (ansi-color-context-region): Declare var.
(gnus-mime-display-attachment-buttons-in-header): Move declaration
before first use.
(gnus-mime-display-alternative): Remove unused var `from`.
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-list): Remove unused
var `start` `end`.
* lisp/gnus/gnus-cache.el (gnus-article-decode-hook)
(nnml-generate-active-function): Declare var.
* lisp/gnus/gnus-cite.el (gnus-message-citation-mode): Remove unused
var `keywords`.
* lisp/gnus/gnus-cloud.el (gnus-cloud-encode-data): Remove unused var
`cipher`.
(gnus-cloud-ensure-cloud-group): Remove unused var `method`.
* lisp/gnus/gnus-delay.el (gnus-delay-article): Remove unused var `days`.
* lisp/gnus/gnus-html.el (gnus-html-wash-images): Remove unused vars
`tag`, `string`, and `images`.
(gnus-html-wash-tags): Remove unused vars `string` and `images`.
* lisp/gnus/gnus-msg.el (gnus-msg-mail): Remove unused var `group-name`.
(gnus-group-mail, gnus-group-news, gnus-summary-mail-other-window)
(gnus-summary-news-other-window):
Remove unused vars `group` and `buffer`.
(gnus-configure-posting-styles): Remove unused vars `style` and `attribute`.
* lisp/gnus/gnus-picon.el (gnus-picon-find-face): Remove unused vars
`database`, `directory`, and `instance`.
(gnus-picon-transform-newsgroups): Remove unused var `point`.
* lisp/gnus/gnus-range.el (gnus-range-difference): Remove unused var `safe`.
* lisp/gnus/gnus-score.el (gnus-score-load-file): Remove unused var
`score-fn`.
* lisp/gnus/gnus-sum.el (message-options-set-recipient): Declare var.
* lisp/gnus/gnus-undo.el (gnus-undo): Fix docstring lie.
* lisp/gnus/gnus-util.el (print-string-length)
(iswitchb-make-buflist-hook): Declare vars.
(gnus-emacs-version): Remove unused var `codename`.
(gnus-rename-file): Remove unused vars `old-name` and `new-name`.
* lisp/gnus/gnus-uu.el (gnus-uu-yenc-article): Remove unused var
`start-char`.
(gnus-asynchronous): Declare var.
* lisp/gnus/mm-partial.el (gnus-displaying-mime): Declare var.
(mm-inline-partial): Remove unused var `buffer`.
* lisp/gnus/mm-view.el (w3m-force-redisplay, w3m-safe-url-regexp)
(gnus-displaying-mime, gnus-original-article-buffer)
(gnus-article-prepare-hook): Declare vars.
* lisp/gnus/mml-smime.el (mml-smime-epg-encrypt): Remove unused var
`boundary`.
(mml-smime-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/mml1991.el (pgg-text-mode): Declare var.
* lisp/gnus/mml2015.el (pgg-text-mode): Declare var.
(mml2015-pgg-decrypt): Remove unused var `result`.
(mml2015-epg-key-image-to-string): Remove unused var `error`.
(mml2015-epg-decrypt): Remove unused var `result`.
(mml2015-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/nnbabyl.el (nnml-current-directory): Declare var.
* lisp/gnus/nndiary.el (nndiary-files): Move declaration before first use.
* lisp/gnus/nnfolder.el (nnfolder-request-accept-article):
Remove unused var `buf`.
* lisp/gnus/nnmail.el (nnmail-parse-active): Remove unused var `err`.
* lisp/gnus/nnmairix.el (nnmairix-request-group): Remove unused var `args`.
(nnmairix-request-create-group): Remove unused var `info`.
(nnmairix-request-list): Remove unused var `folder`.
(nnmairix-request-set-mark): Remove unused var `propto`.
(nnmairix-request-set-mark): Remove unused vars `number` and `method`.
(nnmairix-close-group): Remove unused var `method`.
(nnmairix-create-search-group-from-message): Remove unused var `cq`.
(nnmairix-create-server-and-default-group): Remove unused var `create`.
(nnmairix-purge-old-groups): Remove unused var `folder`.
(nnmairix-remove-tick-mark-original-article, nnmairix-get-valid-servers):
Remove unused var `cur`.
(nnmairix-replace-group-and-numbers): Remove unused var `header`.
(nnmairix-goto-original-article): Remove unused var `rval`.
(nnmairix-widget-create-query): Remove unused var `allwidgets`.
* lisp/gnus/nnmbox.el (nnml-current-directory): Declare var.
* lisp/gnus/nnmh.el (nnmh-toplev): Move declaration before first use.
(nnmh-request-list-1): Remove unused var `rdir`.
* lisp/gnus/nnml.el (nnml-generate-nov-file): Remove unused var `file`.
* lisp/gnus/nnrss.el (nnrss-request-article): Remove unused var `post`.
(nnrss-request-article): Remove unused var `fn`.
(nnrss-check-group): Remove unused var `rdf-ns`.
* lisp/gnus/nnweb.el (nnweb-request-article): Remove unused var `active`.
(nnweb-google-parse-1): Remove unused var `Score`.
* lisp/gnus/spam-stat.el (spam-stat-error-holder): Remove var.
(spam-stat-buffer-words-with-scores): Remove unused var `word`.
(spam-stat-score-buffer): Remove unused var `spam-stat-error-holder`.
(spam-stat-split-fancy): Use `err` instead of `spam-stat-error-holder`.
* lisp/gnus/spam-wash.el (spam-wash): Remove unused var `handle`.
* lisp/gnus/spam.el (spam-copy-or-move-routine): Remove unused vars
`article` and `mark`.
(spam-register-routine): Remove unused var `article`.
(spam-log-undo-registration): Remove unused var `found`.
(spam-ifile-register-with-ifile): Remove unused var `parameters`.
(spam-check-stat): Remove unused vars `category` and `return`.
(spam-parse-list): Remove unused var `found`.
(spam-filelist-register-routine): Remove unused var `from`.
2021-01-30 18:44:00 -05:00
|
|
|
(setcar entry (eval (cadar entry) t))))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-make-group group method))
|
|
|
|
|
2004-09-04 13:13:48 +00:00
|
|
|
(defun gnus-group-make-help-group (&optional noerror)
|
|
|
|
"Create the Gnus documentation group.
|
|
|
|
Optional argument NOERROR modifies the behavior of this function when the
|
|
|
|
group already exists:
|
|
|
|
- if not given, and error is signaled,
|
|
|
|
- if t, stay silent,
|
|
|
|
- if anything else, just print a message."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive nil gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(let ((name (gnus-group-prefixed-name "gnus-help" '(nndoc "gnus-help")))
|
1999-02-20 14:05:57 +00:00
|
|
|
(file (nnheader-find-etc-directory "gnus-tut.txt" t)))
|
2007-10-28 09:18:39 +00:00
|
|
|
(if (gnus-group-entry name)
|
2004-09-04 13:13:48 +00:00
|
|
|
(cond ((eq noerror nil)
|
|
|
|
(error "Documentation group already exists"))
|
|
|
|
((eq noerror t)
|
|
|
|
;; stay silent
|
|
|
|
)
|
|
|
|
(t
|
|
|
|
(gnus-message 1 "Documentation group already exists")))
|
|
|
|
;; else:
|
|
|
|
(if (not file)
|
|
|
|
(gnus-message 1 "Couldn't find doc group")
|
|
|
|
(gnus-group-make-group
|
|
|
|
(gnus-group-real-name name)
|
|
|
|
(list 'nndoc "gnus-help"
|
|
|
|
(list 'nndoc-address file)
|
|
|
|
(list 'nndoc-article-type 'mbox))))
|
|
|
|
))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-position-point))
|
|
|
|
|
|
|
|
(defun gnus-group-make-doc-group (file type)
|
2005-02-19 13:24:16 +00:00
|
|
|
"Create a group that uses a single file as the source.
|
|
|
|
|
|
|
|
If called with a prefix argument, ask for the file type."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (list (read-file-name "File name: ")
|
|
|
|
(and current-prefix-arg 'ask))
|
|
|
|
gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(when (eq type 'ask)
|
|
|
|
(let ((err "")
|
|
|
|
char found)
|
|
|
|
(while (not found)
|
|
|
|
(message
|
2005-02-19 13:24:16 +00:00
|
|
|
"%sFile type (mbox, babyl, digest, forward, mmdf, guess) [m, b, d, f, a, g]: "
|
1997-04-16 22:13:18 +00:00
|
|
|
err)
|
|
|
|
(setq found (cond ((= (setq char (read-char)) ?m) 'mbox)
|
|
|
|
((= char ?b) 'babyl)
|
|
|
|
((= char ?d) 'digest)
|
|
|
|
((= char ?f) 'forward)
|
|
|
|
((= char ?a) 'mmfd)
|
2000-09-19 13:37:09 +00:00
|
|
|
((= char ?g) 'guess)
|
1997-04-16 22:13:18 +00:00
|
|
|
(t (setq err (format "%c unknown. " char))
|
|
|
|
nil))))
|
|
|
|
(setq type found)))
|
2006-10-24 10:42:21 +00:00
|
|
|
(setq file (expand-file-name file))
|
2007-10-28 09:18:39 +00:00
|
|
|
(let* ((name (gnus-generate-new-group-name
|
|
|
|
(gnus-group-prefixed-name
|
|
|
|
(file-name-nondirectory file) '(nndoc ""))))
|
|
|
|
(method (list 'nndoc file
|
|
|
|
(list 'nndoc-address file)
|
|
|
|
(list 'nndoc-article-type (or type 'guess))))
|
|
|
|
(coding (gnus-group-name-charset method name)))
|
2016-02-12 14:39:30 +11:00
|
|
|
(setcar (cdr method) (encode-coding-string file coding))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-make-group
|
2018-11-16 12:53:56 -08:00
|
|
|
(gnus-group-real-name name) method nil nil)))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defvar nnweb-type-definition)
|
|
|
|
(defvar gnus-group-web-type-history nil)
|
|
|
|
(defvar gnus-group-web-search-history nil)
|
|
|
|
(defun gnus-group-make-web-group (&optional solid)
|
|
|
|
"Create an ephemeral nnweb group.
|
|
|
|
If SOLID (the prefix), create a solid group."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(require 'nnweb)
|
|
|
|
(let* ((group
|
|
|
|
(if solid (gnus-read-group "Group name: ")
|
|
|
|
(message-unique-id)))
|
1997-09-24 01:50:24 +00:00
|
|
|
(default-type (or (car gnus-group-web-type-history)
|
|
|
|
(symbol-name (caar nnweb-type-definition))))
|
1997-04-16 22:13:18 +00:00
|
|
|
(type
|
1997-09-24 01:50:24 +00:00
|
|
|
(gnus-string-or
|
Merge changes made in Gnus trunk.
nndraft.el (nndraft-request-expire-articles): Use the group name instead if "nndraft".
gnus.texi (Using IMAP): Remove the @acronyms from the headings.
nnregistry.el: Added.
nnimap.el (nnimap-insert-partial-structure): Be way more permissive when interpreting the structures.
GNUS-NEWS: Minor error in GNUS-NEWS - password-cache.el.
nnimap.el (nnimap-request-accept-article): Add \r\n to the lines to make this work with Cyrus.
gnus-registry.el: Don't prompt on load, which makes it impossible to build Gnus.
gnus-gravatar.el: Add gnus-gravatar-properties.
gnus-agent.el, gnus-art.el, gnus-bookmark.el, gnus-dired.el, gnus-group.el,\
gnus-int.el, gnus-msg.el, gnus-registry.el, gnus-score.el, gnus-srvr.el,\
gnus-sum.el, gnus-topic.el, gnus-util.el, gnus.el, mm-decode.el, mm-util.el,\
mm-view.el, mml-smime.el, mml.el, nnmairix.el, nnrss.el, smime.el:\
Introduce gnus-completing-read.
gnus-util.el: Make completing-read function configurable.
gnus-util.el: Add requires and fix history for iswitchb.
webmail.el: Remove netscape/my-deja, since they no longer exist.
gnus.el (gnus-local-domain): Declare variable obsolete.
nnimap.el (nnimap-insert-partial-structure): Get the type from the correct slot, too.
pop3.el (pop3-send-streaming-command, pop3-stream-length): New variable.
nnimap.el (nnimap-open-connection): Revert the auto-network->starttls code.
nnimap.el (nnimap-request-set-mark): Erase the buffer before issuing commands.
nnimap.el (nnimap-split-rule): Mark as obsolete.
gnus-sum.el (gnus-valid-move-group-p): Make sure that `group' is a symbol.
nnimap.el (nnimap-split-incoming-mail): Allow `default' as nnimap-split-methods value.
nnimap.el (nnimap-request-article): Downcase the NILs so that they are nil.
nndoc.el (nndoc-retrieve-groups): New function.
gnus.texi: Fix Gravatar documentation.
2010-09-30 08:39:23 +00:00
|
|
|
(gnus-completing-read
|
|
|
|
"Search engine type"
|
|
|
|
(mapcar (lambda (elem) (symbol-name (car elem)))
|
1997-09-24 01:50:24 +00:00
|
|
|
nnweb-type-definition)
|
Merge changes made in Gnus trunk.
nndraft.el (nndraft-request-expire-articles): Use the group name instead if "nndraft".
gnus.texi (Using IMAP): Remove the @acronyms from the headings.
nnregistry.el: Added.
nnimap.el (nnimap-insert-partial-structure): Be way more permissive when interpreting the structures.
GNUS-NEWS: Minor error in GNUS-NEWS - password-cache.el.
nnimap.el (nnimap-request-accept-article): Add \r\n to the lines to make this work with Cyrus.
gnus-registry.el: Don't prompt on load, which makes it impossible to build Gnus.
gnus-gravatar.el: Add gnus-gravatar-properties.
gnus-agent.el, gnus-art.el, gnus-bookmark.el, gnus-dired.el, gnus-group.el,\
gnus-int.el, gnus-msg.el, gnus-registry.el, gnus-score.el, gnus-srvr.el,\
gnus-sum.el, gnus-topic.el, gnus-util.el, gnus.el, mm-decode.el, mm-util.el,\
mm-view.el, mml-smime.el, mml.el, nnmairix.el, nnrss.el, smime.el:\
Introduce gnus-completing-read.
gnus-util.el: Make completing-read function configurable.
gnus-util.el: Add requires and fix history for iswitchb.
webmail.el: Remove netscape/my-deja, since they no longer exist.
gnus.el (gnus-local-domain): Declare variable obsolete.
nnimap.el (nnimap-insert-partial-structure): Get the type from the correct slot, too.
pop3.el (pop3-send-streaming-command, pop3-stream-length): New variable.
nnimap.el (nnimap-open-connection): Revert the auto-network->starttls code.
nnimap.el (nnimap-request-set-mark): Erase the buffer before issuing commands.
nnimap.el (nnimap-split-rule): Mark as obsolete.
gnus-sum.el (gnus-valid-move-group-p): Make sure that `group' is a symbol.
nnimap.el (nnimap-split-incoming-mail): Allow `default' as nnimap-split-methods value.
nnimap.el (nnimap-request-article): Downcase the NILs so that they are nil.
nndoc.el (nndoc-retrieve-groups): New function.
gnus.texi: Fix Gravatar documentation.
2010-09-30 08:39:23 +00:00
|
|
|
t nil 'gnus-group-web-type-history)
|
1997-09-24 01:50:24 +00:00
|
|
|
default-type))
|
1997-04-16 22:13:18 +00:00
|
|
|
(search
|
|
|
|
(read-string
|
|
|
|
"Search string: "
|
|
|
|
(cons (or (car gnus-group-web-search-history) "") 0)
|
|
|
|
'gnus-group-web-search-history))
|
|
|
|
(method
|
|
|
|
`(nnweb ,group (nnweb-search ,search)
|
|
|
|
(nnweb-type ,(intern type))
|
|
|
|
(nnweb-ephemeral-p t))))
|
|
|
|
(if solid
|
2004-09-04 13:13:48 +00:00
|
|
|
(progn
|
2010-10-08 23:55:33 +00:00
|
|
|
(gnus-alist-pull 'nnweb-ephemeral-p method)
|
2004-09-04 13:13:48 +00:00
|
|
|
(gnus-group-make-group group method))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-read-ephemeral-group
|
|
|
|
group method t
|
|
|
|
(cons (current-buffer)
|
2013-09-10 23:31:56 -04:00
|
|
|
(if (derived-mode-p 'gnus-summary-mode) 'summary 'group))))))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
* smime.el (from):
* rfc2047.el (message-posting-charset):
* qp.el (mm-use-ultra-safe-encoding):
* pop3.el (parse-time-months):
* nnrss.el (mm-text-html-renderer, mm-text-html-washer-alist):
* nnml.el (files):
* nnheader.el (gnus-newsgroup-name, nnheader-file-coding-system)
(jka-compr-compression-info-list, ange-ftp-path-format)
(efs-path-regexp):
* nndiary.el (files):
* mml2015.el (mc-default-scheme, mc-schemes, pgg-default-user-id)
(pgg-errors-buffer, pgg-output-buffer, epg-user-id-alist)
(epg-digest-algorithm-alist, inhibit-redisplay)
(password-cache-expiry):
* mml1991.el (pgg-default-user-id, pgg-errors-buffer)
(pgg-output-buffer, password-cache-expiry):
* mml.el (mml-dnd-protocol-alist, ange-ftp-name-format)
(efs-path-regexp):
* mml-smime.el (epg-user-id-alist, epg-digest-algorithm-alist)
(inhibit-redisplay):
* mm-uu.el (file-name, start-point, end-point, entry)
(gnus-newsgroup-name, gnus-newsgroup-charset):
* mm-util.el (mm-mime-mule-charset-alist, latin-unity-coding-systems)
(latin-unity-ucs-list):
* mm-bodies.el (mm-uu-yenc-decode-function, mm-uu-decode-function)
(mm-uu-binhex-decode-function):
* message.el (gnus-message-group-art, gnus-list-identifiers, )
(rmail-enable-mime-composing, gnus-local-organization)
(gnus-post-method, gnus-select-method, gnus-active-hashtb)
(gnus-read-active-file, facemenu-add-face-function)
(facemenu-remove-face-function, gnus-article-decoded-p)
(tool-bar-mode):
* mail-source.el (display-time-mail-function):
* gnus-util.el (nnmail-pathname-coding-system)
(nnmail-active-file-coding-system, gnus-emphasize-whitespace-regexp)
(gnus-original-article-buffer, gnus-user-agent)
(rmail-default-rmail-file, mm-text-coding-system, tool-bar-mode)
(xemacs-codename, sxemacs-codename, emacs-program-version):
* gnus-sum.el (tool-bar-mode, gnus-tmp-header, number):
* gnus-start.el (gnus-agent-covered-methods)
(gnus-agent-file-loading-local, gnus-agent-file-loading-cache)
(gnus-current-headers, gnus-thread-indent-array, gnus-newsgroup-name)
(gnus-newsgroup-headers, gnus-group-list-mode)
(gnus-group-mark-positions, gnus-newsgroup-data)
(gnus-newsgroup-unreads, nnoo-state-alist)
(gnus-current-select-method, mail-sources)
(nnmail-scan-directory-mail-source-once, nnmail-split-history)
(nnmail-spool-file, gnus-cache-active-hashtb):
* gnus-mh.el (mh-lib-progs):
* gnus-ems.el (gnus-tmp-unread, gnus-tmp-replied)
(gnus-tmp-score-char, gnus-tmp-indentation, gnus-tmp-opening-bracket)
(gnus-tmp-lines, gnus-tmp-name, gnus-tmp-closing-bracket)
(gnus-tmp-subject-or-nil, gnus-check-before-posting, gnus-mouse-face)
(gnus-group-buffer):
* gnus-cite.el (font-lock-defaults-computed, font-lock-keywords)
(font-lock-set-defaults):
* gnus-art.el (tool-bar-map, w3m-minor-mode-map)
(gnus-face-properties-alist, charset, gnus-summary-article-menu)
(gnus-summary-post-menu, total-parts, type, condition, length):
* gnus-agent.el (gnus-agent-read-agentview):
* flow-fill.el (show-trailing-whitespace):
* gnus-group.el (tool-bar-mode, nnrss-group-alist): Remove unnecessary
eval-and-compile wrappers for byte compiler pacifiers.
* mm-view.el (mm-inline-image-xemacs): Only do something for XEmacs.
(mm-display-inline-fontify): Check for featurep 'xemacs not
extent-list.
* mm-decode.el (mm-display-external): Check for featurep 'xemacs not
itimer-list.
(mm-create-image-xemacs): Only do something for XEmacs.
(mm-image-fit-p): Check for featurep 'xemacs not glyph-width.
* mm-util.el (mm-find-buffer-file-coding-system): Add check for XEmacs.
* gnus-registry.el (gnus-adaptive-word-syntax-table):
* gnus-fun.el (gnus-face-properties-alist): Pacify byte compiler.
* textmodes/reftex-dcr.el (reftex-start-itimer-once): Add check
for XEmacs.
* calc/calc-menu.el (calc-mode-map): Pacify byte compiler.
* doc-view.el (doc-view-resolution): Add missing :group.
2007-11-16 16:50:35 +00:00
|
|
|
(defvar nnrss-group-alist)
|
2022-01-31 16:25:09 -05:00
|
|
|
(declare-function nnrss-discover-feed "nnrss" (url))
|
|
|
|
(declare-function nnrss-save-server-data "nnrss" (server))
|
|
|
|
|
2004-09-04 13:13:48 +00:00
|
|
|
(defun gnus-group-make-rss-group (&optional url)
|
|
|
|
"Given a URL, discover if there is an RSS feed.
|
|
|
|
If there is, use Gnus to create an nnrss group"
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive nil gnus-group-mode)
|
2004-09-04 13:13:48 +00:00
|
|
|
(require 'nnrss)
|
|
|
|
(if (not url)
|
|
|
|
(setq url (read-from-minibuffer "URL to Search for RSS: ")))
|
|
|
|
(let ((feedinfo (nnrss-discover-feed url)))
|
|
|
|
(if feedinfo
|
2007-10-28 09:18:39 +00:00
|
|
|
(let* ((title (gnus-newsgroup-savable-name
|
|
|
|
(read-from-minibuffer "Title: "
|
|
|
|
(gnus-newsgroup-savable-name
|
2009-07-10 12:05:14 +00:00
|
|
|
(mapconcat
|
2021-01-30 00:35:24 -05:00
|
|
|
#'identity
|
2009-07-10 12:05:14 +00:00
|
|
|
(split-string
|
|
|
|
(or (cdr (assoc 'title
|
|
|
|
feedinfo))
|
|
|
|
""))
|
|
|
|
" ")))))
|
2007-10-28 09:18:39 +00:00
|
|
|
(desc (read-from-minibuffer "Description: "
|
2009-07-10 12:05:14 +00:00
|
|
|
(mapconcat
|
2021-01-30 00:35:24 -05:00
|
|
|
#'identity
|
2009-07-10 12:05:14 +00:00
|
|
|
(split-string
|
|
|
|
(or (cdr (assoc 'description
|
|
|
|
feedinfo))
|
|
|
|
""))
|
|
|
|
" ")))
|
2007-10-28 09:18:39 +00:00
|
|
|
(href (cdr (assoc 'href feedinfo)))
|
|
|
|
(coding (gnus-group-name-charset '(nnrss "") title)))
|
|
|
|
(when coding
|
2005-04-10 04:20:14 +00:00
|
|
|
;; Unify non-ASCII text.
|
2016-02-12 14:39:30 +11:00
|
|
|
(setq title (decode-coding-string
|
|
|
|
(encode-coding-string title coding)
|
2007-10-28 09:18:39 +00:00
|
|
|
coding)))
|
|
|
|
(gnus-group-make-group title '(nnrss ""))
|
2005-04-10 04:20:14 +00:00
|
|
|
(push (list title href desc) nnrss-group-alist)
|
2004-09-04 13:13:48 +00:00
|
|
|
(nnrss-save-server-data nil))
|
|
|
|
(error "No feeds found for %s" url))))
|
|
|
|
|
1997-04-16 22:13:18 +00:00
|
|
|
(defun gnus-group-make-directory-group (dir)
|
|
|
|
"Create an nndir group.
|
|
|
|
The user will be prompted for a directory. The contents of this
|
2006-11-24 10:42:46 +00:00
|
|
|
directory will be used as a newsgroup. The directory should contain
|
1997-04-16 22:13:18 +00:00
|
|
|
mail messages or news articles in files that have numeric names."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (list (read-directory-name "Create group from directory: "))
|
|
|
|
gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(unless (file-exists-p dir)
|
|
|
|
(error "No such directory"))
|
|
|
|
(unless (file-directory-p dir)
|
|
|
|
(error "Not a directory"))
|
|
|
|
(let ((ext "")
|
|
|
|
(i 0)
|
|
|
|
group)
|
2007-10-28 09:18:39 +00:00
|
|
|
(while (or (not group) (gnus-group-entry group))
|
1997-04-16 22:13:18 +00:00
|
|
|
(setq group
|
|
|
|
(gnus-group-prefixed-name
|
2000-11-09 14:32:25 +00:00
|
|
|
(expand-file-name ext dir)
|
1997-04-16 22:13:18 +00:00
|
|
|
'(nndir "")))
|
|
|
|
(setq ext (format "<%d>" (setq i (1+ i)))))
|
|
|
|
(gnus-group-make-group
|
|
|
|
(gnus-group-real-name group)
|
|
|
|
(list 'nndir (gnus-group-real-name group) (list 'nndir-directory dir)))))
|
|
|
|
|
2020-09-05 08:46:43 +08:00
|
|
|
(autoload 'gnus-group-topic-name "gnus-topic")
|
2020-10-14 21:39:46 -07:00
|
|
|
(autoload 'gnus-search-make-spec "gnus-search")
|
2020-09-05 08:46:43 +08:00
|
|
|
|
|
|
|
;; Temporary to make group creation easier
|
2020-10-14 21:39:46 -07:00
|
|
|
(defun gnus-group-make-search-group (no-parse &optional specs)
|
2020-09-11 09:02:09 +08:00
|
|
|
"Make a group based on a search.
|
|
|
|
Prompt for a search query and determine the groups to search as
|
|
|
|
follows: if called from the *Server* buffer search all groups
|
|
|
|
belonging to the server on the current line; if called from the
|
|
|
|
*Group* buffer search any marked groups, or the group on the
|
2020-10-14 21:39:46 -07:00
|
|
|
current line, or all the groups under the current topic. A
|
|
|
|
prefix arg NO-PARSE means that Gnus should not parse the search
|
|
|
|
query before passing it to the underlying search engine. A
|
|
|
|
non-nil SPECS arg must be an alist with `search-query-spec' and
|
|
|
|
`search-group-spec' keys, and skips all prompting."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
2020-09-05 08:46:43 +08:00
|
|
|
(let ((name (gnus-read-group "Group name: ")))
|
|
|
|
(with-current-buffer gnus-group-buffer
|
2020-09-11 09:02:09 +08:00
|
|
|
(let* ((group-spec
|
|
|
|
(or
|
2020-10-14 21:39:46 -07:00
|
|
|
(cdr (assq 'search-group-spec specs))
|
2020-11-07 09:40:40 -08:00
|
|
|
(cdr (assq 'nnir-group-spec specs))
|
2020-09-11 09:02:09 +08:00
|
|
|
(if (gnus-server-server-name)
|
|
|
|
(list (list (gnus-server-server-name)))
|
|
|
|
(seq-group-by
|
2022-02-18 13:56:19 +08:00
|
|
|
(lambda (elt)
|
|
|
|
(if (gnus-group-native-p elt)
|
|
|
|
(gnus-group-server elt)
|
|
|
|
(gnus-method-to-server
|
|
|
|
(gnus-find-method-for-group elt))))
|
2020-09-11 09:02:09 +08:00
|
|
|
(or gnus-group-marked
|
|
|
|
(if (gnus-group-group-name)
|
|
|
|
(list (gnus-group-group-name))
|
2020-11-12 20:02:09 -08:00
|
|
|
(mapcar #'caadr
|
|
|
|
(gnus-topic-find-groups
|
|
|
|
(gnus-group-topic-name)
|
|
|
|
nil 'all nil t))))))))
|
2020-09-11 09:02:09 +08:00
|
|
|
(query-spec
|
|
|
|
(or
|
2020-10-14 21:39:46 -07:00
|
|
|
(cdr (assq 'search-query-spec specs))
|
2020-11-07 09:40:40 -08:00
|
|
|
(cdr (assq 'nnir-query-spec specs))
|
2020-10-14 21:39:46 -07:00
|
|
|
(gnus-search-make-spec no-parse))))
|
2020-11-08 16:32:10 -08:00
|
|
|
;; If our query came via an old call to nnir, we know not to
|
|
|
|
;; parse the query.
|
|
|
|
(when (assq 'nnir-query-spec specs)
|
|
|
|
(setf (alist-get 'raw query-spec) t))
|
2020-09-11 09:02:09 +08:00
|
|
|
(gnus-group-make-group
|
|
|
|
name
|
|
|
|
(list 'nnselect "nnselect")
|
|
|
|
nil
|
|
|
|
(list
|
|
|
|
(cons 'nnselect-specs
|
|
|
|
(list
|
2020-10-14 21:39:46 -07:00
|
|
|
(cons 'nnselect-function 'gnus-search-run-query)
|
2020-09-11 09:02:09 +08:00
|
|
|
(cons 'nnselect-args
|
2020-10-14 21:39:46 -07:00
|
|
|
(list (cons 'search-query-spec query-spec)
|
|
|
|
(cons 'search-group-spec group-spec)))))
|
2020-09-11 09:02:09 +08:00
|
|
|
(cons 'nnselect-artlist nil)))))))
|
2020-09-05 08:46:43 +08:00
|
|
|
|
2020-09-07 08:58:42 +08:00
|
|
|
(define-obsolete-function-alias 'gnus-group-make-nnir-group
|
|
|
|
'gnus-group-read-ephemeral-search-group "28.1")
|
|
|
|
|
2020-10-14 21:39:46 -07:00
|
|
|
(defun gnus-group-read-ephemeral-search-group (no-parse &optional specs)
|
2020-09-11 09:02:09 +08:00
|
|
|
"Read an nnselect group based on a search.
|
2020-09-06 15:56:32 +01:00
|
|
|
Prompt for a search query and determine the groups to search as
|
|
|
|
follows: if called from the *Server* buffer search all groups
|
|
|
|
belonging to the server on the current line; if called from the
|
|
|
|
*Group* buffer search any marked groups, or the group on the
|
2020-10-14 21:39:46 -07:00
|
|
|
current line, or all the groups under the current topic. A
|
|
|
|
prefix arg NO-PARSE means that Gnus should not parse the search
|
|
|
|
query before passing it to the underlying search engine. A
|
|
|
|
non-nil SPECS arg must be an alist with `search-query-spec' and
|
|
|
|
`search-group-spec' keys, and skips all prompting."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
2020-09-11 09:02:09 +08:00
|
|
|
(let* ((group-spec
|
2020-10-14 21:39:46 -07:00
|
|
|
(or (cdr (assq 'search-group-spec specs))
|
2020-11-07 09:40:40 -08:00
|
|
|
(cdr (assq 'nnir-group-spec specs))
|
2020-09-11 09:02:09 +08:00
|
|
|
(if (gnus-server-server-name)
|
|
|
|
(list (list (gnus-server-server-name)))
|
|
|
|
(seq-group-by
|
2022-02-18 13:56:19 +08:00
|
|
|
(lambda (elt)
|
|
|
|
(if (gnus-group-native-p elt)
|
|
|
|
(gnus-group-server elt)
|
|
|
|
(gnus-method-to-server
|
|
|
|
(gnus-find-method-for-group elt))))
|
2020-09-11 09:02:09 +08:00
|
|
|
(or gnus-group-marked
|
|
|
|
(if (gnus-group-group-name)
|
|
|
|
(list (gnus-group-group-name))
|
2020-11-12 20:02:09 -08:00
|
|
|
(mapcar #'caadr
|
|
|
|
(gnus-topic-find-groups
|
|
|
|
(gnus-group-topic-name)
|
|
|
|
nil 'all nil t))))))))
|
2020-09-11 09:02:09 +08:00
|
|
|
(query-spec
|
2020-10-14 21:39:46 -07:00
|
|
|
(or (cdr (assq 'search-query-spec specs))
|
2020-11-07 09:40:40 -08:00
|
|
|
(cdr (assq 'nnir-query-spec specs))
|
2020-10-14 21:39:46 -07:00
|
|
|
(gnus-search-make-spec no-parse))))
|
2020-11-08 16:32:10 -08:00
|
|
|
;; If our query came via an old call to nnir, we know not to parse
|
|
|
|
;; the query.
|
|
|
|
(when (assq 'nnir-query-spec specs)
|
|
|
|
(setf (alist-get 'raw query-spec) t))
|
2020-09-11 09:02:09 +08:00
|
|
|
(gnus-group-read-ephemeral-group
|
|
|
|
(concat "nnselect-" (message-unique-id))
|
|
|
|
(list 'nnselect "nnselect")
|
|
|
|
nil
|
|
|
|
(cons (current-buffer) gnus-current-window-configuration)
|
|
|
|
nil nil
|
|
|
|
(list
|
|
|
|
(cons 'nnselect-specs
|
|
|
|
(list
|
2020-10-14 21:39:46 -07:00
|
|
|
(cons 'nnselect-function 'gnus-search-run-query)
|
2020-09-11 09:02:09 +08:00
|
|
|
(cons 'nnselect-args
|
2020-10-14 21:39:46 -07:00
|
|
|
(list (cons 'search-query-spec query-spec)
|
|
|
|
(cons 'search-group-spec group-spec)))))
|
2020-09-11 09:02:09 +08:00
|
|
|
(cons 'nnselect-artlist nil)))))
|
2020-09-05 08:46:43 +08:00
|
|
|
|
1997-04-16 22:13:18 +00:00
|
|
|
(defun gnus-group-add-to-virtual (n vgroup)
|
|
|
|
"Add the current group to a virtual group."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (list current-prefix-arg
|
|
|
|
(gnus-group-completing-read "Add to virtual group"
|
|
|
|
nil t "nnvirtual:"))
|
|
|
|
gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(unless (eq (car (gnus-find-method-for-group vgroup)) 'nnvirtual)
|
|
|
|
(error "%s is not an nnvirtual group" vgroup))
|
|
|
|
(gnus-close-group vgroup)
|
|
|
|
(let* ((groups (gnus-group-process-prefix n))
|
|
|
|
(method (gnus-info-method (gnus-get-info vgroup))))
|
|
|
|
(setcar (cdr method)
|
|
|
|
(concat
|
|
|
|
(nth 1 method) "\\|"
|
|
|
|
(mapconcat
|
|
|
|
(lambda (s)
|
|
|
|
(gnus-group-remove-mark s)
|
|
|
|
(concat "\\(^" (regexp-quote s) "$\\)"))
|
|
|
|
groups "\\|"))))
|
|
|
|
(gnus-group-position-point))
|
|
|
|
|
|
|
|
(defun gnus-group-make-empty-virtual (group)
|
|
|
|
"Create a new, fresh, empty virtual group."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "sCreate new, empty virtual group: " gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(let* ((method (list 'nnvirtual "^$"))
|
|
|
|
(pgroup (gnus-group-prefixed-name group method)))
|
|
|
|
;; Check whether it exists already.
|
2007-10-28 09:18:39 +00:00
|
|
|
(when (gnus-group-entry pgroup)
|
1997-09-24 01:50:24 +00:00
|
|
|
(error "Group %s already exists" pgroup))
|
1997-04-16 22:13:18 +00:00
|
|
|
;; Subscribe the new group after the group on the current line.
|
|
|
|
(gnus-subscribe-group pgroup (gnus-group-group-name) method)
|
|
|
|
(gnus-group-update-group pgroup)
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(forward-line)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-position-point)))
|
|
|
|
|
|
|
|
(defun gnus-group-enter-directory (dir)
|
|
|
|
"Enter an ephemeral nneething group."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "DDirectory to read: " gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(let* ((method (list 'nneething dir '(nneething-read-only t)))
|
|
|
|
(leaf (gnus-group-prefixed-name
|
|
|
|
(file-name-nondirectory (directory-file-name dir))
|
|
|
|
method))
|
|
|
|
(name (gnus-generate-new-group-name leaf)))
|
|
|
|
(unless (gnus-group-read-ephemeral-group
|
|
|
|
name method t
|
|
|
|
(cons (current-buffer)
|
2013-09-10 23:31:56 -04:00
|
|
|
(if (derived-mode-p 'gnus-summary-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
'summary 'group)))
|
|
|
|
(error "Couldn't enter %s" dir))))
|
|
|
|
|
2010-09-21 23:13:46 +00:00
|
|
|
(defun gnus-group-expunge-group (group)
|
2000-09-19 13:37:09 +00:00
|
|
|
"Expunge deleted articles in current nnimap GROUP."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (list (gnus-group-group-name)) gnus-group-mode)
|
2010-09-21 23:13:46 +00:00
|
|
|
(let ((method (gnus-find-method-for-group group)))
|
|
|
|
(if (not (gnus-check-backend-function
|
|
|
|
'request-expunge-group (car method)))
|
|
|
|
(error "%s does not support expunging" (car method))
|
|
|
|
(gnus-request-expunge-group group method))))
|
|
|
|
|
|
|
|
(autoload 'nnimap-acl-get "nnimap")
|
|
|
|
(autoload 'nnimap-acl-edit "nnimap")
|
2000-09-19 13:37:09 +00:00
|
|
|
|
|
|
|
(defun gnus-group-nnimap-edit-acl (group)
|
|
|
|
"Edit the Access Control List of current nnimap GROUP."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (list (gnus-group-group-name)) gnus-group-mode)
|
2000-09-19 13:37:09 +00:00
|
|
|
(let ((mailbox (gnus-group-real-name group)) method acl)
|
|
|
|
(unless group
|
|
|
|
(error "No group on current line"))
|
|
|
|
(unless (gnus-get-info group)
|
|
|
|
(error "Killed group; can't be edited"))
|
|
|
|
(unless (eq (car (setq method (gnus-find-method-for-group group))) 'nnimap)
|
|
|
|
(error "%s is not an nnimap group" group))
|
2000-10-27 18:06:48 +00:00
|
|
|
(unless (setq acl (nnimap-acl-get mailbox (cadr method)))
|
|
|
|
(error "Server does not support ACL's"))
|
2016-02-11 16:45:02 +11:00
|
|
|
(gnus-edit-form acl (format-message "\
|
2015-08-31 13:05:16 -07:00
|
|
|
Editing the access control list for `%s'.
|
2000-09-19 13:37:09 +00:00
|
|
|
|
|
|
|
An access control list is a list of (identifier . rights) elements.
|
|
|
|
|
|
|
|
The identifier string specifies the corresponding user. The
|
|
|
|
identifier \"anyone\" is reserved to refer to the universal identity.
|
|
|
|
|
|
|
|
Rights is a string listing a (possibly empty) set of alphanumeric
|
|
|
|
characters, each character listing a set of operations which is being
|
2015-05-19 19:08:11 -07:00
|
|
|
controlled. Letters are reserved for \"standard\" rights, listed
|
2000-09-19 13:37:09 +00:00
|
|
|
below. Digits are reserved for implementation or site defined rights.
|
|
|
|
|
|
|
|
l - lookup (mailbox is visible to LIST/LSUB commands)
|
|
|
|
r - read (SELECT the mailbox, perform CHECK, FETCH, PARTIAL,
|
|
|
|
SEARCH, COPY from mailbox)
|
|
|
|
s - keep seen/unseen information across sessions (STORE \\SEEN flag)
|
|
|
|
w - write (STORE flags other than \\SEEN and \\DELETED)
|
|
|
|
i - insert (perform APPEND, COPY into mailbox)
|
|
|
|
p - post (send mail to submission address for mailbox,
|
|
|
|
not enforced by IMAP4 itself)
|
|
|
|
c - create and delete mailbox (CREATE new sub-mailboxes in any
|
|
|
|
implementation-defined hierarchy, RENAME or DELETE mailbox)
|
|
|
|
d - delete messages (STORE \\DELETED flag, perform EXPUNGE)
|
|
|
|
a - administer (perform SETACL)" group)
|
2021-01-30 18:56:37 -05:00
|
|
|
(lambda (form)
|
|
|
|
(nnimap-acl-edit
|
|
|
|
mailbox method acl form)))))
|
2000-09-19 13:37:09 +00:00
|
|
|
|
1997-04-16 22:13:18 +00:00
|
|
|
;; Group sorting commands
|
|
|
|
;; Suggested by Joe Hildebrand <hildjj@idaho.fuentez.com>.
|
|
|
|
|
|
|
|
(defun gnus-group-sort-groups (func &optional reverse)
|
|
|
|
"Sort the group buffer according to FUNC.
|
|
|
|
When used interactively, the sorting function used will be
|
|
|
|
determined by the `gnus-group-sort-function' variable.
|
|
|
|
If REVERSE (the prefix), reverse the sorting order."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (list gnus-group-sort-function current-prefix-arg)
|
|
|
|
gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(funcall gnus-group-sort-alist-function
|
|
|
|
(gnus-make-sort-function func) reverse)
|
2004-09-04 13:13:48 +00:00
|
|
|
(gnus-group-unmark-all-groups)
|
2019-05-19 09:57:50 -07:00
|
|
|
;; Redisplay all groups according to the newly-sorted order of
|
|
|
|
;; `gnus-group-list'.
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-list-groups)
|
|
|
|
(gnus-dribble-touch))
|
|
|
|
|
|
|
|
(defun gnus-group-sort-flat (func reverse)
|
2019-05-19 09:57:50 -07:00
|
|
|
"Sort groups in a flat list using sorting function FUNC.
|
|
|
|
If REVERSE is non-nil, reverse the sort order.
|
|
|
|
|
|
|
|
This function sets a new value for `gnus-group-list'; its return
|
|
|
|
value is disregarded."
|
1997-04-16 22:13:18 +00:00
|
|
|
(when func
|
2019-05-19 09:57:50 -07:00
|
|
|
(let* ((groups (remove "dummy.group" gnus-group-list))
|
|
|
|
(sorted-infos
|
|
|
|
(sort (mapcar (lambda (g)
|
|
|
|
(gnus-get-info g))
|
|
|
|
groups)
|
|
|
|
func)))
|
|
|
|
(setq gnus-group-list
|
|
|
|
(mapcar (lambda (i)
|
|
|
|
(gnus-info-group i))
|
|
|
|
sorted-infos))
|
|
|
|
(when reverse
|
|
|
|
(setq gnus-group-list (nreverse gnus-group-list)))
|
|
|
|
(setq gnus-group-list (cons "dummy.group" gnus-group-list)))))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-sort-groups-by-alphabet (&optional reverse)
|
|
|
|
"Sort the group buffer alphabetically by group name.
|
|
|
|
If REVERSE, sort in reverse order."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-sort-groups 'gnus-group-sort-by-alphabet reverse))
|
|
|
|
|
2004-09-04 13:13:48 +00:00
|
|
|
(defun gnus-group-sort-groups-by-real-name (&optional reverse)
|
|
|
|
"Sort the group buffer alphabetically by real (unprefixed) group name.
|
|
|
|
If REVERSE, sort in reverse order."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
2004-09-04 13:13:48 +00:00
|
|
|
(gnus-group-sort-groups 'gnus-group-sort-by-real-name reverse))
|
|
|
|
|
1997-04-16 22:13:18 +00:00
|
|
|
(defun gnus-group-sort-groups-by-unread (&optional reverse)
|
|
|
|
"Sort the group buffer by number of unread articles.
|
|
|
|
If REVERSE, sort in reverse order."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-sort-groups 'gnus-group-sort-by-unread reverse))
|
|
|
|
|
|
|
|
(defun gnus-group-sort-groups-by-level (&optional reverse)
|
|
|
|
"Sort the group buffer by group level.
|
|
|
|
If REVERSE, sort in reverse order."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-sort-groups 'gnus-group-sort-by-level reverse))
|
|
|
|
|
|
|
|
(defun gnus-group-sort-groups-by-score (&optional reverse)
|
|
|
|
"Sort the group buffer by group score.
|
|
|
|
If REVERSE, sort in reverse order."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-sort-groups 'gnus-group-sort-by-score reverse))
|
|
|
|
|
|
|
|
(defun gnus-group-sort-groups-by-rank (&optional reverse)
|
|
|
|
"Sort the group buffer by group rank.
|
|
|
|
If REVERSE, sort in reverse order."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-sort-groups 'gnus-group-sort-by-rank reverse))
|
|
|
|
|
|
|
|
(defun gnus-group-sort-groups-by-method (&optional reverse)
|
2004-09-04 13:13:48 +00:00
|
|
|
"Sort the group buffer alphabetically by back end name.
|
1997-04-16 22:13:18 +00:00
|
|
|
If REVERSE, sort in reverse order."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-sort-groups 'gnus-group-sort-by-method reverse))
|
|
|
|
|
2004-09-04 13:13:48 +00:00
|
|
|
(defun gnus-group-sort-groups-by-server (&optional reverse)
|
|
|
|
"Sort the group buffer alphabetically by server name.
|
|
|
|
If REVERSE, sort in reverse order."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
2004-09-04 13:13:48 +00:00
|
|
|
(gnus-group-sort-groups 'gnus-group-sort-by-server reverse))
|
|
|
|
|
1997-04-16 22:13:18 +00:00
|
|
|
;;; Selected group sorting.
|
|
|
|
|
|
|
|
(defun gnus-group-sort-selected-groups (n func &optional reverse)
|
|
|
|
"Sort the process/prefixed groups."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (list current-prefix-arg gnus-group-sort-function)
|
|
|
|
gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(let ((groups (gnus-group-process-prefix n)))
|
|
|
|
(funcall gnus-group-sort-selected-function
|
|
|
|
groups (gnus-make-sort-function func) reverse)
|
2004-09-04 13:13:48 +00:00
|
|
|
(gnus-group-unmark-all-groups)
|
|
|
|
(gnus-group-list-groups)
|
|
|
|
(gnus-dribble-touch)))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-sort-selected-flat (groups func reverse)
|
2019-05-19 09:57:50 -07:00
|
|
|
"Sort only the selected GROUPS, using FUNC.
|
|
|
|
If REVERSE is non-nil, reverse the sorting."
|
|
|
|
(let ((infos (sort
|
* lisp/gnus/gnus.el (gnus-info): Define with `cl-defstruct`
This makes the accessors into (inlined) functions (instead of macros),
which simplifies some uses, and it makes the gnus-info-set-<foo>
macros redundant since we can use `setf` instead. Remove them and
update all users.
(gnus-info-group, gnus-info-rank, gnus-info-read, gnus-info-marks)
(gnus-info-method, gnus-info-params): Auto-defined by defstruct.
(gnus-info-level, gnus-info-score): Define as a function. Add gv-setter.
(gnus-info-set-group, gnus-info-set-rank, gnus-info-set-read): Remove,
use `setf` instead.
(gnus-info-set-marks, gnus-info-set-method, gnus-info-set-params):
Define as a function.
(gnus-info-set-entry): Delete function.
(gnus-info--grow-entry): New function, extracted from it.
(gnus-info--set-level, gnus-info--set-score): New functions, extracted
from the `gnus-info-set-level` and `gnus-info-set-score` which they replace.
(gnus-get-info): Define as a function.
* lisp/gnus/gnus-group.el (gnus-group-edit-group-done):
Use the `extend` arg of `gnus-info-set-method`.
(gnus-group-sort-selected-flat): eta-reduce.
2019-11-29 12:26:31 -05:00
|
|
|
(mapcar #'gnus-get-info groups)
|
2019-05-19 09:57:50 -07:00
|
|
|
func))
|
|
|
|
sorted-groups)
|
1997-04-16 22:13:18 +00:00
|
|
|
(when reverse
|
|
|
|
(setq infos (nreverse infos)))
|
* lisp/gnus/gnus.el (gnus-info): Define with `cl-defstruct`
This makes the accessors into (inlined) functions (instead of macros),
which simplifies some uses, and it makes the gnus-info-set-<foo>
macros redundant since we can use `setf` instead. Remove them and
update all users.
(gnus-info-group, gnus-info-rank, gnus-info-read, gnus-info-marks)
(gnus-info-method, gnus-info-params): Auto-defined by defstruct.
(gnus-info-level, gnus-info-score): Define as a function. Add gv-setter.
(gnus-info-set-group, gnus-info-set-rank, gnus-info-set-read): Remove,
use `setf` instead.
(gnus-info-set-marks, gnus-info-set-method, gnus-info-set-params):
Define as a function.
(gnus-info-set-entry): Delete function.
(gnus-info--grow-entry): New function, extracted from it.
(gnus-info--set-level, gnus-info--set-score): New functions, extracted
from the `gnus-info-set-level` and `gnus-info-set-score` which they replace.
(gnus-get-info): Define as a function.
* lisp/gnus/gnus-group.el (gnus-group-edit-group-done):
Use the `extend` arg of `gnus-info-set-method`.
(gnus-group-sort-selected-flat): eta-reduce.
2019-11-29 12:26:31 -05:00
|
|
|
(setq sorted-groups (mapcar #'gnus-info-group infos))
|
2019-05-19 09:57:50 -07:00
|
|
|
|
|
|
|
;; Find the original locations of GROUPS in `gnus-group-list', and
|
|
|
|
;; replace each one, in order, with a group from SORTED-GROUPS.
|
|
|
|
(dolist (i (sort (mapcar (lambda (g)
|
|
|
|
(seq-position gnus-group-list g))
|
|
|
|
groups)
|
|
|
|
#'<))
|
|
|
|
(setf (nth i gnus-group-list)
|
|
|
|
(pop sorted-groups)))))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
2000-09-19 13:37:09 +00:00
|
|
|
(defun gnus-group-sort-selected-groups-by-alphabet (&optional n reverse)
|
1997-04-16 22:13:18 +00:00
|
|
|
"Sort the group buffer alphabetically by group name.
|
2000-09-19 13:37:09 +00:00
|
|
|
Obeys the process/prefix convention. If REVERSE (the symbolic prefix),
|
|
|
|
sort in reverse order."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (gnus-interactive "P\ny") gnus-group-mode)
|
2000-09-19 13:37:09 +00:00
|
|
|
(gnus-group-sort-selected-groups n 'gnus-group-sort-by-alphabet reverse))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
2004-09-04 13:13:48 +00:00
|
|
|
(defun gnus-group-sort-selected-groups-by-real-name (&optional n reverse)
|
|
|
|
"Sort the group buffer alphabetically by real group name.
|
|
|
|
Obeys the process/prefix convention. If REVERSE (the symbolic prefix),
|
|
|
|
sort in reverse order."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (gnus-interactive "P\ny") gnus-group-mode)
|
2004-09-04 13:13:48 +00:00
|
|
|
(gnus-group-sort-selected-groups n 'gnus-group-sort-by-real-name reverse))
|
|
|
|
|
2000-09-19 13:37:09 +00:00
|
|
|
(defun gnus-group-sort-selected-groups-by-unread (&optional n reverse)
|
1997-04-16 22:13:18 +00:00
|
|
|
"Sort the group buffer by number of unread articles.
|
2000-09-19 13:37:09 +00:00
|
|
|
Obeys the process/prefix convention. If REVERSE (the symbolic prefix),
|
|
|
|
sort in reverse order."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (gnus-interactive "P\ny") gnus-group-mode)
|
2000-09-19 13:37:09 +00:00
|
|
|
(gnus-group-sort-selected-groups n 'gnus-group-sort-by-unread reverse))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
2000-09-19 13:37:09 +00:00
|
|
|
(defun gnus-group-sort-selected-groups-by-level (&optional n reverse)
|
1997-04-16 22:13:18 +00:00
|
|
|
"Sort the group buffer by group level.
|
2000-09-19 13:37:09 +00:00
|
|
|
Obeys the process/prefix convention. If REVERSE (the symbolic prefix),
|
|
|
|
sort in reverse order."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (gnus-interactive "P\ny") gnus-group-mode)
|
2000-09-19 13:37:09 +00:00
|
|
|
(gnus-group-sort-selected-groups n 'gnus-group-sort-by-level reverse))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
2000-09-19 13:37:09 +00:00
|
|
|
(defun gnus-group-sort-selected-groups-by-score (&optional n reverse)
|
1997-04-16 22:13:18 +00:00
|
|
|
"Sort the group buffer by group score.
|
2000-09-19 13:37:09 +00:00
|
|
|
Obeys the process/prefix convention. If REVERSE (the symbolic prefix),
|
|
|
|
sort in reverse order."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (gnus-interactive "P\ny") gnus-group-mode)
|
2000-09-19 13:37:09 +00:00
|
|
|
(gnus-group-sort-selected-groups n 'gnus-group-sort-by-score reverse))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
2000-09-19 13:37:09 +00:00
|
|
|
(defun gnus-group-sort-selected-groups-by-rank (&optional n reverse)
|
1997-04-16 22:13:18 +00:00
|
|
|
"Sort the group buffer by group rank.
|
2000-09-19 13:37:09 +00:00
|
|
|
Obeys the process/prefix convention. If REVERSE (the symbolic prefix),
|
|
|
|
sort in reverse order."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (gnus-interactive "P\ny") gnus-group-mode)
|
2000-09-19 13:37:09 +00:00
|
|
|
(gnus-group-sort-selected-groups n 'gnus-group-sort-by-rank reverse))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
2000-09-19 13:37:09 +00:00
|
|
|
(defun gnus-group-sort-selected-groups-by-method (&optional n reverse)
|
2004-09-04 13:13:48 +00:00
|
|
|
"Sort the group buffer alphabetically by back end name.
|
2000-09-19 13:37:09 +00:00
|
|
|
Obeys the process/prefix convention. If REVERSE (the symbolic prefix),
|
|
|
|
sort in reverse order."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (gnus-interactive "P\ny") gnus-group-mode)
|
2000-09-19 13:37:09 +00:00
|
|
|
(gnus-group-sort-selected-groups n 'gnus-group-sort-by-method reverse))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
;;; Sorting predicates.
|
|
|
|
|
|
|
|
(defun gnus-group-sort-by-alphabet (info1 info2)
|
|
|
|
"Sort alphabetically."
|
|
|
|
(string< (gnus-info-group info1) (gnus-info-group info2)))
|
|
|
|
|
|
|
|
(defun gnus-group-sort-by-real-name (info1 info2)
|
|
|
|
"Sort alphabetically on real (unprefixed) names."
|
|
|
|
(string< (gnus-group-real-name (gnus-info-group info1))
|
|
|
|
(gnus-group-real-name (gnus-info-group info2))))
|
|
|
|
|
|
|
|
(defun gnus-group-sort-by-unread (info1 info2)
|
|
|
|
"Sort by number of unread articles."
|
2007-10-28 09:18:39 +00:00
|
|
|
(let ((n1 (gnus-group-unread (gnus-info-group info1)))
|
|
|
|
(n2 (gnus-group-unread (gnus-info-group info2))))
|
1997-04-16 22:13:18 +00:00
|
|
|
(< (or (and (numberp n1) n1) 0)
|
|
|
|
(or (and (numberp n2) n2) 0))))
|
|
|
|
|
|
|
|
(defun gnus-group-sort-by-level (info1 info2)
|
|
|
|
"Sort by level."
|
|
|
|
(< (gnus-info-level info1) (gnus-info-level info2)))
|
|
|
|
|
|
|
|
(defun gnus-group-sort-by-method (info1 info2)
|
2004-09-04 13:13:48 +00:00
|
|
|
"Sort alphabetically by back end name."
|
|
|
|
(string< (car (gnus-find-method-for-group
|
|
|
|
(gnus-info-group info1) info1))
|
|
|
|
(car (gnus-find-method-for-group
|
|
|
|
(gnus-info-group info2) info2))))
|
|
|
|
|
|
|
|
(defun gnus-group-sort-by-server (info1 info2)
|
|
|
|
"Sort alphabetically by server name."
|
|
|
|
(string< (gnus-method-to-full-server-name
|
|
|
|
(gnus-find-method-for-group
|
|
|
|
(gnus-info-group info1) info1))
|
|
|
|
(gnus-method-to-full-server-name
|
|
|
|
(gnus-find-method-for-group
|
|
|
|
(gnus-info-group info2) info2))))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-sort-by-score (info1 info2)
|
|
|
|
"Sort by group score."
|
2004-09-04 13:13:48 +00:00
|
|
|
(> (gnus-info-score info1) (gnus-info-score info2)))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-sort-by-rank (info1 info2)
|
|
|
|
"Sort by level and score."
|
|
|
|
(let ((level1 (gnus-info-level info1))
|
|
|
|
(level2 (gnus-info-level info2)))
|
|
|
|
(or (< level1 level2)
|
|
|
|
(and (= level1 level2)
|
|
|
|
(> (gnus-info-score info1) (gnus-info-score info2))))))
|
|
|
|
|
|
|
|
;;; Clearing data
|
|
|
|
|
|
|
|
(defun gnus-group-clear-data (&optional arg)
|
2005-02-25 01:52:09 +00:00
|
|
|
"Clear all marks and read ranges from the current group.
|
|
|
|
Obeys the process/prefix convention."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
2011-08-20 00:20:39 +00:00
|
|
|
(when (gnus-y-or-n-p "Really clear data? ")
|
|
|
|
(gnus-group-iterate arg
|
|
|
|
(lambda (group)
|
|
|
|
(let (info)
|
|
|
|
(gnus-info-clear-data (setq info (gnus-get-info group)))
|
|
|
|
(gnus-get-unread-articles-in-group info (gnus-active group) t)
|
|
|
|
(when (gnus-group-goto-group group)
|
|
|
|
(gnus-group-update-group-line)))))))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-clear-data-on-native-groups ()
|
|
|
|
"Clear all marks and read ranges from all native groups."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive nil gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(when (gnus-yes-or-no-p "Really clear all data from almost all groups? ")
|
|
|
|
(let ((alist (cdr gnus-newsrc-alist))
|
|
|
|
info)
|
|
|
|
(while (setq info (pop alist))
|
|
|
|
(when (gnus-group-native-p (gnus-info-group info))
|
|
|
|
(gnus-info-clear-data info)))
|
|
|
|
(gnus-get-unread-articles)
|
1999-02-20 14:05:57 +00:00
|
|
|
(gnus-dribble-touch)
|
1997-04-16 22:13:18 +00:00
|
|
|
(when (gnus-y-or-n-p
|
|
|
|
"Move the cache away to avoid problems in the future? ")
|
|
|
|
(call-interactively 'gnus-cache-move-cache)))))
|
|
|
|
|
|
|
|
(defun gnus-info-clear-data (info)
|
|
|
|
"Clear all marks and read ranges from INFO."
|
2004-09-04 13:13:48 +00:00
|
|
|
(let ((group (gnus-info-group info))
|
|
|
|
action)
|
|
|
|
(dolist (el (gnus-info-marks info))
|
|
|
|
(push `(,(cdr el) add (,(car el))) action))
|
|
|
|
(push `(,(gnus-info-read info) add (read)) action)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-undo-register
|
|
|
|
`(progn
|
2004-09-04 13:13:48 +00:00
|
|
|
(gnus-request-set-mark ,group ',action)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-info-set-marks ',info ',(gnus-info-marks info) t)
|
* lisp/gnus/gnus.el (gnus-info): Define with `cl-defstruct`
This makes the accessors into (inlined) functions (instead of macros),
which simplifies some uses, and it makes the gnus-info-set-<foo>
macros redundant since we can use `setf` instead. Remove them and
update all users.
(gnus-info-group, gnus-info-rank, gnus-info-read, gnus-info-marks)
(gnus-info-method, gnus-info-params): Auto-defined by defstruct.
(gnus-info-level, gnus-info-score): Define as a function. Add gv-setter.
(gnus-info-set-group, gnus-info-set-rank, gnus-info-set-read): Remove,
use `setf` instead.
(gnus-info-set-marks, gnus-info-set-method, gnus-info-set-params):
Define as a function.
(gnus-info-set-entry): Delete function.
(gnus-info--grow-entry): New function, extracted from it.
(gnus-info--set-level, gnus-info--set-score): New functions, extracted
from the `gnus-info-set-level` and `gnus-info-set-score` which they replace.
(gnus-get-info): Define as a function.
* lisp/gnus/gnus-group.el (gnus-group-edit-group-done):
Use the `extend` arg of `gnus-info-set-method`.
(gnus-group-sort-selected-flat): eta-reduce.
2019-11-29 12:26:31 -05:00
|
|
|
(setf (gnus-info-read ',info) ',(gnus-info-read info))
|
2018-04-17 20:52:14 +02:00
|
|
|
(when (gnus-group-jump-to-group ,group)
|
2004-09-04 13:13:48 +00:00
|
|
|
(gnus-get-unread-articles-in-group ',info ',(gnus-active group) t)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-update-group-line))))
|
2004-09-04 13:13:48 +00:00
|
|
|
(setq action (mapcar (lambda (el) (list (nth 0 el) 'del (nth 2 el)))
|
|
|
|
action))
|
|
|
|
(gnus-request-set-mark group action)
|
* lisp/gnus/gnus.el (gnus-info): Define with `cl-defstruct`
This makes the accessors into (inlined) functions (instead of macros),
which simplifies some uses, and it makes the gnus-info-set-<foo>
macros redundant since we can use `setf` instead. Remove them and
update all users.
(gnus-info-group, gnus-info-rank, gnus-info-read, gnus-info-marks)
(gnus-info-method, gnus-info-params): Auto-defined by defstruct.
(gnus-info-level, gnus-info-score): Define as a function. Add gv-setter.
(gnus-info-set-group, gnus-info-set-rank, gnus-info-set-read): Remove,
use `setf` instead.
(gnus-info-set-marks, gnus-info-set-method, gnus-info-set-params):
Define as a function.
(gnus-info-set-entry): Delete function.
(gnus-info--grow-entry): New function, extracted from it.
(gnus-info--set-level, gnus-info--set-score): New functions, extracted
from the `gnus-info-set-level` and `gnus-info-set-score` which they replace.
(gnus-get-info): Define as a function.
* lisp/gnus/gnus-group.el (gnus-group-edit-group-done):
Use the `extend` arg of `gnus-info-set-method`.
(gnus-group-sort-selected-flat): eta-reduce.
2019-11-29 12:26:31 -05:00
|
|
|
(setf (gnus-info-read info) nil)
|
1997-04-16 22:13:18 +00:00
|
|
|
(when (gnus-info-marks info)
|
* lisp/gnus/gnus.el (gnus-info): Define with `cl-defstruct`
This makes the accessors into (inlined) functions (instead of macros),
which simplifies some uses, and it makes the gnus-info-set-<foo>
macros redundant since we can use `setf` instead. Remove them and
update all users.
(gnus-info-group, gnus-info-rank, gnus-info-read, gnus-info-marks)
(gnus-info-method, gnus-info-params): Auto-defined by defstruct.
(gnus-info-level, gnus-info-score): Define as a function. Add gv-setter.
(gnus-info-set-group, gnus-info-set-rank, gnus-info-set-read): Remove,
use `setf` instead.
(gnus-info-set-marks, gnus-info-set-method, gnus-info-set-params):
Define as a function.
(gnus-info-set-entry): Delete function.
(gnus-info--grow-entry): New function, extracted from it.
(gnus-info--set-level, gnus-info--set-score): New functions, extracted
from the `gnus-info-set-level` and `gnus-info-set-score` which they replace.
(gnus-get-info): Define as a function.
* lisp/gnus/gnus-group.el (gnus-group-edit-group-done):
Use the `extend` arg of `gnus-info-set-method`.
(gnus-group-sort-selected-flat): eta-reduce.
2019-11-29 12:26:31 -05:00
|
|
|
(setf (gnus-info-marks info) nil))))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
;; Group catching up.
|
|
|
|
|
|
|
|
(defun gnus-group-catchup-current (&optional n all)
|
2000-09-19 13:37:09 +00:00
|
|
|
"Mark all unread articles in the current newsgroup as read.
|
1999-02-20 14:05:57 +00:00
|
|
|
If prefix argument N is numeric, the next N newsgroups will be
|
1997-04-16 22:13:18 +00:00
|
|
|
caught up. If ALL is non-nil, marked articles will also be marked as
|
|
|
|
read. Cross references (Xref: header) of articles are ignored.
|
1999-02-20 14:05:57 +00:00
|
|
|
The number of newsgroups that this function was unable to catch
|
|
|
|
up is returned."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(let ((groups (gnus-group-process-prefix n))
|
2000-09-19 13:37:09 +00:00
|
|
|
(ret 0)
|
|
|
|
group)
|
1999-02-20 14:05:57 +00:00
|
|
|
(unless groups (error "No groups selected"))
|
1997-04-16 22:13:18 +00:00
|
|
|
(if (not
|
|
|
|
(or (not gnus-interactive-catchup) ;Without confirmation?
|
|
|
|
gnus-expert-user
|
|
|
|
(gnus-y-or-n-p
|
|
|
|
(format
|
|
|
|
(if all
|
|
|
|
"Do you really want to mark all articles in %s as read? "
|
|
|
|
"Mark all unread articles in %s as read? ")
|
|
|
|
(if (= (length groups) 1)
|
2018-11-16 12:53:56 -08:00
|
|
|
(car groups)
|
1997-04-16 22:13:18 +00:00
|
|
|
(format "these %d groups" (length groups)))))))
|
|
|
|
n
|
2000-09-19 13:37:09 +00:00
|
|
|
(while (setq group (pop groups))
|
|
|
|
(gnus-group-remove-mark group)
|
1997-04-16 22:13:18 +00:00
|
|
|
;; Virtual groups have to be given special treatment.
|
2000-09-19 13:37:09 +00:00
|
|
|
(let ((method (gnus-find-method-for-group group)))
|
1997-04-16 22:13:18 +00:00
|
|
|
(when (eq 'nnvirtual (car method))
|
|
|
|
(nnvirtual-catchup-group
|
2000-09-19 13:37:09 +00:00
|
|
|
(gnus-group-real-name group) (nth 1 method) all)))
|
2007-10-28 09:18:39 +00:00
|
|
|
(cond
|
|
|
|
((>= (gnus-group-level group) gnus-level-zombie)
|
|
|
|
(gnus-message 2 "Dead groups can't be caught up"))
|
|
|
|
((prog1
|
|
|
|
(gnus-group-goto-group group)
|
|
|
|
(gnus-group-catchup group all))
|
|
|
|
(gnus-group-update-group-line))
|
|
|
|
(t
|
|
|
|
(setq ret (1+ ret)))))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-next-unread-group 1)
|
|
|
|
ret)))
|
|
|
|
|
|
|
|
(defun gnus-group-catchup-current-all (&optional n)
|
|
|
|
"Mark all articles in current newsgroup as read.
|
|
|
|
Cross references (Xref: header) of articles are ignored."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-catchup-current n 'all))
|
|
|
|
|
2013-05-28 19:40:43 -07:00
|
|
|
(declare-function gnus-sequence-of-unread-articles "gnus-sum" (group))
|
|
|
|
|
1997-04-16 22:13:18 +00:00
|
|
|
(defun gnus-group-catchup (group &optional all)
|
|
|
|
"Mark all articles in GROUP as read.
|
|
|
|
If ALL is non-nil, all articles are marked as read.
|
|
|
|
The return value is the number of articles that were marked as read,
|
|
|
|
or nil if no action could be taken."
|
2007-10-28 09:18:39 +00:00
|
|
|
(let* ((entry (gnus-group-entry group))
|
2004-09-04 13:13:48 +00:00
|
|
|
(num (car entry))
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(marks (gnus-info-marks (nth 1 entry)))
|
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-628
Merge from gnus--rel--5.10
Patches applied:
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-55
Update from CVS
2004-10-19 Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/gnus/gnus-sum.el (gnus-update-summary-mark-positions): Search for
dummy marks in the right way.
2004-10-18 Kevin Greiner <kgreiner@compsol.cc>
* lisp/gnus/nnagent.el (nnagent-request-type): Bind gnus-agent to nil to
avoid infinite recursion via gnus-get-function.
2004-10-18 Kevin Greiner <kgreiner@compsol.cc>
* lisp/gnus/gnus-agent.el (gnus-agent-synchronize-group-flags): When
necessary, pass full group name to gnus-request-set-marks.
(gnus-agent-synchronize-group-flags): Added support for sync'ing
tick marks.
(gnus-agent-synchronize-flags-server): Be silent when writing file.
2004-10-18 Kevin Greiner <kgreiner@compsol.cc>
* lisp/gnus/gnus-agent.el (gnus-agent-synchronize-group-flags): Replaced
gnus-request-update-info with explicit code to sync the in-memory
info read flags with the marks being sync'd to the backend.
2004-10-18 Kevin Greiner <kgreiner@compsol.cc>
* lisp/gnus/gnus-agent.el (gnus-agent-possibly-synchronize-flags): Ignore
servers that are offline. Avoids having gnus-agent-toggle-plugged
first ask if you want to open a server and then, even when you
responded with no, asking if you want to synchronize the server's
flags.
(gnus-agent-synchronize-flags-server): Rewrote read loop to handle
multi-line expressions.
(gnus-agent-synchronize-group-flags): New internal function.
Updates marks in memory (in the info structure) AND in the
backend.
(gnus-agent-check-overview-buffer): Fixed range of
deletion to remove entire duplicate line. Fixes merged article
number bug.
* lisp/gnus/gnus-util.el (gnus-remassoc): Fixed typo in documentation.
* lisp/gnus/nnagent.el (nnagent-request-set-mark): Use
gnus-agent-synchronize-group-flags, not backend's request-set-mark
method, to ensure that synchronization updates marks in the
backend and in the info (in memory) structure.
2004-10-18 Kevin Greiner <kgreiner@compsol.cc>
* lisp/gnus/gnus-agent.el (gnus-agent-synchronize-flags-server): Do nothing
unless plugged. Disable the agent so that an open failure causes
an error.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc> for Reiner Steib <Reiner.Steib@gmx.de>
* lisp/gnus/gnus-agent.el (gnus-agent-fetched-hook): Add :version.
(gnus-agent-go-online): Change :version.
(gnus-agent-expire-unagentized-dirs)
(gnus-agent-auto-agentize-methods): Add :version.
2004-10-18 Kevin Greiner <kgreiner@compsol.cc>
* lisp/gnus/legacy-gnus-agent.el (gnus-agent-convert-to-compressed-agentview-prompt):
New function. Used internally to only display 'gnus converting
files' message when actually necessary.
* lisp/gnus/gnus-sum.el (): Removed (require 'gnus-agent) as required
methods now autoloaded.
* lisp/gnus/gnus-int.el (gnus-request-move-article): Use
gnus-agent-unfetch-articles in place of gnus-agent-expire to
improve performance.
2004-10-18 Kevin Greiner <kgreiner@compsol.cc>
* lisp/gnus/gnus-agent.el (gnus-agent-cat-groups): rewrote avoiding defsetf
to avoid run-time CL dependencies.
(gnus-agent-unfetch-articles): New function.
(gnus-agent-fetch-headers): Use gnus-agent-braid-nov to validate
article numbers even when local .overview file is missing.
(gnus-agent-read-article-number): New function. Only accepts
27-bit article numbers.
(gnus-agent-copy-nov-line, gnus-agent-uncached-articles): Use
gnus-agent-read-article-number.
(gnus-agent-braid-nov): Rewrote to validate article numbers coming
from backend while recognizing that article numbers in .overview
must be valid.
* lisp/gnus/gnus-start.el (gnus-convert-old-newsrc): Changed message text as
some users confused by references to .newsrc when they only have a
.newsrc.eld file.
(gnus-convert-mark-converter-prompt,
gnus-convert-converter-needs-prompt): Fixed use of property list.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc> for Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/gnus/gnus-agent.el (gnus-agent-restore-gcc): Use ^ and regexp-quote.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc> for Lars Magne Ingebrigtsen <larsi@gnus.org>
* lisp/gnus/gnus-start.el (gnus-get-unread-articles-in-group): Don't do
stuff for non-living groups.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc> for Lars Magne Ingebrigtsen <larsi@gnus.org>
* lisp/gnus/gnus-agent.el (gnus-agent-synchronize-flags): Default to nil.
(gnus-agent-regenerate-group): Using nil messages aren't valid.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc> for Lars Magne Ingebrigtsen <larsi@gnus.org>
* lisp/gnus/gnus-agent.el (gnus-agent-read-agentview): Inline
gnus-uncompress-range.
2004-10-18 Kevin Greiner <kgreiner@xpediantsolutions.com>
* lisp/gnus/legacy-gnus-agent.el
(gnus-agent-convert-to-compressed-agentview): Fixed typos with
help from Florian Weimer <fw@deneb.enyo.de>
* lisp/gnus/gnus-agent.el (gnus-agentize):
gnus-agent-send-mail-real-function no longer set to current value
of message-send-mail-function but rather a lambda that calls
message-send-mail-function. The change makes the agent real-time
responsive to user changes to message-send-mail-function.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc> for Reiner Steib <Reiner.Steib@gmx.de>
* lisp/gnus/gnus-start.el (gnus-get-unread-articles): Fix last commit.
2004-10-18 Kevin Greiner <kgreiner@xpediantsolutions.com>
* lisp/gnus/gnus-cache.el (gnus-cache-rename-group): New function.
(gnus-cache-delete-group): New function.
* lisp/gnus/gnus-agent.el (gnus-agent-rename-group): New function.
(gnus-agent-delete-group): New function.
(gnus-agent-save-group-info): Use gnus-command-method when
`method' parameter is nil. Don't write nil entries into the
active file.
(gnus-agent-get-group-info): New function.
(gnus-agent-get-local): Added optional parameters to avoid calling
gnus-group-real-name and gnus-find-method-for-group.
(gnus-agent-set-local): Delete stored entry if either min, or max,
are nil.
(gnus-agent-fetch-session): Reworded error/quit messages. On
quit, use gnus-agent-regenerate-group to record existance of any
articles fetched to disk before the quit occurred.
* lisp/gnus/gnus-int.el (gnus-request-delete-group): Use
gnus-cache-delete-group and gnus-agent-delete-group to keep the
local disk in sync with the server.
(gnus-request-rename-group): Use
gnus-cache-rename-group and gnus-agent-rename-group to keep the
local disk in sync with the server.
* lisp/gnus/gnus-start.el (gnus-get-unread-articles): Cosmetic
simplification to logic.
* lisp/gnus/gnus-group.el (): (gnus-group-delete-group): No longer update
gnus-cache-active-altered as gnus-request-delete-group now keeps
the cache in sync.
(gnus-group-list-active): Let the agent store a server's active
list if currently plugged.
* lisp/gnus/gnus-util.el (gnus-rename-file): New function.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc> for Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/gnus/gnus-agent.el (gnus-agent-regenerate-group): Activate the group
when the group's active is not available.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc> for Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/gnus/gnus-agent.el (gnus-agent-read-agentview): Add a missing arg to
error.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc>
* lisp/gnus/gnus-start.el (gnus-convert-old-newsrc): Only write the
conversion message to newsrc-dribble when an actual conversion is
performed.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc>
* lisp/gnus/gnus-agent.el (gnus-agent-read-local): Bind
nnheader-file-coding-system to gnus-agent-file-coding-system to
avoid the implicit assumption that they will always be equal.
(gnus-agent-save-local): Bind buffer-file-coding-system, not
coding-system-for-write, as the with-temp-file macro first prints
to a buffer then saves the buffer.
2004-10-18 Kevin Greiner <kgreiner@xpediantsolutions.com>
* lisp/gnus/legacy-gnus-agent.el (): New. Provides converters that are only
loaded when gnus-convert-old-newsrc needs to call them.
* lisp/gnus/gnus-agent.el (gnus-agent-read-agentview): Removed support for
old file versions.
(gnus-group-prepare-hook): Removed function that converted list
form of gnus-agent-expire-days to group properties.
* lisp/gnus/gnus-start.el (gnus-convert-old-newsrc): Registered new
converters to handle old agent file formats. Added logic for a
"backup before upgrading warning".
(gnus-convert-mark-converter-prompt): Developers can mark
functions as needing (default), or not needing,
gnus-convert-old-newsrc's "backup before upgrading warning".
(gnus-convert-converter-needs-prompt): Tests whether the user
should be protected from potentially irreversable changes by the
function.
2004-10-18 Kevin Greiner <kgreiner@xpediantsolutions.com>
* lisp/gnus/gnus-int.el (gnus-request-accept-article): Inform the agent that
articles are being added to a group.
(gnus-request-replace-article): Inform the agent that articles
need to be uncached as the cached contents are no longer valid.
* lisp/gnus/gnus-agent.el (gnus-agent-file-header-cache): Removed.
(gnus-agent-possibly-alter-active): Avoid null in numeric
comparison.
(gnus-agent-set-local): Refuse to save null in local object table.
(gnus-agent-regenerate-group): The REREAD parameter can now be a
list of articles that will be marked as unread.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc>
* lisp/gnus/gnus-range.el (gnus-sorted-range-intersection): Now accepts
single-interval range of the form (min . max). Previously the
range had to look like ((min . max)). Likewise, return
(min . max) rather than ((min . max)).
(gnus-range-map): Use gnus-range-normalize to accept
single-interval range.
* lisp/gnus/gnus-sum.el (gnus-summary-highlight-line): Articles stored in
the cache, but not the agent, now appear with their usual face.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc>
* lisp/gnus/gnus-sum.el (gnus-adjust-marks): Now correctly handles a list of
marks consisting of a single range {for example, (3 . 5)} rather
than a list of a single range { ((3 . 5)) }.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc>
* lisp/gnus/gnus-sum.el (gnus-adjust-marks): Avoid splicing null INTO the
uncompressed list.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc>
* lisp/gnus/gnus-draft.el (gnus-group-send-queue): Pass the group name
"nndraft:queue" along to gnus-draft-send. Use
gnus-agent-prompt-send-queue.
(gnus-draft-send): Rebind gnus-agent-queue-mail to nil when group
is "nndraft:queue". Suggested by Gaute Strokkenes
<gs234@srcf.ucam.org>
* lisp/gnus/gnus-group.el (gnus-group-catchup): Use new
gnus-sequence-of-unread-articles, not
gnus-list-of-unread-articles, to avoid exhausting memory with huge
numbers of articles. Use gnus-range-map to avoid having to
uncompress the unread list.
(gnus-group-archive-directory,
gnus-group-recent-archive-directory): Fixed invalid ange-ftp
reference.
* lisp/gnus/gnus-range.el (gnus-range-map): Iterate over list or sequence.
(gnus-sorted-range-intersection): Intersection of two ranges
without requiring that they first be uncompressed.
* lisp/gnus/gnus-start.el (gnus-activate-group): Unless blocked by the
caller, possibly expand the active range to include both cached
and agentized articles.
(gnus-convert-old-newsrc): Rewrote in anticipation of having
multiple version-dependent converters.
(gnus-groups-to-gnus-format): Replaced gnus-agent-save-groups with
gnus-agent-save-active.
(gnus-save-newsrc-file): Save dirty agent range limits.
* lisp/gnus/gnus-sum.el (gnus-select-newgroup): Replaced inline code with
gnus-agent-possibly-alter-active.
(gnus-adjust-marked-articles): Faster handling of simple lists
2004-10-18 David Edmondson <dme@dme.org>
* lisp/gnus/mm-view.el (mm-w3m-cid-retrieve-1): Don't use recursive call
excessively.
2004-10-19 22:38:28 +00:00
|
|
|
(unread (gnus-sequence-of-unread-articles group)))
|
2000-09-19 13:37:09 +00:00
|
|
|
;; Remove entries for this group.
|
2020-07-28 00:46:30 +02:00
|
|
|
(nnmail-purge-split-history group)
|
1997-04-16 22:13:18 +00:00
|
|
|
;; Do the updating only if the newsgroup isn't killed.
|
|
|
|
(if (not (numberp (car entry)))
|
|
|
|
(gnus-message 1 "Can't catch up %s; non-active group" group)
|
2004-09-04 13:13:48 +00:00
|
|
|
(gnus-update-read-articles group nil)
|
|
|
|
(when all
|
|
|
|
;; Nix out the lists of marks and dormants.
|
|
|
|
(gnus-request-set-mark group (list (list (cdr (assq 'tick marks))
|
|
|
|
'del '(tick))
|
|
|
|
(list (cdr (assq 'dormant marks))
|
|
|
|
'del '(dormant))))
|
2022-01-17 12:40:43 +01:00
|
|
|
(setq unread (range-concat (range-concat
|
|
|
|
unread (cdr (assq 'dormant marks)))
|
|
|
|
(cdr (assq 'tick marks))))
|
2004-09-04 13:13:48 +00:00
|
|
|
(gnus-add-marked-articles group 'tick nil nil 'force)
|
|
|
|
(gnus-add-marked-articles group 'dormant nil nil 'force))
|
1997-04-16 22:13:18 +00:00
|
|
|
;; Do auto-expirable marks if that's required.
|
2011-05-30 22:11:52 +00:00
|
|
|
(when (and (gnus-group-auto-expirable-p group)
|
|
|
|
(not (gnus-group-read-only-p group)))
|
2022-01-17 12:40:43 +01:00
|
|
|
(range-map
|
2007-10-28 09:18:39 +00:00
|
|
|
(lambda (article)
|
|
|
|
(gnus-add-marked-articles group 'expire (list article))
|
|
|
|
(gnus-request-set-mark group (list (list (list article)
|
|
|
|
'add '(expire)))))
|
|
|
|
unread))
|
2004-09-04 13:13:48 +00:00
|
|
|
(let ((gnus-newsgroup-name group))
|
|
|
|
(gnus-run-hooks 'gnus-group-catchup-group-hook))
|
|
|
|
num)))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-expire-articles (&optional n)
|
2004-09-04 13:13:48 +00:00
|
|
|
"Expire all expirable articles in the current newsgroup.
|
|
|
|
Uses the process/prefix convention."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(let ((groups (gnus-group-process-prefix n))
|
|
|
|
group)
|
|
|
|
(unless groups
|
|
|
|
(error "No groups to expire"))
|
|
|
|
(while (setq group (pop groups))
|
|
|
|
(gnus-group-remove-mark group)
|
2000-09-19 13:37:09 +00:00
|
|
|
(gnus-group-expire-articles-1 group)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-dribble-touch)
|
|
|
|
(gnus-group-position-point))))
|
|
|
|
|
2000-09-19 13:37:09 +00:00
|
|
|
(defun gnus-group-expire-articles-1 (group)
|
|
|
|
(when (gnus-check-backend-function 'request-expire-articles group)
|
2018-11-16 12:53:56 -08:00
|
|
|
(gnus-message 6 "Expiring articles in %s..." group)
|
2000-09-19 13:37:09 +00:00
|
|
|
(let* ((info (gnus-get-info group))
|
|
|
|
(expirable (if (gnus-group-total-expirable-p group)
|
|
|
|
(cons nil (gnus-list-of-read-articles group))
|
|
|
|
(assq 'expire (gnus-info-marks info))))
|
2013-07-02 10:38:58 +00:00
|
|
|
(articles-to-expire
|
2022-01-17 12:40:43 +01:00
|
|
|
(range-list-difference
|
2013-07-02 10:38:58 +00:00
|
|
|
(gnus-uncompress-sequence (cdr expirable))
|
|
|
|
(cdr (assq 'unexist (gnus-info-marks info)))))
|
2000-09-19 13:37:09 +00:00
|
|
|
(expiry-wait (gnus-group-find-parameter group 'expiry-wait))
|
|
|
|
(nnmail-expiry-target
|
|
|
|
(or (gnus-group-find-parameter group 'expiry-target)
|
|
|
|
nnmail-expiry-target)))
|
|
|
|
(when expirable
|
|
|
|
(gnus-check-group group)
|
|
|
|
(setcdr
|
|
|
|
expirable
|
|
|
|
(gnus-compress-sequence
|
|
|
|
(if expiry-wait
|
|
|
|
;; We set the expiry variables to the group
|
|
|
|
;; parameter.
|
|
|
|
(let ((nnmail-expiry-wait-function nil)
|
|
|
|
(nnmail-expiry-wait expiry-wait))
|
2013-07-02 10:38:58 +00:00
|
|
|
(gnus-request-expire-articles articles-to-expire group))
|
2000-09-19 13:37:09 +00:00
|
|
|
;; Just expire using the normal expiry values.
|
2013-07-02 10:38:58 +00:00
|
|
|
(gnus-request-expire-articles articles-to-expire group))))
|
2000-09-19 13:37:09 +00:00
|
|
|
(gnus-close-group group))
|
2018-11-16 12:53:56 -08:00
|
|
|
(gnus-message 6 "Expiring articles in %s...done" group)
|
2000-09-19 13:37:09 +00:00
|
|
|
;; Return the list of un-expired articles.
|
|
|
|
(cdr expirable))))
|
|
|
|
|
1997-04-16 22:13:18 +00:00
|
|
|
(defun gnus-group-expire-all-groups ()
|
|
|
|
"Expire all expirable articles in all newsgroups."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive nil gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(save-excursion
|
|
|
|
(gnus-message 5 "Expiring...")
|
|
|
|
(let ((gnus-group-marked (mapcar (lambda (info) (gnus-info-group info))
|
|
|
|
(cdr gnus-newsrc-alist))))
|
|
|
|
(gnus-group-expire-articles nil)))
|
|
|
|
(gnus-group-position-point)
|
|
|
|
(gnus-message 5 "Expiring...done"))
|
|
|
|
|
|
|
|
(defun gnus-group-set-current-level (n level)
|
|
|
|
"Set the level of the next N groups to LEVEL."
|
|
|
|
(interactive
|
|
|
|
(list
|
|
|
|
current-prefix-arg
|
2004-09-04 13:13:48 +00:00
|
|
|
(progn
|
|
|
|
(unless (gnus-group-process-prefix current-prefix-arg)
|
|
|
|
(error "No group on the current line"))
|
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-339
Merge from gnus--rel--5.10
Patches applied:
* gnus--rel--5.10 (patch 76)
- Update from CVS
2005-05-30 Reiner Steib <Reiner.Steib@gmx.de>
* lisp/gnus/gnus-agent.el (gnus-agent-regenerate-group)
(gnus-agent-fetch-articles): Replace `string-to-int' by
`string-to-number'.
* lisp/gnus/gnus-art.el (gnus-button-fetch-group): Ditto.
* lisp/gnus/gnus-cache.el (gnus-cache-generate-active)
(gnus-cache-articles-in-group): Ditto.
* lisp/gnus/gnus-group.el (gnus-group-set-current-level)
(gnus-group-insert-group-line): Ditto.
* lisp/gnus/gnus-score.el (gnus-score-set-expunge-below)
(gnus-score-set-mark-below, gnus-summary-score-effect)
(gnus-summary-score-entry): Ditto.
* lisp/gnus/gnus-soup.el (gnus-soup-send-packet, gnus-soup-parse-areas)
(gnus-soup-pack): Ditto.
* lisp/gnus/gnus-spec.el (gnus-xmas-format): Ditto.
* lisp/gnus/gnus-start.el (gnus-newsrc-to-gnus-format): Ditto.
* lisp/gnus/gnus-sum.el (gnus-create-xref-hashtb): Ditto.
* lisp/gnus/gnus-uu.el (gnus-uu-expand-numbers): Ditto.
* lisp/gnus/nnbabyl.el (nnbabyl-article-group-number): Ditto.
* lisp/gnus/nndb.el (nndb-get-remote-expire-response): Ditto.
* lisp/gnus/nndiary.el (nndiary-parse-schedule-value)
(nndiary-string-to-number, nndiary-request-replace-article)
(nndiary-request-article): Ditto.
* lisp/gnus/nndoc.el (nndoc-rnews-body-end, nndoc-mbox-body-end): Ditto.
* lisp/gnus/nndraft.el (nndraft-articles, nndraft-request-group): Ditto.
* lisp/gnus/nneething.el (nneething-make-head): Ditto.
* lisp/gnus/nnfolder.el (nnfolder-request-article)
(nnfolder-retrieve-headers): Ditto.
* lisp/gnus/nnheader.el (nnheader-file-to-number): Ditto.
* lisp/gnus/nnkiboze.el (nnkiboze-request-article): Ditto.
* lisp/gnus/nnmail.el (nnmail-process-unix-mail-format)
(nnmail-process-babyl-mail-format): Ditto.
* lisp/gnus/nnmbox.el (nnmbox-read-mbox, nnmbox-article-group-number): Ditto.
* lisp/gnus/nnmh.el (nnmh-update-gnus-unreads, nnmh-active-number)
(nnmh-request-create-group, nnmh-request-list-1)
(nnmh-request-group, nnmh-request-article): Ditto.
* lisp/gnus/nnml.el (nnml-request-replace-article, nnml-request-article): Ditto.
* lisp/gnus/nnrss.el (nnrss-find-rss-via-syndic8): Ditto.
* lisp/gnus/nnsoup.el (nnsoup-make-active): Ditto.
* lisp/gnus/nnspool.el (nnspool-find-id, nnspool-request-group): Ditto.
* lisp/gnus/nntp.el (nntp-find-group-and-number)
(nntp-retrieve-headers-with-xover): Ditto.
* lisp/gnus/pgg-gpg.el (pgg-gpg-snarf-keys-region): Ditto.
* lisp/gnus/pgg-parse.el (pgg-read-body, pgg-read-bytes)
(pgg-format-key-identifier): Ditto.
* lisp/gnus/pop3.el (pop3-last, pop3-stat): Ditto.
* lisp/gnus/qp.el (quoted-printable-decode-region): Ditto.
* lisp/gnus/spam-report.el (spam-report-url-ping-mm-url): Use format instead
of concat.
2005-05-30 17:13:58 +00:00
|
|
|
(string-to-number
|
2004-09-04 13:13:48 +00:00
|
|
|
(let ((s (read-string
|
Use `format-prompt' when prompting with default values
* lisp/woman.el (woman-file-name):
* lisp/wid-edit.el (widget-file-prompt-value)
(widget-coding-system-prompt-value):
* lisp/w32-fns.el (w32-set-system-coding-system):
* lisp/vc/vc.el (vc-print-root-log):
* lisp/vc/vc-annotate.el (vc-annotate):
* lisp/vc/emerge.el (emerge-read-file-name):
* lisp/vc/ediff.el (ediff-directories)
(ediff-directory-revisions, ediff-directories3)
(ediff-merge-directories, )
(ediff-merge-directories-with-ancestor)
(ediff-merge-directory-revisions)
(ediff-merge-directory-revisions-with-ancestor)
(ediff-merge-revisions, ediff-merge-revisions-with-ancestor)
(ediff-revision):
* lisp/vc/ediff-util.el (ediff-toggle-regexp-match):
* lisp/vc/ediff-mult.el (ediff-filegroup-action):
* lisp/vc/add-log.el (prompt-for-change-log-name):
* lisp/textmodes/table.el (table-insert-row-column)
(table-span-cell, table-split-cell-horizontally)
(table-split-cell, table-justify, table-generate-source)
(table-insert-sequence, table-capture)
(table--read-from-minibuffer, table--query-justification):
* lisp/textmodes/sgml-mode.el (sgml-tag, sgml-tag-help):
* lisp/textmodes/reftex-ref.el (reftex-goto-label):
* lisp/textmodes/refer.el (refer-get-bib-files):
* lisp/textmodes/css-mode.el (css-lookup-symbol):
* lisp/term.el (serial-read-name, serial-read-speed):
* lisp/speedbar.el (speedbar-change-initial-expansion-list):
* lisp/simple.el (previous-matching-history-element)
(set-variable):
* lisp/ses.el (ses-read-cell, ses-set-column-width):
* lisp/replace.el (query-replace-read-from)
(occur-read-primary-args):
* lisp/rect.el (string-rectangle, string-insert-rectangle):
* lisp/progmodes/tcl.el (tcl-help-on-word):
* lisp/progmodes/sh-script.el (sh-set-shell):
* lisp/progmodes/python.el (python-eldoc-at-point):
* lisp/progmodes/octave.el (octave-completing-read)
(octave-update-function-file-comment, octave-insert-defun):
* lisp/progmodes/inf-lisp.el (lisp-symprompt):
* lisp/progmodes/cperl-mode.el (cperl-info-on-command)
(cperl-perldoc):
* lisp/progmodes/compile.el (compilation-find-file):
* lisp/net/rcirc.el (rcirc-prompt-for-encryption):
* lisp/net/eww.el (eww):
* lisp/net/browse-url.el (browse-url-with-browser-kind):
* lisp/man.el (man):
* lisp/mail/sendmail.el (sendmail-query-user-about-smtp):
* lisp/mail/mailalias.el (build-mail-aliases):
* lisp/mail/mailabbrev.el (merge-mail-abbrevs)
(rebuild-mail-abbrevs):
* lisp/locate.el (locate-prompt-for-search-string):
* lisp/isearch.el (isearch-occur):
* lisp/international/ogonek.el (ogonek-read-encoding)
(ogonek-read-prefix):
* lisp/international/mule.el (read-buffer-file-coding-system)
(set-terminal-coding-system, set-keyboard-coding-system)
(set-next-selection-coding-system, recode-region):
* lisp/international/mule-cmds.el ()
(universal-coding-system-argument, search-unencodable-char)
(select-safe-coding-system-interactively):
* lisp/info.el (Info-search, Info-search-backward, Info-menu):
* lisp/info-look.el (info-lookup-interactive-arguments):
* lisp/imenu.el (imenu--completion-buffer):
* lisp/ibuf-ext.el (mode, used-mode, ibuffer-mark-by-mode):
* lisp/hi-lock.el (hi-lock-unface-buffer)
(hi-lock-read-face-name):
* lisp/help.el (view-emacs-news, where-is):
* lisp/help-fns.el (describe-variable, describe-symbol)
(describe-keymap):
* lisp/gnus/mm-decode.el (mm-save-part):
* lisp/gnus/gnus-sum.el (gnus-summary-browse-url):
* lisp/gnus/gnus-group.el (gnus-group--read-bug-ids)
(gnus-group-set-current-level):
* lisp/frame.el (make-frame-on-monitor)
(close-display-connection, select-frame-by-name):
* lisp/format.el (format-encode-buffer, format-encode-region):
* lisp/files.el (recode-file-name):
* lisp/files-x.el (read-file-local-variable)
(read-file-local-variable-value, )
(read-file-local-variable-mode):
* lisp/ffap.el (ffap-menu-ask):
* lisp/faces.el (face-read-string):
* lisp/facemenu.el (facemenu-set-charset):
* lisp/erc/erc-dcc.el (erc-dcc-do-GET-command):
* lisp/emulation/edt-mapper.el (edt-mapper):
* lisp/emacs-lisp/trace.el (trace--read-args)
(trace-function-foreground, trace-function-background):
* lisp/emacs-lisp/smie.el (smie-config-set-indent):
* lisp/emacs-lisp/re-builder.el (reb-change-syntax):
* lisp/emacs-lisp/package.el (describe-package):
* lisp/emacs-lisp/find-func.el (read-library-name)
(find-function-read):
* lisp/emacs-lisp/ert.el (ert-read-test-name)
(ert-run-tests-interactively):
* lisp/emacs-lisp/disass.el (disassemble):
* lisp/emacs-lisp/debug.el (debug-on-entry)
(debug-on-variable-change):
* lisp/emacs-lisp/advice.el (ad-read-advised-function)
(ad-read-advice-class, ad-read-advice-name, ad-read-regexp):
* lisp/dired-x.el (dired--mark-suffix-interactive-spec):
* lisp/dired-aux.el (dired-diff):
* lisp/cus-edit.el (custom-variable-prompt, customize-mode)
(customize-changed-options):
* lisp/completion.el (interactive-completion-string-reader):
* lisp/calendar/timeclock.el (timeclock-ask-for-project):
* lisp/calc/calcalg3.el (calc-get-fit-variables):
* lisp/calc/calc-store.el (calc-edit-variable):
* lisp/calc/calc-bin.el (calc-word-size):
* lisp/bookmark.el (bookmark-set-internal):
* lisp/abbrev.el (read-abbrev-file): Use `format-prompt' for
prompting (bug#12443).
2020-09-06 16:56:44 +02:00
|
|
|
(format-prompt "Level" (or (gnus-group-group-level)
|
|
|
|
gnus-level-default-subscribed)))))
|
2004-09-04 13:13:48 +00:00
|
|
|
(if (string-match "^\\s-*$" s)
|
|
|
|
(int-to-string (or (gnus-group-group-level)
|
|
|
|
gnus-level-default-subscribed))
|
2021-02-14 14:14:48 +01:00
|
|
|
s)))))
|
|
|
|
gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(unless (and (>= level 1) (<= level gnus-level-killed))
|
2000-09-19 13:37:09 +00:00
|
|
|
(error "Invalid level: %d" level))
|
2007-10-28 09:18:39 +00:00
|
|
|
(dolist (group (gnus-group-process-prefix n))
|
|
|
|
(gnus-group-remove-mark group)
|
|
|
|
(gnus-message 6 "Changed level of %s from %d to %d"
|
2018-11-16 12:53:56 -08:00
|
|
|
group
|
2007-10-28 09:18:39 +00:00
|
|
|
(or (gnus-group-group-level) gnus-level-killed)
|
|
|
|
level)
|
|
|
|
(gnus-group-change-level
|
|
|
|
group level (or (gnus-group-group-level) gnus-level-killed))
|
|
|
|
(gnus-group-update-group-line))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-position-point))
|
|
|
|
|
|
|
|
(defun gnus-group-unsubscribe (&optional n)
|
|
|
|
"Unsubscribe the current group."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
2021-07-28 20:52:51 +02:00
|
|
|
(gnus-group-set-subscription-at-point n 'unsubscribe))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-subscribe (&optional n)
|
|
|
|
"Subscribe the current group."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
2021-07-28 20:52:51 +02:00
|
|
|
(gnus-group-set-subscription-at-point n 'subscribe))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
2021-07-29 13:33:08 +02:00
|
|
|
(defsubst gnus-group-unsubscribe-current-group (&optional n do-sub)
|
|
|
|
(if do-sub
|
|
|
|
(gnus-group-set-subscription-at-point n do-sub)
|
|
|
|
(gnus-group-toggle-subscription-at-point n)))
|
|
|
|
|
|
|
|
(defsubst gnus-group-unsubscribe-group (group &optional level silent)
|
|
|
|
(if level
|
|
|
|
(gnus-group-set-subscription group level silent)
|
|
|
|
(gnus-group-toggle-subscription group silent)))
|
|
|
|
|
|
|
|
(make-obsolete 'gnus-group-unsubscribe-current-group
|
2021-07-28 20:52:51 +02:00
|
|
|
'gnus-group-toggle-subscription-at-point "28.1")
|
2021-07-29 13:33:08 +02:00
|
|
|
|
|
|
|
(make-obsolete 'gnus-group-unsubscribe-group
|
2021-07-28 20:52:51 +02:00
|
|
|
'gnus-group-toggle-subscription "28.1")
|
|
|
|
|
|
|
|
(defun gnus-group-toggle-subscription-at-point (&optional n)
|
1997-04-16 22:13:18 +00:00
|
|
|
"Toggle subscription of the current group.
|
|
|
|
If given numerical prefix, toggle the N next groups."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
2021-07-28 20:52:51 +02:00
|
|
|
(gnus-group-set-subscription-at-point n 'toggle))
|
|
|
|
|
|
|
|
(defun gnus-group-set-subscription-at-point (n do-sub)
|
|
|
|
"Set subscription of the current group for next N groups."
|
2004-09-04 13:13:48 +00:00
|
|
|
(dolist (group (gnus-group-process-prefix n))
|
|
|
|
(gnus-group-remove-mark group)
|
2021-07-28 20:52:51 +02:00
|
|
|
(gnus-group-set-subscription
|
2004-09-04 13:13:48 +00:00
|
|
|
group
|
2021-07-28 20:52:51 +02:00
|
|
|
(cl-case do-sub
|
|
|
|
(unsubscribe gnus-level-default-unsubscribed)
|
|
|
|
(subscribe gnus-level-default-subscribed)
|
|
|
|
(toggle (if (<= (gnus-group-group-level) gnus-level-subscribed)
|
|
|
|
gnus-level-default-unsubscribed
|
|
|
|
gnus-level-default-subscribed))
|
|
|
|
(t (error "Unknown subscription setting %s" do-sub)))
|
2004-09-04 13:13:48 +00:00
|
|
|
t)
|
|
|
|
(gnus-group-update-group-line))
|
|
|
|
(gnus-group-next-group 1))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
2021-07-28 20:52:51 +02:00
|
|
|
(defun gnus-group-toggle-subscription (group &optional silent)
|
2007-10-28 09:18:39 +00:00
|
|
|
(interactive (list (gnus-group-completing-read
|
2021-02-14 14:14:48 +01:00
|
|
|
nil nil (gnus-read-active-file-p)))
|
|
|
|
gnus-group-mode)
|
2021-07-28 20:52:51 +02:00
|
|
|
(let* ((newsrc (gnus-group-entry group))
|
|
|
|
(level (cond
|
|
|
|
(newsrc
|
|
|
|
;; Toggle subscription flag.
|
|
|
|
(if (<= (gnus-info-level (nth 1 newsrc))
|
|
|
|
gnus-level-subscribed)
|
|
|
|
(1+ gnus-level-subscribed)
|
|
|
|
gnus-level-default-subscribed))
|
|
|
|
((and (stringp group)
|
|
|
|
(or (not (gnus-read-active-file-p))
|
|
|
|
(gnus-active group)))
|
|
|
|
;; Add new newsgroup.
|
|
|
|
gnus-level-default-subscribed)
|
|
|
|
(t 'unsubscribe))))
|
|
|
|
(gnus-group-set-subscription group level silent)))
|
|
|
|
|
|
|
|
(defun gnus-group-set-subscription (group level &optional silent)
|
|
|
|
"Set subscription of GROUP to LEVEL.
|
|
|
|
Killed newsgroups are subscribed. If SILENT, don't try to update the
|
|
|
|
group line."
|
2007-10-28 09:18:39 +00:00
|
|
|
(let ((newsrc (gnus-group-entry group)))
|
1997-04-16 22:13:18 +00:00
|
|
|
(cond
|
Deprecate `intangible' and `point-entered' properties
* lisp/emacs-lisp/cursor-sensor.el: New file.
* lisp/simple.el (pre-redisplay-functions): New hook.
(redisplay--pre-redisplay-functions): New function.
(pre-redisplay-function): Use it.
(minibuffer-avoid-prompt): Mark obsolete.
(redisplay--update-region-highlight): Adapt it to work as a function on
pre-redisplay-functions.
* lisp/cus-start.el (minibuffer-prompt-properties--setter): New fun.
(minibuffer-prompt-properties): Use it. Use cursor-intangible rather
than point-entered to make the prompt intangible.
* lisp/forms.el: Move `provide' calls to the end.
(forms-mode): Don't use `run-hooks' on a local var.
(forms--make-format, forms--make-format-elt-using-text-properties):
Use cursor-intangible rather than `intangible'.
(forms-mode): Enable cursor-intangible-mode.
* lisp/isearch.el (isearch-mode): Use defvar-local.
(cursor-sensor-inhibit): Declare.
(isearch-mode): Set cursor-sensor-inhibit.
(isearch-done): Set it back.
(isearch-open-overlay-temporary, isearch-open-necessary-overlays)
(isearch-close-unnecessary-overlays): Don't bother with `intangible'
any more.
* lisp/ses.el (ses-localvars): Remove `mode-line-process'.
(ses-sym-rowcol, ses-cell-value, ses-col-width, ses-col-printer):
Add Edebug spec.
(ses-goto-print, ses-print-cell, ses-adjust-print-width)
(ses-goto-data, ses-setup, ses-copy-region): Don't let-bind
inhibit-point-motion-hooks any more.
(ses--cell-at-pos, ses--curcell): New functions, extracted from
ses-set-curcell.
(ses-set-curcell): Use them.
(ses-print-cell, ses-setup): Use cursor-intangible instead of
`intangible'. Make sure cursor-intangible isn't sticky at BOB.
(ses-print-cell-new-width, ses-reprint-all, ses-recalculate-all):
Use ses--cell-at-pos.
(ses--mode-line-process, ses--cursor-sensor-highlight): New functions,
extracted from ses-command-hook. Make them work with multiple windows
displaying the same buffer.
(ses-mode): Use them via mode-line-process and pre-redisplay-functions.
Enable cursor-intangible-mode.
(ses-command-hook): Remove cell highlight and mode-line update code.
(ses-forward-or-insert, ses-copy-region-helper, ses-sort-column):
Update for new name of text-property holding the cell name.
(ses-rename-cell): Don't mess with mode-line-process.
* lisp/erc/erc-stamp.el (erc-add-timestamp): Use the new
cursor-sensor-functions property instead of point-entered.
(erc-insert-timestamp-right, erc-format-timestamp):
Use cursor-intangible rather than `intangible'.
(erc-munge-invisibility-spec): Use add-to-invisibility-spec and
remove-from-invisibility-spec. Enable cursor-intangible-mode and
cursor-sensor-mode if needed.
(erc-echo-timestamp): Adapt to calling convention of
cursor-sensor-functions.
(erc-insert-timestamp-right): Remove unused vars `current-window' and
`indent'.
* lisp/gnus/gnus-group.el (gnus-tmp-*): Declare.
(gnus-update-group-mark-positions): Remove unused `topic' var.
(gnus-group-insert-group-line): Remove unused var `header'.
(gnus-group--setup-tool-bar-update): New function.
(gnus-group-insert-group-line): Use it.
(gnus-group-update-eval-form): Declare local
dynamically-bound variables.
(gnus-group-unsubscribe-group): Use \` and \' to match string bounds.
* lisp/gnus/gnus-topic.el (gnus-topic-jump-to-topic)
(gnus-group-prepare-topics, gnus-topic-update-topic)
(gnus-topic-change-level, gnus-topic-catchup-articles)
(gnus-topic-remove-group, gnus-topic-delete, gnus-topic-indent):
Use inhibit-read-only.
(gnus-topic-prepare-topic): Use gnus-group--setup-tool-bar-update.
(gnus-topic-mode): Use define-minor-mode and derived-mode-p.
* lisp/textmodes/reftex-index.el (reftex-display-index):
Use cursor-intangible-mode if available.
(reftex-index-post-command-hook): Check cursor-intangible.
* lisp/textmodes/reftex-toc.el (reftex-toc):
Use cursor-intangible-mode if available.
(reftex-toc-recenter, reftex-toc-post-command-hook):
Check cursor-intangible.
* lisp/textmodes/sgml-mode.el: Use lexical-binding.
(sgml-tag): Use cursor-sensor-functions instead of point-entered.
(sgml-tags-invisible): Use with-silent-modifications and
inhibit-read-only. Enable cursor-sensor-mode.
(sgml-cursor-sensor): Rename from sgml-point-entered and adjust to
calling convention of cursor-sensor-functions.
* lisp/textmodes/table.el (table-cell-map-hook, table-load-hook)
(table-point-entered-cell-hook, table-point-left-cell-hook):
Don't autoload.
(table-cell-entered-state): Remove var.
(table--put-cell-point-entered/left-property)
(table--remove-cell-properties):
Use cursor-sensor-functions rather than point-entered/left.
(table--point-entered/left-cell-function): Merge
table--point-entered-cell-function and table--point-left-cell-function
and adjust to calling convention of cursor-sensor-functions.
2015-04-13 15:51:15 -04:00
|
|
|
((string-match "\\`[ \t]*\\'" group)
|
1997-04-16 22:13:18 +00:00
|
|
|
(error "Empty group name"))
|
|
|
|
(newsrc
|
2021-07-28 20:52:51 +02:00
|
|
|
(gnus-group-change-level newsrc level)
|
1997-04-16 22:13:18 +00:00
|
|
|
(unless silent
|
|
|
|
(gnus-group-update-group group)))
|
|
|
|
((and (stringp group)
|
|
|
|
(or (not (gnus-read-active-file-p))
|
|
|
|
(gnus-active group)))
|
|
|
|
(gnus-group-change-level
|
|
|
|
group
|
2021-07-28 20:52:51 +02:00
|
|
|
level
|
1997-04-16 22:13:18 +00:00
|
|
|
(or (and (member group gnus-zombie-list)
|
|
|
|
gnus-level-zombie)
|
|
|
|
gnus-level-killed)
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(gnus-group-group-name))
|
1997-04-16 22:13:18 +00:00
|
|
|
(unless silent
|
|
|
|
(gnus-group-update-group group)))
|
|
|
|
(t (error "No such newsgroup: %s" group)))
|
|
|
|
(gnus-group-position-point)))
|
|
|
|
|
|
|
|
(defun gnus-group-transpose-groups (n)
|
|
|
|
"Move the current newsgroup up N places.
|
2006-11-24 10:42:46 +00:00
|
|
|
If given a negative prefix, move down instead. The difference between
|
1997-04-16 22:13:18 +00:00
|
|
|
N and the number of steps taken is returned."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "p" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(unless (gnus-group-group-name)
|
|
|
|
(error "No group on current line"))
|
|
|
|
(gnus-group-kill-group 1)
|
|
|
|
(prog1
|
|
|
|
(forward-line (- n))
|
|
|
|
(gnus-group-yank-group)
|
|
|
|
(gnus-group-position-point)))
|
|
|
|
|
2000-09-19 13:37:09 +00:00
|
|
|
(defun gnus-group-kill-all-zombies (&optional dummy)
|
|
|
|
"Kill all zombie newsgroups.
|
|
|
|
The optional DUMMY should always be nil."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (list (not (gnus-yes-or-no-p "Really kill all zombies? ")))
|
|
|
|
gnus-group-mode)
|
2000-09-19 13:37:09 +00:00
|
|
|
(unless dummy
|
|
|
|
(setq gnus-killed-list (nconc gnus-zombie-list gnus-killed-list))
|
|
|
|
(setq gnus-zombie-list nil)
|
|
|
|
(gnus-dribble-touch)
|
|
|
|
(gnus-group-list-groups)))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-kill-region (begin end)
|
|
|
|
"Kill newsgroups in current region (excluding current point).
|
|
|
|
The killed newsgroups can be yanked by using \\[gnus-group-yank-group]."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "r" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(let ((lines
|
|
|
|
;; Count lines.
|
|
|
|
(save-excursion
|
|
|
|
(count-lines
|
|
|
|
(progn
|
|
|
|
(goto-char begin)
|
2022-08-23 04:54:57 +02:00
|
|
|
(line-beginning-position))
|
1997-04-16 22:13:18 +00:00
|
|
|
(progn
|
|
|
|
(goto-char end)
|
2022-08-23 04:54:57 +02:00
|
|
|
(line-beginning-position))))))
|
1997-04-16 22:13:18 +00:00
|
|
|
(goto-char begin)
|
|
|
|
(beginning-of-line) ;Important when LINES < 1
|
|
|
|
(gnus-group-kill-group lines)))
|
|
|
|
|
|
|
|
(defun gnus-group-kill-group (&optional n discard)
|
|
|
|
"Kill the next N groups.
|
|
|
|
The killed newsgroups can be yanked by using \\[gnus-group-yank-group].
|
|
|
|
However, only groups that were alive can be yanked; already killed
|
|
|
|
groups or zombie groups can't be yanked.
|
|
|
|
The return value is the name of the group that was killed, or a list
|
|
|
|
of groups killed."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(let ((buffer-read-only nil)
|
|
|
|
(groups (gnus-group-process-prefix n))
|
|
|
|
group entry level out)
|
|
|
|
(if (< (length groups) 10)
|
|
|
|
;; This is faster when there are few groups.
|
|
|
|
(while groups
|
|
|
|
(push (setq group (pop groups)) out)
|
|
|
|
(gnus-group-remove-mark group)
|
|
|
|
(setq level (gnus-group-group-level))
|
|
|
|
(gnus-delete-line)
|
|
|
|
(when (and (not discard)
|
2007-10-28 09:18:39 +00:00
|
|
|
(setq entry (gnus-group-entry group)))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-undo-register
|
|
|
|
`(progn
|
|
|
|
(gnus-group-goto-group ,(gnus-group-group-name))
|
|
|
|
(gnus-group-yank-group)))
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(push (cons (car entry) (nth 1 entry))
|
1997-04-16 22:13:18 +00:00
|
|
|
gnus-list-of-killed-groups))
|
|
|
|
(gnus-group-change-level
|
2000-09-19 13:37:09 +00:00
|
|
|
(if entry entry group) gnus-level-killed (if entry nil level))
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
;; FIXME: Since the group has already been removed from
|
|
|
|
;; `gnus-newsrc-hashtb', this check will always return nil.
|
2011-01-02 11:23:02 +00:00
|
|
|
(when (numberp (gnus-group-unread group))
|
|
|
|
(gnus-request-update-group-status group 'unsubscribe))
|
2018-11-16 12:53:56 -08:00
|
|
|
(message "Killed group %s" group))
|
1997-04-16 22:13:18 +00:00
|
|
|
;; If there are lots and lots of groups to be killed, we use
|
|
|
|
;; this thing instead.
|
2004-09-04 13:13:48 +00:00
|
|
|
(dolist (group (nreverse groups))
|
|
|
|
(gnus-group-remove-mark group)
|
|
|
|
(gnus-delete-line)
|
|
|
|
(push group gnus-killed-list)
|
|
|
|
(setq gnus-newsrc-alist
|
|
|
|
(delq (assoc group gnus-newsrc-alist)
|
|
|
|
gnus-newsrc-alist))
|
|
|
|
(when gnus-group-change-level-function
|
|
|
|
(funcall gnus-group-change-level-function
|
|
|
|
group gnus-level-killed 3))
|
|
|
|
(cond
|
2007-10-28 09:18:39 +00:00
|
|
|
((setq entry (gnus-group-entry group))
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(push (cons (car entry) (nth 1 entry))
|
2004-09-04 13:13:48 +00:00
|
|
|
gnus-list-of-killed-groups)
|
|
|
|
(setcdr (cdr entry) (cdddr entry)))
|
|
|
|
((member group gnus-zombie-list)
|
|
|
|
(setq gnus-zombie-list (delete group gnus-zombie-list))))
|
|
|
|
;; There may be more than one instance displayed.
|
|
|
|
(while (gnus-group-goto-group group)
|
2010-12-16 22:22:28 +00:00
|
|
|
(gnus-delete-line))
|
2011-01-02 11:23:02 +00:00
|
|
|
(when (numberp (gnus-group-unread group))
|
|
|
|
(gnus-request-update-group-status group 'unsubscribe)))
|
2004-09-04 13:13:48 +00:00
|
|
|
(gnus-make-hashtable-from-newsrc-alist))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(gnus-group-position-point)
|
|
|
|
(if (< (length out) 2) (car out) (nreverse out))))
|
|
|
|
|
|
|
|
(defun gnus-group-yank-group (&optional arg)
|
2021-09-24 14:46:56 +02:00
|
|
|
"Yank the last newsgroups killed with \\[gnus-group-kill-group], inserting it
|
|
|
|
before the current newsgroup.
|
1999-02-20 14:05:57 +00:00
|
|
|
The numeric ARG specifies how many newsgroups are to be yanked. The
|
|
|
|
name of the newsgroup yanked is returned, or (if several groups are
|
|
|
|
yanked) a list of yanked groups is returned."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "p" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(setq arg (or arg 1))
|
|
|
|
(let (info group prev out)
|
gnus: replace cl with cl-lib
* lisp/gnus/gnus-agent.el, lisp/gnus/gnus-art.el:
* lisp/gnus/gnus-async.el, lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-demon.el, lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-icalendar.el, lisp/gnus/gnus-logic.el:
* lisp/gnus/gnus-msg.el, lisp/gnus/gnus-picon.el:
* lisp/gnus/gnus-registry.el, lisp/gnus/gnus-salt.el:
* lisp/gnus/gnus-score.el, lisp/gnus/gnus-spec.el:
* lisp/gnus/gnus-srvr.el, lisp/gnus/gnus-start.el:
* lisp/gnus/gnus-sum.el, lisp/gnus/gnus-topic.el:
* lisp/gnus/gnus-util.el, lisp/gnus/gnus-uu.el, lisp/gnus/gnus-win.el:
* lisp/gnus/mail-source.el, lisp/gnus/mm-decode.el:
* lisp/gnus/mm-encode.el, lisp/gnus/mm-url.el, lisp/gnus/mm-view.el:
* lisp/gnus/mml-smime.el, lisp/gnus/mml.el, lisp/gnus/mml2015.el:
* lisp/gnus/nnbabyl.el, lisp/gnus/nndoc.el, lisp/gnus/nneething.el:
* lisp/gnus/nnheader.el, lisp/gnus/nnimap.el, lisp/gnus/nnmail.el:
* lisp/gnus/nnmaildir.el, lisp/gnus/nnoo.el, lisp/gnus/nnrss.el:
* lisp/gnus/nnspool.el, lisp/gnus/nntp.el, lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el, lisp/gnus/spam.el: Replace cl with cl-lib.
* lisp/gnus/canlock.el, lisp/gnus/gnus-bcklg.el:
* lisp/gnus/gnus-cite.el, lisp/gnus/gnus-cloud.el:
* lisp/gnus/gnus-draft.el, lisp/gnus/gnus-dup.el:
* lisp/gnus/gnus-fun.el, lisp/gnus/gnus-html.el:
* lisp/gnus/gnus-int.el, lisp/gnus/gnus-kill.el, lisp/gnus/gnus-ml.el:
* lisp/gnus/gnus-mlspl.el, lisp/gnus/gnus-range.el:
* lisp/gnus/gnus-undo.el, lisp/gnus/gnus-vm.el:
* lisp/gnus/mm-partial.el, lisp/gnus/mm-uu.el, lisp/gnus/mml1991.el:
* lisp/gnus/nnagent.el, lisp/gnus/nndiary.el, lisp/gnus/nndir.el:
* lisp/gnus/nndraft.el, lisp/gnus/nnfolder.el, lisp/gnus/nngateway.el:
* lisp/gnus/nnmairix.el, lisp/gnus/nnmbox.el, lisp/gnus/nnmh.el:
* lisp/gnus/nnml.el, lisp/gnus/score-mode.el, lisp/gnus/smiley.el:
No need for cl.
2018-03-23 16:13:09 -04:00
|
|
|
(while (>= (cl-decf arg) 0)
|
1997-04-16 22:13:18 +00:00
|
|
|
(when (not (setq info (pop gnus-list-of-killed-groups)))
|
|
|
|
(error "No more newsgroups to yank"))
|
|
|
|
(push (setq group (nth 1 info)) out)
|
|
|
|
;; Find which newsgroup to insert this one before - search
|
|
|
|
;; backward until something suitable is found. If there are no
|
|
|
|
;; other newsgroups in this buffer, just make this newsgroup the
|
|
|
|
;; first newsgroup.
|
|
|
|
(setq prev (gnus-group-group-name))
|
|
|
|
(gnus-group-change-level
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
info (gnus-info-level (cdr info)) gnus-level-killed prev t)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-insert-group-line-info group)
|
2010-12-16 22:22:28 +00:00
|
|
|
(gnus-request-update-group-status group 'subscribe)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-undo-register
|
|
|
|
`(when (gnus-group-goto-group ,group)
|
|
|
|
(gnus-group-kill-group 1))))
|
|
|
|
(forward-line -1)
|
|
|
|
(gnus-group-position-point)
|
|
|
|
(if (< (length out) 2) (car out) (nreverse out))))
|
|
|
|
|
|
|
|
(defun gnus-group-kill-level (level)
|
|
|
|
"Kill all groups that is on a certain LEVEL."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "nKill all groups on level: " gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(cond
|
|
|
|
((= level gnus-level-zombie)
|
|
|
|
(setq gnus-killed-list
|
|
|
|
(nconc gnus-zombie-list gnus-killed-list))
|
|
|
|
(setq gnus-zombie-list nil))
|
|
|
|
((and (< level gnus-level-zombie)
|
|
|
|
(> level 0)
|
|
|
|
(or gnus-expert-user
|
|
|
|
(gnus-yes-or-no-p
|
|
|
|
(format
|
|
|
|
"Do you really want to kill all groups on level %d? "
|
|
|
|
level))))
|
|
|
|
(let* ((prev gnus-newsrc-alist)
|
|
|
|
(alist (cdr prev)))
|
|
|
|
(while alist
|
|
|
|
(if (= (gnus-info-level (car alist)) level)
|
|
|
|
(progn
|
|
|
|
(push (gnus-info-group (car alist)) gnus-killed-list)
|
|
|
|
(setcdr prev (cdr alist)))
|
|
|
|
(setq prev alist))
|
|
|
|
(setq alist (cdr alist)))
|
|
|
|
(gnus-make-hashtable-from-newsrc-alist)
|
|
|
|
(gnus-group-list-groups)))
|
|
|
|
(t
|
2000-09-19 13:37:09 +00:00
|
|
|
(error "Can't kill; invalid level: %d" level))))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-list-all-groups (&optional arg)
|
|
|
|
"List all newsgroups with level ARG or lower.
|
2004-09-04 13:13:48 +00:00
|
|
|
Default is `gnus-level-unsubscribed', which lists all subscribed and most
|
1997-04-16 22:13:18 +00:00
|
|
|
unsubscribed groups."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-list-groups (or arg gnus-level-unsubscribed) t))
|
|
|
|
|
|
|
|
;; Redefine this to list ALL killed groups if prefix arg used.
|
|
|
|
;; Rewritten by engstrom@src.honeywell.com (Eric Engstrom).
|
|
|
|
(defun gnus-group-list-killed (&optional arg)
|
|
|
|
"List all killed newsgroups in the group buffer.
|
|
|
|
If ARG is non-nil, list ALL killed groups known to Gnus. This may
|
|
|
|
entail asking the server for the groups."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
;; Find all possible killed newsgroups if arg.
|
|
|
|
(when arg
|
|
|
|
(gnus-get-killed-groups))
|
|
|
|
(if (not gnus-killed-list)
|
|
|
|
(gnus-message 6 "No killed groups")
|
|
|
|
(let (gnus-group-list-mode)
|
|
|
|
(funcall gnus-group-prepare-function
|
|
|
|
gnus-level-killed t gnus-level-killed))
|
|
|
|
(goto-char (point-min)))
|
|
|
|
(gnus-group-position-point))
|
|
|
|
|
|
|
|
(defun gnus-group-list-zombies ()
|
|
|
|
"List all zombie newsgroups in the group buffer."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive nil gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(if (not gnus-zombie-list)
|
|
|
|
(gnus-message 6 "No zombie groups")
|
|
|
|
(let (gnus-group-list-mode)
|
|
|
|
(funcall gnus-group-prepare-function
|
|
|
|
gnus-level-zombie t gnus-level-zombie))
|
|
|
|
(goto-char (point-min)))
|
|
|
|
(gnus-group-position-point))
|
|
|
|
|
|
|
|
(defun gnus-group-list-active ()
|
|
|
|
"List all groups that are available from the server(s)."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive nil gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
;; First we make sure that we have really read the active file.
|
|
|
|
(unless (gnus-read-active-file-p)
|
2000-09-19 13:37:09 +00:00
|
|
|
(let ((gnus-read-active-file t)
|
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-628
Merge from gnus--rel--5.10
Patches applied:
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-55
Update from CVS
2004-10-19 Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/gnus/gnus-sum.el (gnus-update-summary-mark-positions): Search for
dummy marks in the right way.
2004-10-18 Kevin Greiner <kgreiner@compsol.cc>
* lisp/gnus/nnagent.el (nnagent-request-type): Bind gnus-agent to nil to
avoid infinite recursion via gnus-get-function.
2004-10-18 Kevin Greiner <kgreiner@compsol.cc>
* lisp/gnus/gnus-agent.el (gnus-agent-synchronize-group-flags): When
necessary, pass full group name to gnus-request-set-marks.
(gnus-agent-synchronize-group-flags): Added support for sync'ing
tick marks.
(gnus-agent-synchronize-flags-server): Be silent when writing file.
2004-10-18 Kevin Greiner <kgreiner@compsol.cc>
* lisp/gnus/gnus-agent.el (gnus-agent-synchronize-group-flags): Replaced
gnus-request-update-info with explicit code to sync the in-memory
info read flags with the marks being sync'd to the backend.
2004-10-18 Kevin Greiner <kgreiner@compsol.cc>
* lisp/gnus/gnus-agent.el (gnus-agent-possibly-synchronize-flags): Ignore
servers that are offline. Avoids having gnus-agent-toggle-plugged
first ask if you want to open a server and then, even when you
responded with no, asking if you want to synchronize the server's
flags.
(gnus-agent-synchronize-flags-server): Rewrote read loop to handle
multi-line expressions.
(gnus-agent-synchronize-group-flags): New internal function.
Updates marks in memory (in the info structure) AND in the
backend.
(gnus-agent-check-overview-buffer): Fixed range of
deletion to remove entire duplicate line. Fixes merged article
number bug.
* lisp/gnus/gnus-util.el (gnus-remassoc): Fixed typo in documentation.
* lisp/gnus/nnagent.el (nnagent-request-set-mark): Use
gnus-agent-synchronize-group-flags, not backend's request-set-mark
method, to ensure that synchronization updates marks in the
backend and in the info (in memory) structure.
2004-10-18 Kevin Greiner <kgreiner@compsol.cc>
* lisp/gnus/gnus-agent.el (gnus-agent-synchronize-flags-server): Do nothing
unless plugged. Disable the agent so that an open failure causes
an error.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc> for Reiner Steib <Reiner.Steib@gmx.de>
* lisp/gnus/gnus-agent.el (gnus-agent-fetched-hook): Add :version.
(gnus-agent-go-online): Change :version.
(gnus-agent-expire-unagentized-dirs)
(gnus-agent-auto-agentize-methods): Add :version.
2004-10-18 Kevin Greiner <kgreiner@compsol.cc>
* lisp/gnus/legacy-gnus-agent.el (gnus-agent-convert-to-compressed-agentview-prompt):
New function. Used internally to only display 'gnus converting
files' message when actually necessary.
* lisp/gnus/gnus-sum.el (): Removed (require 'gnus-agent) as required
methods now autoloaded.
* lisp/gnus/gnus-int.el (gnus-request-move-article): Use
gnus-agent-unfetch-articles in place of gnus-agent-expire to
improve performance.
2004-10-18 Kevin Greiner <kgreiner@compsol.cc>
* lisp/gnus/gnus-agent.el (gnus-agent-cat-groups): rewrote avoiding defsetf
to avoid run-time CL dependencies.
(gnus-agent-unfetch-articles): New function.
(gnus-agent-fetch-headers): Use gnus-agent-braid-nov to validate
article numbers even when local .overview file is missing.
(gnus-agent-read-article-number): New function. Only accepts
27-bit article numbers.
(gnus-agent-copy-nov-line, gnus-agent-uncached-articles): Use
gnus-agent-read-article-number.
(gnus-agent-braid-nov): Rewrote to validate article numbers coming
from backend while recognizing that article numbers in .overview
must be valid.
* lisp/gnus/gnus-start.el (gnus-convert-old-newsrc): Changed message text as
some users confused by references to .newsrc when they only have a
.newsrc.eld file.
(gnus-convert-mark-converter-prompt,
gnus-convert-converter-needs-prompt): Fixed use of property list.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc> for Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/gnus/gnus-agent.el (gnus-agent-restore-gcc): Use ^ and regexp-quote.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc> for Lars Magne Ingebrigtsen <larsi@gnus.org>
* lisp/gnus/gnus-start.el (gnus-get-unread-articles-in-group): Don't do
stuff for non-living groups.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc> for Lars Magne Ingebrigtsen <larsi@gnus.org>
* lisp/gnus/gnus-agent.el (gnus-agent-synchronize-flags): Default to nil.
(gnus-agent-regenerate-group): Using nil messages aren't valid.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc> for Lars Magne Ingebrigtsen <larsi@gnus.org>
* lisp/gnus/gnus-agent.el (gnus-agent-read-agentview): Inline
gnus-uncompress-range.
2004-10-18 Kevin Greiner <kgreiner@xpediantsolutions.com>
* lisp/gnus/legacy-gnus-agent.el
(gnus-agent-convert-to-compressed-agentview): Fixed typos with
help from Florian Weimer <fw@deneb.enyo.de>
* lisp/gnus/gnus-agent.el (gnus-agentize):
gnus-agent-send-mail-real-function no longer set to current value
of message-send-mail-function but rather a lambda that calls
message-send-mail-function. The change makes the agent real-time
responsive to user changes to message-send-mail-function.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc> for Reiner Steib <Reiner.Steib@gmx.de>
* lisp/gnus/gnus-start.el (gnus-get-unread-articles): Fix last commit.
2004-10-18 Kevin Greiner <kgreiner@xpediantsolutions.com>
* lisp/gnus/gnus-cache.el (gnus-cache-rename-group): New function.
(gnus-cache-delete-group): New function.
* lisp/gnus/gnus-agent.el (gnus-agent-rename-group): New function.
(gnus-agent-delete-group): New function.
(gnus-agent-save-group-info): Use gnus-command-method when
`method' parameter is nil. Don't write nil entries into the
active file.
(gnus-agent-get-group-info): New function.
(gnus-agent-get-local): Added optional parameters to avoid calling
gnus-group-real-name and gnus-find-method-for-group.
(gnus-agent-set-local): Delete stored entry if either min, or max,
are nil.
(gnus-agent-fetch-session): Reworded error/quit messages. On
quit, use gnus-agent-regenerate-group to record existance of any
articles fetched to disk before the quit occurred.
* lisp/gnus/gnus-int.el (gnus-request-delete-group): Use
gnus-cache-delete-group and gnus-agent-delete-group to keep the
local disk in sync with the server.
(gnus-request-rename-group): Use
gnus-cache-rename-group and gnus-agent-rename-group to keep the
local disk in sync with the server.
* lisp/gnus/gnus-start.el (gnus-get-unread-articles): Cosmetic
simplification to logic.
* lisp/gnus/gnus-group.el (): (gnus-group-delete-group): No longer update
gnus-cache-active-altered as gnus-request-delete-group now keeps
the cache in sync.
(gnus-group-list-active): Let the agent store a server's active
list if currently plugged.
* lisp/gnus/gnus-util.el (gnus-rename-file): New function.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc> for Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/gnus/gnus-agent.el (gnus-agent-regenerate-group): Activate the group
when the group's active is not available.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc> for Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/gnus/gnus-agent.el (gnus-agent-read-agentview): Add a missing arg to
error.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc>
* lisp/gnus/gnus-start.el (gnus-convert-old-newsrc): Only write the
conversion message to newsrc-dribble when an actual conversion is
performed.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc>
* lisp/gnus/gnus-agent.el (gnus-agent-read-local): Bind
nnheader-file-coding-system to gnus-agent-file-coding-system to
avoid the implicit assumption that they will always be equal.
(gnus-agent-save-local): Bind buffer-file-coding-system, not
coding-system-for-write, as the with-temp-file macro first prints
to a buffer then saves the buffer.
2004-10-18 Kevin Greiner <kgreiner@xpediantsolutions.com>
* lisp/gnus/legacy-gnus-agent.el (): New. Provides converters that are only
loaded when gnus-convert-old-newsrc needs to call them.
* lisp/gnus/gnus-agent.el (gnus-agent-read-agentview): Removed support for
old file versions.
(gnus-group-prepare-hook): Removed function that converted list
form of gnus-agent-expire-days to group properties.
* lisp/gnus/gnus-start.el (gnus-convert-old-newsrc): Registered new
converters to handle old agent file formats. Added logic for a
"backup before upgrading warning".
(gnus-convert-mark-converter-prompt): Developers can mark
functions as needing (default), or not needing,
gnus-convert-old-newsrc's "backup before upgrading warning".
(gnus-convert-converter-needs-prompt): Tests whether the user
should be protected from potentially irreversable changes by the
function.
2004-10-18 Kevin Greiner <kgreiner@xpediantsolutions.com>
* lisp/gnus/gnus-int.el (gnus-request-accept-article): Inform the agent that
articles are being added to a group.
(gnus-request-replace-article): Inform the agent that articles
need to be uncached as the cached contents are no longer valid.
* lisp/gnus/gnus-agent.el (gnus-agent-file-header-cache): Removed.
(gnus-agent-possibly-alter-active): Avoid null in numeric
comparison.
(gnus-agent-set-local): Refuse to save null in local object table.
(gnus-agent-regenerate-group): The REREAD parameter can now be a
list of articles that will be marked as unread.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc>
* lisp/gnus/gnus-range.el (gnus-sorted-range-intersection): Now accepts
single-interval range of the form (min . max). Previously the
range had to look like ((min . max)). Likewise, return
(min . max) rather than ((min . max)).
(gnus-range-map): Use gnus-range-normalize to accept
single-interval range.
* lisp/gnus/gnus-sum.el (gnus-summary-highlight-line): Articles stored in
the cache, but not the agent, now appear with their usual face.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc>
* lisp/gnus/gnus-sum.el (gnus-adjust-marks): Now correctly handles a list of
marks consisting of a single range {for example, (3 . 5)} rather
than a list of a single range { ((3 . 5)) }.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc>
* lisp/gnus/gnus-sum.el (gnus-adjust-marks): Avoid splicing null INTO the
uncompressed list.
2004-10-18 Kevin Greiner <kevin.greiner@compsol.cc>
* lisp/gnus/gnus-draft.el (gnus-group-send-queue): Pass the group name
"nndraft:queue" along to gnus-draft-send. Use
gnus-agent-prompt-send-queue.
(gnus-draft-send): Rebind gnus-agent-queue-mail to nil when group
is "nndraft:queue". Suggested by Gaute Strokkenes
<gs234@srcf.ucam.org>
* lisp/gnus/gnus-group.el (gnus-group-catchup): Use new
gnus-sequence-of-unread-articles, not
gnus-list-of-unread-articles, to avoid exhausting memory with huge
numbers of articles. Use gnus-range-map to avoid having to
uncompress the unread list.
(gnus-group-archive-directory,
gnus-group-recent-archive-directory): Fixed invalid ange-ftp
reference.
* lisp/gnus/gnus-range.el (gnus-range-map): Iterate over list or sequence.
(gnus-sorted-range-intersection): Intersection of two ranges
without requiring that they first be uncompressed.
* lisp/gnus/gnus-start.el (gnus-activate-group): Unless blocked by the
caller, possibly expand the active range to include both cached
and agentized articles.
(gnus-convert-old-newsrc): Rewrote in anticipation of having
multiple version-dependent converters.
(gnus-groups-to-gnus-format): Replaced gnus-agent-save-groups with
gnus-agent-save-active.
(gnus-save-newsrc-file): Save dirty agent range limits.
* lisp/gnus/gnus-sum.el (gnus-select-newgroup): Replaced inline code with
gnus-agent-possibly-alter-active.
(gnus-adjust-marked-articles): Faster handling of simple lists
2004-10-18 David Edmondson <dme@dme.org>
* lisp/gnus/mm-view.el (mm-w3m-cid-retrieve-1): Don't use recursive call
excessively.
2004-10-19 22:38:28 +00:00
|
|
|
(gnus-agent gnus-plugged)); If we're actually plugged, store the active file in the agent.
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-read-active-file)))
|
|
|
|
;; Find all groups and sort them.
|
2019-04-11 17:24:36 +01:00
|
|
|
(let ((buffer-read-only nil))
|
1997-04-16 22:13:18 +00:00
|
|
|
(erase-buffer)
|
2019-04-11 17:24:36 +01:00
|
|
|
(dolist (group (sort (hash-table-keys gnus-active-hashtb) #'string<))
|
2016-02-13 18:13:03 +11:00
|
|
|
(add-text-properties
|
1997-04-16 22:13:18 +00:00
|
|
|
(point) (prog1 (1+ (point))
|
|
|
|
(insert " *: "
|
2018-11-16 12:53:56 -08:00
|
|
|
group
|
2000-09-19 13:37:09 +00:00
|
|
|
"\n"))
|
2019-03-25 13:27:07 -07:00
|
|
|
(list 'gnus-group group
|
1997-04-16 22:13:18 +00:00
|
|
|
'gnus-unread t
|
|
|
|
'gnus-level (inline (gnus-group-level group)))))
|
|
|
|
(goto-char (point-min))))
|
|
|
|
|
|
|
|
(defun gnus-activate-all-groups (level)
|
|
|
|
"Activate absolutely all groups."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (list gnus-level-unsubscribed) gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(let ((gnus-activate-level level)
|
|
|
|
(gnus-activate-foreign-newsgroups level))
|
|
|
|
(gnus-group-get-new-news)))
|
|
|
|
|
Merge changes made in Gnus master ever since feature freeze
:::::::::::::::::
::: doc/misc/ :::
:::::::::::::::::
2012-06-11 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.texi (POP before SMTP): POP-before-SMTP works with all sending
methods, so don't mention smtpmail here.
2012-05-04 Wolfgang Jenkner <wjenkner@inode.at>
* gnus.texi (Picons): Document gnus-picon-properties.
2012-06-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.texi: Remove mention of compilation, as that's no longer
supported.
2012-03-14 Christopher Schmidt <christopher@ch.ristopher.com>
* gnus.texi (Archived Messages): Mention
gnus-gcc-pre-body-encode-hook and gnus-gcc-post-body-encode-hook.
2012-02-16 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Various Summary Stuff):
Remove mention of `gnus-propagate-marks'.
2012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi: Remove mentions of nnml/nnfolder/nntp backend marks,
which no longer exist.
2012-02-08 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus.texi (Archived Messages):
Document gnus-gcc-self-resent-messages.
2012-02-06 Lars Ingebrigtsen <larsi@gnus.org>
* message.texi (Mail Variables):
Mention the optional user parameter for X-Message-SMTP-Method.
2012-02-02 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Posting Styles): Mention X-Message-SMTP-Method.
* message.texi (Mail Variables): Document X-Message-SMTP-Method.
2012-01-31 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Key Index): Change encoding to utf-8.
::::::::::::::::::
::: lisp/gnus/ :::
::::::::::::::::::
2012-06-26 Katsumi Yamaoka <yamaoka@jpl.org>
* mm-decode.el: Add coding cookie for a soft hyphen that mm-shr uses.
2012-06-11 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus-art.el (gnus-article-read-summary-keys): Protect against the key
being bound to a lambda form.
2012-05-04 Wolfgang Jenkner <wjenkner@inode.at>
* gnus-picon.el (gnus-picon-properties): New defcustom.
(gnus-picon-create-glyph): Use it.
2012-06-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* shr.el: Add a iso-8859-1 cookie to make stuff work under other
locales.
* mm-decode.el (mm-display-part): Dissect archives when hitting `RET'
on a handle.
* gnus-sum.el (gnus-summary-limit-to-author): Use the current From
address as the default.
* nnfolder.el (nnfolder-save-buffer): Delete old versions silently.
It makes no sense to query the user about internal files.
* gnus-spec.el: Remove all the byte-compilation stuff, since
benchmarking shows that it doesn't help when entering large summary
buffers.
* gnus-util.el (gnus-byte-code): Remove.
* gnus-spec.el (gnus-update-format-specifications): Remove outdated
grouplens stuff.
2012-06-07 Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk>
* message.el (message-buffers): Return all buffers derived from Message
to make `gnus-dired-attach' work with mu4e.
2012-05-28 Daiki Ueno <ueno@unixuser.org>
* mm-decode.el (mm-inhibit-auto-detect-attachment): New variable.
(mm-dissect-singlepart): Don't guess the MIME type of
application/octet-stream parts if mm-inhibit-auto-detect-attachment is
set.
(mm-dissect-multipart): Bind mm-inhibit-auto-detect-attachment if the
toplevel MIME type is multipart/encrypted.
2011-12-02 Wolfgang Jenkner <wjenkner@inode.at>
* gnus-agent.el (gnus-agent-save-active): Deal with the "groups" format.
In particular, add an optional argument and a docstring.
* gnus-start.el (gnus-groups-to-gnus-format): Use it.
* nntp.el (nntp-finish-retrieve-group-infos): Make `nntp-server-buffer'
current before calling `gnus-groups-to-gnus-format'.
Note that this was already the case for `gnus-active-to-gnus-format'.
2012-04-25 Katsumi Yamaoka <yamaoka@jpl.org>
* pop3.el (pop3-wait-for-messages): Fix retrieved data size calculation.
2012-04-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
* mm-decode.el (mm-dissect-buffer): Doc fix.
* gnus-sum.el (gnus-handle-ephemeral-exit):
Avoid creating the group buffer if it doesn't exist.
* gnus-group.el (gnus-group-read-ephemeral-group): If no quit-config
is given, mark the group as ephemeral with the current window conf.
* gnus-sum.el (gnus-set-global-variables): Don't assume that the group
buffer exists, which it doesn't if we haven't started Gnus.
(gnus-summary-exit): Allow quitting when we don't have a group buffer.
2012-04-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* mml.el (mml-generate-mime):
Allow specifying what the top-level part type is.
* gnus-sum.el (gnus-auto-center-summary):
`scroll-margin' isn't defined on XEmacs.
2012-04-10 Philipp Haselwarter <philipp.haselwarter@gmx.de> (tiny change)
* gnus-sum.el (gnus-auto-center-summary):
Set default to respect `scroll-margin'.
2012-04-10 Elias Oltmanns <eo@nebensachen.de> (tiny change)
* gnus-cite.el (gnus-dissect-cited-text): A single line without
citation prefix within a block of cited text should be considered
part of that block *only* if it is a blank line.
2012-04-02 Katsumi Yamaoka <yamaoka@jpl.org>
* shr.el (shr-find-fill-point): Remove unused code; don't break a line
before kinsoku-bol characters nor within kinsoku-eol characters.
2012-03-27 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-sync.el (gnus-topic-alist, gnus-group-topic)
(gnus-topic-create-topic, gnus-topic-enter-dribble):
Silence compiler.
(gnus-sync-read): Use mapc instead of mapcar.
* mm-archive.el: Require mm-decode for some macros.
(gnus-recursive-directory-files, mailcap-extension-to-mime):
Silence the byte compiler.
(mm-archive-decoders): New function that returns the value of
the mm-archive-decoders variable.
* mm-decode.el:
Don't require mm-archive; autoload mm-archive functions instead.
(mm-dissect-singlepart): Use the function mm-archive-decoders.
* nnmail.el (mail-send-and-exit): Silence the byte compiler.
2012-03-12 Peter Munster <pmrb@free.fr>
* gnus-demon.el (gnus-demon-timers): Now a plist (function -> timer).
(gnus-demon-cancel): Ditto.
(gnus-demon-run-callback): When function cannot be called due to low
idleness, call it when idleness reaches the expected value, instead
of waiting another timer period.
(gnus-demon-init): Add `time' to arguments of call-back.
2012-03-22 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.el: Register gnus-registry functions.
* gnus-registry.el (gnus-try-warping-via-registry):
Moved here and indent.
* gnus-int.el (gnus-warp-to-article):
Check whether the registry is enabled before warping.
2012-03-22 Dave Abrahams <dave@boostpro.com>
* gnus-sum.el (gnus-summary-insert-subject): Record information
in the registry about each article retrieved.
* gnus-int.el (gnus-select-group-with-message-id): New function.
(gnus-try-warping-via-registry): Ditto.
(gnus-warp-to-article): Fall back on the registry.
2012-03-22 Lars Magne Ingebrigtsen <larsi@gnus.org>
* nnimap.el (nnimap-fetch-partial-articles): Minor doc string fixup.
2012-03-22 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-msg.el (gnus-summary-resend-message-insert-gcc): Assume that
gnus-gcc-self-resent-messages may be a group parameter.
(gnus-summary-resend-message):
Don't encode encoded words in header when Gcc'ing resent message.
2012-03-19 Lars Magne Ingebrigtsen <larsi@gnus.org>
* shr.el (shr-insert): Treat non-breaking space just like normal
space. This seems to produce more pleasing results.
(shr-insert):
Only insert a blank line if we're starting from an image.
(shr-tag-br):
Allow <br> to end lines or to make a single blank line.
(shr-ensure-paragraph): Consider lines with white space to be blank.
2012-03-14 Christopher Schmidt <christopher@ch.ristopher.com>
* gnus-msg.el (gnus-inews-do-gcc): Add gnus-gcc-pre-body-encode-hook
and gnus-gcc-post-body-encode-hook.
2012-02-16 Lars Ingebrigtsen <larsi@gnus.org>
* mm-decode.el (mm-dissect-singlepart):
Guess what the type of application/octet-stream parts really is.
* gnus-sum.el (gnus-propagate-marks): Remove.
2012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
* nntp.el (nntp-coding-system-for-read): Remove.
(nntp-coding-system-for-write): Ditto.
(nntp-open-connection): Just use `binary' directly.
2012-02-14 Teodor Zlatanov <tzz@lifelogs.com>
* registry.el (registry-usage-test, registry-persistence-test):
Move to tests/gnustest-registry.el.
(registry-make-testable-db, registry-match-test)
(registry-instantiation-test): Move to tests/gnustest-registry.el.
* gnus-registry.el (gnus-registry-misc-test)
(gnus-registry-usage-test): Move to tests/gnustest-registry.el.
* tests/gnustest-registry.el:
New file with the registry and gnus-registry ERT tests.
2012-02-13 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-msg.el (gnus-summary-resend-message):
Make gnus-summary-resend-message-insert-gcc be last item in
message-header-setup-hook.
2012-02-13 Lars Ingebrigtsen <larsi@gnus.org>
* nnfolder.el (nnfolder-marks-directory, nnfolder-marks-is-evil)
(nnfolder-marks, nnfolder-marks-file-suffix)
(nnfolder-marks-modtime): Remove.
(nnfolder-open-server): Don't use marks.
(nnfolder-request-delete-group): Ditto.
(nnfolder-request-rename-group): Ditto.
(nnfolder-request-set-mark, nnfolder-request-marks)
(nnfolder-group-marks-pathname, nnfolder-marks-changed-p)
(nnfolder-save-marks, nnfolder-open-marks): Remove.
* nnml.el (nnml-marks-is-evil, nnml-marks-file-name, nnml-marks)
(nnml-marks-modtime): Remove.
(nnml-request-delete-group): Don't use marks.
(nnml-request-rename-group): Ditto.
(nnml-request-set-mark, nnml-request-marks, nnml-marks-changed-p)
(nnml-save-marks, nnml-open-marks): Remove.
* nntp.el (nntp-marks-is-evil, nntp-marks-file-name, nntp-marks)
(nntp-marks-modtime, nntp-marks-directory, nntp-request-set-mark)
(nntp-request-marks, nntp-marks-directory, nntp-marks-changed-p)
(nntp-save-marks, nntp-open-marks, nntp-possibly-create-directory)
(nntp-server-to-method-cache): Remove.
* shr.el (shr-rescale-image): Fix wrong merge.
2012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
* shr.el (shr-remove-trailing-whitespace):
Really delete the padding on too-wide lines.
2012-02-09 Lars Ingebrigtsen <larsi@gnus.org>
* mm-archive.el (mm-archive-dissect-and-inline): New function.
(mm-archive-dissect-and-inline): Fix up the undisplayer.
* mm-decode.el (mm-display-external): Output the text from
the command in the buffer after the command finished.
This makes text-based commands behave better.
2012-02-07 Lars Ingebrigtsen <larsi@gnus.org>
* message.el (smtpmail-smtp-user): Silence compiler warning.
2012-02-06 Lars Ingebrigtsen <larsi@gnus.org>
* message.el (message-multi-smtp-send-mail):
Also allow specifying the SMTP user name.
2012-02-06 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-sum.el (gnus-summary-article-map): Fix typo.
2012-02-02 Lars Ingebrigtsen <larsi@gnus.org>
* message.el (message-multi-smtp-send-mail): New function.
(message-multi-smtp-send-mail): Respect the X-Message-SMTP-Method
header to implement multi-SMTP functionality.
* gnus-agent.el (gnus-agent-send-mail-function): Removed.
(gnus-agentize): Don't set it.
(gnus-agent-send-mail): Don't use it.
* gnus-sum.el (gnus-summary-widget-backward):
New function and keystroke.
* shr.el (shr-put-image): Remove underlines from sliced images.
(shr-zoom-image): Compute the region to be replaced more correctly.
2012-02-02 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-msg.el (gnus-gcc-self-resent-messages): New user option.
(gnus-summary-resend-message-insert-gcc): New function.
(gnus-summary-resend-message): Modify message-header-setup-hook and
message-sent-hook to make it work for Gcc.
(gnus-inews-do-gcc): Update the number of unread articles of groups
that messages are Gcc'd to.
* message.el (message-resend): Run message-sent-hook to do Gcc.
2012-02-01 Lars Ingebrigtsen <larsi@gnus.org>
* gnus-registry.el (gnus-registry-fixup-registry):
Move the message to a higher level to silence compilation.
* gnus-art.el (gnus-shr-put-image): Take and pass on a `flags'
parameter to allow controlling the scaling.
* shr.el (shr-zoom-image): New command and keystroke.
(shr-put-image): Take a `size' flag to say how to scale the image.
* mm-archive.el (mm-dissect-archive): Use it to get all file names.
Use recursive deletion.
(mm-dissect-archive): Add support for zip files.
* gnus-util.el (gnus-recursive-directory-files): New function.
* mm-archive.el (mm-archive-list-files): Inline text and image parts.
(mm-archive-decoders): Add tgz support.
* mm-decode.el (mm-shr): Make sure that the HTML ends with a newline.
Otherwise inserting text into the Gnus buffer can look odd.
* gnus-art.el (gnus-mime-inline-part): Slight clean-up.
* mm-archive.el (mm-archive-decoders): Add support for tar.
* gnus.el (gnus-logo-color-alist): Change the colours for Ma Gnus.
* nnmail.el (nnmail-extra-headers): Add Cc to the default.
2012-01-31 Lars Ingebrigtsen <larsi@gnus.org>
* mm-decode.el (mm-dissect-singlepart): Check that the decoder exists.
* mm-archive.el: New file.
* mm-decode.el (mm-dissect-singlepart):
Use it to decode ms-tnef files.
* mm-util.el (mm-find-buffer-file-coding-system): Comment fix.
* message.el (message-goto-*): Make all the `message-goto-*' commands
push the mark before moving point. This makes it easier to go back
to where you came from after editing whatever you jumped to.
2012-01-07 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el (gnus-sync-newsrc-groups): Quote normally.
(gnus-sync-lesync-pre-save-group-entry): Remove invalid invlists.
(gnus-sync-lesync-normalize-group-entry): Ignore a few more keys.
2011-11-09 Teodor Zlatanov <tzz@lifelogs.com>
* spam.el: Move BBDB autoloads.
(spam-exists-in-BBDB-p):
New function to do the BBDB search directly in BBDB 2 and 3.
(spam-check-BBDB): Use it.
(spam-enter-ham-BBDB): Use it.
2011-10-31 Peter Munster <pmrb@free.fr> (tiny change)
* gnus-group.el (gnus-group-get-new-news):
New parameter `one-level' for scanning exactly one level.
* gnus-start.el (gnus-get-unread-articles): Ditto.
2011-11-03 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: More commentary about setup.
2011-11-02 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: More commentary about `gnus-sync-read' issues.
2011-10-31 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: Improve docs about CouchDB admins.
2011-10-29 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el (gnus-sync-lesync-setup): Fix salt when user setup is
not needed. Provide xmlplistread list function to produce XML plist
output for non-Gnus LeSync clients.
2011-10-27 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: Add LeSync synchronization backend and logic to read
and save against it. Group subscriptions, read marks, other marks,
subscription levels, topic names, and topic offsets (the group's
position within the topic) are saved. This is an experimental
backend and may change significantly. Load json.el from
the gnus-fallback-lib if it's not available otherwise.
(gnus-sync-save): Don't use `apply-partially' because of XEmacs.
2011-04-20 David Engster <dengste@eml.cc>
* tests/gnustest-nntp.el: New file for simple NNTP testing.
2012-06-26 22:52:31 +00:00
|
|
|
(defun gnus-group-get-new-news (&optional arg one-level)
|
1997-04-16 22:13:18 +00:00
|
|
|
"Get newly arrived articles.
|
|
|
|
If ARG is a number, it specifies which levels you are interested in
|
|
|
|
re-scanning. If ARG is non-nil and not a number, this will force
|
Merge changes made in Gnus master ever since feature freeze
:::::::::::::::::
::: doc/misc/ :::
:::::::::::::::::
2012-06-11 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.texi (POP before SMTP): POP-before-SMTP works with all sending
methods, so don't mention smtpmail here.
2012-05-04 Wolfgang Jenkner <wjenkner@inode.at>
* gnus.texi (Picons): Document gnus-picon-properties.
2012-06-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.texi: Remove mention of compilation, as that's no longer
supported.
2012-03-14 Christopher Schmidt <christopher@ch.ristopher.com>
* gnus.texi (Archived Messages): Mention
gnus-gcc-pre-body-encode-hook and gnus-gcc-post-body-encode-hook.
2012-02-16 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Various Summary Stuff):
Remove mention of `gnus-propagate-marks'.
2012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi: Remove mentions of nnml/nnfolder/nntp backend marks,
which no longer exist.
2012-02-08 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus.texi (Archived Messages):
Document gnus-gcc-self-resent-messages.
2012-02-06 Lars Ingebrigtsen <larsi@gnus.org>
* message.texi (Mail Variables):
Mention the optional user parameter for X-Message-SMTP-Method.
2012-02-02 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Posting Styles): Mention X-Message-SMTP-Method.
* message.texi (Mail Variables): Document X-Message-SMTP-Method.
2012-01-31 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Key Index): Change encoding to utf-8.
::::::::::::::::::
::: lisp/gnus/ :::
::::::::::::::::::
2012-06-26 Katsumi Yamaoka <yamaoka@jpl.org>
* mm-decode.el: Add coding cookie for a soft hyphen that mm-shr uses.
2012-06-11 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus-art.el (gnus-article-read-summary-keys): Protect against the key
being bound to a lambda form.
2012-05-04 Wolfgang Jenkner <wjenkner@inode.at>
* gnus-picon.el (gnus-picon-properties): New defcustom.
(gnus-picon-create-glyph): Use it.
2012-06-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* shr.el: Add a iso-8859-1 cookie to make stuff work under other
locales.
* mm-decode.el (mm-display-part): Dissect archives when hitting `RET'
on a handle.
* gnus-sum.el (gnus-summary-limit-to-author): Use the current From
address as the default.
* nnfolder.el (nnfolder-save-buffer): Delete old versions silently.
It makes no sense to query the user about internal files.
* gnus-spec.el: Remove all the byte-compilation stuff, since
benchmarking shows that it doesn't help when entering large summary
buffers.
* gnus-util.el (gnus-byte-code): Remove.
* gnus-spec.el (gnus-update-format-specifications): Remove outdated
grouplens stuff.
2012-06-07 Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk>
* message.el (message-buffers): Return all buffers derived from Message
to make `gnus-dired-attach' work with mu4e.
2012-05-28 Daiki Ueno <ueno@unixuser.org>
* mm-decode.el (mm-inhibit-auto-detect-attachment): New variable.
(mm-dissect-singlepart): Don't guess the MIME type of
application/octet-stream parts if mm-inhibit-auto-detect-attachment is
set.
(mm-dissect-multipart): Bind mm-inhibit-auto-detect-attachment if the
toplevel MIME type is multipart/encrypted.
2011-12-02 Wolfgang Jenkner <wjenkner@inode.at>
* gnus-agent.el (gnus-agent-save-active): Deal with the "groups" format.
In particular, add an optional argument and a docstring.
* gnus-start.el (gnus-groups-to-gnus-format): Use it.
* nntp.el (nntp-finish-retrieve-group-infos): Make `nntp-server-buffer'
current before calling `gnus-groups-to-gnus-format'.
Note that this was already the case for `gnus-active-to-gnus-format'.
2012-04-25 Katsumi Yamaoka <yamaoka@jpl.org>
* pop3.el (pop3-wait-for-messages): Fix retrieved data size calculation.
2012-04-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
* mm-decode.el (mm-dissect-buffer): Doc fix.
* gnus-sum.el (gnus-handle-ephemeral-exit):
Avoid creating the group buffer if it doesn't exist.
* gnus-group.el (gnus-group-read-ephemeral-group): If no quit-config
is given, mark the group as ephemeral with the current window conf.
* gnus-sum.el (gnus-set-global-variables): Don't assume that the group
buffer exists, which it doesn't if we haven't started Gnus.
(gnus-summary-exit): Allow quitting when we don't have a group buffer.
2012-04-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* mml.el (mml-generate-mime):
Allow specifying what the top-level part type is.
* gnus-sum.el (gnus-auto-center-summary):
`scroll-margin' isn't defined on XEmacs.
2012-04-10 Philipp Haselwarter <philipp.haselwarter@gmx.de> (tiny change)
* gnus-sum.el (gnus-auto-center-summary):
Set default to respect `scroll-margin'.
2012-04-10 Elias Oltmanns <eo@nebensachen.de> (tiny change)
* gnus-cite.el (gnus-dissect-cited-text): A single line without
citation prefix within a block of cited text should be considered
part of that block *only* if it is a blank line.
2012-04-02 Katsumi Yamaoka <yamaoka@jpl.org>
* shr.el (shr-find-fill-point): Remove unused code; don't break a line
before kinsoku-bol characters nor within kinsoku-eol characters.
2012-03-27 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-sync.el (gnus-topic-alist, gnus-group-topic)
(gnus-topic-create-topic, gnus-topic-enter-dribble):
Silence compiler.
(gnus-sync-read): Use mapc instead of mapcar.
* mm-archive.el: Require mm-decode for some macros.
(gnus-recursive-directory-files, mailcap-extension-to-mime):
Silence the byte compiler.
(mm-archive-decoders): New function that returns the value of
the mm-archive-decoders variable.
* mm-decode.el:
Don't require mm-archive; autoload mm-archive functions instead.
(mm-dissect-singlepart): Use the function mm-archive-decoders.
* nnmail.el (mail-send-and-exit): Silence the byte compiler.
2012-03-12 Peter Munster <pmrb@free.fr>
* gnus-demon.el (gnus-demon-timers): Now a plist (function -> timer).
(gnus-demon-cancel): Ditto.
(gnus-demon-run-callback): When function cannot be called due to low
idleness, call it when idleness reaches the expected value, instead
of waiting another timer period.
(gnus-demon-init): Add `time' to arguments of call-back.
2012-03-22 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.el: Register gnus-registry functions.
* gnus-registry.el (gnus-try-warping-via-registry):
Moved here and indent.
* gnus-int.el (gnus-warp-to-article):
Check whether the registry is enabled before warping.
2012-03-22 Dave Abrahams <dave@boostpro.com>
* gnus-sum.el (gnus-summary-insert-subject): Record information
in the registry about each article retrieved.
* gnus-int.el (gnus-select-group-with-message-id): New function.
(gnus-try-warping-via-registry): Ditto.
(gnus-warp-to-article): Fall back on the registry.
2012-03-22 Lars Magne Ingebrigtsen <larsi@gnus.org>
* nnimap.el (nnimap-fetch-partial-articles): Minor doc string fixup.
2012-03-22 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-msg.el (gnus-summary-resend-message-insert-gcc): Assume that
gnus-gcc-self-resent-messages may be a group parameter.
(gnus-summary-resend-message):
Don't encode encoded words in header when Gcc'ing resent message.
2012-03-19 Lars Magne Ingebrigtsen <larsi@gnus.org>
* shr.el (shr-insert): Treat non-breaking space just like normal
space. This seems to produce more pleasing results.
(shr-insert):
Only insert a blank line if we're starting from an image.
(shr-tag-br):
Allow <br> to end lines or to make a single blank line.
(shr-ensure-paragraph): Consider lines with white space to be blank.
2012-03-14 Christopher Schmidt <christopher@ch.ristopher.com>
* gnus-msg.el (gnus-inews-do-gcc): Add gnus-gcc-pre-body-encode-hook
and gnus-gcc-post-body-encode-hook.
2012-02-16 Lars Ingebrigtsen <larsi@gnus.org>
* mm-decode.el (mm-dissect-singlepart):
Guess what the type of application/octet-stream parts really is.
* gnus-sum.el (gnus-propagate-marks): Remove.
2012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
* nntp.el (nntp-coding-system-for-read): Remove.
(nntp-coding-system-for-write): Ditto.
(nntp-open-connection): Just use `binary' directly.
2012-02-14 Teodor Zlatanov <tzz@lifelogs.com>
* registry.el (registry-usage-test, registry-persistence-test):
Move to tests/gnustest-registry.el.
(registry-make-testable-db, registry-match-test)
(registry-instantiation-test): Move to tests/gnustest-registry.el.
* gnus-registry.el (gnus-registry-misc-test)
(gnus-registry-usage-test): Move to tests/gnustest-registry.el.
* tests/gnustest-registry.el:
New file with the registry and gnus-registry ERT tests.
2012-02-13 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-msg.el (gnus-summary-resend-message):
Make gnus-summary-resend-message-insert-gcc be last item in
message-header-setup-hook.
2012-02-13 Lars Ingebrigtsen <larsi@gnus.org>
* nnfolder.el (nnfolder-marks-directory, nnfolder-marks-is-evil)
(nnfolder-marks, nnfolder-marks-file-suffix)
(nnfolder-marks-modtime): Remove.
(nnfolder-open-server): Don't use marks.
(nnfolder-request-delete-group): Ditto.
(nnfolder-request-rename-group): Ditto.
(nnfolder-request-set-mark, nnfolder-request-marks)
(nnfolder-group-marks-pathname, nnfolder-marks-changed-p)
(nnfolder-save-marks, nnfolder-open-marks): Remove.
* nnml.el (nnml-marks-is-evil, nnml-marks-file-name, nnml-marks)
(nnml-marks-modtime): Remove.
(nnml-request-delete-group): Don't use marks.
(nnml-request-rename-group): Ditto.
(nnml-request-set-mark, nnml-request-marks, nnml-marks-changed-p)
(nnml-save-marks, nnml-open-marks): Remove.
* nntp.el (nntp-marks-is-evil, nntp-marks-file-name, nntp-marks)
(nntp-marks-modtime, nntp-marks-directory, nntp-request-set-mark)
(nntp-request-marks, nntp-marks-directory, nntp-marks-changed-p)
(nntp-save-marks, nntp-open-marks, nntp-possibly-create-directory)
(nntp-server-to-method-cache): Remove.
* shr.el (shr-rescale-image): Fix wrong merge.
2012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
* shr.el (shr-remove-trailing-whitespace):
Really delete the padding on too-wide lines.
2012-02-09 Lars Ingebrigtsen <larsi@gnus.org>
* mm-archive.el (mm-archive-dissect-and-inline): New function.
(mm-archive-dissect-and-inline): Fix up the undisplayer.
* mm-decode.el (mm-display-external): Output the text from
the command in the buffer after the command finished.
This makes text-based commands behave better.
2012-02-07 Lars Ingebrigtsen <larsi@gnus.org>
* message.el (smtpmail-smtp-user): Silence compiler warning.
2012-02-06 Lars Ingebrigtsen <larsi@gnus.org>
* message.el (message-multi-smtp-send-mail):
Also allow specifying the SMTP user name.
2012-02-06 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-sum.el (gnus-summary-article-map): Fix typo.
2012-02-02 Lars Ingebrigtsen <larsi@gnus.org>
* message.el (message-multi-smtp-send-mail): New function.
(message-multi-smtp-send-mail): Respect the X-Message-SMTP-Method
header to implement multi-SMTP functionality.
* gnus-agent.el (gnus-agent-send-mail-function): Removed.
(gnus-agentize): Don't set it.
(gnus-agent-send-mail): Don't use it.
* gnus-sum.el (gnus-summary-widget-backward):
New function and keystroke.
* shr.el (shr-put-image): Remove underlines from sliced images.
(shr-zoom-image): Compute the region to be replaced more correctly.
2012-02-02 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-msg.el (gnus-gcc-self-resent-messages): New user option.
(gnus-summary-resend-message-insert-gcc): New function.
(gnus-summary-resend-message): Modify message-header-setup-hook and
message-sent-hook to make it work for Gcc.
(gnus-inews-do-gcc): Update the number of unread articles of groups
that messages are Gcc'd to.
* message.el (message-resend): Run message-sent-hook to do Gcc.
2012-02-01 Lars Ingebrigtsen <larsi@gnus.org>
* gnus-registry.el (gnus-registry-fixup-registry):
Move the message to a higher level to silence compilation.
* gnus-art.el (gnus-shr-put-image): Take and pass on a `flags'
parameter to allow controlling the scaling.
* shr.el (shr-zoom-image): New command and keystroke.
(shr-put-image): Take a `size' flag to say how to scale the image.
* mm-archive.el (mm-dissect-archive): Use it to get all file names.
Use recursive deletion.
(mm-dissect-archive): Add support for zip files.
* gnus-util.el (gnus-recursive-directory-files): New function.
* mm-archive.el (mm-archive-list-files): Inline text and image parts.
(mm-archive-decoders): Add tgz support.
* mm-decode.el (mm-shr): Make sure that the HTML ends with a newline.
Otherwise inserting text into the Gnus buffer can look odd.
* gnus-art.el (gnus-mime-inline-part): Slight clean-up.
* mm-archive.el (mm-archive-decoders): Add support for tar.
* gnus.el (gnus-logo-color-alist): Change the colours for Ma Gnus.
* nnmail.el (nnmail-extra-headers): Add Cc to the default.
2012-01-31 Lars Ingebrigtsen <larsi@gnus.org>
* mm-decode.el (mm-dissect-singlepart): Check that the decoder exists.
* mm-archive.el: New file.
* mm-decode.el (mm-dissect-singlepart):
Use it to decode ms-tnef files.
* mm-util.el (mm-find-buffer-file-coding-system): Comment fix.
* message.el (message-goto-*): Make all the `message-goto-*' commands
push the mark before moving point. This makes it easier to go back
to where you came from after editing whatever you jumped to.
2012-01-07 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el (gnus-sync-newsrc-groups): Quote normally.
(gnus-sync-lesync-pre-save-group-entry): Remove invalid invlists.
(gnus-sync-lesync-normalize-group-entry): Ignore a few more keys.
2011-11-09 Teodor Zlatanov <tzz@lifelogs.com>
* spam.el: Move BBDB autoloads.
(spam-exists-in-BBDB-p):
New function to do the BBDB search directly in BBDB 2 and 3.
(spam-check-BBDB): Use it.
(spam-enter-ham-BBDB): Use it.
2011-10-31 Peter Munster <pmrb@free.fr> (tiny change)
* gnus-group.el (gnus-group-get-new-news):
New parameter `one-level' for scanning exactly one level.
* gnus-start.el (gnus-get-unread-articles): Ditto.
2011-11-03 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: More commentary about setup.
2011-11-02 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: More commentary about `gnus-sync-read' issues.
2011-10-31 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: Improve docs about CouchDB admins.
2011-10-29 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el (gnus-sync-lesync-setup): Fix salt when user setup is
not needed. Provide xmlplistread list function to produce XML plist
output for non-Gnus LeSync clients.
2011-10-27 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: Add LeSync synchronization backend and logic to read
and save against it. Group subscriptions, read marks, other marks,
subscription levels, topic names, and topic offsets (the group's
position within the topic) are saved. This is an experimental
backend and may change significantly. Load json.el from
the gnus-fallback-lib if it's not available otherwise.
(gnus-sync-save): Don't use `apply-partially' because of XEmacs.
2011-04-20 David Engster <dengste@eml.cc>
* tests/gnustest-nntp.el: New file for simple NNTP testing.
2012-06-26 22:52:31 +00:00
|
|
|
\"hard\" re-reading of the active files from all servers.
|
|
|
|
If ONE-LEVEL is not nil, then re-scan only the specified level,
|
|
|
|
otherwise all levels below ARG will be scanned too."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
2000-09-19 13:37:09 +00:00
|
|
|
(require 'nnmail)
|
|
|
|
(let ((gnus-inhibit-demon t)
|
|
|
|
;; Binding this variable will inhibit multiple fetchings
|
|
|
|
;; of the same mail source.
|
|
|
|
(nnmail-fetched-sources (list t)))
|
2004-09-04 13:13:48 +00:00
|
|
|
(gnus-run-hooks 'gnus-get-top-new-news-hook)
|
1999-02-20 14:05:57 +00:00
|
|
|
(gnus-run-hooks 'gnus-get-new-news-hook)
|
1997-04-16 22:13:18 +00:00
|
|
|
|
2020-07-17 01:46:57 +02:00
|
|
|
;; Read any child files.
|
|
|
|
(unless gnus-child
|
|
|
|
(gnus-parent-read-child-newsrc))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
Merge changes made in Gnus master ever since feature freeze
:::::::::::::::::
::: doc/misc/ :::
:::::::::::::::::
2012-06-11 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.texi (POP before SMTP): POP-before-SMTP works with all sending
methods, so don't mention smtpmail here.
2012-05-04 Wolfgang Jenkner <wjenkner@inode.at>
* gnus.texi (Picons): Document gnus-picon-properties.
2012-06-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.texi: Remove mention of compilation, as that's no longer
supported.
2012-03-14 Christopher Schmidt <christopher@ch.ristopher.com>
* gnus.texi (Archived Messages): Mention
gnus-gcc-pre-body-encode-hook and gnus-gcc-post-body-encode-hook.
2012-02-16 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Various Summary Stuff):
Remove mention of `gnus-propagate-marks'.
2012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi: Remove mentions of nnml/nnfolder/nntp backend marks,
which no longer exist.
2012-02-08 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus.texi (Archived Messages):
Document gnus-gcc-self-resent-messages.
2012-02-06 Lars Ingebrigtsen <larsi@gnus.org>
* message.texi (Mail Variables):
Mention the optional user parameter for X-Message-SMTP-Method.
2012-02-02 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Posting Styles): Mention X-Message-SMTP-Method.
* message.texi (Mail Variables): Document X-Message-SMTP-Method.
2012-01-31 Lars Ingebrigtsen <larsi@gnus.org>
* gnus.texi (Key Index): Change encoding to utf-8.
::::::::::::::::::
::: lisp/gnus/ :::
::::::::::::::::::
2012-06-26 Katsumi Yamaoka <yamaoka@jpl.org>
* mm-decode.el: Add coding cookie for a soft hyphen that mm-shr uses.
2012-06-11 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus-art.el (gnus-article-read-summary-keys): Protect against the key
being bound to a lambda form.
2012-05-04 Wolfgang Jenkner <wjenkner@inode.at>
* gnus-picon.el (gnus-picon-properties): New defcustom.
(gnus-picon-create-glyph): Use it.
2012-06-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* shr.el: Add a iso-8859-1 cookie to make stuff work under other
locales.
* mm-decode.el (mm-display-part): Dissect archives when hitting `RET'
on a handle.
* gnus-sum.el (gnus-summary-limit-to-author): Use the current From
address as the default.
* nnfolder.el (nnfolder-save-buffer): Delete old versions silently.
It makes no sense to query the user about internal files.
* gnus-spec.el: Remove all the byte-compilation stuff, since
benchmarking shows that it doesn't help when entering large summary
buffers.
* gnus-util.el (gnus-byte-code): Remove.
* gnus-spec.el (gnus-update-format-specifications): Remove outdated
grouplens stuff.
2012-06-07 Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk>
* message.el (message-buffers): Return all buffers derived from Message
to make `gnus-dired-attach' work with mu4e.
2012-05-28 Daiki Ueno <ueno@unixuser.org>
* mm-decode.el (mm-inhibit-auto-detect-attachment): New variable.
(mm-dissect-singlepart): Don't guess the MIME type of
application/octet-stream parts if mm-inhibit-auto-detect-attachment is
set.
(mm-dissect-multipart): Bind mm-inhibit-auto-detect-attachment if the
toplevel MIME type is multipart/encrypted.
2011-12-02 Wolfgang Jenkner <wjenkner@inode.at>
* gnus-agent.el (gnus-agent-save-active): Deal with the "groups" format.
In particular, add an optional argument and a docstring.
* gnus-start.el (gnus-groups-to-gnus-format): Use it.
* nntp.el (nntp-finish-retrieve-group-infos): Make `nntp-server-buffer'
current before calling `gnus-groups-to-gnus-format'.
Note that this was already the case for `gnus-active-to-gnus-format'.
2012-04-25 Katsumi Yamaoka <yamaoka@jpl.org>
* pop3.el (pop3-wait-for-messages): Fix retrieved data size calculation.
2012-04-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
* mm-decode.el (mm-dissect-buffer): Doc fix.
* gnus-sum.el (gnus-handle-ephemeral-exit):
Avoid creating the group buffer if it doesn't exist.
* gnus-group.el (gnus-group-read-ephemeral-group): If no quit-config
is given, mark the group as ephemeral with the current window conf.
* gnus-sum.el (gnus-set-global-variables): Don't assume that the group
buffer exists, which it doesn't if we haven't started Gnus.
(gnus-summary-exit): Allow quitting when we don't have a group buffer.
2012-04-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
* mml.el (mml-generate-mime):
Allow specifying what the top-level part type is.
* gnus-sum.el (gnus-auto-center-summary):
`scroll-margin' isn't defined on XEmacs.
2012-04-10 Philipp Haselwarter <philipp.haselwarter@gmx.de> (tiny change)
* gnus-sum.el (gnus-auto-center-summary):
Set default to respect `scroll-margin'.
2012-04-10 Elias Oltmanns <eo@nebensachen.de> (tiny change)
* gnus-cite.el (gnus-dissect-cited-text): A single line without
citation prefix within a block of cited text should be considered
part of that block *only* if it is a blank line.
2012-04-02 Katsumi Yamaoka <yamaoka@jpl.org>
* shr.el (shr-find-fill-point): Remove unused code; don't break a line
before kinsoku-bol characters nor within kinsoku-eol characters.
2012-03-27 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-sync.el (gnus-topic-alist, gnus-group-topic)
(gnus-topic-create-topic, gnus-topic-enter-dribble):
Silence compiler.
(gnus-sync-read): Use mapc instead of mapcar.
* mm-archive.el: Require mm-decode for some macros.
(gnus-recursive-directory-files, mailcap-extension-to-mime):
Silence the byte compiler.
(mm-archive-decoders): New function that returns the value of
the mm-archive-decoders variable.
* mm-decode.el:
Don't require mm-archive; autoload mm-archive functions instead.
(mm-dissect-singlepart): Use the function mm-archive-decoders.
* nnmail.el (mail-send-and-exit): Silence the byte compiler.
2012-03-12 Peter Munster <pmrb@free.fr>
* gnus-demon.el (gnus-demon-timers): Now a plist (function -> timer).
(gnus-demon-cancel): Ditto.
(gnus-demon-run-callback): When function cannot be called due to low
idleness, call it when idleness reaches the expected value, instead
of waiting another timer period.
(gnus-demon-init): Add `time' to arguments of call-back.
2012-03-22 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.el: Register gnus-registry functions.
* gnus-registry.el (gnus-try-warping-via-registry):
Moved here and indent.
* gnus-int.el (gnus-warp-to-article):
Check whether the registry is enabled before warping.
2012-03-22 Dave Abrahams <dave@boostpro.com>
* gnus-sum.el (gnus-summary-insert-subject): Record information
in the registry about each article retrieved.
* gnus-int.el (gnus-select-group-with-message-id): New function.
(gnus-try-warping-via-registry): Ditto.
(gnus-warp-to-article): Fall back on the registry.
2012-03-22 Lars Magne Ingebrigtsen <larsi@gnus.org>
* nnimap.el (nnimap-fetch-partial-articles): Minor doc string fixup.
2012-03-22 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-msg.el (gnus-summary-resend-message-insert-gcc): Assume that
gnus-gcc-self-resent-messages may be a group parameter.
(gnus-summary-resend-message):
Don't encode encoded words in header when Gcc'ing resent message.
2012-03-19 Lars Magne Ingebrigtsen <larsi@gnus.org>
* shr.el (shr-insert): Treat non-breaking space just like normal
space. This seems to produce more pleasing results.
(shr-insert):
Only insert a blank line if we're starting from an image.
(shr-tag-br):
Allow <br> to end lines or to make a single blank line.
(shr-ensure-paragraph): Consider lines with white space to be blank.
2012-03-14 Christopher Schmidt <christopher@ch.ristopher.com>
* gnus-msg.el (gnus-inews-do-gcc): Add gnus-gcc-pre-body-encode-hook
and gnus-gcc-post-body-encode-hook.
2012-02-16 Lars Ingebrigtsen <larsi@gnus.org>
* mm-decode.el (mm-dissect-singlepart):
Guess what the type of application/octet-stream parts really is.
* gnus-sum.el (gnus-propagate-marks): Remove.
2012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
* nntp.el (nntp-coding-system-for-read): Remove.
(nntp-coding-system-for-write): Ditto.
(nntp-open-connection): Just use `binary' directly.
2012-02-14 Teodor Zlatanov <tzz@lifelogs.com>
* registry.el (registry-usage-test, registry-persistence-test):
Move to tests/gnustest-registry.el.
(registry-make-testable-db, registry-match-test)
(registry-instantiation-test): Move to tests/gnustest-registry.el.
* gnus-registry.el (gnus-registry-misc-test)
(gnus-registry-usage-test): Move to tests/gnustest-registry.el.
* tests/gnustest-registry.el:
New file with the registry and gnus-registry ERT tests.
2012-02-13 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-msg.el (gnus-summary-resend-message):
Make gnus-summary-resend-message-insert-gcc be last item in
message-header-setup-hook.
2012-02-13 Lars Ingebrigtsen <larsi@gnus.org>
* nnfolder.el (nnfolder-marks-directory, nnfolder-marks-is-evil)
(nnfolder-marks, nnfolder-marks-file-suffix)
(nnfolder-marks-modtime): Remove.
(nnfolder-open-server): Don't use marks.
(nnfolder-request-delete-group): Ditto.
(nnfolder-request-rename-group): Ditto.
(nnfolder-request-set-mark, nnfolder-request-marks)
(nnfolder-group-marks-pathname, nnfolder-marks-changed-p)
(nnfolder-save-marks, nnfolder-open-marks): Remove.
* nnml.el (nnml-marks-is-evil, nnml-marks-file-name, nnml-marks)
(nnml-marks-modtime): Remove.
(nnml-request-delete-group): Don't use marks.
(nnml-request-rename-group): Ditto.
(nnml-request-set-mark, nnml-request-marks, nnml-marks-changed-p)
(nnml-save-marks, nnml-open-marks): Remove.
* nntp.el (nntp-marks-is-evil, nntp-marks-file-name, nntp-marks)
(nntp-marks-modtime, nntp-marks-directory, nntp-request-set-mark)
(nntp-request-marks, nntp-marks-directory, nntp-marks-changed-p)
(nntp-save-marks, nntp-open-marks, nntp-possibly-create-directory)
(nntp-server-to-method-cache): Remove.
* shr.el (shr-rescale-image): Fix wrong merge.
2012-02-15 Lars Ingebrigtsen <larsi@gnus.org>
* shr.el (shr-remove-trailing-whitespace):
Really delete the padding on too-wide lines.
2012-02-09 Lars Ingebrigtsen <larsi@gnus.org>
* mm-archive.el (mm-archive-dissect-and-inline): New function.
(mm-archive-dissect-and-inline): Fix up the undisplayer.
* mm-decode.el (mm-display-external): Output the text from
the command in the buffer after the command finished.
This makes text-based commands behave better.
2012-02-07 Lars Ingebrigtsen <larsi@gnus.org>
* message.el (smtpmail-smtp-user): Silence compiler warning.
2012-02-06 Lars Ingebrigtsen <larsi@gnus.org>
* message.el (message-multi-smtp-send-mail):
Also allow specifying the SMTP user name.
2012-02-06 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-sum.el (gnus-summary-article-map): Fix typo.
2012-02-02 Lars Ingebrigtsen <larsi@gnus.org>
* message.el (message-multi-smtp-send-mail): New function.
(message-multi-smtp-send-mail): Respect the X-Message-SMTP-Method
header to implement multi-SMTP functionality.
* gnus-agent.el (gnus-agent-send-mail-function): Removed.
(gnus-agentize): Don't set it.
(gnus-agent-send-mail): Don't use it.
* gnus-sum.el (gnus-summary-widget-backward):
New function and keystroke.
* shr.el (shr-put-image): Remove underlines from sliced images.
(shr-zoom-image): Compute the region to be replaced more correctly.
2012-02-02 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-msg.el (gnus-gcc-self-resent-messages): New user option.
(gnus-summary-resend-message-insert-gcc): New function.
(gnus-summary-resend-message): Modify message-header-setup-hook and
message-sent-hook to make it work for Gcc.
(gnus-inews-do-gcc): Update the number of unread articles of groups
that messages are Gcc'd to.
* message.el (message-resend): Run message-sent-hook to do Gcc.
2012-02-01 Lars Ingebrigtsen <larsi@gnus.org>
* gnus-registry.el (gnus-registry-fixup-registry):
Move the message to a higher level to silence compilation.
* gnus-art.el (gnus-shr-put-image): Take and pass on a `flags'
parameter to allow controlling the scaling.
* shr.el (shr-zoom-image): New command and keystroke.
(shr-put-image): Take a `size' flag to say how to scale the image.
* mm-archive.el (mm-dissect-archive): Use it to get all file names.
Use recursive deletion.
(mm-dissect-archive): Add support for zip files.
* gnus-util.el (gnus-recursive-directory-files): New function.
* mm-archive.el (mm-archive-list-files): Inline text and image parts.
(mm-archive-decoders): Add tgz support.
* mm-decode.el (mm-shr): Make sure that the HTML ends with a newline.
Otherwise inserting text into the Gnus buffer can look odd.
* gnus-art.el (gnus-mime-inline-part): Slight clean-up.
* mm-archive.el (mm-archive-decoders): Add support for tar.
* gnus.el (gnus-logo-color-alist): Change the colours for Ma Gnus.
* nnmail.el (nnmail-extra-headers): Add Cc to the default.
2012-01-31 Lars Ingebrigtsen <larsi@gnus.org>
* mm-decode.el (mm-dissect-singlepart): Check that the decoder exists.
* mm-archive.el: New file.
* mm-decode.el (mm-dissect-singlepart):
Use it to decode ms-tnef files.
* mm-util.el (mm-find-buffer-file-coding-system): Comment fix.
* message.el (message-goto-*): Make all the `message-goto-*' commands
push the mark before moving point. This makes it easier to go back
to where you came from after editing whatever you jumped to.
2012-01-07 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el (gnus-sync-newsrc-groups): Quote normally.
(gnus-sync-lesync-pre-save-group-entry): Remove invalid invlists.
(gnus-sync-lesync-normalize-group-entry): Ignore a few more keys.
2011-11-09 Teodor Zlatanov <tzz@lifelogs.com>
* spam.el: Move BBDB autoloads.
(spam-exists-in-BBDB-p):
New function to do the BBDB search directly in BBDB 2 and 3.
(spam-check-BBDB): Use it.
(spam-enter-ham-BBDB): Use it.
2011-10-31 Peter Munster <pmrb@free.fr> (tiny change)
* gnus-group.el (gnus-group-get-new-news):
New parameter `one-level' for scanning exactly one level.
* gnus-start.el (gnus-get-unread-articles): Ditto.
2011-11-03 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: More commentary about setup.
2011-11-02 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: More commentary about `gnus-sync-read' issues.
2011-10-31 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: Improve docs about CouchDB admins.
2011-10-29 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el (gnus-sync-lesync-setup): Fix salt when user setup is
not needed. Provide xmlplistread list function to produce XML plist
output for non-Gnus LeSync clients.
2011-10-27 Teodor Zlatanov <tzz@lifelogs.com>
* gnus-sync.el: Add LeSync synchronization backend and logic to read
and save against it. Group subscriptions, read marks, other marks,
subscription levels, topic names, and topic offsets (the group's
position within the topic) are saved. This is an experimental
backend and may change significantly. Load json.el from
the gnus-fallback-lib if it's not available otherwise.
(gnus-sync-save): Don't use `apply-partially' because of XEmacs.
2011-04-20 David Engster <dengste@eml.cc>
* tests/gnustest-nntp.el: New file for simple NNTP testing.
2012-06-26 22:52:31 +00:00
|
|
|
(gnus-get-unread-articles (gnus-group-default-level arg t)
|
|
|
|
nil one-level)
|
2010-09-05 00:34:16 +00:00
|
|
|
|
|
|
|
;; If the user wants it, we scan for new groups.
|
|
|
|
(when (eq gnus-check-new-newsgroups 'always)
|
|
|
|
(gnus-find-new-newsgroups))
|
|
|
|
|
2007-10-28 09:18:39 +00:00
|
|
|
(gnus-check-reasonable-setup)
|
1999-02-20 14:05:57 +00:00
|
|
|
(gnus-run-hooks 'gnus-after-getting-new-news-hook)
|
2021-09-06 10:59:54 +02:00
|
|
|
(gnus-group-list-groups (and (numberp arg) arg))
|
|
|
|
(when gnus-group-use-permanent-levels
|
|
|
|
(setq gnus-group-use-permanent-levels (gnus-group-default-level arg)))))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
1997-09-24 01:50:24 +00:00
|
|
|
(defun gnus-group-get-new-news-this-group (&optional n dont-scan)
|
1997-04-16 22:13:18 +00:00
|
|
|
"Check for newly arrived news in the current group (and the N-1 next groups).
|
|
|
|
The difference between N and the number of newsgroup checked is returned.
|
2004-10-18 22:23:44 +00:00
|
|
|
If N is negative, this group and the N-1 previous groups will be checked.
|
|
|
|
If DONT-SCAN is non-nil, scan non-activated groups as well."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(let* ((groups (gnus-group-process-prefix n))
|
|
|
|
(ret (if (numberp n) (- n (length groups)) 0))
|
|
|
|
(beg (unless n
|
2010-10-30 05:59:34 +00:00
|
|
|
(point-marker)))
|
2000-09-19 13:37:09 +00:00
|
|
|
group method
|
|
|
|
(gnus-inhibit-demon t)
|
|
|
|
;; Binding this variable will inhibit multiple fetchings
|
|
|
|
;; of the same mail source.
|
|
|
|
(nnmail-fetched-sources (list t)))
|
|
|
|
(gnus-run-hooks 'gnus-get-new-news-hook)
|
1997-04-16 22:13:18 +00:00
|
|
|
(while (setq group (pop groups))
|
|
|
|
(gnus-group-remove-mark group)
|
|
|
|
;; Bypass any previous denials from the server.
|
1999-02-20 14:05:57 +00:00
|
|
|
(gnus-remove-denial (setq method (gnus-find-method-for-group group)))
|
2018-04-15 16:11:46 +02:00
|
|
|
(if (if (and (not dont-scan)
|
|
|
|
;; Prefer request-group-scan if the backend supports it.
|
|
|
|
(gnus-check-backend-function 'request-group-scan group))
|
|
|
|
(progn
|
|
|
|
;; Ensure that the server is already open.
|
|
|
|
(gnus-activate-group group nil nil method)
|
|
|
|
(gnus-request-group-scan group (gnus-get-info group)))
|
|
|
|
(gnus-activate-group group (if dont-scan nil 'scan) nil method))
|
2007-10-28 09:18:39 +00:00
|
|
|
(let ((info (gnus-get-info group))
|
|
|
|
(active (gnus-active group)))
|
|
|
|
(when info
|
|
|
|
(gnus-request-update-info info method))
|
|
|
|
(gnus-get-unread-articles-in-group info active)
|
1997-04-16 22:13:18 +00:00
|
|
|
(unless (gnus-virtual-group-p group)
|
|
|
|
(gnus-close-group group))
|
2000-09-19 13:37:09 +00:00
|
|
|
(when gnus-agent
|
|
|
|
(gnus-agent-save-group-info
|
2007-10-28 09:18:39 +00:00
|
|
|
method (gnus-group-real-name group) active))
|
2011-06-10 00:10:24 +00:00
|
|
|
(gnus-group-update-group group nil t))
|
2012-02-01 23:16:56 +00:00
|
|
|
(gnus-error 3 "%s error: %s" group (gnus-status-message group))))
|
2018-04-12 00:09:41 +02:00
|
|
|
(gnus-run-hooks 'gnus-after-getting-new-news-hook)
|
1997-04-16 22:13:18 +00:00
|
|
|
(when beg
|
|
|
|
(goto-char beg))
|
|
|
|
(when gnus-goto-next-group-when-activating
|
|
|
|
(gnus-group-next-unread-group 1 t))
|
2010-10-23 00:01:49 +00:00
|
|
|
(gnus-group-position-point)
|
1997-04-16 22:13:18 +00:00
|
|
|
ret))
|
|
|
|
|
|
|
|
(defun gnus-group-describe-group (force &optional group)
|
|
|
|
"Display a description of the current newsgroup."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (list current-prefix-arg (gnus-group-group-name))
|
|
|
|
gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(let* ((method (gnus-find-method-for-group group))
|
|
|
|
(mname (gnus-group-prefixed-name "" method))
|
|
|
|
desc)
|
|
|
|
(when (and force
|
|
|
|
gnus-description-hashtb)
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(remhash mname gnus-description-hashtb))
|
1997-04-16 22:13:18 +00:00
|
|
|
(unless group
|
|
|
|
(error "No group name given"))
|
|
|
|
(when (or (and gnus-description-hashtb
|
|
|
|
;; We check whether this group's method has been
|
|
|
|
;; queried for a description file.
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(gethash mname gnus-description-hashtb))
|
1997-04-16 22:13:18 +00:00
|
|
|
(setq desc (gnus-group-get-description group))
|
|
|
|
(gnus-read-descriptions-file method))
|
2010-09-20 00:36:54 +00:00
|
|
|
(gnus-message 1 "%s"
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(or desc (gethash group gnus-description-hashtb)
|
1997-04-16 22:13:18 +00:00
|
|
|
"No description available")))))
|
|
|
|
|
|
|
|
;; Suggested by Per Abrahamsen <amanda@iesd.auc.dk>.
|
|
|
|
(defun gnus-group-describe-all-groups (&optional force)
|
|
|
|
"Pop up a buffer with descriptions of all newsgroups."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(when force
|
|
|
|
(setq gnus-description-hashtb nil))
|
|
|
|
(when (not (or gnus-description-hashtb
|
|
|
|
(gnus-read-all-descriptions-files)))
|
|
|
|
(error "Couldn't request descriptions file"))
|
2019-04-11 17:16:00 +01:00
|
|
|
(let ((buffer-read-only nil))
|
2016-02-13 18:45:11 +11:00
|
|
|
(erase-buffer)
|
2019-04-11 17:16:00 +01:00
|
|
|
(dolist (group (sort (hash-table-keys gnus-description-hashtb) #'string<))
|
|
|
|
(let ((b (point))
|
|
|
|
(desc (gethash group gnus-description-hashtb))
|
|
|
|
(charset (gnus-group-name-charset nil group)))
|
2016-02-13 18:45:11 +11:00
|
|
|
(insert (format " *: %-20s %s\n"
|
|
|
|
(gnus-group-name-decode group charset)
|
2019-04-11 17:16:00 +01:00
|
|
|
(gnus-group-name-decode desc charset)))
|
|
|
|
(add-text-properties
|
|
|
|
b (1+ b) (list 'gnus-group group
|
|
|
|
'gnus-unread t 'gnus-marked nil
|
|
|
|
'gnus-level (1+ gnus-level-subscribed)))))
|
1997-04-16 22:13:18 +00:00
|
|
|
(goto-char (point-min))
|
|
|
|
(gnus-group-position-point)))
|
|
|
|
|
|
|
|
;; Suggested by Daniel Quinlan <quinlan@best.com>.
|
|
|
|
(defun gnus-group-apropos (regexp &optional search-description)
|
|
|
|
"List all newsgroups that have names that match a regexp."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "sGnus apropos (regexp): " gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(let ((prev "")
|
|
|
|
(obuf (current-buffer))
|
|
|
|
groups des)
|
|
|
|
;; Go through all newsgroups that are known to Gnus.
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(maphash
|
|
|
|
(lambda (g-name _)
|
|
|
|
(and (string-match regexp g-name)
|
|
|
|
(push g-name groups)))
|
1997-04-16 22:13:18 +00:00
|
|
|
gnus-active-hashtb)
|
|
|
|
;; Also go through all descriptions that are known to Gnus.
|
|
|
|
(when search-description
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(dolist (g-name (hash-table-keys gnus-description-hashtb))
|
|
|
|
(when (string-match regexp g-name)
|
|
|
|
(push g-name groups))))
|
1997-04-16 22:13:18 +00:00
|
|
|
(if (not groups)
|
|
|
|
(gnus-message 3 "No groups matched \"%s\"." regexp)
|
|
|
|
;; Print out all the groups.
|
|
|
|
(save-excursion
|
|
|
|
(pop-to-buffer "*Gnus Help*")
|
2000-09-19 13:37:09 +00:00
|
|
|
(buffer-disable-undo)
|
1997-04-16 22:13:18 +00:00
|
|
|
(erase-buffer)
|
2021-01-30 00:35:24 -05:00
|
|
|
(setq groups (sort groups #'string<))
|
1997-04-16 22:13:18 +00:00
|
|
|
(while groups
|
|
|
|
;; Groups may be entered twice into the list of groups.
|
|
|
|
(when (not (string= (car groups) prev))
|
2000-09-19 13:37:09 +00:00
|
|
|
(setq prev (car groups))
|
|
|
|
(let ((charset (gnus-group-name-charset nil prev)))
|
|
|
|
(insert (gnus-group-name-decode prev charset) "\n")
|
|
|
|
(when (and gnus-description-hashtb
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(setq des (gethash (car groups)
|
|
|
|
gnus-description-hashtb)))
|
2000-09-19 13:37:09 +00:00
|
|
|
(insert " " (gnus-group-name-decode des charset) "\n"))))
|
1997-04-16 22:13:18 +00:00
|
|
|
(setq groups (cdr groups)))
|
|
|
|
(goto-char (point-min))))
|
|
|
|
(pop-to-buffer obuf)))
|
|
|
|
|
|
|
|
(defun gnus-group-description-apropos (regexp)
|
2004-09-04 13:13:48 +00:00
|
|
|
"List all newsgroups that have names or descriptions that match REGEXP."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "sGnus description apropos (regexp): " gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(when (not (or gnus-description-hashtb
|
|
|
|
(gnus-read-all-descriptions-files)))
|
|
|
|
(error "Couldn't request descriptions file"))
|
|
|
|
(gnus-group-apropos regexp t))
|
|
|
|
|
|
|
|
;; Suggested by Per Abrahamsen <amanda@iesd.auc.dk>.
|
|
|
|
(defun gnus-group-list-matching (level regexp &optional all lowest)
|
|
|
|
"List all groups with unread articles that match REGEXP.
|
|
|
|
If the prefix LEVEL is non-nil, it should be a number that says which
|
|
|
|
level to cut off listing groups.
|
|
|
|
If ALL, also list groups with no unread articles.
|
|
|
|
If LOWEST, don't list groups with level lower than LOWEST.
|
|
|
|
|
|
|
|
This command may read the active file."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P\nsList newsgroups matching: " gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
;; First make sure active file has been read.
|
|
|
|
(when (and level
|
|
|
|
(> (prefix-numeric-value level) gnus-level-killed))
|
|
|
|
(gnus-get-killed-groups))
|
2004-09-04 13:13:48 +00:00
|
|
|
(funcall gnus-group-prepare-function
|
|
|
|
(or level gnus-level-subscribed) (and all t) (or lowest 1) regexp)
|
1997-04-16 22:13:18 +00:00
|
|
|
(goto-char (point-min))
|
|
|
|
(gnus-group-position-point))
|
|
|
|
|
|
|
|
(defun gnus-group-list-all-matching (level regexp &optional lowest)
|
|
|
|
"List all groups that match REGEXP.
|
|
|
|
If the prefix LEVEL is non-nil, it should be a number that says which
|
|
|
|
level to cut off listing groups.
|
|
|
|
If LOWEST, don't list groups with level lower than LOWEST."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P\nsList newsgroups matching: " gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(when level
|
|
|
|
(setq level (prefix-numeric-value level)))
|
|
|
|
(gnus-group-list-matching (or level gnus-level-killed) regexp t lowest))
|
|
|
|
|
|
|
|
;; Suggested by Jack Vinson <vinson@unagi.cis.upenn.edu>.
|
|
|
|
(defun gnus-group-save-newsrc (&optional force)
|
|
|
|
"Save the Gnus startup files.
|
|
|
|
If FORCE, force saving whether it is necessary or not."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-save-newsrc-file force))
|
|
|
|
|
* lisp/gnus: Use lexical-binding in all the files
* lisp/gnus/gnus-group.el (features): Use `dlet`.
(gnus-tmp-level, gnus-tmp-marked, gnus-tmp-group): Declare vars.
(gnus-group-insert-group-line): Bind dynbound vars via `let` rather
than as formal args. Bind `number` as dynbound.
(gnus-visual, gnus-score-find-score-files-function)
(gnus-home-score-file, gnus-apply-kill-hook)
(gnus-summary-expunge-below): Declare vars.
(gnus-group-restart, gnus-group-list-plus): Fix `interactive` spec
since the arg is unused.
* lisp/gnus/mail-source.el (mail-source-bind, mail-source-bind-common):
Use `dlet` and suppress the warnings about the non-prefixed dynbound vars.
(mail-source-set-1): Remove unused var `auth-info`.
(mail-source-call-script): Remove unused var `background`.
(mail-source-fetch-pop, mail-source-check-pop): Bind pop3 vars with `dlet`.
* lisp/gnus/gnus-int.el (mail-source-plugged, gnus-inhibit-demon):
Declare vars.
(gnus-server-opened, gnus-status-message)
(gnus-open-server, gnus-close-server, gnus-request-list)
(gnus-finish-retrieve-group-infos, gnus-retrieve-group-data-early)
(gnus-request-list-newsgroups, gnus-request-newgroups)
(gnus-request-regenerate, gnus-request-compact, gnus-request-group)
(gnus-retrieve-groups, gnus-request-post, gnus-request-expunge-group)
(gnus-request-scan, gnus-request-update-info, gnus-request-marks)
(gnus-request-accept-article, gnus-request-create-group)
(gnus-asynchronous-p, gnus-remove-denial):
Bind `gnus-command-method` via `let` rather than as formal args.
* lisp/gnus/gnus-topic.el (gnus-topic-insert-topic-line):
Pass documented vars to eval for `gnus-topic-line-format-spec`.
* lisp/gnus/message.el (message-yank-original): Use `cl-progv` rather
than `eval` to bind the vars from `message-cite-style`.
* lisp/gnus/mml.el (mml-parse-1): Use `apply` instead of `eval`.
(gnus-newsgroup-name, gnus-displaying-mime, gnus-newsgroup-name)
(gnus-article-prepare-hook, gnus-newsgroup-charset)
(gnus-original-article-buffer, gnus-message-buffer)
(message-this-is-news, message-this-is-mail): Declare vars.
* lisp/gnus/deuglify.el (gnus-outlook-rearrange-article): Remove unused
var `cite-marks`.
* lisp/gnus/gnus-art.el (ansi-color-context-region): Declare var.
(gnus-mime-display-attachment-buttons-in-header): Move declaration
before first use.
(gnus-mime-display-alternative): Remove unused var `from`.
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-list): Remove unused
var `start` `end`.
* lisp/gnus/gnus-cache.el (gnus-article-decode-hook)
(nnml-generate-active-function): Declare var.
* lisp/gnus/gnus-cite.el (gnus-message-citation-mode): Remove unused
var `keywords`.
* lisp/gnus/gnus-cloud.el (gnus-cloud-encode-data): Remove unused var
`cipher`.
(gnus-cloud-ensure-cloud-group): Remove unused var `method`.
* lisp/gnus/gnus-delay.el (gnus-delay-article): Remove unused var `days`.
* lisp/gnus/gnus-html.el (gnus-html-wash-images): Remove unused vars
`tag`, `string`, and `images`.
(gnus-html-wash-tags): Remove unused vars `string` and `images`.
* lisp/gnus/gnus-msg.el (gnus-msg-mail): Remove unused var `group-name`.
(gnus-group-mail, gnus-group-news, gnus-summary-mail-other-window)
(gnus-summary-news-other-window):
Remove unused vars `group` and `buffer`.
(gnus-configure-posting-styles): Remove unused vars `style` and `attribute`.
* lisp/gnus/gnus-picon.el (gnus-picon-find-face): Remove unused vars
`database`, `directory`, and `instance`.
(gnus-picon-transform-newsgroups): Remove unused var `point`.
* lisp/gnus/gnus-range.el (gnus-range-difference): Remove unused var `safe`.
* lisp/gnus/gnus-score.el (gnus-score-load-file): Remove unused var
`score-fn`.
* lisp/gnus/gnus-sum.el (message-options-set-recipient): Declare var.
* lisp/gnus/gnus-undo.el (gnus-undo): Fix docstring lie.
* lisp/gnus/gnus-util.el (print-string-length)
(iswitchb-make-buflist-hook): Declare vars.
(gnus-emacs-version): Remove unused var `codename`.
(gnus-rename-file): Remove unused vars `old-name` and `new-name`.
* lisp/gnus/gnus-uu.el (gnus-uu-yenc-article): Remove unused var
`start-char`.
(gnus-asynchronous): Declare var.
* lisp/gnus/mm-partial.el (gnus-displaying-mime): Declare var.
(mm-inline-partial): Remove unused var `buffer`.
* lisp/gnus/mm-view.el (w3m-force-redisplay, w3m-safe-url-regexp)
(gnus-displaying-mime, gnus-original-article-buffer)
(gnus-article-prepare-hook): Declare vars.
* lisp/gnus/mml-smime.el (mml-smime-epg-encrypt): Remove unused var
`boundary`.
(mml-smime-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/mml1991.el (pgg-text-mode): Declare var.
* lisp/gnus/mml2015.el (pgg-text-mode): Declare var.
(mml2015-pgg-decrypt): Remove unused var `result`.
(mml2015-epg-key-image-to-string): Remove unused var `error`.
(mml2015-epg-decrypt): Remove unused var `result`.
(mml2015-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/nnbabyl.el (nnml-current-directory): Declare var.
* lisp/gnus/nndiary.el (nndiary-files): Move declaration before first use.
* lisp/gnus/nnfolder.el (nnfolder-request-accept-article):
Remove unused var `buf`.
* lisp/gnus/nnmail.el (nnmail-parse-active): Remove unused var `err`.
* lisp/gnus/nnmairix.el (nnmairix-request-group): Remove unused var `args`.
(nnmairix-request-create-group): Remove unused var `info`.
(nnmairix-request-list): Remove unused var `folder`.
(nnmairix-request-set-mark): Remove unused var `propto`.
(nnmairix-request-set-mark): Remove unused vars `number` and `method`.
(nnmairix-close-group): Remove unused var `method`.
(nnmairix-create-search-group-from-message): Remove unused var `cq`.
(nnmairix-create-server-and-default-group): Remove unused var `create`.
(nnmairix-purge-old-groups): Remove unused var `folder`.
(nnmairix-remove-tick-mark-original-article, nnmairix-get-valid-servers):
Remove unused var `cur`.
(nnmairix-replace-group-and-numbers): Remove unused var `header`.
(nnmairix-goto-original-article): Remove unused var `rval`.
(nnmairix-widget-create-query): Remove unused var `allwidgets`.
* lisp/gnus/nnmbox.el (nnml-current-directory): Declare var.
* lisp/gnus/nnmh.el (nnmh-toplev): Move declaration before first use.
(nnmh-request-list-1): Remove unused var `rdir`.
* lisp/gnus/nnml.el (nnml-generate-nov-file): Remove unused var `file`.
* lisp/gnus/nnrss.el (nnrss-request-article): Remove unused var `post`.
(nnrss-request-article): Remove unused var `fn`.
(nnrss-check-group): Remove unused var `rdf-ns`.
* lisp/gnus/nnweb.el (nnweb-request-article): Remove unused var `active`.
(nnweb-google-parse-1): Remove unused var `Score`.
* lisp/gnus/spam-stat.el (spam-stat-error-holder): Remove var.
(spam-stat-buffer-words-with-scores): Remove unused var `word`.
(spam-stat-score-buffer): Remove unused var `spam-stat-error-holder`.
(spam-stat-split-fancy): Use `err` instead of `spam-stat-error-holder`.
* lisp/gnus/spam-wash.el (spam-wash): Remove unused var `handle`.
* lisp/gnus/spam.el (spam-copy-or-move-routine): Remove unused vars
`article` and `mark`.
(spam-register-routine): Remove unused var `article`.
(spam-log-undo-registration): Remove unused var `found`.
(spam-ifile-register-with-ifile): Remove unused var `parameters`.
(spam-check-stat): Remove unused vars `category` and `return`.
(spam-parse-list): Remove unused var `found`.
(spam-filelist-register-routine): Remove unused var `from`.
2021-01-30 18:44:00 -05:00
|
|
|
(defun gnus-group-restart (&optional _arg)
|
1997-04-16 22:13:18 +00:00
|
|
|
"Force Gnus to read the .newsrc file."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive nil gnus-group-mode)
|
2021-09-21 17:52:53 +02:00
|
|
|
(when (gnus-yes-or-no-p "Are you sure you want to restart Gnus? ")
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-save-newsrc-file)
|
|
|
|
(gnus-clear-system)
|
|
|
|
(gnus)))
|
|
|
|
|
|
|
|
(defun gnus-group-read-init-file ()
|
|
|
|
"Read the Gnus elisp init file."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive nil gnus-group-mode)
|
1997-09-24 01:50:24 +00:00
|
|
|
(gnus-read-init-file)
|
|
|
|
(gnus-message 5 "Read %s" gnus-init-file))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-check-bogus-groups (&optional silent)
|
|
|
|
"Check bogus newsgroups.
|
|
|
|
If given a prefix, don't ask for confirmation before removing a bogus
|
|
|
|
group."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-check-bogus-newsgroups (and (not silent) (not gnus-expert-user)))
|
|
|
|
(gnus-group-list-groups))
|
|
|
|
|
1997-09-24 01:50:24 +00:00
|
|
|
(defun gnus-group-find-new-groups (&optional arg)
|
|
|
|
"Search for new groups and add them.
|
2001-12-04 19:28:25 +00:00
|
|
|
Each new group will be treated with `gnus-subscribe-newsgroup-method'.
|
Docfix: use command substitution for 'universal-argument'
* lisp/autoarg.el (autoarg-mode):
* lisp/bookmark.el (bookmark-set, bookmark-set-no-overwrite)
(bookmark-save):
* lisp/calendar/todo-mode.el (todo-insert-item)
(todo-filter-top-priorities)
(todo-filter-top-priorities-multifile):
* lisp/dired-x.el (dired-mark-extension, dired-mark-suffix):
* lisp/eshell/eshell.el (eshell):
* lisp/gnus/gnus-group.el (gnus-group-find-new-groups):
* lisp/gnus/gnus-start.el (gnus-find-new-newsgroups):
* lisp/gnus/gnus-sum.el (gnus-summary-show-article):
* lisp/gnus/gnus.el (gnus-secondary-servers):
* lisp/org/org-timer.el (org-timer-set-timer):
* lisp/org/ox.el (org-export-dispatch-last-position):
* lisp/printing.el (pr-ps-directory-preview)
(pr-ps-directory-using-ghostscript, pr-ps-directory-print)
(pr-ps-directory-ps-print, pr-ps-buffer-preview)
(pr-ps-buffer-using-ghostscript, pr-ps-buffer-print)
(pr-ps-buffer-ps-print, pr-despool-preview)
(pr-despool-using-ghostscript, pr-despool-print)
(pr-despool-ps-print, pr-ps-file-up-ps-print, pr-ps-fast-fire)
(pr-txt-fast-fire):
* lisp/progmodes/idlwave.el (idlwave-complete):
* lisp/progmodes/sh-script.el (sh-set-shell):
* lisp/replace.el (occur):
* lisp/ses.el (ses--advice-yank):
* lisp/simple.el (set-mark-command-repeat-pop):
* lisp/sort.el (delete-duplicate-lines):
* lisp/strokes.el (strokes-help):
* lisp/textmodes/artist.el (artist-mode):
* lisp/textmodes/reftex-cite.el (reftex-citation):
* lisp/textmodes/reftex-dcr.el (reftex-view-crossref):
* lisp/textmodes/reftex-index.el (reftex-index-selection-or-word)
(reftex-display-index):
* lisp/textmodes/reftex-ref.el (reftex-reference):
* lisp/textmodes/reftex-toc.el (reftex-toc):
* lisp/textmodes/reftex-vars.el (reftex-cite-prompt-optional-args)
(reftex-enable-partial-scans):
* lisp/textmodes/texnfo-upd.el (texinfo-master-menu):
* lisp/windmove.el (windmove-display-in-direction)
(windmove-delete-left, windmove-delete-up)
(windmove-delete-right, windmove-delete-down):
* lisp/window.el (recenter-window-group, recenter-other-window): Use
command substitution for 'universal-argument' instead of raw "C-u".
2021-09-16 20:05:48 +02:00
|
|
|
With 1 \\[universal-argument], use the `ask-server' method to query the server for new
|
1999-02-20 14:05:57 +00:00
|
|
|
groups.
|
Docfix: use command substitution for 'universal-argument'
* lisp/autoarg.el (autoarg-mode):
* lisp/bookmark.el (bookmark-set, bookmark-set-no-overwrite)
(bookmark-save):
* lisp/calendar/todo-mode.el (todo-insert-item)
(todo-filter-top-priorities)
(todo-filter-top-priorities-multifile):
* lisp/dired-x.el (dired-mark-extension, dired-mark-suffix):
* lisp/eshell/eshell.el (eshell):
* lisp/gnus/gnus-group.el (gnus-group-find-new-groups):
* lisp/gnus/gnus-start.el (gnus-find-new-newsgroups):
* lisp/gnus/gnus-sum.el (gnus-summary-show-article):
* lisp/gnus/gnus.el (gnus-secondary-servers):
* lisp/org/org-timer.el (org-timer-set-timer):
* lisp/org/ox.el (org-export-dispatch-last-position):
* lisp/printing.el (pr-ps-directory-preview)
(pr-ps-directory-using-ghostscript, pr-ps-directory-print)
(pr-ps-directory-ps-print, pr-ps-buffer-preview)
(pr-ps-buffer-using-ghostscript, pr-ps-buffer-print)
(pr-ps-buffer-ps-print, pr-despool-preview)
(pr-despool-using-ghostscript, pr-despool-print)
(pr-despool-ps-print, pr-ps-file-up-ps-print, pr-ps-fast-fire)
(pr-txt-fast-fire):
* lisp/progmodes/idlwave.el (idlwave-complete):
* lisp/progmodes/sh-script.el (sh-set-shell):
* lisp/replace.el (occur):
* lisp/ses.el (ses--advice-yank):
* lisp/simple.el (set-mark-command-repeat-pop):
* lisp/sort.el (delete-duplicate-lines):
* lisp/strokes.el (strokes-help):
* lisp/textmodes/artist.el (artist-mode):
* lisp/textmodes/reftex-cite.el (reftex-citation):
* lisp/textmodes/reftex-dcr.el (reftex-view-crossref):
* lisp/textmodes/reftex-index.el (reftex-index-selection-or-word)
(reftex-display-index):
* lisp/textmodes/reftex-ref.el (reftex-reference):
* lisp/textmodes/reftex-toc.el (reftex-toc):
* lisp/textmodes/reftex-vars.el (reftex-cite-prompt-optional-args)
(reftex-enable-partial-scans):
* lisp/textmodes/texnfo-upd.el (texinfo-master-menu):
* lisp/windmove.el (windmove-display-in-direction)
(windmove-delete-left, windmove-delete-up)
(windmove-delete-right, windmove-delete-down):
* lisp/window.el (recenter-window-group, recenter-other-window): Use
command substitution for 'universal-argument' instead of raw "C-u".
2021-09-16 20:05:48 +02:00
|
|
|
With 2 \\[universal-argument]'s, use most complete method possible to query the server
|
1999-02-20 14:05:57 +00:00
|
|
|
for new groups, and subscribe the new groups as zombies."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "p" gnus-group-mode)
|
2010-11-01 22:21:10 +00:00
|
|
|
(let ((new-groups (gnus-find-new-newsgroups (or arg 1)))
|
|
|
|
current-group)
|
|
|
|
(gnus-group-list-groups)
|
|
|
|
(setq current-group (gnus-group-group-name))
|
|
|
|
(dolist (group new-groups)
|
|
|
|
(gnus-group-jump-to-group group))
|
|
|
|
(when current-group
|
|
|
|
(gnus-group-jump-to-group current-group))))
|
1999-02-20 14:05:57 +00:00
|
|
|
|
1997-04-16 22:13:18 +00:00
|
|
|
(defun gnus-group-edit-global-kill (&optional article group)
|
|
|
|
"Edit the global kill file.
|
|
|
|
If GROUP, edit that local kill file instead."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(setq gnus-current-kill-article article)
|
|
|
|
(gnus-kill-file-edit-file group)
|
2010-09-20 00:36:54 +00:00
|
|
|
(gnus-message 6 "Editing a %s kill file (Type %s to exit)"
|
|
|
|
(if group "local" "global")
|
|
|
|
(substitute-command-keys "\\[gnus-kill-file-exit]")))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-edit-local-kill (article group)
|
|
|
|
"Edit a local kill file."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (list nil (gnus-group-group-name)) gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-edit-global-kill article group))
|
|
|
|
|
|
|
|
(defun gnus-group-force-update ()
|
|
|
|
"Update `.newsrc' file."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive nil gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-save-newsrc-file))
|
|
|
|
|
2004-09-04 13:13:48 +00:00
|
|
|
(defvar gnus-backlog-articles)
|
|
|
|
|
1997-04-16 22:13:18 +00:00
|
|
|
(defun gnus-group-suspend ()
|
|
|
|
"Suspend the current Gnus session.
|
|
|
|
In fact, cleanup buffers except for group mode buffer.
|
2004-09-04 13:13:48 +00:00
|
|
|
The hook `gnus-suspend-gnus-hook' is called before actually suspending."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive nil gnus-group-mode)
|
1999-02-20 14:05:57 +00:00
|
|
|
(gnus-run-hooks 'gnus-suspend-gnus-hook)
|
2004-09-04 13:13:48 +00:00
|
|
|
(gnus-offer-save-summaries)
|
1997-04-16 22:13:18 +00:00
|
|
|
;; Kill Gnus buffers except for group mode buffer.
|
1999-02-20 14:05:57 +00:00
|
|
|
(let ((group-buf (get-buffer gnus-group-buffer)))
|
2007-10-28 09:18:39 +00:00
|
|
|
(dolist (buf (gnus-buffers))
|
|
|
|
(unless (or (eq buf group-buf)
|
|
|
|
(eq buf gnus-dribble-buffer)
|
|
|
|
(with-current-buffer buf
|
2013-09-10 23:31:56 -04:00
|
|
|
(derived-mode-p 'message-mode)))
|
2007-10-28 09:18:39 +00:00
|
|
|
(gnus-kill-buffer buf)))
|
2004-09-04 13:13:48 +00:00
|
|
|
(setq gnus-backlog-articles nil)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-kill-gnus-frames)
|
2021-09-24 14:18:57 +02:00
|
|
|
;; Closing all the backends is useful (for instance) when the
|
2015-01-25 12:18:51 +00:00
|
|
|
;; IP addresses have changed and you need to reconnect.
|
|
|
|
(dolist (elem gnus-opened-servers)
|
2020-08-27 08:00:14 -07:00
|
|
|
(gnus-close-server (car elem)))
|
1997-04-16 22:13:18 +00:00
|
|
|
(when group-buf
|
|
|
|
(bury-buffer group-buf)
|
|
|
|
(delete-windows-on group-buf t))))
|
|
|
|
|
|
|
|
(defun gnus-group-clear-dribble ()
|
|
|
|
"Clear all information from the dribble buffer."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive nil gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-dribble-clear)
|
|
|
|
(gnus-message 7 "Cleared dribble buffer"))
|
|
|
|
|
|
|
|
(defun gnus-group-exit ()
|
|
|
|
"Quit reading news after updating .newsrc.eld and .newsrc.
|
|
|
|
The hook `gnus-exit-gnus-hook' is called before actually exiting."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive nil gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(when
|
|
|
|
(or noninteractive ;For gnus-batch-kill
|
|
|
|
(not gnus-interactive-exit) ;Without confirmation
|
|
|
|
gnus-expert-user
|
|
|
|
(gnus-y-or-n-p "Are you sure you want to quit reading news? "))
|
1999-02-20 14:05:57 +00:00
|
|
|
(gnus-run-hooks 'gnus-exit-gnus-hook)
|
2018-04-15 15:48:44 +02:00
|
|
|
;; Check whether we have any unsaved Message buffers and offer to
|
|
|
|
;; save them.
|
|
|
|
(gnus--abort-on-unsaved-message-buffers)
|
1997-04-16 22:13:18 +00:00
|
|
|
;; Offer to save data from non-quitted summary buffers.
|
|
|
|
(gnus-offer-save-summaries)
|
|
|
|
;; Save the newsrc file(s).
|
|
|
|
(gnus-save-newsrc-file)
|
|
|
|
;; Kill-em-all.
|
|
|
|
(gnus-close-backends)
|
|
|
|
;; Reset everything.
|
|
|
|
(gnus-clear-system)
|
|
|
|
;; Allow the user to do things after cleaning up.
|
1999-02-20 14:05:57 +00:00
|
|
|
(gnus-run-hooks 'gnus-after-exiting-gnus-hook)))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
2018-04-15 15:48:44 +02:00
|
|
|
(defun gnus--abort-on-unsaved-message-buffers ()
|
|
|
|
(dolist (buffer (gnus-buffers))
|
Simplify Gnus buffer liveness checking and killing
* lisp/gnus/gnus-agent.el (gnus-agent-synchronize-group-flags):
Fix indentation.
* lisp/gnus/gnus-util.el (gnus-buffer-exists-p): Define as obsolete
alias of gnus-buffer-live-p.
(gnus-buffer-live-p): If the given argument is or names a live
buffer, return the corresponding buffer object instead of a boolean.
* lisp/gnus/gnus-win.el (gnus-delete-windows-in-gnusey-frames)
(gnus-remove-some-windows): Simplify.
* lisp/gnus/gnus.el (gnus-prune-buffers): Redefine as alias of
gnus-buffers.
(gnus-kill-buffer, gnus-buffers, gnus-group-find-parameter):
* lisp/gnus/gnus-art.el (gnus-kill-sticky-article-buffers)
(gnus-request-article-this-buffer):
* lisp/gnus/gnus-bcklg.el (gnus-backlog-shutdown):
* lisp/gnus/gnus-cus.el (gnus-group-customize)
(gnus-agent-customize-category):
* lisp/gnus/gnus-draft.el (gnus-draft-edit-message):
* lisp/gnus/gnus-group.el (gnus-group-set-mode-line)
(gnus--abort-on-unsaved-message-buffers, gnus-group-compact-group):
* lisp/gnus/gnus-msg.el (gnus-inews-add-send-actions)
(gnus-summary-supersede-article, gnus-copy-article-buffer):
* lisp/gnus/gnus-score.el (gnus-score-edit-current-scores)
(gnus-score-edit-file):
* lisp/gnus/gnus-spec.el (gnus-update-format-specifications):
* lisp/gnus/gnus-srvr.el (gnus-server-compact-server):
* lisp/gnus/gnus-start.el (gnus-clear-system, gnus-dribble-enter)
(gnus-dribble-save, gnus-dribble-clear, gnus-save-newsrc-file):
* lisp/gnus/gnus-sum.el (gnus-summary-setup-buffer)
(gnus-update-summary-mark-positions, gnus-summary-exit)
(gnus-deaden-summary, gnus-kill-or-deaden-summary)
(gnus-summary-next-group):
* lisp/gnus/gnus-win.el (gnus-configure-frame):
* lisp/gnus/mail-source.el (mail-source-movemail):
* lisp/gnus/message.el (message-with-reply-buffer)
(message-with-reply, message-send-and-exit)
(message-send-mail-with-sendmail, message-pop-to-buffer)
(message-do-send-housekeeping, message-forward-make-body-plain)
(message-forward-make-body-mml):
* lisp/gnus/mm-decode.el (mm-display-external, mm-remove-part):
* lisp/gnus/nnbabyl.el (nnbabyl-server-opened)
(nnbabyl-possibly-change-newsgroup, nnbabyl-read-mbox)
(nnbabyl-check-mbox):
* lisp/gnus/nndiary.el (nndiary-save-nov):
* lisp/gnus/nndoc.el (nndoc-close-group)
(nndoc-possibly-change-buffer):
* lisp/gnus/nnfolder.el (nnfolder-close-group, nnfolder-save-nov):
* lisp/gnus/nnimap.el (nnimap-make-process-buffer, nnimap-keepalive)
(nnimap-find-connection):
* lisp/gnus/nnmail.el (nnmail-cache-open, nnmail-cache-close):
* lisp/gnus/nnmbox.el (nnmbox-close-server, nnmbox-server-opened)
(nnmbox-possibly-change-newsgroup, nnmbox-read-mbox):
* lisp/gnus/nnml.el (nnml-save-incremental-nov, nnml-open-nov)
(nnml-save-nov):
* lisp/gnus/nnoo.el (nnoo-server-opened):
* lisp/gnus/nntp.el (nntp-kill-buffer, nntp-make-process-buffer)
(nntp-open-connection, nntp-async-trigger):
* lisp/net/mairix.el (mairix-gnus-fetch-field): Simplify buffer
liveness checking and killing, replacing buffer-name with
buffer-live-p and gnus-buffer-exists-p with gnus-buffer-live-p or
equivalent where applicable.
2019-05-05 01:28:57 +01:00
|
|
|
(with-current-buffer buffer
|
|
|
|
(when (and (derived-mode-p 'message-mode)
|
|
|
|
(buffer-modified-p)
|
|
|
|
(not (y-or-n-p
|
|
|
|
(format "Message buffer %s unsaved, continue exit? "
|
|
|
|
buffer))))
|
|
|
|
(error "Gnus exit aborted due to unsaved buffer %s" buffer)))))
|
2018-04-15 15:48:44 +02:00
|
|
|
|
1997-04-16 22:13:18 +00:00
|
|
|
(defun gnus-group-quit ()
|
|
|
|
"Quit reading news without updating .newsrc.eld or .newsrc.
|
|
|
|
The hook `gnus-exit-gnus-hook' is called before actually exiting."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive nil gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(when (or noninteractive ;For gnus-batch-kill
|
|
|
|
(zerop (buffer-size))
|
|
|
|
(not (gnus-server-opened gnus-select-method))
|
|
|
|
gnus-expert-user
|
|
|
|
(not gnus-current-startup-file)
|
|
|
|
(gnus-yes-or-no-p
|
|
|
|
(format "Quit reading news without saving %s? "
|
|
|
|
(file-name-nondirectory gnus-current-startup-file))))
|
1999-02-20 14:05:57 +00:00
|
|
|
(gnus-run-hooks 'gnus-exit-gnus-hook)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-configure-windows 'group t)
|
2004-09-04 13:13:48 +00:00
|
|
|
(when (and (gnus-buffer-live-p gnus-dribble-buffer)
|
2010-09-01 17:42:37 +02:00
|
|
|
(not (zerop (with-current-buffer gnus-dribble-buffer
|
2004-09-04 13:13:48 +00:00
|
|
|
(buffer-size)))))
|
|
|
|
(gnus-dribble-enter
|
|
|
|
";;; Gnus was exited on purpose without saving the .newsrc files."))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-dribble-save)
|
|
|
|
(gnus-close-backends)
|
|
|
|
(gnus-clear-system)
|
|
|
|
(gnus-kill-buffer gnus-group-buffer)
|
|
|
|
;; Allow the user to do things after cleaning up.
|
1999-02-20 14:05:57 +00:00
|
|
|
(gnus-run-hooks 'gnus-after-exiting-gnus-hook)))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-describe-briefly ()
|
|
|
|
"Give a one line description of the group mode commands."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive nil gnus-group-mode)
|
2010-09-20 00:36:54 +00:00
|
|
|
(gnus-message 7 "%s" (substitute-command-keys "\\<gnus-group-mode-map>\\[gnus-group-read-group]:Select \\[gnus-group-next-unread-group]:Forward \\[gnus-group-prev-unread-group]:Backward \\[gnus-group-exit]:Exit \\[gnus-info-find-node]:Run Info \\[gnus-group-describe-briefly]:This help")))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-browse-foreign-server (method)
|
|
|
|
"Browse a foreign news server.
|
|
|
|
If called interactively, this function will ask for a select method
|
2013-02-12 09:36:54 -08:00
|
|
|
(nntp, nnspool, etc.) and a server address (e.g., nntp.some.where).
|
1997-04-16 22:13:18 +00:00
|
|
|
If not, METHOD should be a list where the first element is the method
|
|
|
|
and the second element is the address."
|
|
|
|
(interactive
|
Merge changes made in Gnus trunk.
nndraft.el (nndraft-request-expire-articles): Use the group name instead if "nndraft".
gnus.texi (Using IMAP): Remove the @acronyms from the headings.
nnregistry.el: Added.
nnimap.el (nnimap-insert-partial-structure): Be way more permissive when interpreting the structures.
GNUS-NEWS: Minor error in GNUS-NEWS - password-cache.el.
nnimap.el (nnimap-request-accept-article): Add \r\n to the lines to make this work with Cyrus.
gnus-registry.el: Don't prompt on load, which makes it impossible to build Gnus.
gnus-gravatar.el: Add gnus-gravatar-properties.
gnus-agent.el, gnus-art.el, gnus-bookmark.el, gnus-dired.el, gnus-group.el,\
gnus-int.el, gnus-msg.el, gnus-registry.el, gnus-score.el, gnus-srvr.el,\
gnus-sum.el, gnus-topic.el, gnus-util.el, gnus.el, mm-decode.el, mm-util.el,\
mm-view.el, mml-smime.el, mml.el, nnmairix.el, nnrss.el, smime.el:\
Introduce gnus-completing-read.
gnus-util.el: Make completing-read function configurable.
gnus-util.el: Add requires and fix history for iswitchb.
webmail.el: Remove netscape/my-deja, since they no longer exist.
gnus.el (gnus-local-domain): Declare variable obsolete.
nnimap.el (nnimap-insert-partial-structure): Get the type from the correct slot, too.
pop3.el (pop3-send-streaming-command, pop3-stream-length): New variable.
nnimap.el (nnimap-open-connection): Revert the auto-network->starttls code.
nnimap.el (nnimap-request-set-mark): Erase the buffer before issuing commands.
nnimap.el (nnimap-split-rule): Mark as obsolete.
gnus-sum.el (gnus-valid-move-group-p): Make sure that `group' is a symbol.
nnimap.el (nnimap-split-incoming-mail): Allow `default' as nnimap-split-methods value.
nnimap.el (nnimap-request-article): Downcase the NILs so that they are nil.
nndoc.el (nndoc-retrieve-groups): New function.
gnus.texi: Fix Gravatar documentation.
2010-09-30 08:39:23 +00:00
|
|
|
(list (let ((how (gnus-completing-read
|
|
|
|
"Which back end"
|
2021-01-30 00:35:24 -05:00
|
|
|
(mapcar #'car (append gnus-valid-select-methods
|
2021-02-14 14:14:48 +01:00
|
|
|
gnus-server-alist))
|
Merge changes made in Gnus trunk.
nndraft.el (nndraft-request-expire-articles): Use the group name instead if "nndraft".
gnus.texi (Using IMAP): Remove the @acronyms from the headings.
nnregistry.el: Added.
nnimap.el (nnimap-insert-partial-structure): Be way more permissive when interpreting the structures.
GNUS-NEWS: Minor error in GNUS-NEWS - password-cache.el.
nnimap.el (nnimap-request-accept-article): Add \r\n to the lines to make this work with Cyrus.
gnus-registry.el: Don't prompt on load, which makes it impossible to build Gnus.
gnus-gravatar.el: Add gnus-gravatar-properties.
gnus-agent.el, gnus-art.el, gnus-bookmark.el, gnus-dired.el, gnus-group.el,\
gnus-int.el, gnus-msg.el, gnus-registry.el, gnus-score.el, gnus-srvr.el,\
gnus-sum.el, gnus-topic.el, gnus-util.el, gnus.el, mm-decode.el, mm-util.el,\
mm-view.el, mml-smime.el, mml.el, nnmairix.el, nnrss.el, smime.el:\
Introduce gnus-completing-read.
gnus-util.el: Make completing-read function configurable.
gnus-util.el: Add requires and fix history for iswitchb.
webmail.el: Remove netscape/my-deja, since they no longer exist.
gnus.el (gnus-local-domain): Declare variable obsolete.
nnimap.el (nnimap-insert-partial-structure): Get the type from the correct slot, too.
pop3.el (pop3-send-streaming-command, pop3-stream-length): New variable.
nnimap.el (nnimap-open-connection): Revert the auto-network->starttls code.
nnimap.el (nnimap-request-set-mark): Erase the buffer before issuing commands.
nnimap.el (nnimap-split-rule): Mark as obsolete.
gnus-sum.el (gnus-valid-move-group-p): Make sure that `group' is a symbol.
nnimap.el (nnimap-split-incoming-mail): Allow `default' as nnimap-split-methods value.
nnimap.el (nnimap-request-article): Downcase the NILs so that they are nil.
nndoc.el (nndoc-retrieve-groups): New function.
gnus.texi: Fix Gravatar documentation.
2010-09-30 08:39:23 +00:00
|
|
|
t (cons "nntp" 0) 'gnus-method-history)))
|
2004-09-04 13:13:48 +00:00
|
|
|
;; We either got a back end name or a virtual server name.
|
1997-04-16 22:13:18 +00:00
|
|
|
;; If the first, we also need an address.
|
|
|
|
(if (assoc how gnus-valid-select-methods)
|
|
|
|
(list (intern how)
|
|
|
|
;; Suggested by mapjph@bath.ac.uk.
|
Merge changes made in Gnus trunk.
nndraft.el (nndraft-request-expire-articles): Use the group name instead if "nndraft".
gnus.texi (Using IMAP): Remove the @acronyms from the headings.
nnregistry.el: Added.
nnimap.el (nnimap-insert-partial-structure): Be way more permissive when interpreting the structures.
GNUS-NEWS: Minor error in GNUS-NEWS - password-cache.el.
nnimap.el (nnimap-request-accept-article): Add \r\n to the lines to make this work with Cyrus.
gnus-registry.el: Don't prompt on load, which makes it impossible to build Gnus.
gnus-gravatar.el: Add gnus-gravatar-properties.
gnus-agent.el, gnus-art.el, gnus-bookmark.el, gnus-dired.el, gnus-group.el,\
gnus-int.el, gnus-msg.el, gnus-registry.el, gnus-score.el, gnus-srvr.el,\
gnus-sum.el, gnus-topic.el, gnus-util.el, gnus.el, mm-decode.el, mm-util.el,\
mm-view.el, mml-smime.el, mml.el, nnmairix.el, nnrss.el, smime.el:\
Introduce gnus-completing-read.
gnus-util.el: Make completing-read function configurable.
gnus-util.el: Add requires and fix history for iswitchb.
webmail.el: Remove netscape/my-deja, since they no longer exist.
gnus.el (gnus-local-domain): Declare variable obsolete.
nnimap.el (nnimap-insert-partial-structure): Get the type from the correct slot, too.
pop3.el (pop3-send-streaming-command, pop3-stream-length): New variable.
nnimap.el (nnimap-open-connection): Revert the auto-network->starttls code.
nnimap.el (nnimap-request-set-mark): Erase the buffer before issuing commands.
nnimap.el (nnimap-split-rule): Mark as obsolete.
gnus-sum.el (gnus-valid-move-group-p): Make sure that `group' is a symbol.
nnimap.el (nnimap-split-incoming-mail): Allow `default' as nnimap-split-methods value.
nnimap.el (nnimap-request-article): Downcase the NILs so that they are nil.
nndoc.el (nndoc-retrieve-groups): New function.
gnus.texi: Fix Gravatar documentation.
2010-09-30 08:39:23 +00:00
|
|
|
(gnus-completing-read
|
|
|
|
"Address"
|
2013-10-29 23:34:26 -07:00
|
|
|
;; FIXME? gnus-secondary-servers is obsolete,
|
|
|
|
;; and it is not obvious that there is anything
|
|
|
|
;; sensible to use instead in this particular case.
|
2022-07-16 10:57:26 +02:00
|
|
|
;; (if (boundp 'gnus-secondary-servers)
|
|
|
|
;; gnus-secondary-servers
|
|
|
|
;; (cdr gnus-select-method))
|
|
|
|
nil
|
|
|
|
))
|
1997-04-16 22:13:18 +00:00
|
|
|
;; We got a server name.
|
2021-02-14 14:14:48 +01:00
|
|
|
how)))
|
|
|
|
gnus-group-mode)
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-browse-foreign-server method))
|
|
|
|
|
|
|
|
(defun gnus-group-set-info (info &optional method-only-group part)
|
2000-09-19 13:37:09 +00:00
|
|
|
(when (or info part)
|
2007-10-28 09:18:39 +00:00
|
|
|
(let* ((entry (gnus-group-entry
|
|
|
|
(or method-only-group (gnus-info-group info))))
|
2000-09-19 13:37:09 +00:00
|
|
|
(part-info info)
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(info (if method-only-group (nth 1 entry) info))
|
2000-09-19 13:37:09 +00:00
|
|
|
method)
|
|
|
|
(when method-only-group
|
|
|
|
(unless entry
|
|
|
|
(error "Trying to change non-existent group %s" method-only-group))
|
|
|
|
;; We have received parts of the actual group info - either the
|
2006-11-24 10:42:46 +00:00
|
|
|
;; select method or the group parameters. We first check
|
2000-09-19 13:37:09 +00:00
|
|
|
;; whether we have to extend the info, and if so, do that.
|
|
|
|
(let ((len (length info))
|
|
|
|
(total (if (eq part 'method) 5 6)))
|
|
|
|
(when (< len total)
|
|
|
|
(setcdr (nthcdr (1- len) info)
|
|
|
|
(make-list (- total len) nil)))
|
|
|
|
;; Then we enter the new info.
|
|
|
|
(setcar (nthcdr (1- total) info) part-info)))
|
1997-04-16 22:13:18 +00:00
|
|
|
(unless entry
|
2000-09-19 13:37:09 +00:00
|
|
|
;; This is a new group, so we just create it.
|
2010-09-01 17:42:37 +02:00
|
|
|
(with-current-buffer gnus-group-buffer
|
2000-09-19 13:37:09 +00:00
|
|
|
(setq method (gnus-info-method info))
|
|
|
|
(when (gnus-server-equal method "native")
|
|
|
|
(setq method nil))
|
2010-09-01 17:42:37 +02:00
|
|
|
(with-current-buffer gnus-group-buffer
|
2000-09-19 13:37:09 +00:00
|
|
|
(if method
|
|
|
|
;; It's a foreign group...
|
|
|
|
(gnus-group-make-group
|
|
|
|
(gnus-group-real-name (gnus-info-group info))
|
|
|
|
(if (stringp method) method
|
|
|
|
(prin1-to-string (car method)))
|
|
|
|
(and (consp method)
|
2007-10-28 09:18:39 +00:00
|
|
|
(nth 1 (gnus-info-method info)))
|
2018-11-16 12:53:56 -08:00
|
|
|
nil)
|
2000-09-19 13:37:09 +00:00
|
|
|
;; It's a native group.
|
2018-11-16 12:53:56 -08:00
|
|
|
(gnus-group-make-group (gnus-info-group info) nil nil nil)))
|
2000-09-19 13:37:09 +00:00
|
|
|
(gnus-message 6 "Note: New group created")
|
|
|
|
(setq entry
|
2007-10-28 09:18:39 +00:00
|
|
|
(gnus-group-entry (gnus-group-prefixed-name
|
|
|
|
(gnus-group-real-name (gnus-info-group info))
|
|
|
|
(or (gnus-info-method info) gnus-select-method))))))
|
2000-09-19 13:37:09 +00:00
|
|
|
;; Whether it was a new group or not, we now have the entry, so we
|
|
|
|
;; can do the update.
|
|
|
|
(if entry
|
|
|
|
(progn
|
Change Gnus hash tables into real hash tables
Gnus has used obarrays as makeshift hash tables for groups: group
names are coerced to unibyte and interned in custom obarrays, and
their symbol-value set to whatever value needs to be stored. This
patch replaces those obarrays with actual hash tables.
* lisp/gnus/gnus-util.el (gnus-intern-safe, gnus-create-hash-size):
Remove functions.
(gnus-make-hashtable): Change to return a real hash table.
(gnus-text-property-search): Utility similar to `text-property-any',
but compares on `equal'. Needed because the 'gnus-group text
property is now a string.
* lisp/gnus/gnus.el (gnus-gethash, gnus-gethash-safe, gnus-sethash):
Remove macros.
(gnus-group-list): New variable holding all group names as an
ordered list. Used because `gnus-newsrc-hashtb' used to preserve
`gnus-newsrc-alist' ordering, but now doesn't.
* lisp/gnus/nnmaildir.el (nnmaildir--servers): Change from obarray to
alist.
(nnmaildir--up2-1): Remove function.
* lisp/thingatpt.el (thing-at-point-newsgroup-p): This was making use
of Gnus obarrays, replace with a cond that can handle many different
possibilities.
* lisp/gnus/gnus-bcklg.el (gnus-backlog-articles): Remove
gnus-backlog-hashtb, which wasn't doing anything. Just keep a list
of ident strings in gnus-backlog-articles.
(gnus-backlog-setup): Delete unnecessary function.
(gnus-backlog-enter-article, gnus-backlog-remove-oldest-article,
gnus-backlog-remove-article, gnus-backlog-request-article): Alter
calls accordingly.
* lisp/gnus/gnus-dup.el (gnus-duplicate-list-max-length): Rename from
`gnus-duplicate-list-length', for accuracy.
* lisp/gnus/gnus-start.el (gnus-active-to-gnus-format,
gnus-groups-to-gnus-format, gnus-newsrc-to-gnus-format): Read group
names as strings.
(gnus-gnus-to-quick-newsrc-format): Write `gnus-newsrc-alist' using
the ordering in `gnus-group-list'.
* lisp/gnus/gnus-agent.el:
* lisp/gnus/gnus-async.el:
* lisp/gnus/gnus-cache.el:
* lisp/gnus/gnus-group.el:
* lisp/gnus/gnus-score.el:
* lisp/gnus/gnus-sum.el:
* lisp/gnus/gnus-topic.el:
* lisp/gnus/message.el:
* lisp/gnus/mml.el:
* lisp/gnus/nnagent.el:
* lisp/gnus/nnbabyl.el:
* lisp/gnus/nnvirtual.el:
* lisp/gnus/nnweb.el: In all files, change obarrays to hash-tables,
and swap `gnus-sethash' for `puthash', `gnus-gethash' for `gethash',
`mapatoms' for `maphash', etc.
* test/lisp/gnus/gnus-test-headers.el (gnus-headers-make-dependency-table,
gnus-headers-loop-dependencies): New tests to make sure we're
building `gnus-newsgroup-dependencies' correctly.
2018-04-26 16:26:27 -07:00
|
|
|
(setcar (nthcdr 1 entry) info)
|
2000-09-19 13:37:09 +00:00
|
|
|
(when (and (not (eq (car entry) t))
|
|
|
|
(gnus-active (gnus-info-group info)))
|
2004-09-04 13:13:48 +00:00
|
|
|
(setcar entry (length
|
2019-07-07 16:25:14 -07:00
|
|
|
(gnus-list-of-unread-articles (car info)))))
|
|
|
|
;; The above `setcar' will only affect the hashtable, not
|
2019-10-03 16:21:02 -07:00
|
|
|
;; the alist: update the alist separately, but only if
|
|
|
|
;; it's been initialized.
|
|
|
|
(when gnus-newsrc-alist
|
|
|
|
(push info (cdr (setq gnus-newsrc-alist
|
|
|
|
(remove (assoc-string
|
|
|
|
(gnus-info-group info)
|
|
|
|
gnus-newsrc-alist)
|
|
|
|
gnus-newsrc-alist))))))
|
2000-09-19 13:37:09 +00:00
|
|
|
(error "No such group: %s" (gnus-info-group info))))))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
2011-02-27 08:20:21 +00:00
|
|
|
;; Ad-hoc function for inserting data from a different newsrc.eld
|
|
|
|
;; file. Use with caution, if at all.
|
|
|
|
(defun gnus-import-other-newsrc-file (file)
|
|
|
|
(with-temp-buffer
|
2011-05-16 19:32:50 -07:00
|
|
|
(insert-file-contents file)
|
2011-02-27 08:20:21 +00:00
|
|
|
(let (form)
|
|
|
|
(while (ignore-errors
|
|
|
|
(setq form (read (current-buffer))))
|
|
|
|
(when (and (consp form)
|
|
|
|
(eq (cadr form) 'gnus-newsrc-alist))
|
|
|
|
(let ((infos (cadr (nth 2 form))))
|
|
|
|
(dolist (info infos)
|
|
|
|
(when (gnus-get-info (car info))
|
|
|
|
(gnus-set-info (car info) info)))))))))
|
|
|
|
|
1997-04-16 22:13:18 +00:00
|
|
|
(defun gnus-add-marked-articles (group type articles &optional info force)
|
|
|
|
;; Add ARTICLES of TYPE to the info of GROUP.
|
2000-09-19 13:37:09 +00:00
|
|
|
;; If INFO is non-nil, use that info. If FORCE is non-nil, don't
|
1997-04-16 22:13:18 +00:00
|
|
|
;; add, but replace marked articles of TYPE with ARTICLES.
|
|
|
|
(let ((info (or info (gnus-get-info group)))
|
|
|
|
marked m)
|
|
|
|
(or (not info)
|
|
|
|
(and (not (setq marked (nthcdr 3 info)))
|
|
|
|
(or (null articles)
|
|
|
|
(setcdr (nthcdr 2 info)
|
2022-01-17 12:40:43 +01:00
|
|
|
(list (list (cons type (range-compress-list
|
|
|
|
articles)))))))
|
1997-04-16 22:13:18 +00:00
|
|
|
(and (not (setq m (assq type (car marked))))
|
|
|
|
(or (null articles)
|
|
|
|
(setcar marked
|
2022-01-17 12:40:43 +01:00
|
|
|
(cons (cons type (range-compress-list articles))
|
1997-04-16 22:13:18 +00:00
|
|
|
(car marked)))))
|
|
|
|
(if force
|
|
|
|
(if (null articles)
|
|
|
|
(setcar (nthcdr 3 info)
|
2016-02-13 17:31:10 +11:00
|
|
|
(assq-delete-all type (car marked)))
|
2022-01-17 12:40:43 +01:00
|
|
|
(setcdr m (range-compress-list articles)))
|
|
|
|
(setcdr m (range-compress-list
|
|
|
|
(sort (nconc (range-uncompress (cdr m))
|
2021-01-30 00:35:24 -05:00
|
|
|
(copy-sequence articles))
|
2022-01-17 12:40:43 +01:00
|
|
|
#'<)))))))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
2013-05-28 19:40:43 -07:00
|
|
|
(declare-function gnus-summary-add-mark "gnus-sum" (article type))
|
|
|
|
|
2004-09-04 13:13:48 +00:00
|
|
|
(defun gnus-add-mark (group mark article)
|
|
|
|
"Mark ARTICLE in GROUP with MARK, whether the group is displayed or not."
|
|
|
|
(let ((buffer (gnus-summary-buffer-name group)))
|
|
|
|
(if (gnus-buffer-live-p buffer)
|
2010-09-01 17:42:37 +02:00
|
|
|
(with-current-buffer (get-buffer buffer)
|
2004-09-04 13:13:48 +00:00
|
|
|
(gnus-summary-add-mark article mark))
|
|
|
|
(gnus-add-marked-articles group (cdr (assq mark gnus-article-mark-lists))
|
|
|
|
(list article)))))
|
|
|
|
|
1997-04-16 22:13:18 +00:00
|
|
|
;;;
|
|
|
|
;;; Group timestamps
|
|
|
|
;;;
|
|
|
|
|
|
|
|
(defun gnus-group-set-timestamp ()
|
|
|
|
"Change the timestamp of the current group to the current time.
|
|
|
|
This function can be used in hooks like `gnus-select-group-hook'
|
|
|
|
or `gnus-group-catchup-group-hook'."
|
|
|
|
(when gnus-newsgroup-name
|
New function time-convert
This replaces the awkward reuse of encode-time to both convert
calendrical timestamps to Lisp timestamps, and to convert Lisp
timestamps to other forms. Now, encode-time does just the
former and the new function does just the latter.
The new function builds on a suggestion by Lars Ingebrigtsen in:
https://lists.gnu.org/r/emacs-devel/2019-07/msg00801.html
and refined by Stefan Monnier in:
https://lists.gnu.org/r/emacs-devel/2019-07/msg00803.html
* doc/lispref/os.texi (Time of Day, Time Conversion):
* doc/misc/emacs-mime.texi (time-date):
* etc/NEWS: Update documentation.
* lisp/calendar/cal-dst.el (calendar-next-time-zone-transition):
* lisp/calendar/time-date.el (seconds-to-time, days-to-time):
* lisp/calendar/timeclock.el (timeclock-seconds-to-time):
* lisp/cedet/ede/detect.el (ede-detect-qtest):
* lisp/completion.el (cmpl-hours-since-origin):
* lisp/ecomplete.el (ecomplete-add-item):
* lisp/emacs-lisp/cl-extra.el (cl--random-time):
* lisp/emacs-lisp/timer.el (timer--time-setter)
(timer-next-integral-multiple-of-time):
* lisp/find-lisp.el (find-lisp-format-time):
* lisp/gnus/gnus-diary.el (gnus-user-format-function-d):
* lisp/gnus/gnus-group.el (gnus-group-set-timestamp):
* lisp/gnus/gnus-icalendar.el (gnus-icalendar-show-org-agenda):
* lisp/gnus/nnrss.el (nnrss-normalize-date):
* lisp/gnus/nnspool.el (nnspool-request-newgroups):
* lisp/net/ntlm.el (ntlm-compute-timestamp):
* lisp/net/pop3.el (pop3-uidl-dele):
* lisp/obsolete/vc-arch.el (vc-arch-add-tagline):
* lisp/org/org-clock.el (org-clock-get-clocked-time)
(org-clock-resolve, org-resolve-clocks, org-clock-in)
(org-clock-out, org-clock-sum):
* lisp/org/org-id.el (org-id-uuid, org-id-time-to-b36):
* lisp/org/ox-publish.el (org-publish-cache-ctime-of-src):
* lisp/proced.el (proced-format-time):
* lisp/progmodes/cc-cmds.el (c-progress-init)
(c-progress-update):
* lisp/progmodes/cperl-mode.el (cperl-time-fontification):
* lisp/progmodes/flymake.el (flymake--schedule-timer-maybe):
* lisp/progmodes/vhdl-mode.el (vhdl-update-progress-info)
(vhdl-fix-case-region-1):
* lisp/tar-mode.el (tar-octal-time):
* lisp/time.el (emacs-uptime):
* lisp/url/url-auth.el (url-digest-auth-make-cnonce):
* lisp/url/url-util.el (url-lazy-message):
* lisp/vc/vc-cvs.el (vc-cvs-parse-entry):
* lisp/vc/vc-hg.el (vc-hg-state-fast):
* lisp/xt-mouse.el (xterm-mouse-event):
* test/lisp/emacs-lisp/timer-tests.el:
(timer-next-integral-multiple-of-time-2):
Use time-convert, not encode-time.
* lisp/calendar/icalendar.el (icalendar--decode-isodatetime):
Don’t use now-removed FORM argument for encode-time.
It wasn’t crucial anyway.
* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Add time-convert.
* lisp/emacs-lisp/elint.el (elint-unknown-builtin-args):
Update encode-time signature to match current arg set.
* lisp/emacs-lisp/timer.el (timer-next-integral-multiple-of-time):
Use timer-convert with t rather than doing it by hand.
* src/timefns.c (time_hz_ticks, time_form_stamp, lisp_time_form_stamp):
Remove; no longer needed.
(decode_lisp_time): Rturn the form instead of having a *PFORM arg.
All uses changed.
(time_arith): Just return TICKS if HZ is 1.
(Fencode_time): Remove argument FORM. All callers changed.
Do not attempt to encode time values; just encode
decoded (calendrical) times.
Unless CURRENT_TIME_LIST, just return VALUE since HZ is 1.
(Ftime_convert): New function, which does the time value
conversion that bleeding-edge encode-time formerly did.
Return TIME if it is easy to see that it is already
of the correct form.
(Fcurrent_time): Mention in doc that the form is planned to change.
* test/src/timefns-tests.el (decode-then-encode-time):
Don’t use (encode-time nil).
2019-08-05 17:38:52 -07:00
|
|
|
(let ((time (time-convert nil 'integer)))
|
1997-04-16 22:13:18 +00:00
|
|
|
(gnus-group-set-parameter gnus-newsgroup-name 'timestamp time))))
|
|
|
|
|
|
|
|
(defsubst gnus-group-timestamp (group)
|
|
|
|
"Return the timestamp for GROUP."
|
1999-02-20 14:05:57 +00:00
|
|
|
(gnus-group-get-parameter group 'timestamp t))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-timestamp-delta (group)
|
2021-09-24 14:46:56 +02:00
|
|
|
"Return the offset in seconds from the timestamp for GROUP to the current time.
|
|
|
|
Return value is a floating point number."
|
2019-02-10 23:46:24 -08:00
|
|
|
;; FIXME: This should return a Lisp integer, not a Lisp float,
|
|
|
|
;; since it is always an integer.
|
|
|
|
(let* ((time (or (gnus-group-timestamp group) 0))
|
Avoid some double-rounding of Lisp timestamps
Also, simplify some time-related Lisp timestamp code
while we’re in the neighborhood.
* lisp/battery.el (battery-linux-proc-acpi)
(battery-linux-sysfs, battery-upower, battery-bsd-apm):
* lisp/calendar/timeclock.el (timeclock-seconds-to-string)
(timeclock-log, timeclock-last-period)
(timeclock-entry-length, timeclock-entry-list-span)
(timeclock-find-discrep, timeclock-generate-report):
* lisp/cedet/ede/detect.el (ede-detect-qtest):
* lisp/completion.el (cmpl-hours-since-origin):
* lisp/ecomplete.el (ecomplete-decay-1):
* lisp/emacs-lisp/ert.el (ert--results-update-stats-display)
(ert--results-update-stats-display-maybe):
* lisp/emacs-lisp/timer-list.el (list-timers):
* lisp/emacs-lisp/timer.el (timer-until)
(timer-event-handler):
* lisp/erc/erc-backend.el (erc-server-send-ping)
(erc-server-send-queue, erc-handle-parsed-server-response)
(erc-handle-unknown-server-response):
* lisp/erc/erc-track.el (erc-buffer-visible):
* lisp/erc/erc.el (erc-lurker-cleanup, erc-lurker-p)
(erc-cmd-PING, erc-send-current-line):
* lisp/eshell/em-pred.el (eshell-pred-file-time):
* lisp/eshell/em-unix.el (eshell-show-elapsed-time):
* lisp/gnus/gnus-icalendar.el (gnus-icalendar-event:org-timestamp):
* lisp/gnus/gnus-int.el (gnus-backend-trace):
* lisp/gnus/gnus-sum.el (gnus-user-date):
* lisp/gnus/mail-source.el (mail-source-delete-crash-box):
* lisp/gnus/nnmaildir.el (nnmaildir--scan):
* lisp/ibuf-ext.el (ibuffer-mark-old-buffers):
* lisp/gnus/nnmaildir.el (nnmaildir--scan):
* lisp/mouse.el (mouse--down-1-maybe-follows-link)
(mouse--click-1-maybe-follows-link):
* lisp/mpc.el (mpc--faster-toggle):
* lisp/net/rcirc.el (rcirc-handler-ctcp-KEEPALIVE)
(rcirc-sentinel):
* lisp/net/tramp-cache.el (tramp-get-file-property):
* lisp/net/tramp-sh.el (tramp-sh-handle-file-newer-than-file-p)
(tramp-maybe-open-connection):
* lisp/net/tramp-smb.el (tramp-smb-maybe-open-connection):
* lisp/org/org-clock.el (org-clock-resolve):
(org-resolve-clocks, org-clock-in, org-clock-out, org-clock-sum):
* lisp/org/org-timer.el (org-timer-start)
(org-timer-pause-or-continue, org-timer-seconds):
* lisp/org/org.el (org-evaluate-time-range):
* lisp/org/ox-publish.el (org-publish-cache-ctime-of-src):
* lisp/pixel-scroll.el (pixel-scroll-in-rush-p):
* lisp/play/hanoi.el (hanoi-move-ring):
* lisp/proced.el (proced-format-time):
* lisp/progmodes/cpp.el (cpp-progress-message):
* lisp/progmodes/flymake.el (flymake--handle-report):
* lisp/progmodes/js.el (js--wait-for-matching-output):
* lisp/subr.el (progress-reporter-do-update):
* lisp/term/xterm.el (xterm--read-event-for-query):
* lisp/time.el (display-time-update, emacs-uptime):
* lisp/tooltip.el (tooltip-delay):
* lisp/url/url-cookie.el (url-cookie-parse-file-netscape):
* lisp/url/url-queue.el (url-queue-prune-old-entries):
* lisp/url/url.el (url-retrieve-synchronously):
* lisp/xt-mouse.el (xterm-mouse-event):
Avoid double-rounding of time-related values. Simplify.
* lisp/calendar/icalendar.el (icalendar--decode-isodatetime):
When hoping for the best (unlikely), use a better decoded time.
(icalendar--convert-sexp-to-ical): Avoid unnecessary encode-time.
* lisp/calendar/timeclock.el (timeclock-when-to-leave):
* lisp/cedet/ede/detect.el (ede-detect-qtest):
* lisp/desktop.el (desktop-create-buffer):
* lisp/emacs-lisp/benchmark.el (benchmark-elapse):
* lisp/gnus/gnus-art.el (article-lapsed-string):
* lisp/gnus/gnus-group.el (gnus-group-timestamp-delta):
* lisp/gnus/nnmail.el (nnmail-expired-article-p):
* lisp/gnus/nnmaildir.el (nnmaildir-request-expire-articles):
* lisp/nxml/rng-maint.el (rng-time-function):
* lisp/org/org-clock.el (org-clock-get-clocked-time)
(org-clock-resolve, org-resolve-clocks, org-resolve-clocks-if-idle):
* lisp/org/org-habit.el (org-habit-insert-consistency-graphs):
* lisp/progmodes/vhdl-mode.el (vhdl-update-progress-info)
(vhdl-fix-case-region-1):
Use time-since instead of open-coding most of it.
* lisp/erc/erc-dcc.el (erc-dcc-get-sentinel):
* lisp/erc/erc.el (erc-string-to-emacs-time, erc-time-gt):
Now obsolete. All uses changed.
(erc-time-diff): Accept all Lisp time values.
All uses changed.
* lisp/gnus/gnus-demon.el (gnus-demon-idle-since):
* lisp/gnus/gnus-score.el (gnus-score-headers):
* lisp/gnus/nneething.el (nneething-make-head):
* lisp/gnus/nnheader.el (nnheader-message-maybe):
* lisp/gnus/nnimap.el (nnimap-keepalive):
* lisp/image.el (image-animate-timeout):
* lisp/mail/feedmail.el (feedmail-rfc822-date):
* lisp/net/imap.el (imap-wait-for-tag):
* lisp/net/newst-backend.el (newsticker--image-get):
* lisp/net/rcirc.el (rcirc-handler-317, rcirc-handler-333):
* lisp/obsolete/xesam.el (xesam-refresh-entry):
* lisp/org/org-agenda.el (org-agenda-show-clocking-issues)
(org-agenda-check-clock-gap, org-agenda-to-appt):
* lisp/org/org-capture.el (org-capture-set-target-location):
* lisp/org/org-clock.el (org-clock-resolve-clock)
(org-clocktable-steps):
* lisp/org/org-colview.el (org-columns-edit-value)
(org-columns, org-agenda-columns):
* lisp/org/org-duration.el (org-duration-from-minutes):
* lisp/org/org-element.el (org-element-cache-sync-duration)
(org-element-cache-sync-break)
(org-element--cache-interrupt-p, org-element--cache-sync):
* lisp/org/org-habit.el (org-habit-get-faces)
* lisp/org/org-indent.el (org-indent-add-properties):
* lisp/org/org-table.el (org-table-sum):
* lisp/org/org-timer.el (org-timer-show-remaining-time)
(org-timer-set-timer):
* lisp/org/org.el (org-babel-load-file, org-today)
(org-auto-repeat-maybe, org-2ft, org-time-stamp)
(org-read-date-analyze, org-time-stamp-to-now)
(org-small-year-to-year, org-goto-calendar):
* lisp/org/ox.el (org-export-insert-default-template):
* lisp/ses.el (ses--time-check):
* lisp/type-break.el (type-break-time-warning)
(type-break-statistics, type-break-demo-boring):
* lisp/url/url-cache.el (url-cache-expired)
(url-cache-prune-cache):
* lisp/vc/vc-git.el (vc-git-stash-snapshot):
* lisp/erc/erc-match.el (erc-log-matches-come-back):
Simplify.
2019-02-22 18:32:31 -08:00
|
|
|
(delta (time-since time)))
|
2019-02-10 23:46:24 -08:00
|
|
|
(float-time delta)))
|
1997-04-16 22:13:18 +00:00
|
|
|
|
|
|
|
(defun gnus-group-timestamp-string (group)
|
|
|
|
"Return a string of the timestamp for GROUP."
|
|
|
|
(let ((time (gnus-group-timestamp group)))
|
|
|
|
(if (not time)
|
|
|
|
""
|
|
|
|
(gnus-time-iso8601 time))))
|
|
|
|
|
2000-09-19 13:37:09 +00:00
|
|
|
(defun gnus-group-list-cached (level &optional lowest)
|
|
|
|
"List all groups with cached articles.
|
|
|
|
If the prefix LEVEL is non-nil, it should be a number that says which
|
|
|
|
level to cut off listing groups.
|
|
|
|
If LOWEST, don't list groups with level lower than LOWEST.
|
|
|
|
|
|
|
|
This command may read the active file."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
2000-09-19 13:37:09 +00:00
|
|
|
(when level
|
|
|
|
(setq level (prefix-numeric-value level)))
|
|
|
|
(when (or (not level) (>= level gnus-level-zombie))
|
|
|
|
(gnus-cache-open))
|
2004-09-04 13:13:48 +00:00
|
|
|
(funcall gnus-group-prepare-function
|
|
|
|
(or level gnus-level-subscribed)
|
2021-04-01 10:23:21 +02:00
|
|
|
(lambda (info)
|
|
|
|
(let ((marks (gnus-info-marks info)))
|
|
|
|
(assq 'cache marks)))
|
2004-09-04 13:13:48 +00:00
|
|
|
lowest
|
2021-04-01 10:23:21 +02:00
|
|
|
(lambda (group)
|
|
|
|
(or (gethash group
|
|
|
|
gnus-cache-active-hashtb)
|
|
|
|
;; Cache active file might use "."
|
|
|
|
;; instead of ":".
|
|
|
|
(gethash
|
|
|
|
(mapconcat #'identity
|
|
|
|
(split-string group ":")
|
|
|
|
".")
|
|
|
|
gnus-cache-active-hashtb))))
|
2000-09-19 13:37:09 +00:00
|
|
|
(goto-char (point-min))
|
|
|
|
(gnus-group-position-point))
|
|
|
|
|
|
|
|
(defun gnus-group-list-dormant (level &optional lowest)
|
|
|
|
"List all groups with dormant articles.
|
|
|
|
If the prefix LEVEL is non-nil, it should be a number that says which
|
|
|
|
level to cut off listing groups.
|
|
|
|
If LOWEST, don't list groups with level lower than LOWEST.
|
|
|
|
|
|
|
|
This command may read the active file."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
2000-09-19 13:37:09 +00:00
|
|
|
(when level
|
|
|
|
(setq level (prefix-numeric-value level)))
|
|
|
|
(when (or (not level) (>= level gnus-level-zombie))
|
|
|
|
(gnus-cache-open))
|
2004-09-04 13:13:48 +00:00
|
|
|
(funcall gnus-group-prepare-function
|
|
|
|
(or level gnus-level-subscribed)
|
2021-04-01 10:23:21 +02:00
|
|
|
(lambda (info)
|
|
|
|
(let ((marks (gnus-info-marks info)))
|
|
|
|
(assq 'dormant marks)))
|
2004-09-04 13:13:48 +00:00
|
|
|
lowest
|
|
|
|
'ignore)
|
2000-09-19 13:37:09 +00:00
|
|
|
(goto-char (point-min))
|
|
|
|
(gnus-group-position-point))
|
|
|
|
|
2011-03-18 13:45:04 +00:00
|
|
|
(defun gnus-group-list-ticked (level &optional lowest)
|
|
|
|
"List all groups with ticked articles.
|
|
|
|
If the prefix LEVEL is non-nil, it should be a number that says which
|
|
|
|
level to cut off listing groups.
|
|
|
|
If LOWEST, don't list groups with level lower than LOWEST.
|
|
|
|
|
|
|
|
This command may read the active file."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
2011-03-18 13:45:04 +00:00
|
|
|
(when level
|
|
|
|
(setq level (prefix-numeric-value level)))
|
|
|
|
(when (or (not level) (>= level gnus-level-zombie))
|
|
|
|
(gnus-cache-open))
|
|
|
|
(funcall gnus-group-prepare-function
|
|
|
|
(or level gnus-level-subscribed)
|
2021-04-01 10:23:21 +02:00
|
|
|
(lambda (info)
|
|
|
|
(let ((marks (gnus-info-marks info)))
|
|
|
|
(assq 'tick marks)))
|
2011-03-18 13:45:04 +00:00
|
|
|
lowest
|
|
|
|
'ignore)
|
|
|
|
(goto-char (point-min))
|
|
|
|
(gnus-group-position-point))
|
|
|
|
|
2004-09-04 13:13:48 +00:00
|
|
|
(defun gnus-group-listed-groups ()
|
|
|
|
"Return a list of listed groups."
|
|
|
|
(let (point groups)
|
|
|
|
(goto-char (point-min))
|
|
|
|
(while (setq point (text-property-not-all (point) (point-max)
|
|
|
|
'gnus-group nil))
|
|
|
|
(goto-char point)
|
2018-11-16 12:53:56 -08:00
|
|
|
(push (get-text-property point 'gnus-group) groups)
|
2004-09-04 13:13:48 +00:00
|
|
|
(forward-char 1))
|
|
|
|
groups))
|
|
|
|
|
* lisp/gnus: Use lexical-binding in all the files
* lisp/gnus/gnus-group.el (features): Use `dlet`.
(gnus-tmp-level, gnus-tmp-marked, gnus-tmp-group): Declare vars.
(gnus-group-insert-group-line): Bind dynbound vars via `let` rather
than as formal args. Bind `number` as dynbound.
(gnus-visual, gnus-score-find-score-files-function)
(gnus-home-score-file, gnus-apply-kill-hook)
(gnus-summary-expunge-below): Declare vars.
(gnus-group-restart, gnus-group-list-plus): Fix `interactive` spec
since the arg is unused.
* lisp/gnus/mail-source.el (mail-source-bind, mail-source-bind-common):
Use `dlet` and suppress the warnings about the non-prefixed dynbound vars.
(mail-source-set-1): Remove unused var `auth-info`.
(mail-source-call-script): Remove unused var `background`.
(mail-source-fetch-pop, mail-source-check-pop): Bind pop3 vars with `dlet`.
* lisp/gnus/gnus-int.el (mail-source-plugged, gnus-inhibit-demon):
Declare vars.
(gnus-server-opened, gnus-status-message)
(gnus-open-server, gnus-close-server, gnus-request-list)
(gnus-finish-retrieve-group-infos, gnus-retrieve-group-data-early)
(gnus-request-list-newsgroups, gnus-request-newgroups)
(gnus-request-regenerate, gnus-request-compact, gnus-request-group)
(gnus-retrieve-groups, gnus-request-post, gnus-request-expunge-group)
(gnus-request-scan, gnus-request-update-info, gnus-request-marks)
(gnus-request-accept-article, gnus-request-create-group)
(gnus-asynchronous-p, gnus-remove-denial):
Bind `gnus-command-method` via `let` rather than as formal args.
* lisp/gnus/gnus-topic.el (gnus-topic-insert-topic-line):
Pass documented vars to eval for `gnus-topic-line-format-spec`.
* lisp/gnus/message.el (message-yank-original): Use `cl-progv` rather
than `eval` to bind the vars from `message-cite-style`.
* lisp/gnus/mml.el (mml-parse-1): Use `apply` instead of `eval`.
(gnus-newsgroup-name, gnus-displaying-mime, gnus-newsgroup-name)
(gnus-article-prepare-hook, gnus-newsgroup-charset)
(gnus-original-article-buffer, gnus-message-buffer)
(message-this-is-news, message-this-is-mail): Declare vars.
* lisp/gnus/deuglify.el (gnus-outlook-rearrange-article): Remove unused
var `cite-marks`.
* lisp/gnus/gnus-art.el (ansi-color-context-region): Declare var.
(gnus-mime-display-attachment-buttons-in-header): Move declaration
before first use.
(gnus-mime-display-alternative): Remove unused var `from`.
* lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-list): Remove unused
var `start` `end`.
* lisp/gnus/gnus-cache.el (gnus-article-decode-hook)
(nnml-generate-active-function): Declare var.
* lisp/gnus/gnus-cite.el (gnus-message-citation-mode): Remove unused
var `keywords`.
* lisp/gnus/gnus-cloud.el (gnus-cloud-encode-data): Remove unused var
`cipher`.
(gnus-cloud-ensure-cloud-group): Remove unused var `method`.
* lisp/gnus/gnus-delay.el (gnus-delay-article): Remove unused var `days`.
* lisp/gnus/gnus-html.el (gnus-html-wash-images): Remove unused vars
`tag`, `string`, and `images`.
(gnus-html-wash-tags): Remove unused vars `string` and `images`.
* lisp/gnus/gnus-msg.el (gnus-msg-mail): Remove unused var `group-name`.
(gnus-group-mail, gnus-group-news, gnus-summary-mail-other-window)
(gnus-summary-news-other-window):
Remove unused vars `group` and `buffer`.
(gnus-configure-posting-styles): Remove unused vars `style` and `attribute`.
* lisp/gnus/gnus-picon.el (gnus-picon-find-face): Remove unused vars
`database`, `directory`, and `instance`.
(gnus-picon-transform-newsgroups): Remove unused var `point`.
* lisp/gnus/gnus-range.el (gnus-range-difference): Remove unused var `safe`.
* lisp/gnus/gnus-score.el (gnus-score-load-file): Remove unused var
`score-fn`.
* lisp/gnus/gnus-sum.el (message-options-set-recipient): Declare var.
* lisp/gnus/gnus-undo.el (gnus-undo): Fix docstring lie.
* lisp/gnus/gnus-util.el (print-string-length)
(iswitchb-make-buflist-hook): Declare vars.
(gnus-emacs-version): Remove unused var `codename`.
(gnus-rename-file): Remove unused vars `old-name` and `new-name`.
* lisp/gnus/gnus-uu.el (gnus-uu-yenc-article): Remove unused var
`start-char`.
(gnus-asynchronous): Declare var.
* lisp/gnus/mm-partial.el (gnus-displaying-mime): Declare var.
(mm-inline-partial): Remove unused var `buffer`.
* lisp/gnus/mm-view.el (w3m-force-redisplay, w3m-safe-url-regexp)
(gnus-displaying-mime, gnus-original-article-buffer)
(gnus-article-prepare-hook): Declare vars.
* lisp/gnus/mml-smime.el (mml-smime-epg-encrypt): Remove unused var
`boundary`.
(mml-smime-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/mml1991.el (pgg-text-mode): Declare var.
* lisp/gnus/mml2015.el (pgg-text-mode): Declare var.
(mml2015-pgg-decrypt): Remove unused var `result`.
(mml2015-epg-key-image-to-string): Remove unused var `error`.
(mml2015-epg-decrypt): Remove unused var `result`.
(mml2015-epg-verify): Remove unused vars `plain` and `signature-file`.
* lisp/gnus/nnbabyl.el (nnml-current-directory): Declare var.
* lisp/gnus/nndiary.el (nndiary-files): Move declaration before first use.
* lisp/gnus/nnfolder.el (nnfolder-request-accept-article):
Remove unused var `buf`.
* lisp/gnus/nnmail.el (nnmail-parse-active): Remove unused var `err`.
* lisp/gnus/nnmairix.el (nnmairix-request-group): Remove unused var `args`.
(nnmairix-request-create-group): Remove unused var `info`.
(nnmairix-request-list): Remove unused var `folder`.
(nnmairix-request-set-mark): Remove unused var `propto`.
(nnmairix-request-set-mark): Remove unused vars `number` and `method`.
(nnmairix-close-group): Remove unused var `method`.
(nnmairix-create-search-group-from-message): Remove unused var `cq`.
(nnmairix-create-server-and-default-group): Remove unused var `create`.
(nnmairix-purge-old-groups): Remove unused var `folder`.
(nnmairix-remove-tick-mark-original-article, nnmairix-get-valid-servers):
Remove unused var `cur`.
(nnmairix-replace-group-and-numbers): Remove unused var `header`.
(nnmairix-goto-original-article): Remove unused var `rval`.
(nnmairix-widget-create-query): Remove unused var `allwidgets`.
* lisp/gnus/nnmbox.el (nnml-current-directory): Declare var.
* lisp/gnus/nnmh.el (nnmh-toplev): Move declaration before first use.
(nnmh-request-list-1): Remove unused var `rdir`.
* lisp/gnus/nnml.el (nnml-generate-nov-file): Remove unused var `file`.
* lisp/gnus/nnrss.el (nnrss-request-article): Remove unused var `post`.
(nnrss-request-article): Remove unused var `fn`.
(nnrss-check-group): Remove unused var `rdf-ns`.
* lisp/gnus/nnweb.el (nnweb-request-article): Remove unused var `active`.
(nnweb-google-parse-1): Remove unused var `Score`.
* lisp/gnus/spam-stat.el (spam-stat-error-holder): Remove var.
(spam-stat-buffer-words-with-scores): Remove unused var `word`.
(spam-stat-score-buffer): Remove unused var `spam-stat-error-holder`.
(spam-stat-split-fancy): Use `err` instead of `spam-stat-error-holder`.
* lisp/gnus/spam-wash.el (spam-wash): Remove unused var `handle`.
* lisp/gnus/spam.el (spam-copy-or-move-routine): Remove unused vars
`article` and `mark`.
(spam-register-routine): Remove unused var `article`.
(spam-log-undo-registration): Remove unused var `found`.
(spam-ifile-register-with-ifile): Remove unused var `parameters`.
(spam-check-stat): Remove unused vars `category` and `return`.
(spam-parse-list): Remove unused var `found`.
(spam-filelist-register-routine): Remove unused var `from`.
2021-01-30 18:44:00 -05:00
|
|
|
(defun gnus-group-list-plus (&optional _args)
|
2004-09-04 13:13:48 +00:00
|
|
|
"List groups plus the current selection."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive nil gnus-group-mode)
|
2004-09-04 13:13:48 +00:00
|
|
|
(let ((gnus-group-listed-groups (gnus-group-listed-groups))
|
|
|
|
(gnus-group-list-mode gnus-group-list-mode) ;; Save it.
|
|
|
|
func)
|
|
|
|
(push last-command-event unread-command-events)
|
2016-02-11 15:22:45 +11:00
|
|
|
(push ?A unread-command-events)
|
2004-09-04 13:13:48 +00:00
|
|
|
(let (gnus-pick-mode keys)
|
2016-02-11 15:22:45 +11:00
|
|
|
(setq keys (read-key-sequence nil)
|
|
|
|
func (lookup-key (current-local-map) keys)))
|
2004-09-04 13:13:48 +00:00
|
|
|
(if (or (not func)
|
|
|
|
(numberp func))
|
|
|
|
(ding)
|
|
|
|
(call-interactively func))))
|
|
|
|
|
|
|
|
(defun gnus-group-list-flush (&optional args)
|
|
|
|
"Flush groups from the current selection."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
2004-09-04 13:13:48 +00:00
|
|
|
(let ((gnus-group-list-option 'flush))
|
|
|
|
(gnus-group-list-plus args)))
|
|
|
|
|
|
|
|
(defun gnus-group-list-limit (&optional args)
|
2011-09-11 22:50:22 +00:00
|
|
|
"List groups limited within the current selection.
|
|
|
|
If you've limited the groups, you can further limit the selection
|
|
|
|
with this command. If you've first limited to groups with
|
|
|
|
dormant articles with `A ?', you can then further limit with
|
|
|
|
`A / c', which will then limit to groups with cached articles, giving
|
|
|
|
you the groups that have both dormant articles and cached articles."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive "P" gnus-group-mode)
|
2004-09-04 13:13:48 +00:00
|
|
|
(let ((gnus-group-list-option 'limit))
|
|
|
|
(gnus-group-list-plus args)))
|
|
|
|
|
2013-06-19 00:23:06 -07:00
|
|
|
(declare-function gnus-mark-article-as-read "gnus-sum" (article &optional mark))
|
2013-05-28 19:40:43 -07:00
|
|
|
(declare-function gnus-group-make-articles-read "gnus-sum" (group articles))
|
|
|
|
|
2004-09-04 13:13:48 +00:00
|
|
|
(defun gnus-group-mark-article-read (group article)
|
|
|
|
"Mark ARTICLE read."
|
|
|
|
(let ((buffer (gnus-summary-buffer-name group))
|
|
|
|
(mark gnus-read-mark)
|
|
|
|
active n)
|
|
|
|
(if (get-buffer buffer)
|
|
|
|
(with-current-buffer buffer
|
|
|
|
(setq active gnus-newsgroup-active)
|
|
|
|
(gnus-activate-group group)
|
|
|
|
(when gnus-newsgroup-prepared
|
|
|
|
(when (and gnus-newsgroup-auto-expire
|
|
|
|
(memq mark gnus-auto-expirable-marks))
|
|
|
|
(setq mark gnus-expirable-mark))
|
|
|
|
(setq mark (gnus-request-update-mark
|
|
|
|
group article mark))
|
2012-09-05 22:35:32 +00:00
|
|
|
(gnus-request-set-mark
|
|
|
|
group (list (list (list article) 'add '(read))))
|
2004-09-04 13:13:48 +00:00
|
|
|
(gnus-mark-article-as-read article mark)
|
|
|
|
(setq gnus-newsgroup-active (gnus-active group))
|
|
|
|
(when active
|
|
|
|
(setq n (1+ (cdr active)))
|
|
|
|
(while (<= n (cdr gnus-newsgroup-active))
|
|
|
|
(unless (eq n article)
|
|
|
|
(push n gnus-newsgroup-unselected))
|
|
|
|
(setq n (1+ n)))
|
|
|
|
(setq gnus-newsgroup-unselected
|
2021-01-30 00:35:24 -05:00
|
|
|
(sort gnus-newsgroup-unselected #'<)))))
|
2004-09-04 13:13:48 +00:00
|
|
|
(gnus-activate-group group)
|
|
|
|
(gnus-group-make-articles-read group (list article))
|
2011-05-30 22:11:52 +00:00
|
|
|
(when (and (gnus-group-auto-expirable-p group)
|
|
|
|
(not (gnus-group-read-only-p group)))
|
2004-09-04 13:13:48 +00:00
|
|
|
(gnus-add-marked-articles
|
|
|
|
group 'expire (list article))))))
|
|
|
|
|
2007-10-28 09:18:39 +00:00
|
|
|
|
|
|
|
;;;
|
|
|
|
;;; Group compaction. -- dvl
|
|
|
|
;;;
|
|
|
|
|
|
|
|
(defun gnus-group-compact-group (group)
|
|
|
|
"Compact the current group.
|
|
|
|
Compaction means removing gaps between article numbers. Hence, this
|
|
|
|
operation is only meaningful for back ends using one file per article
|
|
|
|
\(e.g. nnml).
|
|
|
|
|
|
|
|
Note: currently only implemented in nnml."
|
2021-02-14 14:14:48 +01:00
|
|
|
(interactive (list (gnus-group-group-name)) gnus-group-mode)
|
2007-10-28 09:18:39 +00:00
|
|
|
(unless group
|
|
|
|
(error "No group to compact"))
|
|
|
|
(unless (gnus-check-backend-function 'request-compact-group group)
|
|
|
|
(error "This back end does not support group compaction"))
|
2018-11-16 12:53:56 -08:00
|
|
|
(gnus-message 6 "\
|
2007-10-28 09:18:39 +00:00
|
|
|
Compacting group %s... (this may take a long time)"
|
2018-11-16 12:53:56 -08:00
|
|
|
group)
|
|
|
|
(prog1
|
|
|
|
(if (not (gnus-request-compact-group group))
|
|
|
|
(gnus-error 3 "Couldn't compact group %s" group)
|
|
|
|
(gnus-message 6 "Compacting group %s...done" group)
|
|
|
|
t)
|
|
|
|
;; Invalidate the "original article" buffer which might be out of date.
|
|
|
|
;; #### NOTE: Yes, this might be a bit rude, but since compaction
|
|
|
|
;; #### will not happen very often, I think this is acceptable.
|
|
|
|
(gnus-kill-buffer gnus-original-article-buffer)
|
|
|
|
;; Update the group line to reflect new information (art number etc).
|
|
|
|
(gnus-group-update-group-line)))
|
2007-10-28 09:18:39 +00:00
|
|
|
|
1997-04-16 22:13:18 +00:00
|
|
|
(provide 'gnus-group)
|
|
|
|
|
|
|
|
;;; gnus-group.el ends here
|