aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGnus developers2011-01-24 23:38:05 +0000
committerKatsumi Yamaoka2011-01-24 23:38:05 +0000
commitc5ecc7690d4afafb42049634d64abd781ff76642 (patch)
treed10767179c7f257ab9ae4d33844405a81a309499
parentab0a61d0acb81353f5636a9c42bec7762dd90c81 (diff)
downloademacs-c5ecc7690d4afafb42049634d64abd781ff76642.tar.gz
emacs-c5ecc7690d4afafb42049634d64abd781ff76642.zip
Merge changes made in Gnus trunk.
shr.el: Use defface to create shr-tag-h[1-6] faces to fontify h[1-6] tags. mml-smime.el (mml-smime-use): Make it a defcustom and default to 'epg if EPG is loaded. message.texi (IDNA): Explain what it is. gnus.texi (The Empty Backend): Document nnnil (bug #7653). gnus-agent.el (gnus-agent-prompt-send-queue): Whitespace fix. shr.el (shr-expand-newlines): Proof of concept implemantation of boxy backgrounds. (shr-expand-newlines): Switch to using overlays to enable kill'n'yank in a more sensible manner.
-rw-r--r--doc/misc/ChangeLog8
-rw-r--r--doc/misc/gnus.texi18
-rw-r--r--doc/misc/message.texi4
-rw-r--r--lisp/gnus/ChangeLog17
-rw-r--r--lisp/gnus/gnus-agent.el3
-rw-r--r--lisp/gnus/mml-smime.el7
-rw-r--r--lisp/gnus/shr.el56
7 files changed, 103 insertions, 10 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 805a048ee2f..cafa02356a9 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,11 @@
12011-01-24 Teodor Zlatanov <tzz@lifelogs.com>
2
3 * message.texi (IDNA): Explain what it is.
4
52011-01-24 Lars Ingebrigtsen <larsi@gnus.org>
6
7 * gnus.texi (The Empty Backend): Document nnnil (bug #7653).
8
12011-01-23 Werner Lemberg <wl@gnu.org> 92011-01-23 Werner Lemberg <wl@gnu.org>
2 10
3 * Makefile.in (MAKEINFO): Now controlled by `configure'. 11 * Makefile.in (MAKEINFO): Now controlled by `configure'.
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
index 21f65e7c407..df6d212d2f5 100644
--- a/doc/misc/gnus.texi
+++ b/doc/misc/gnus.texi
@@ -704,6 +704,7 @@ Other Sources
704* Anything Groups:: Dired? Who needs dired? 704* Anything Groups:: Dired? Who needs dired?
705* Document Groups:: Single files can be the basis of a group. 705* Document Groups:: Single files can be the basis of a group.
706* Mail-To-News Gateways:: Posting articles via mail-to-news gateways. 706* Mail-To-News Gateways:: Posting articles via mail-to-news gateways.
707* The Empty Backend:: The backend that never has any news.
707 708
708Document Groups 709Document Groups
709 710
@@ -17127,6 +17128,7 @@ newsgroups.
17127* Anything Groups:: Dired? Who needs dired? 17128* Anything Groups:: Dired? Who needs dired?
17128* Document Groups:: Single files can be the basis of a group. 17129* Document Groups:: Single files can be the basis of a group.
17129* Mail-To-News Gateways:: Posting articles via mail-to-news gateways. 17130* Mail-To-News Gateways:: Posting articles via mail-to-news gateways.
17131* The Empty Backend:: The backend that never has any news.
17130@end menu 17132@end menu
17131 17133
17132 17134
@@ -17574,6 +17576,22 @@ So, to use this, simply say something like:
17574@end lisp 17576@end lisp
17575 17577
17576 17578
17579@node The Empty Backend
17580@subsection The Empty Backend
17581@cindex nnnil
17582
17583@code{nnnil} is a backend that can be used as a placeholder if you
17584have to specify a backend somewhere, but don't really want to. The
17585classical example is if you don't want to have a primary select
17586methods, but want to only use secondary ones:
17587
17588@lisp
17589(setq gnus-select-method '(nnnil ""))
17590(setq gnus-secondary-select-methods
17591 '((nnimap "foo")
17592 (nnml "")))
17593@end lisp
17594
17577 17595
17578@node Combined Groups 17596@node Combined Groups
17579@section Combined Groups 17597@section Combined Groups
diff --git a/doc/misc/message.texi b/doc/misc/message.texi
index 39ca57f6103..45cfe75da83 100644
--- a/doc/misc/message.texi
+++ b/doc/misc/message.texi
@@ -886,6 +886,10 @@ Manual}).
886@cindex internationalized domain names 886@cindex internationalized domain names
887@cindex non-ascii domain names 887@cindex non-ascii domain names
888 888
889@acronym{IDNA} is a standard way to encode non-@acronym{ASCII} domain
890names into a readable @acronym{ASCII} string. The details can be
891found in RFC 3490.
892
889Message is a @acronym{IDNA}-compliant posting agent. The user 893Message is a @acronym{IDNA}-compliant posting agent. The user
890generally doesn't have to do anything to make the @acronym{IDNA} 894generally doesn't have to do anything to make the @acronym{IDNA}
891happen---Message will encode non-@acronym{ASCII} domain names in @code{From}, 895happen---Message will encode non-@acronym{ASCII} domain names in @code{From},
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 9780b6f4c07..10bc8f226ea 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,5 +1,22 @@
12011-01-24 Lars Ingebrigtsen <larsi@gnus.org> 12011-01-24 Lars Ingebrigtsen <larsi@gnus.org>
2 2
3 * shr.el (shr-expand-newlines): Proof of concept implemantation of boxy
4 backgrounds.
5 (shr-expand-newlines): Switch to using overlays to enable kill'n'yank
6 in a more sensible manner.
7
82011-01-24 Teodor Zlatanov <tzz@lifelogs.com>
9
10 * mml-smime.el (mml-smime-use): Make it a defcustom and default to 'epg
11 if EPG is loaded.
12
132011-01-24 Julien Danjou <julien@danjou.info>
14
15 * shr.el: Use defface to create shr-tag-h[1-6] faces to fontify h[1-6]
16 tags.
17
182011-01-24 Lars Ingebrigtsen <larsi@gnus.org>
19
3 * gnus-art.el (gnus-article-read-summary-keys): Don't call disabled 20 * gnus-art.el (gnus-article-read-summary-keys): Don't call disabled
4 commands. 21 commands.
5 22
diff --git a/lisp/gnus/gnus-agent.el b/lisp/gnus/gnus-agent.el
index 13fa94ee064..2c0b02d16a0 100644
--- a/lisp/gnus/gnus-agent.el
+++ b/lisp/gnus/gnus-agent.el
@@ -203,8 +203,7 @@ queue. Otherwise, queue if and only if unplugged."
203 (const :format "When unplugged" t))) 203 (const :format "When unplugged" t)))
204 204
205(defcustom gnus-agent-prompt-send-queue nil 205(defcustom gnus-agent-prompt-send-queue nil
206 "If non-nil, `gnus-group-send-queue' will prompt if called when 206 "If non-nil, `gnus-group-send-queue' will prompt if called when unplugged."
207unplugged."
208 :version "22.1" 207 :version "22.1"
209 :group 'gnus-agent 208 :group 'gnus-agent
210 :type 'boolean) 209 :type 'boolean)
diff --git a/lisp/gnus/mml-smime.el b/lisp/gnus/mml-smime.el
index 4d27384002f..47176e96d38 100644
--- a/lisp/gnus/mml-smime.el
+++ b/lisp/gnus/mml-smime.el
@@ -37,7 +37,12 @@
37(autoload 'message-narrow-to-headers "message") 37(autoload 'message-narrow-to-headers "message")
38(autoload 'message-fetch-field "message") 38(autoload 'message-fetch-field "message")
39 39
40(defvar mml-smime-use 'openssl) 40(defcustom mml-smime-use (if (featurep 'epg) 'epg 'openssl)
41 "Whether to use OpenSSL or EPG to decrypt S/MIME messages.
42Defaults to EPG if it's loaded."
43 :group 'mime-security
44 :type '(choice (const :tag "EPG" epg)
45 (const :tag "OpenSSL" openssl)))
41 46
42(defvar mml-smime-function-alist 47(defvar mml-smime-function-alist
43 '((openssl mml-smime-openssl-sign 48 '((openssl mml-smime-openssl-sign
diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el
index 75929b29e05..e2c51bb13e0 100644
--- a/lisp/gnus/shr.el
+++ b/lisp/gnus/shr.el
@@ -82,6 +82,30 @@ used."
82 (const :tag "Use the width of the window" nil)) 82 (const :tag "Use the width of the window" nil))
83 :group 'shr) 83 :group 'shr)
84 84
85(defface shr-tag-h1 '((t (:bold t :height 2.2)))
86 "Face used for H1 tags."
87 :group 'shr)
88
89(defface shr-tag-h2 '((t (:bold t :height 2.0)))
90 "Face used for H2 tags."
91 :group 'shr)
92
93(defface shr-tag-h3 '((t (:bold t :height 1.8)))
94 "Face used for H3 tags."
95 :group 'shr)
96
97(defface shr-tag-h4 '((t (:bold t :height 1.6)))
98 "Face used for H4 tags."
99 :group 'shr)
100
101(defface shr-tag-h5 '((t (:bold t :height 1.4)))
102 "Face used for H5 tags."
103 :group 'shr)
104
105(defface shr-tag-h6 '((t (:bold t :height 1.2)))
106 "Face used for H6 tags."
107 :group 'shr)
108
85(defvar shr-content-function nil 109(defvar shr-content-function nil
86 "If bound, this should be a function that will return the content. 110 "If bound, this should be a function that will return the content.
87This is used for cid: URLs, and the function is called with the 111This is used for cid: URLs, and the function is called with the
@@ -618,7 +642,25 @@ ones, in case fg and bg are nil."
618 (shr-put-color-1 (point) (min (line-end-position) end) type color)) 642 (shr-put-color-1 (point) (min (line-end-position) end) type color))
619 (if (< (line-end-position) end) 643 (if (< (line-end-position) end)
620 (forward-line 1) 644 (forward-line 1)
621 (goto-char end))))) 645 (goto-char end)))
646 (when (eq type :background)
647 (shr-expand-newlines start end color))))
648
649(defun shr-expand-newlines (start end color)
650 (save-restriction
651 (narrow-to-region start end)
652 (let ((width (shr-natural-width))
653 column)
654 (goto-char (point-min))
655 (while (not (eobp))
656 (end-of-line)
657 (when (and (< (setq current-column (current-column)) width)
658 (not (overlays-at (point))))
659 (let ((overlay (make-overlay (point) (1+ (point)))))
660 (overlay-put overlay 'before-string
661 (propertize (make-string (- width current-column) ? )
662 'face (list :background color)))))
663 (forward-line 1)))))
622 664
623(defun shr-put-color-1 (start end type color) 665(defun shr-put-color-1 (start end type color)
624 (let* ((old-props (get-text-property start 'face)) 666 (let* ((old-props (get-text-property start 'face))
@@ -832,22 +874,22 @@ ones, in case fg and bg are nil."
832 (shr-generic cont)) 874 (shr-generic cont))
833 875
834(defun shr-tag-h1 (cont) 876(defun shr-tag-h1 (cont)
835 (shr-heading cont 'bold 'underline)) 877 (shr-heading cont 'shr-tag-h1))
836 878
837(defun shr-tag-h2 (cont) 879(defun shr-tag-h2 (cont)
838 (shr-heading cont 'bold)) 880 (shr-heading cont 'shr-tag-h2))
839 881
840(defun shr-tag-h3 (cont) 882(defun shr-tag-h3 (cont)
841 (shr-heading cont 'italic)) 883 (shr-heading cont 'shr-tag-h3))
842 884
843(defun shr-tag-h4 (cont) 885(defun shr-tag-h4 (cont)
844 (shr-heading cont)) 886 (shr-heading cont 'shr-tag-h4))
845 887
846(defun shr-tag-h5 (cont) 888(defun shr-tag-h5 (cont)
847 (shr-heading cont)) 889 (shr-heading cont 'shr-tag-h5))
848 890
849(defun shr-tag-h6 (cont) 891(defun shr-tag-h6 (cont)
850 (shr-heading cont)) 892 (shr-heading cont 'shr-tag-h6))
851 893
852(defun shr-tag-hr (cont) 894(defun shr-tag-hr (cont)
853 (shr-ensure-newline) 895 (shr-ensure-newline)