emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r105869: Merge changes made in Gnus t


From: Katsumi Yamaoka
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r105869: Merge changes made in Gnus trunk.
Date: Wed, 21 Sep 2011 22:34:54 +0000
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 105869
author: Lars Magne Ingebrigtsen <address@hidden>
committer: Katsumi Yamaoka <address@hidden>
branch nick: trunk
timestamp: Wed 2011-09-21 22:34:54 +0000
message:
  Merge changes made in Gnus trunk.
  
  gnus.texi (Archived Messages): Note the default (bug#9552).
  message.el (message-indent-citation): Really make sure there's a newline at 
the end.
  nnimap.el (nnimap-parse-flags): Make regexp less prone to overflows.  Fix 
suggested by John Wiegley.
  pop3.el (pop3-open-server): Fix +OK end-of-command regexp.
  gnus-art.el (gnus-treat-hide-citation): Add doc.
  message.el (message-default-send-rename-function): Break out into its own 
function.
  ecomplete.el (ecomplete-display-matches): Revert patch since it doesn't work 
under XEmacs.
  nnimap.el (nnimap-map-port): New function to connect to 993 instead of 
"imaps" to word around Windows problems.
   (nnimap-open-connection-1): Use it.
  message.el (message-indent-citation): Revert last change which made `F' not 
work.
modified:
  doc/misc/ChangeLog
  doc/misc/gnus.texi
  lisp/gnus/ChangeLog
  lisp/gnus/ecomplete.el
  lisp/gnus/gnus-art.el
  lisp/gnus/message.el
  lisp/gnus/nnimap.el
  lisp/gnus/pop3.el
=== modified file 'doc/misc/ChangeLog'
--- a/doc/misc/ChangeLog        2011-09-21 05:22:17 +0000
+++ b/doc/misc/ChangeLog        2011-09-21 22:34:54 +0000
@@ -1,3 +1,7 @@
+2011-09-21  Lars Magne Ingebrigtsen  <address@hidden>
+
+       * gnus.texi (Archived Messages): Note the default (bug#9552).
+
 2011-09-21  Bill Wohler  <address@hidden>
 
        Release MH-E manual version 8.3.

=== modified file 'doc/misc/gnus.texi'
--- a/doc/misc/gnus.texi        2011-09-11 22:50:22 +0000
+++ b/doc/misc/gnus.texi        2011-09-21 22:34:54 +0000
@@ -12617,7 +12617,7 @@
 When a key ``matches'', the result is used.
 
 @item @code{nil}
-No message archiving will take place.  This is the default.
+No message archiving will take place.
 @end table
 
 Let's illustrate:

=== modified file 'lisp/gnus/ChangeLog'
--- a/lisp/gnus/ChangeLog       2011-09-21 12:23:49 +0000
+++ b/lisp/gnus/ChangeLog       2011-09-21 22:34:54 +0000
@@ -1,3 +1,28 @@
+2011-09-21  Lars Magne Ingebrigtsen  <address@hidden>
+
+       * message.el (message-indent-citation): Really make sure there's a
+       newline at the end.
+
+       * nnimap.el (nnimap-parse-flags): Make regexp less prone to overflows.
+       Fix suggested by John Wiegley.
+
+       * pop3.el (pop3-open-server): Fix +OK end-of-command regexp.
+
+       * gnus-art.el (gnus-treat-hide-citation): Add doc.
+
+       * message.el (message-default-send-rename-function): Break out into its
+       own function.
+
+       * ecomplete.el (ecomplete-display-matches): Revert patch since it
+       doesn't work under XEmacs.
+
+       * nnimap.el (nnimap-map-port): New function to connect to 993 instead
+       of "imaps" to word around Windows problems.
+       (nnimap-open-connection-1): Use it.
+
+       * message.el (message-indent-citation): Revert last change which made
+       `F' not work.
+
 2011-09-13  Kan-Ru Chen  <address@hidden>
 
        * ecomplete.el (ecomplete-display-matches): Intercept key sequence from

=== modified file 'lisp/gnus/ecomplete.el'
--- a/lisp/gnus/ecomplete.el    2011-09-21 12:23:49 +0000
+++ b/lisp/gnus/ecomplete.el    2011-09-21 22:34:54 +0000
@@ -123,15 +123,14 @@
            (message "%s" matches)
            nil)
        (setq highlight (ecomplete-highlight-match-line matches line))
