1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-17 11:20:39 -08:00

Merge changes made in Gnus trunk.

gnus.el (gnus-home-directory): Add warning about setting in .gnus.el (bug#9405).
gnus-score.el (gnus-summary-increase-score): Doc clarification (bug#9421).
gnus-spec.el (gnus-face-0): Make all the face specs into defcustoms (bug#9425).
gnus-art.el (gnus-treatment-function-alist): Remove CRs as the first thing (bug#9426).
This commit is contained in:
Lars Magne Ingebrigtsen 2011-09-04 22:17:09 +00:00 committed by Katsumi Yamaoka
parent 86633eab8a
commit 052bd38a56
5 changed files with 78 additions and 19 deletions

View file

@ -1,3 +1,17 @@
2011-09-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus.el (gnus-home-directory): Add warning about setting in .gnus.el
(bug#9405).
* gnus-score.el (gnus-summary-increase-score): Doc clarification
(bug#9421).
* gnus-spec.el (gnus-face-0): Make all the face specs into defcustoms
(bug#9425).
* gnus-art.el (gnus-treatment-function-alist): Remove CRs as the first
thing (bug#9426).
2011-09-03 Lars Magne Ingebrigtsen <larsi@gnus.org> 2011-09-03 Lars Magne Ingebrigtsen <larsi@gnus.org>
* nnimap.el (nnimap-open-connection-1): Use the correct port number in * nnimap.el (nnimap-open-connection-1): Use the correct port number in

View file

@ -1657,14 +1657,14 @@ regexp."
(defvar gnus-article-mime-handle-alist-1 nil) (defvar gnus-article-mime-handle-alist-1 nil)
(defvar gnus-treatment-function-alist (defvar gnus-treatment-function-alist
'((gnus-treat-x-pgp-sig gnus-article-verify-x-pgp-sig) '((gnus-treat-strip-cr gnus-article-remove-cr)
(gnus-treat-x-pgp-sig gnus-article-verify-x-pgp-sig)
(gnus-treat-strip-banner gnus-article-strip-banner) (gnus-treat-strip-banner gnus-article-strip-banner)
(gnus-treat-strip-headers-in-body gnus-article-strip-headers-in-body) (gnus-treat-strip-headers-in-body gnus-article-strip-headers-in-body)
(gnus-treat-highlight-signature gnus-article-highlight-signature) (gnus-treat-highlight-signature gnus-article-highlight-signature)
(gnus-treat-buttonize gnus-article-add-buttons) (gnus-treat-buttonize gnus-article-add-buttons)
(gnus-treat-fill-article gnus-article-fill-cited-article) (gnus-treat-fill-article gnus-article-fill-cited-article)
(gnus-treat-fill-long-lines gnus-article-fill-cited-long-lines) (gnus-treat-fill-long-lines gnus-article-fill-cited-long-lines)
(gnus-treat-strip-cr gnus-article-remove-cr)
(gnus-treat-unsplit-urls gnus-article-unsplit-urls) (gnus-treat-unsplit-urls gnus-article-unsplit-urls)
(gnus-treat-display-x-face gnus-article-display-x-face) (gnus-treat-display-x-face gnus-article-display-x-face)
(gnus-treat-display-face gnus-article-display-face) (gnus-treat-display-face gnus-article-display-face)

View file

@ -522,9 +522,10 @@ of the last successful match.")
(defun gnus-summary-lower-score (&optional score symp) (defun gnus-summary-lower-score (&optional score symp)
"Make a score entry based on the current article. "Make a score entry based on the current article.
The user will be prompted for header to score on, match type, The user will be prompted for header to score on, match type,
permanence, and the string to be used. The numerical prefix will be permanence, and the string to be used. The numerical prefix will
used as score. A symbolic prefix of `a' says to use the `all.SCORE' be used as SCORE. A symbolic prefix of `a' (the SYMP parameter)
file for the command instead of the current score file." says to use the `all.SCORE' file for the command instead of the
current score file."
(interactive (gnus-interactive "P\ny")) (interactive (gnus-interactive "P\ny"))
(gnus-summary-increase-score (- (gnus-score-delta-default score)) symp)) (gnus-summary-increase-score (- (gnus-score-delta-default score)) symp))
@ -537,9 +538,10 @@ file for the command instead of the current score file."
(defun gnus-summary-increase-score (&optional score symp) (defun gnus-summary-increase-score (&optional score symp)
"Make a score entry based on the current article. "Make a score entry based on the current article.
The user will be prompted for header to score on, match type, The user will be prompted for header to score on, match type,
permanence, and the string to be used. The numerical prefix will be permanence, and the string to be used. The numerical prefix will
used as score. A symbolic prefix of `a' says to use the `all.SCORE' be used as SCORE. A symbolic prefix of `a' (the SYMP parameter)
file for the command instead of the current score file." says to use the `all.SCORE' file for the command instead of the
current score file."
(interactive (gnus-interactive "P\ny")) (interactive (gnus-interactive "P\ny"))
(let* ((nscore (gnus-score-delta-default score)) (let* ((nscore (gnus-score-delta-default score))
(prefix (if (< nscore 0) ?L ?I)) (prefix (if (< nscore 0) ?L ?I))

View file

@ -264,11 +264,30 @@ Return a list of updated types."
(push (cons 'version emacs-version) gnus-format-specs)) (push (cons 'version emacs-version) gnus-format-specs))
updated)) updated))
(defvar gnus-mouse-face-0 'highlight) (defcustom gnus-mouse-face-0 'highlight
(defvar gnus-mouse-face-1 'highlight) "The \"%(hello%)\" face."
(defvar gnus-mouse-face-2 'highlight) :group 'gnus-format
(defvar gnus-mouse-face-3 'highlight) :type 'face)
(defvar gnus-mouse-face-4 'highlight)
(defcustom gnus-mouse-face-1 'highlight
"The \"%1(hello%)\" face."
:group 'gnus-format
:type 'face)
(defcustom gnus-mouse-face-2 'highlight
"The \"%2(hello%)\" face."
:group 'gnus-format
:type 'face)
(defcustom gnus-mouse-face-3 'highlight
"The \"%3(hello%)\" face."
:group 'gnus-format
:type 'face)
(defcustom gnus-mouse-face-4 'highlight
"The \"%4(hello%)\" face."
:group 'gnus-format
:type 'face)
(defun gnus-mouse-face-function (form type) (defun gnus-mouse-face-function (form type)
`(gnus-put-text-property `(gnus-put-text-property
@ -278,11 +297,30 @@ Return a list of updated types."
'gnus-mouse-face 'gnus-mouse-face
`(quote ,(symbol-value (intern (format "gnus-mouse-face-%d" type))))))) `(quote ,(symbol-value (intern (format "gnus-mouse-face-%d" type)))))))
(defvar gnus-face-0 'bold) (defcustom gnus-face-0 'bold
(defvar gnus-face-1 'italic) "The \"%{hello%}\" face."
(defvar gnus-face-2 'bold-italic) :group 'gnus-format
(defvar gnus-face-3 'bold) :type 'face)
(defvar gnus-face-4 'bold)
(defcustom gnus-face-1 'italic
"The \"%1{hello%}\" face."
:group 'gnus-format
:type 'face)
(defcustom gnus-face-2 'bold-italic
"The \"%2{hello%}\" face."
:group 'gnus-format
:type 'face)
(defcustom gnus-face-3 'bold
"The \"%3{hello%}\" face."
:group 'gnus-format
:type 'face)
(defcustom gnus-face-4 'bold
"The \"%4{hello%}\" face."
:group 'gnus-format
:type 'face)
(defun gnus-face-face-function (form type) (defun gnus-face-face-function (form type)
`(gnus-add-text-properties `(gnus-add-text-properties

View file

@ -1245,7 +1245,12 @@ REST is a plist of following:
(defcustom gnus-home-directory "~/" (defcustom gnus-home-directory "~/"
"Directory variable that specifies the \"home\" directory. "Directory variable that specifies the \"home\" directory.
All other Gnus file and directory variables are initialized from this variable." All other Gnus file and directory variables are initialized from this variable.
Note that Gnus is mostly loaded when the `.gnus.el' file is read.
This means that other directory variables that are initialized
from this variable won't be set properly if you set this variable
in `.gnus.el'. Set this variable in `.emacs' instead."
:group 'gnus-files :group 'gnus-files
:type 'directory) :type 'directory)