aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2007-11-09 09:46:02 +0000
committerMiles Bader2007-11-09 09:46:02 +0000
commit4d8a28ecb866de25881ddaee2899c406f7ff3a35 (patch)
treebe061342c8d3c7283ed10a206f326e7c70115eb1
parentc12ecb0af9679cc0e2fa0409931c34c035763469 (diff)
downloademacs-4d8a28ecb866de25881ddaee2899c406f7ff3a35.tar.gz
emacs-4d8a28ecb866de25881ddaee2899c406f7ff3a35.zip
Merge from gnus--devo--0
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-924
-rw-r--r--doc/misc/ChangeLog6
-rw-r--r--doc/misc/gnus-news.texi2
-rw-r--r--lisp/gnus/ChangeLog16
-rw-r--r--lisp/gnus/gnus-group.el70
-rw-r--r--lisp/gnus/gnus-msg.el7
-rw-r--r--lisp/gnus/message.el10
-rw-r--r--lisp/gnus/nnml.el3
7 files changed, 75 insertions, 39 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index c9e77908619..63f9a6e596f 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,9 @@
12007-11-09 Reiner Steib <Reiner.Steib@gmx.de>
2
3 * gnus-news.texi: Fix spelling.
4 `message-insert-formatted-citation-line', not
5 `message-insert-formated-citation-line'.
6
12007-11-07 Michael Albinus <michael.albinus@gmx.de> 72007-11-07 Michael Albinus <michael.albinus@gmx.de>
2 8
3 * tramp.texi (Overview): Mention also the PuTTY integration under 9 * tramp.texi (Overview): Mention also the PuTTY integration under
diff --git a/doc/misc/gnus-news.texi b/doc/misc/gnus-news.texi
index 821354717e2..0c08a93883b 100644
--- a/doc/misc/gnus-news.texi
+++ b/doc/misc/gnus-news.texi
@@ -175,7 +175,7 @@ named @code{message-signature-directory}.
175@item The option @code{message-citation-line-format} controls the format 175@item The option @code{message-citation-line-format} controls the format
176of the "Whomever writes:" line. You need to set 176of the "Whomever writes:" line. You need to set
177@code{message-citation-line-function} to 177@code{message-citation-line-function} to
178@code{message-insert-formated-citation-line} as well. 178@code{message-insert-formatted-citation-line} as well.
179@end itemize 179@end itemize
180 180
181@item Changes in back ends 181@item Changes in back ends
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index bc07acae287..7ac757f24e2 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,7 +1,23 @@
12007-11-05 Reiner Steib <Reiner.Steib@gmx.de>
2
3 * message.el (message-citation-line-function)
4 (message-insert-formatted-citation-line): Fix spelling of
5 `message-insert-formated-citation-line'.
6
12007-11-03 Reiner Steib <Reiner.Steib@gmx.de> 72007-11-03 Reiner Steib <Reiner.Steib@gmx.de>
2 8
3 * gnus-sum.el (gnus-summary-highlight): Mark as risky local variable. 9 * gnus-sum.el (gnus-summary-highlight): Mark as risky local variable.
4 10
112007-11-02 Katsumi Yamaoka <yamaoka@jpl.org>
12
13 * nnml.el (nnml-request-rename-group): Bind file-name-coding-system to
14 nnmail-pathname-coding-system.
15
16 * gnus-group.el (gnus-group-rename-group): Encode non-ASCII group name
17 that a user enters; decode group names in messages.
18
19 * gnus-msg.el (gnus-inews-do-gcc): Encode non-ASCII group names.
20
52007-11-01 Reiner Steib <Reiner.Steib@gmx.de> 212007-11-01 Reiner Steib <Reiner.Steib@gmx.de>
6 22
7 * mm-util.el (mm-charset-eval-alist): Mark as risky local variable. 23 * mm-util.el (mm-charset-eval-alist): Mark as risky local variable.
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el
index 97eb37a81ee..942a1cf4947 100644
--- a/lisp/gnus/gnus-group.el
+++ b/lisp/gnus/gnus-group.el
@@ -2613,14 +2613,19 @@ be removed from the server, even when it's empty."
2613When used interactively, GROUP is the group under point 2613When used interactively, GROUP is the group under point
2614and NEW-NAME will be prompted for." 2614and NEW-NAME will be prompted for."
2615 (interactive 2615 (interactive
2616 (list 2616 (let ((group (gnus-group-group-name))
2617 (gnus-group-group-name) 2617 method new-name)
2618 (progn 2618 (unless (gnus-check-backend-function 'request-rename-group group)
2619 (unless (gnus-check-backend-function 2619 (error "This back end does not support renaming groups"))
2620 'request-rename-group (gnus-group-group-name)) 2620 (setq new-name (gnus-read-group
2621 (error "This back end does not support renaming groups")) 2621 "Rename group to: "
2622 (gnus-read-group "Rename group to: " 2622 (gnus-group-real-name (gnus-group-decoded-name group)))
2623 (gnus-group-real-name (gnus-group-group-name)))))) 2623 method (gnus-info-method (gnus-get-info group)))
2624 (list group (mm-encode-coding-string
2625 new-name
2626 (gnus-group-name-charset
2627 method
2628 (gnus-group-prefixed-name new-name method))))))
2624 2629
2625 (unless (gnus-check-backend-function 'request-rename-group group) 2630 (unless (gnus-check-backend-function 'request-rename-group group)
2626 (error "This back end does not support renaming groups")) 2631 (error "This back end does not support renaming groups"))
@@ -2639,29 +2644,34 @@ and NEW-NAME will be prompted for."
2639 (gnus-group-real-name new-name) 2644 (gnus-group-real-name new-name)
2640 (gnus-info-method (gnus-get-info group))))) 2645 (gnus-info-method (gnus-get-info group)))))
2641 2646
2642 (when (gnus-active new-name) 2647 (let ((decoded-group (gnus-group-decoded-name group))
2643 (error "The group %s already exists" new-name)) 2648 (decoded-new-name (gnus-group-decoded-name new-name)))
2649 (when (gnus-active new-name)
2650 (error "The group %s already exists" decoded-new-name))
2644 2651
2645 (gnus-message 6 "Renaming group %s to %s..." group new-name) 2652 (gnus-message 6 "Renaming group %s to %s..."
2646 (prog1 2653 decoded-group decoded-new-name)
2647 (if (progn 2654 (prog1
2648 (gnus-group-goto-group group) 2655 (if (progn
2649 (not (when (< (gnus-group-group-level) gnus-level-zombie) 2656 (gnus-group-goto-group group)
2650 (gnus-request-rename-group group new-name)))) 2657 (not (when (< (gnus-group-group-level) gnus-level-zombie)
2651 (gnus-error 3 "Couldn't rename group %s to %s" group new-name) 2658 (gnus-request-rename-group group new-name))))
2652 ;; We rename the group internally by killing it... 2659 (gnus-error 3 "Couldn't rename group %s to %s"
2653 (gnus-group-kill-group) 2660 decoded-group decoded-new-name)
2654 ;; ... changing its name ... 2661 ;; We rename the group internally by killing it...
2655 (setcar (cdar gnus-list-of-killed-groups) new-name) 2662 (gnus-group-kill-group)
2656 ;; ... and then yanking it. Magic! 2663 ;; ... changing its name ...
2657 (gnus-group-yank-group) 2664 (setcar (cdar gnus-list-of-killed-groups) new-name)
2658 (gnus-set-active new-name (gnus-active group)) 2665 ;; ... and then yanking it. Magic!
2659 (gnus-message 6 "Renaming group %s to %s...done" group new-name) 2666 (gnus-group-yank-group)
2660 new-name) 2667 (gnus-set-active new-name (gnus-active group))
2661 (setq gnus-killed-list (delete group gnus-killed-list)) 2668 (gnus-message 6 "Renaming group %s to %s...done"
2662 (gnus-set-active group nil) 2669 decoded-group decoded-new-name)
2663 (gnus-dribble-touch) 2670 new-name)
2664 (gnus-group-position-point))) 2671 (setq gnus-killed-list (delete group gnus-killed-list))
2672 (gnus-set-active group nil)
2673 (gnus-dribble-touch)
2674 (gnus-group-position-point))))
2665 2675
2666(defun gnus-group-edit-group (group &optional part) 2676(defun gnus-group-edit-group (group &optional part)
2667 "Edit the group on the current line." 2677 "Edit the group on the current line."
diff --git a/lisp/gnus/gnus-msg.el b/lisp/gnus/gnus-msg.el
index 941222adfd5..891ed1bc269 100644
--- a/lisp/gnus/gnus-msg.el
+++ b/lisp/gnus/gnus-msg.el
@@ -1633,8 +1633,11 @@ this is a reply."
1633 (message-tokenize-header gcc " ,"))) 1633 (message-tokenize-header gcc " ,")))
1634 ;; Copy the article over to some group(s). 1634 ;; Copy the article over to some group(s).
1635 (while (setq group (pop groups)) 1635 (while (setq group (pop groups))
1636 (unless (gnus-check-server 1636 (setq method (gnus-inews-group-method group)
1637 (setq method (gnus-inews-group-method group))) 1637 group (mm-encode-coding-string
1638 group
1639 (gnus-group-name-charset method group)))
1640 (unless (gnus-check-server method)
1638 (error "Can't open server %s" (if (stringp method) method 1641 (error "Can't open server %s" (if (stringp method) method
1639 (car method)))) 1642 (car method))))
1640 (unless (gnus-request-group group nil method) 1643 (unless (gnus-request-group group nil method)
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index dd9aacc98cf..895c36a6beb 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -914,7 +914,7 @@ the signature is inserted."
914 "*Function called to insert the \"Whomever writes:\" line. 914 "*Function called to insert the \"Whomever writes:\" line.
915 915
916Predefined functions include `message-insert-citation-line' and 916Predefined functions include `message-insert-citation-line' and
917`message-insert-formated-citation-line' (see the variable 917`message-insert-formatted-citation-line' (see the variable
918`message-citation-line-format'). 918`message-citation-line-format').
919 919
920Note that Gnus provides a feature where the reader can click on 920Note that Gnus provides a feature where the reader can click on
@@ -923,7 +923,7 @@ people who read your message will have to change their Gnus
923configuration. See the variable `gnus-cite-attribution-suffix'." 923configuration. See the variable `gnus-cite-attribution-suffix'."
924 :type '(choice 924 :type '(choice
925 (function-item :tag "plain" message-insert-citation-line) 925 (function-item :tag "plain" message-insert-citation-line)
926 (function-item :tag "formatted" message-insert-formated-citation-line) 926 (function-item :tag "formatted" message-insert-formatted-citation-line)
927 (function :tag "Other")) 927 (function :tag "Other"))
928 :link '(custom-manual "(message)Insertion Variables") 928 :link '(custom-manual "(message)Insertion Variables")
929 :group 'message-insertion) 929 :group 'message-insertion)
@@ -3688,14 +3688,14 @@ This function uses `mail-citation-hook' if that is non-nil."
3688 "Cite function in the standard Message manner." 3688 "Cite function in the standard Message manner."
3689 (message-cite-original-1 nil)) 3689 (message-cite-original-1 nil))
3690 3690
3691(defun message-insert-formated-citation-line (&optional from date) 3691(defun message-insert-formatted-citation-line (&optional from date)
3692 "Function that inserts a formated citation line. 3692 "Function that inserts a formatted citation line.
3693 3693
3694See `message-citation-line-format'." 3694See `message-citation-line-format'."
3695 ;; The optional args are for testing/debugging. They will disappear later. 3695 ;; The optional args are for testing/debugging. They will disappear later.
3696 ;; Example: 3696 ;; Example:
3697 ;; (with-temp-buffer 3697 ;; (with-temp-buffer
3698 ;; (message-insert-formated-citation-line 3698 ;; (message-insert-formatted-citation-line
3699 ;; "John Doe <john.doe@example.invalid>" 3699 ;; "John Doe <john.doe@example.invalid>"
3700 ;; (current-time)) 3700 ;; (current-time))
3701 ;; (buffer-string)) 3701 ;; (buffer-string))
diff --git a/lisp/gnus/nnml.el b/lisp/gnus/nnml.el
index 6f45b0b6fa0..0f159181026 100644
--- a/lisp/gnus/nnml.el
+++ b/lisp/gnus/nnml.el
@@ -539,7 +539,8 @@ non-nil.")
539(deffoo nnml-request-rename-group (group new-name &optional server) 539(deffoo nnml-request-rename-group (group new-name &optional server)
540 (nnml-possibly-change-directory group server) 540 (nnml-possibly-change-directory group server)
541 (let ((new-dir (nnml-group-pathname new-name nil server)) 541 (let ((new-dir (nnml-group-pathname new-name nil server))
542 (old-dir (nnml-group-pathname group nil server))) 542 (old-dir (nnml-group-pathname group nil server))
543 (file-name-coding-system nnmail-pathname-coding-system))
543 (when (ignore-errors 544 (when (ignore-errors
544 (make-directory new-dir t) 545 (make-directory new-dir t)
545 t) 546 t)