]> code.delx.au - gnu-emacs/commitdiff
Merge from gnus--rel--5.10
authorMiles Bader <miles@gnu.org>
Sun, 15 Oct 2006 02:49:46 +0000 (02:49 +0000)
committerMiles Bader <miles@gnu.org>
Sun, 15 Oct 2006 02:49:46 +0000 (02:49 +0000)
Patches applied:

 * gnus--rel--5.10  (patch 150-152)

   - Update from CVS

2006-10-13  Andreas Seltenreich  <uwi7@rz.uni-karlsruhe.de>

   * lisp/gnus/mm-uu.el (mm-uu-pgp-signed-extract-1): Use RFC 2440 definition of
   "blank line" when searching for end of armor headers.

2006-10-11  Katsumi Yamaoka  <yamaoka@jpl.org>

   * lisp/gnus/gmm-utils.el (gmm-write-region): Fix variable name.

2006-10-10  Reiner Steib  <Reiner.Steib@gmx.de>

   * lisp/gnus/gmm-utils.el (gmm-write-region): New function based on compatibility
   code from `mm-make-temp-file'.

   * lisp/gnus/mm-util.el (mm-make-temp-file): Use `gmm-write-region'.

   * lisp/gnus/nnmaildir.el (nnmaildir--update-nov)
   (nnmaildir-request-replace-article, nnmaildir-request-accept-article):
   Use `gmm-write-region'.

2006-10-13  Andreas Seltenreich  <uwi7@rz.uni-karlsruhe.de>

   * man/gnus.texi (Other modes): Fix typo. Add alternative index entry for
   gnus-dired-attach.
   (Selecting a Group): Fix typo.

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-475

lisp/gnus/ChangeLog
lisp/gnus/gmm-utils.el
lisp/gnus/mm-util.el
lisp/gnus/mm-uu.el
lisp/gnus/nnmaildir.el
man/ChangeLog
man/gnus.texi

index 63e7f43424dd86cef196dabaa349b93c1746528a..dba2c407b2103a282f4598c122cbddb6940e4519 100644 (file)
@@ -1,3 +1,23 @@
+2006-10-13  Andreas Seltenreich  <uwi7@rz.uni-karlsruhe.de>
+
+       * mm-uu.el (mm-uu-pgp-signed-extract-1): Use RFC 2440 definition of
+       "blank line" when searching for end of armor headers.
+
+2006-10-11  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gmm-utils.el (gmm-write-region): Fix variable name.
+
+2006-10-10  Reiner Steib  <Reiner.Steib@gmx.de>
+
+       * gmm-utils.el (gmm-write-region): New function based on compatibility
+       code from `mm-make-temp-file'.
+
+       * mm-util.el (mm-make-temp-file): Use `gmm-write-region'.
+
+       * nnmaildir.el (nnmaildir--update-nov)
+       (nnmaildir-request-replace-article, nnmaildir-request-accept-article):
+       Use `gmm-write-region'.
+
 2006-10-04  Reiner Steib  <Reiner.Steib@gmx.de>
 
        * gnus-sum.el (gnus-summary-make-menu-bar): Clarify
index e773aa3bfac5f9570e5dca8e4bc4976c777d1f08..59d02927008430f63ef08266a84df9edac684ce5 100644 (file)
@@ -401,6 +401,21 @@ If mode is nil, use `major-mode' of the curent buffer."
                 (string-match "^\\(.+\\)-mode$" mode)
                 (match-string 1 mode))))))
 
+(defun gmm-write-region (start end filename &optional append visit
+                              lockname mustbenew)
+  "Compatibility function for `write-region'.
+
+In XEmacs, the seventh argument of `write-region' specifies the
+coding-system."
+  (if (and mustbenew
+          (or (featurep 'xemacs)
+              (= emacs-major-version 20)))
+      (if (file-exists-p filename)
+         (signal 'file-already-exists
+                 (list "File exists" filename))
+       (write-region start end filename append visit lockname))
+    (write-region start end filename append visit lockname mustbenew)))
+
 (provide 'gmm-utils)
 
 ;; arch-tag: e0b60920-2ce6-40c1-bfc0-cadbbe26b602
index 1c9f9749f858e2e78442cced3adda08ef8752680..e75f2ef6d5f5e573a0c38b6895aa0ac4da15391e 100644 (file)
@@ -1126,17 +1126,11 @@ If SUFFIX is non-nil, add that at the end of the file name."
                             (setq file (concat file suffix)))
                         (if dir-flag
                             (make-directory file)
-                          (if (or (featurep 'xemacs)
-                                  (= emacs-major-version 20))
-                              ;; NOTE: This is unsafe if Emacs 20
-                              ;; users and XEmacs users don't use
-                              ;; a secure temp directory.
-                              (if (file-exists-p file)
-                                  (signal 'file-already-exists
-                                          (list "File exists" file))
-                                (write-region "" nil file nil 'silent))
-                            (write-region "" nil file nil 'silent
-                                          nil 'excl)))
+                          ;; NOTE: This is unsafe if Emacs 20
+                          ;; users and XEmacs users don't use
+                          ;; a secure temp directory.
+                          (gmm-write-region "" nil file nil 'silent
+                                            nil 'excl))
                         nil)
                     (file-already-exists t)
                     ;; The Emacs 20 and XEmacs versions of
index 9d9d87a3670c25ac76ea2124d7cf5e6ce1a8fd50..b1ed0b7af4e6fa648cc68d7fe3762503211aae2d 100644 (file)
@@ -373,7 +373,7 @@ Return that buffer."
           mm-security-handle 'gnus-details
           (format "Clear verification not supported by `%s'.\n" mml2015-use))))
       (goto-char (point-min))
