aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2006-10-15 02:49:46 +0000
committerMiles Bader2006-10-15 02:49:46 +0000
commit92edaeeda5c362acf2c7e7f72b3666ab7673699a (patch)
treed4338a2612cd6f4c7018512c001cd3d6b467e466
parent646ff7942c3df41d0e548d848af9240c542a4c69 (diff)
downloademacs-92edaeeda5c362acf2c7e7f72b3666ab7673699a.tar.gz
emacs-92edaeeda5c362acf2c7e7f72b3666ab7673699a.zip
Merge from gnus--rel--5.10
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
-rw-r--r--lisp/gnus/ChangeLog20
-rw-r--r--lisp/gnus/gmm-utils.el15
-rw-r--r--lisp/gnus/mm-util.el16
-rw-r--r--lisp/gnus/mm-uu.el2
-rw-r--r--lisp/gnus/nnmaildir.el11
-rw-r--r--man/ChangeLog6
-rw-r--r--man/gnus.texi5
7 files changed, 56 insertions, 19 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 63e7f43424d..dba2c407b21 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,23 @@
12006-10-13 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de>
2
3 * mm-uu.el (mm-uu-pgp-signed-extract-1): Use RFC 2440 definition of
4 "blank line" when searching for end of armor headers.
5
62006-10-11 Katsumi Yamaoka <yamaoka@jpl.org>
7
8 * gmm-utils.el (gmm-write-region): Fix variable name.
9
102006-10-10 Reiner Steib <Reiner.Steib@gmx.de>
11
12 * gmm-utils.el (gmm-write-region): New function based on compatibility
13 code from `mm-make-temp-file'.
14
15 * mm-util.el (mm-make-temp-file): Use `gmm-write-region'.
16
17 * nnmaildir.el (nnmaildir--update-nov)
18 (nnmaildir-request-replace-article, nnmaildir-request-accept-article):
19 Use `gmm-write-region'.
20
12006-10-04 Reiner Steib <Reiner.Steib@gmx.de> 212006-10-04 Reiner Steib <Reiner.Steib@gmx.de>
2 22
3 * gnus-sum.el (gnus-summary-make-menu-bar): Clarify 23 * gnus-sum.el (gnus-summary-make-menu-bar): Clarify
diff --git a/lisp/gnus/gmm-utils.el b/lisp/gnus/gmm-utils.el
index e773aa3bfac..59d02927008 100644
--- a/lisp/gnus/gmm-utils.el
+++ b/lisp/gnus/gmm-utils.el
@@ -401,6 +401,21 @@ If mode is nil, use `major-mode' of the curent buffer."
401 (string-match "^\\(.+\\)-mode$" mode) 401 (string-match "^\\(.+\\)-mode$" mode)
402 (match-string 1 mode)))))) 402 (match-string 1 mode))))))
403 403
404(defun gmm-write-region (start end filename &optional append visit
405 lockname mustbenew)
406 "Compatibility function for `write-region'.
407
408In XEmacs, the seventh argument of `write-region' specifies the
409coding-system."
410 (if (and mustbenew
411 (or (featurep 'xemacs)
412 (= emacs-major-version 20)))
413 (if (file-exists-p filename)
414 (signal 'file-already-exists
415 (list "File exists" filename))
416 (write-region start end filename append visit lockname))
417 (write-region start end filename append visit lockname mustbenew)))
418
404(provide 'gmm-utils) 419(provide 'gmm-utils)
405 420
406;; arch-tag: e0b60920-2ce6-40c1-bfc0-cadbbe26b602 421;; arch-tag: e0b60920-2ce6-40c1-bfc0-cadbbe26b602
diff --git a/lisp/gnus/mm-util.el b/lisp/gnus/mm-util.el
index 1c9f9749f85..e75f2ef6d5f 100644
--- a/lisp/gnus/mm-util.el
+++ b/lisp/gnus/mm-util.el
@@ -1126,17 +1126,11 @@ If SUFFIX is non-nil, add that at the end of the file name."
1126 (setq file (concat file suffix))) 1126 (setq file (concat file suffix)))
1127 (if dir-flag 1127 (if dir-flag
1128 (make-directory file) 1128 (make-directory file)
1129 (if (or (featurep 'xemacs) 1129 ;; NOTE: This is unsafe if Emacs 20
1130 (= emacs-major-version 20)) 1130 ;; users and XEmacs users don't use
1131 ;; NOTE: This is unsafe if Emacs 20 1131 ;; a secure temp directory.
1132 ;; users and XEmacs users don't use 1132 (gmm-write-region "" nil file nil 'silent
1133 ;; a secure temp directory. 1133 nil 'excl))
1134 (if (file-exists-p file)
1135 (signal 'file-already-exists
1136 (list "File exists" file))
1137 (write-region "" nil file nil 'silent))
1138 (write-region "" nil file nil 'silent
1139 nil 'excl)))
1140 nil) 1134 nil)
1141 (file-already-exists t) 1135 (file-already-exists t)
1142 ;; The Emacs 20 and XEmacs versions of 1136 ;; The Emacs 20 and XEmacs versions of
diff --git a/lisp/gnus/mm-uu.el b/lisp/gnus/mm-uu.el
index 9d9d87a3670..b1ed0b7af4e 100644
--- a/lisp/gnus/mm-uu.el
+++ b/lisp/gnus/mm-uu.el
@@ -373,7 +373,7 @@ Return that buffer."
373 mm-security-handle 'gnus-details 373 mm-security-handle 'gnus-details
374 (format "Clear verification not supported by `%s'.\n" mml2015-use)))) 374 (format "Clear verification not supported by `%s'.\n" mml2015-use))))
375 (goto-char (point-min)) 375 (goto-char (point-min))
376 (if (search-forward "\n\n" nil t) 376 (if (re-search-forward "\n[\t ]*\n" nil t)
377 (delete-region (point-min) (point))) 377 (delete-region (point-min) (point)))
378 (if (re-search-forward mm-uu-pgp-beginning-signature nil t) 378 (if (re-search-forward mm-uu-pgp-beginning-signature nil t)
379 (delete-region (match-beginning 0) (point-max))) 379 (delete-region (match-beginning 0) (point-max)))
diff --git a/lisp/gnus/nnmaildir.el b/lisp/gnus/nnmaildir.el
index 6024b992061..589c4da8caf 100644
--- a/lisp/gnus/nnmaildir.el
+++ b/lisp/gnus/nnmaildir.el
@@ -428,7 +428,8 @@ by nnmaildir-request-article.")
428 (prin1 (vector storage-version num msgid nov) (current-buffer)) 428 (prin1 (vector storage-version num msgid nov) (current-buffer))
429 (setq file (concat novfile ":")) 429 (setq file (concat novfile ":"))
430 (nnmaildir--unlink file) 430 (nnmaildir--unlink file)
431 (write-region (point-min) (point-max) file nil 'no-message nil 'excl)) 431 (gmm-write-region (point-min) (point-max) file nil 'no-message nil
432 'excl))
432 (rename-file file novfile 'replace) 433 (rename-file file novfile 'replace)
433 (setf (nnmaildir--art-msgid article) msgid) 434 (setf (nnmaildir--art-msgid article) msgid)
434 nov))) 435 nov)))
@@ -1246,8 +1247,8 @@ by nnmaildir-request-article.")
1246 (throw 'return nil)) 1247 (throw 'return nil))
1247 (save-excursion 1248 (save-excursion
1248 (set-buffer buffer) 1249 (set-buffer buffer)
1249 (write-region (point-min) (point-max) tmpfile nil 'no-message nil 1250 (gmm-write-region (point-min) (point-max) tmpfile nil 'no-message nil
1250 'excl)) 1251 'excl))
1251 (unix-sync) ;; no fsync :( 1252 (unix-sync) ;; no fsync :(
1252 (rename-file tmpfile (concat (nnmaildir--cur dir) file suffix) 'replace) 1253 (rename-file tmpfile (concat (nnmaildir--cur dir) file suffix) 'replace)
1253 t))) 1254 t)))
@@ -1341,8 +1342,8 @@ by nnmaildir-request-article.")
1341 (condition-case nil 1342 (condition-case nil
1342 (add-name-to-file nnmaildir--file tmpfile) 1343 (add-name-to-file nnmaildir--file tmpfile)
1343 (error 1344 (error
1344 (write-region (point-min) (point-max) tmpfile nil 'no-message nil 1345 (gmm-write-region (point-min) (point-max) tmpfile nil 'no-message nil
1345 'excl) 1346 'excl)
1346 (unix-sync))) ;; no fsync :( 1347 (unix-sync))) ;; no fsync :(
1347 (nnheader-cancel-timer 24h) 1348 (nnheader-cancel-timer 24h)
1348 (condition-case err 1349 (condition-case err
diff --git a/man/ChangeLog b/man/ChangeLog
index 8542e0c6067..4eb3f6b0018 100644
--- a/man/ChangeLog
+++ b/man/ChangeLog
@@ -1,3 +1,9 @@
12006-10-13 Andreas Seltenreich <uwi7@rz.uni-karlsruhe.de>
2
3 * gnus.texi (Other modes): Fix typo. Add alternative index entry for
4 gnus-dired-attach.
5 (Selecting a Group): Fix typo.
6
12006-10-12 Roberto Rodr,Am(Bguez <lanubeblanca@googlemail.com> 72006-10-12 Roberto Rodr,Am(Bguez <lanubeblanca@googlemail.com>
2 8
3 * widget.texi: Fix typos (tiny change) 9 * widget.texi: Fix typos (tiny change)
diff --git a/man/gnus.texi b/man/gnus.texi
index 86f52fded7b..a929bb2b208 100644
--- a/man/gnus.texi
+++ b/man/gnus.texi
@@ -2139,7 +2139,7 @@ If @code{gnus-auto-select-first} is non-@code{nil}, select an article
2139automatically when entering a group with the @kbd{SPACE} command. 2139automatically when entering a group with the @kbd{SPACE} command.
2140Which article this is is controlled by the 2140Which article this is is controlled by the
2141@code{gnus-auto-select-subject} variable. Valid values for this 2141@code{gnus-auto-select-subject} variable. Valid values for this
2142variable is: 2142variable are:
2143 2143
2144@table @code 2144@table @code
2145 2145
@@ -24471,7 +24471,7 @@ Save table: (spam-stat-save)
24471@subsection Dired 24471@subsection Dired
24472@cindex dired 24472@cindex dired
24473 24473
24474@code{gnus-dired-minor-mode} provided some useful functions for dired 24474@code{gnus-dired-minor-mode} provides some useful functions for dired
24475buffers. It is enabled with 24475buffers. It is enabled with
24476@lisp 24476@lisp
24477(add-hook 'dired-mode-hook 'turn-on-gnus-dired-mode) 24477(add-hook 'dired-mode-hook 'turn-on-gnus-dired-mode)
@@ -24480,6 +24480,7 @@ buffers. It is enabled with
24480@table @kbd 24480@table @kbd
24481@item C-c C-m C-a 24481@item C-c C-m C-a
24482@findex gnus-dired-attach 24482@findex gnus-dired-attach
24483@cindex attachments, selection via dired
24483Send dired's marked files as an attachment (@code{gnus-dired-attach}). 24484Send dired's marked files as an attachment (@code{gnus-dired-attach}).
24484You will be prompted for a message buffer. 24485You will be prompted for a message buffer.
24485 24486