-       (while (not (member (setq command (read-key-sequence-vector highlight))
-                           '([? ] [return] [?\r] [?\n] [?\C-g])))
+       (while (not (memq (setq command (read-event highlight)) '(? return)))
          (cond
-          ((member command '([27 ?n] [?\M-n]))
+          ((eq command ?\M-n)
            (setq line (min (1+ line) max-lines)))
-          ((member command '([27 ?p] [?\M-p]))
+          ((eq command ?\M-p)
            (setq line (max (1- line) 0))))
          (setq highlight (ecomplete-highlight-match-line matches line)))
-       (when (member command '([return] [?\r] [?\n]))
+       (when (eq command 'return)
          (nth line (split-string matches "\n")))))))
 
 (defun ecomplete-highlight-match-line (matches line)

=== modified file 'lisp/gnus/gnus-art.el'
--- a/lisp/gnus/gnus-art.el     2011-09-10 23:30:53 +0000
+++ b/lisp/gnus/gnus-art.el     2011-09-21 22:34:54 +0000
@@ -1231,7 +1231,10 @@
 (defcustom gnus-treat-hide-citation nil
   "Hide cited text.
 Valid values are nil, t, `head', `first', `last', an integer or a
-predicate.  See Info node `(gnus)Customizing Articles'."
+predicate.  See Info node `(gnus)Customizing Articles'.
+
+See `gnus-article-highlight-citation' for variables used to
+control what it hides."
   :group 'gnus-article-treat
   :link '(custom-manual "(gnus)Customizing Articles")
   :type gnus-article-treat-custom)

=== modified file 'lisp/gnus/message.el'
--- a/lisp/gnus/message.el      2011-09-20 22:14:36 +0000
+++ b/lisp/gnus/message.el      2011-09-21 22:34:54 +0000
@@ -3679,9 +3679,10 @@
       (message-delete-line))
     ;; Delete blank lines at the end of the buffer.
     (goto-char (point-max))
-    (beginning-of-line)
-    (while (and (looking-at "$")
-               (zerop (forward-line -1)))
+    (unless (eq (preceding-char) ?\n)
+      (insert "\n"))
+    (while (and (zerop (forward-line -1))
+               (looking-at "$"))
       (message-delete-line)))
   ;; Do the indentation.
   (if (null message-yank-prefix)
@@ -6357,35 +6358,38 @@
   ;; Rename the buffer.
   (if message-send-rename-function
       (funcall message-send-rename-function)
-    ;; Note: mail-abbrevs of XEmacs renames buffer name behind Gnus.
-    (when (string-match
-          "\\`\\*\\(sent \\|unsent \\)?\\(.+\\)\\*[^\\*]*\\|\\`mail to "
-          (buffer-name))
-      (let ((name (match-string 2 (buffer-name)))
-           to group)
-       (if (not (or (null name)
-                    (string-equal name "mail")
-                    (string-equal name "posting")))
-           (setq name (concat "*sent " name "*"))
-         (message-narrow-to-headers)
-         (setq to (message-fetch-field "to"))
-         (setq group (message-fetch-field "newsgroups"))
-         (widen)
-         (setq name
-               (cond
-                (to (concat "*sent mail to "
-                            (or (car (mail-extract-address-components to))
-                                to) "*"))
-                ((and group (not (string= group "")))
-                 (concat "*sent posting on " group "*"))
-                (t "*sent mail*"))))
-       (unless (string-equal name (buffer-name))
-         (rename-buffer name t)))))
+    (message-default-send-rename-function))
   ;; Push the current buffer onto the list.
   (when message-max-buffers
     (setq message-buffer-list
          (nconc message-buffer-list (list (current-buffer))))))
 
+(defun message-default-send-rename-function ()
+  ;; Note: mail-abbrevs of XEmacs renames buffer name behind Gnus.
+  (when (string-match
+        "\\`\\*\\(sent \\|unsent \\)?\\(.+\\)\\*[^\\*]*\\|\\`mail to "
+        (buffer-name))
+    (let ((name (match-string 2 (buffer-name)))
+         to group)
+      (if (not (or (null name)
+                  (string-equal name "mail")
+                  (string-equal name "posting")))
+         (setq name (concat "*sent " name "*"))
+       (message-narrow-to-headers)
+       (setq to (message-fetch-field "to"))
+       (setq group (message-fetch-field "newsgroups"))
+       (widen)
+       (setq name
+             (cond
+              (to (concat "*sent mail to "
+                          (or (car (mail-extract-address-components to))
+                              to) "*"))
+              ((and group (not (string= group "")))
+               (concat "*sent posting on " group "*"))
+              (t "*sent mail*"))))
+      (unless (string-equal name (buffer-name))
+       (rename-buffer name t)))))
+
 (defun message-mail-user-agent ()
   (let ((mua (cond
              ((not message-mail-user-agent) nil)

=== modified file 'lisp/gnus/nnimap.el'
--- a/lisp/gnus/nnimap.el       2011-09-10 23:30:53 +0000
+++ b/lisp/gnus/nnimap.el       2011-09-21 22:34:54 +0000
@@ -345,6 +345,11 @@
        nil
       stream)))
 
+(defun nnimap-map-port (port)
+  (if (equal port "imaps")
+      "993"
+    port))
+
 (defun nnimap-open-connection-1 (buffer)
   (unless nnimap-keepalive-timer
     (setq nnimap-keepalive-timer (run-at-time (* 60 15) (* 60 15)
@@ -373,7 +378,8 @@
        (push nnimap-server-port ports))
       (let* ((stream-list
              (open-protocol-stream
-              "*nnimap*" (current-buffer) nnimap-address (car ports)
+              "*nnimap*" (current-buffer) nnimap-address
+              (nnimap-map-port (car ports))
               :type nnimap-stream
               :return-list t
               :shell-command nnimap-shell-program
@@ -1551,7 +1557,7 @@
                 (goto-char start)
                 (setq vanished
                       (and (eq flag-sequence 'qresync)
-                           (re-search-forward "^\\* VANISHED .* \\([0-9:,]+\\)"
+                           (re-search-forward "^\\* VANISHED .*? 
\\([0-9:,]+\\)"
                                               (or end (point-min)) t)
                            (match-string 1)))
                 (goto-char start)

=== modified file 'lisp/gnus/pop3.el'
--- a/lisp/gnus/pop3.el 2011-08-21 09:39:07 +0000
+++ b/lisp/gnus/pop3.el 2011-09-21 22:34:54 +0000
@@ -308,7 +308,7 @@
                    (t
                     (or pop3-stream-type 'network)))
             :capability-command "CAPA\r\n"
-            :end-of-command "^\\(-ERR\\|+OK \\).*\n"
+            :end-of-command "^\\(-ERR\\|+OK\\).*\n"
             :end-of-capability "^\\.\r?\n\\|^-ERR"
             :success "^\\+OK.*\n"
             :return-list t


reply via email to

[Prev in Thread] Current Thread [Next in Thread]