-      (if (search-forward "\n\n" nil t)
+      (if (re-search-forward "\n[\t ]*\n" nil t)
          (delete-region (point-min) (point)))
       (if (re-search-forward mm-uu-pgp-beginning-signature nil t)
          (delete-region (match-beginning 0) (point-max)))
index 6024b9920614d29ad7bd8148c5eabf9b26747335..589c4da8caf800cf7c2ba98166d2469ff65e304f 100644 (file)
@@ -428,7 +428,8 @@ by nnmaildir-request-article.")
        (prin1 (vector storage-version num msgid nov) (current-buffer))
        (setq file (concat novfile ":"))
        (nnmaildir--unlink file)
-       (write-region (point-min) (point-max) file nil 'no-message nil 'excl))
+       (gmm-write-region (point-min) (point-max) file nil 'no-message nil
+                         'excl))
       (rename-file file novfile 'replace)
       (setf (nnmaildir--art-msgid article) msgid)
       nov)))
@@ -1246,8 +1247,8 @@ by nnmaildir-request-article.")
        (throw 'return nil))
       (save-excursion
        (set-buffer buffer)
-       (write-region (point-min) (point-max) tmpfile nil 'no-message nil
-                     'excl))
+       (gmm-write-region (point-min) (point-max) tmpfile nil 'no-message nil
+                         'excl))
       (unix-sync) ;; no fsync :(
       (rename-file tmpfile (concat (nnmaildir--cur dir) file suffix) 'replace)
       t)))
@@ -1341,8 +1342,8 @@ by nnmaildir-request-article.")
       (condition-case nil
          (add-name-to-file nnmaildir--file tmpfile)
        (error
-        (write-region (point-min) (point-max) tmpfile nil 'no-message nil
-                      'excl)
+        (gmm-write-region (point-min) (point-max) tmpfile nil 'no-message nil
+                          'excl)
         (unix-sync))) ;; no fsync :(
       (nnheader-cancel-timer 24h)
       (condition-case err
index 8542e0c60676a96d52de97330788ee0c017bff1e..4eb3f6b0018d3c826ae9da13d35d7e5c7cdc250e 100644 (file)
@@ -1,3 +1,9 @@
+2006-10-13  Andreas Seltenreich  <uwi7@rz.uni-karlsruhe.de>
+
+       * gnus.texi (Other modes): Fix typo.  Add alternative index entry for
+       gnus-dired-attach.
+       (Selecting a Group): Fix typo.
+
 2006-10-12  Roberto Rodr\e,Am\e(Bguez  <lanubeblanca@googlemail.com>
 
        * widget.texi: Fix typos (tiny change)
index 86f52fded7b64ed7534244f61c7d963ca53d07a3..a929bb2b208f0daa7ffa5964967921d2a94df54f 100644 (file)
@@ -2139,7 +2139,7 @@ If @code{gnus-auto-select-first} is non-@code{nil}, select an article
 automatically when entering a group with the @kbd{SPACE} command.
 Which article this is is controlled by the
 @code{gnus-auto-select-subject} variable.  Valid values for this
-variable is:
+variable are:
 
 @table @code
 
@@ -24471,7 +24471,7 @@ Save table: (spam-stat-save)
 @subsection Dired
 @cindex dired
 
-@code{gnus-dired-minor-mode} provided some useful functions for dired
+@code{gnus-dired-minor-mode} provides some useful functions for dired
 buffers.  It is enabled with
 @lisp
 (add-hook 'dired-mode-hook 'turn-on-gnus-dired-mode)
@@ -24480,6 +24480,7 @@ buffers.  It is enabled with
 @table @kbd
 @item C-c C-m C-a
 @findex gnus-dired-attach
+@cindex attachments, selection via dired
 Send dired's marked files as an attachment (@code{gnus-dired-attach}).
 You will be prompted for a message buffer.