aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMiles Bader2006-12-30 15:34:42 +0000
committerMiles Bader2006-12-30 15:34:42 +0000
commit11e95b020010b5f1dbaad98975b750ec4721e36d (patch)
tree83674460606f55cefdccc8655cae6af4c9265ffc /lisp
parent84f1b4544ba27e301ef49659b8634f0321fa70de (diff)
downloademacs-11e95b020010b5f1dbaad98975b750ec4721e36d.tar.gz
emacs-11e95b020010b5f1dbaad98975b750ec4721e36d.zip
Merge from gnus--rel--5.10
Patches applied: * gnus--rel--5.10 (patch 179-183) - Update from CVS 2006-12-25 Daiki Ueno <ueno@unixuser.org> * lisp/pgg-def.el (pgg-passphrase-coding-system): Default to nil instead of locale-coding-system. * lisp/pgg-gpg.el (pgg-gpg-process-region): Encode passphrase with eol-type LF. 2006-12-29 Jouni K. Sepp,Ad(Bnen <jks@iki.fi> * lisp/gnus/nnimap.el (nnimap-expunge-search-string): Mention nnimap-search-uids-not-since-is-evil in docstring. 2006-12-28 Reiner Steib <Reiner.Steib@gmx.de> * lisp/gnus/spam.el: Revert to make-obsolete-variable because define-obsolete-variable-alias is not supported in Emacs 21. 2006-12-28 Daiki Ueno <ueno@unixuser.org> * lisp/gnus/gnus-sum.el (gnus-summary-next-article): Make sure we are in the summary buffer. 2006-12-27 Reiner Steib <Reiner.Steib@gmx.de> * lisp/gnus/spam.el (spam-ifile-path, spam-ifile-database-path) (spam-bogofilter-path): Use define-obsolete-variable-alias instead of make-obsolete-variable. 2006-12-26 Reiner Steib <Reiner.Steib@gmx.de> * lisp/gnus/message.el (message-make-fqdn): Fix comment. (message-bogus-system-names): Add ".local". * lisp/gnus/spam.el (spam-ifile-path, spam-ifile-program) (spam-ifile-database-path, spam-ifile-database) (spam-bogofilter-path, spam-bogofilter-program): Rename variables. Don't use "path" inappropriately. (spam-spamoracle-database, spam-get-ifile-database-parameter): Fix doc strings. (spam-check-ifile, spam-ifile-register-with-ifile) (spam-check-bogofilter, spam-bogofilter-register-with-bogofilter): Use new variable names. * lisp/gnus/gnus-art.el (gnus-treat-display-x-face, gnus-treat-display-face) (gnus-treat-display-smileys): Simplify using gnus-image-type-available-p. * lisp/gnus/gnus-ems.el (gnus-image-type-available-p): Use display-images-p if available. 2006-12-22 Katsumi Yamaoka <yamaoka@jpl.org> * lisp/gnus/nnrss.el (nnrss-fetch): Replace buffer's contents with the decoded one after turning on the buffer's multibyteness instead of decoding them directly in the unibyte buffer that causes unexpected conversion in Emacs 23 (unicode). 2006-12-29 Reiner Steib <Reiner.Steib@gmx.de> * man/gnus.texi (Customizing Articles): Add index entries for all gnus-treat-* variables. 2006-12-29 Jouni K. Sepp,Ad(Bnen <jks@iki.fi> * man/gnus.texi (IMAP): Fix incorrect explanation of nnimap-search-uids-not-since-is-evil in documentation for nnimap-expunge-search-string. 2006-12-27 Reiner Steib <Reiner.Steib@gmx.de> * man/gnus.texi (ifile spam filtering): Rename spam-ifile-database-path to spam-ifile-database. 2006-12-26 Reiner Steib <Reiner.Steib@gmx.de> * man/gnus.texi (Spam Package Configuration Examples): Don't encourage to rebind C-s. 2006-12-26 Jouni K. Sepp,Ad(Bnen <jks@iki.fi> * man/gnus.texi (Group Parameters, Group Maintenance, Topic Commands) (Mail Group Commands, Expiring Mail, IMAP): Add index entries for "expiring mail". (IMAP): Document nnimap-search-uids-not-since-is-evil and nnimap-nov-is-evil. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-576
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/gnus/ChangeLog54
-rw-r--r--lisp/gnus/gnus-art.el23
-rw-r--r--lisp/gnus/gnus-ems.el5
-rw-r--r--lisp/gnus/gnus-sum.el3
-rw-r--r--lisp/gnus/message.el4
-rw-r--r--lisp/gnus/nnimap.el5
-rw-r--r--lisp/gnus/nnrss.el6
-rw-r--r--lisp/gnus/spam.el42
-rw-r--r--lisp/pgg-def.el4
-rw-r--r--lisp/pgg-gpg.el6
11 files changed, 113 insertions, 46 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d592f1624f3..63c4c579cc7 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -121,6 +121,13 @@
121 * textmodes/fill.el (fill-paragraph): Check for a minibuffer 121 * textmodes/fill.el (fill-paragraph): Check for a minibuffer
122 rather than for being in a minibuffer window. 122 rather than for being in a minibuffer window.
123 123
1242006-12-25 Daiki Ueno <ueno@unixuser.org>
125
126 * pgg-def.el (pgg-passphrase-coding-system): Default to nil instead of
127 locale-coding-system.
128 * pgg-gpg.el (pgg-gpg-process-region): Encode passphrase with eol-type
129 LF.
130
1242006-12-25 Michael R. Mauger <mmaug@yahoo.com> 1312006-12-25 Michael R. Mauger <mmaug@yahoo.com>
125 132
126 * progmodes/sql.el (sql-mode-abbrev-table): Corrected initialization. 133 * progmodes/sql.el (sql-mode-abbrev-table): Corrected initialization.
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 317fe617c9f..d7716e8d950 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,53 @@
12006-12-29 Jouni K. Sepp,Ad(Bnen <jks@iki.fi>
2
3 * nnimap.el (nnimap-expunge-search-string): Mention
4 nnimap-search-uids-not-since-is-evil in docstring.
5
62006-12-28 Reiner Steib <Reiner.Steib@gmx.de>
7
8 * spam.el: Revert to make-obsolete-variable because
9 define-obsolete-variable-alias is not supported in Emacs 21.
10
112006-12-28 Daiki Ueno <ueno@unixuser.org>
12
13 * gnus-sum.el (gnus-summary-next-article): Make sure we are in the
14 summary buffer.
15
162006-12-27 Reiner Steib <Reiner.Steib@gmx.de>
17
18 * spam.el (spam-ifile-path, spam-ifile-database-path)
19 (spam-bogofilter-path): Use define-obsolete-variable-alias instead of
20 make-obsolete-variable.
21
222006-12-26 Reiner Steib <Reiner.Steib@gmx.de>
23
24 * message.el (message-make-fqdn): Fix comment.
25 (message-bogus-system-names): Add ".local".
26
27 * spam.el (spam-ifile-path, spam-ifile-program)
28 (spam-ifile-database-path, spam-ifile-database)
29 (spam-bogofilter-path, spam-bogofilter-program): Rename variables.
30 Don't use "path" inappropriately.
31 (spam-spamoracle-database, spam-get-ifile-database-parameter): Fix doc
32 strings.
33 (spam-check-ifile, spam-ifile-register-with-ifile)
34 (spam-check-bogofilter, spam-bogofilter-register-with-bogofilter): Use
35 new variable names.
36
37 * gnus-art.el (gnus-treat-display-x-face, gnus-treat-display-face)
38 (gnus-treat-display-smileys): Simplify using
39 gnus-image-type-available-p.
40
41 * gnus-ems.el (gnus-image-type-available-p): Use display-images-p if
42 available.
43
442006-12-22 Katsumi Yamaoka <yamaoka@jpl.org>
45
46 * nnrss.el (nnrss-fetch): Replace buffer's contents with the decoded
47 one after turning on the buffer's multibyteness instead of decoding
48 them directly in the unibyte buffer that causes unexpected conversion
49 in Emacs 23 (unicode).
50
12006-12-20 Reiner Steib <Reiner.Steib@gmx.de> 512006-12-20 Reiner Steib <Reiner.Steib@gmx.de>
2 52
3 * gnus-group.el (gnus-group-tool-bar-gnome): Exchange connect and 53 * gnus-group.el (gnus-group-tool-bar-gnome): Exchange connect and
@@ -25,7 +75,7 @@
25 * gnus-sum.el (gnus-sort-threads, gnus-summary-limit-children): 75 * gnus-sum.el (gnus-sort-threads, gnus-summary-limit-children):
26 Use `max' to avoid the value of `max-lisp-eval-depth' decreasing. 76 Use `max' to avoid the value of `max-lisp-eval-depth' decreasing.
27 77
282006-12-04 Jouni K. Sepp,Ad(Bnen <jks@iki.fi> (tiny change) 782006-12-04 Jouni K. Sepp,Ad(Bnen <jks@iki.fi>
29 79
30 * mm-url.el (mm-url-predefined-programs): Call curl with correct 80 * mm-url.el (mm-url-predefined-programs): Call curl with correct
31 options. 81 options.
@@ -1654,7 +1704,7 @@
1654 whitespace removed in revision 7.8. Use concatenated string to 1704 whitespace removed in revision 7.8. Use concatenated string to
1655 protect trailing whitespace. 1705 protect trailing whitespace.
1656 1706
16572005-10-27 Jouni K Seppanen <jks@iki.fi> (tiny change) 17072005-10-27 Jouni K. Sepp,Ad(Bnen <jks@iki.fi>
1658 1708
1659 * nnimap.el (nnimap-search-uids-not-since-is-evil): Add variable. 1709 * nnimap.el (nnimap-search-uids-not-since-is-evil): Add variable.
1660 (nnimap-request-expire-articles): Use it to avoid sending 'UID 1710 (nnimap-request-expire-articles): Use it to avoid sending 'UID
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index cdb3c8950cc..9160f6f5002 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -1325,12 +1325,11 @@ See Info node `(gnus)Customizing Articles' for details."
1325 1325
1326(defcustom gnus-treat-display-x-face 1326(defcustom gnus-treat-display-x-face
1327 (and (not noninteractive) 1327 (and (not noninteractive)
1328 (or (and (fboundp 'image-type-available-p) 1328 (gnus-image-type-available-p 'xbm)
1329 (image-type-available-p 'xbm) 1329 (if (featurep 'xemacs)
1330 (string-match "^0x" (shell-command-to-string "uncompface")) 1330 (featurep 'xface)
1331 (executable-find "icontopbm")) 1331 (and (string-match "^0x" (shell-command-to-string "uncompface"))
1332 (and (featurep 'xemacs) 1332 (executable-find "icontopbm")))
1333 (featurep 'xface)))
1334 'head) 1333 'head)
1335 "Display X-Face headers. 1334 "Display X-Face headers.
1336Valid values are nil, t, `head', `last', an integer or a predicate. 1335Valid values are nil, t, `head', `last', an integer or a predicate.
@@ -1362,10 +1361,7 @@ See Info node `(gnus)Customizing Articles' and Info node
1362 1361
1363(defcustom gnus-treat-display-face 1362(defcustom gnus-treat-display-face
1364 (and (not noninteractive) 1363 (and (not noninteractive)
1365 (or (and (fboundp 'image-type-available-p) 1364 (gnus-image-type-available-p 'png)
1366 (image-type-available-p 'png))
1367 (and (featurep 'xemacs)
1368 (featurep 'png)))
1369 'head) 1365 'head)
1370 "Display Face headers. 1366 "Display Face headers.
1371Valid values are nil, t, `head', `last', an integer or a predicate. 1367Valid values are nil, t, `head', `last', an integer or a predicate.
@@ -1378,12 +1374,7 @@ See Info node `(gnus)Customizing Articles' and Info node
1378 :type gnus-article-treat-head-custom) 1374 :type gnus-article-treat-head-custom)
1379(put 'gnus-treat-display-face 'highlight t) 1375(put 'gnus-treat-display-face 'highlight t)
1380 1376
1381(defcustom gnus-treat-display-smileys 1377(defcustom gnus-treat-display-smileys (gnus-image-type-available-p 'xpm)
1382 (if (or (and (featurep 'xemacs)
1383 (featurep 'xpm))
1384 (and (fboundp 'image-type-available-p)
1385 (image-type-available-p 'pbm)))
1386 t nil)
1387 "Display smileys. 1378 "Display smileys.
1388Valid values are nil, t, `head', `last', an integer or a predicate. 1379Valid values are nil, t, `head', `last', an integer or a predicate.
1389See Info node `(gnus)Customizing Articles' and Info node 1380See Info node `(gnus)Customizing Articles' and Info node
diff --git a/lisp/gnus/gnus-ems.el b/lisp/gnus/gnus-ems.el
index 44f84237a4b..73bcf09f360 100644
--- a/lisp/gnus/gnus-ems.el
+++ b/lisp/gnus/gnus-ems.el
@@ -211,7 +211,10 @@
211 211
212(defun gnus-image-type-available-p (type) 212(defun gnus-image-type-available-p (type)
213 (and (fboundp 'image-type-available-p) 213 (and (fboundp 'image-type-available-p)
214 (image-type-available-p type))) 214 (image-type-available-p type)
215 (if (fboundp 'display-images-p)
216 (display-images-p)
217 t)))
215 218
216(defun gnus-create-image (file &optional type data-p &rest props) 219(defun gnus-create-image (file &optional type data-p &rest props)
217 (let ((face (plist-get props :face))) 220 (let ((face (plist-get props :face)))
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 29e0067bf9b..2ac6ee0c3c7 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -7333,6 +7333,9 @@ If UNREAD, only unread articles are selected.
7333If SUBJECT, only articles with SUBJECT are selected. 7333If SUBJECT, only articles with SUBJECT are selected.
7334If BACKWARD, the previous article is selected instead of the next." 7334If BACKWARD, the previous article is selected instead of the next."
7335 (interactive "P") 7335 (interactive "P")
7336 ;; Make sure we are in the summary buffer.
7337 (unless (eq major-mode 'gnus-summary-mode)
7338 (set-buffer gnus-summary-buffer))
7336 (cond 7339 (cond
7337 ;; Is there such an article? 7340 ;; Is there such an article?
7338 ((and (gnus-summary-search-forward unread subject backward) 7341 ((and (gnus-summary-search-forward unread subject backward)
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index a3d0298ce0e..f7d876c120f 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -1579,7 +1579,7 @@ functionality to work."
1579(defvar message-send-mail-real-function nil 1579(defvar message-send-mail-real-function nil
1580 "Internal send mail function.") 1580 "Internal send mail function.")
1581 1581
1582(defvar message-bogus-system-names "^localhost\\." 1582(defvar message-bogus-system-names "^localhost\\.\\|\\.local$"
1583 "The regexp of bogus system names.") 1583 "The regexp of bogus system names.")
1584 1584
1585(defcustom message-valid-fqdn-regexp 1585(defcustom message-valid-fqdn-regexp
@@ -5000,8 +5000,8 @@ give as trustworthy answer as possible."
5000 (stringp message-user-fqdn) 5000 (stringp message-user-fqdn)
5001 (string-match message-valid-fqdn-regexp message-user-fqdn) 5001 (string-match message-valid-fqdn-regexp message-user-fqdn)
5002 (not (string-match message-bogus-system-names message-user-fqdn))) 5002 (not (string-match message-bogus-system-names message-user-fqdn)))
5003 ;; `message-user-fqdn' seems to be valid
5003 message-user-fqdn) 5004 message-user-fqdn)
5004 ;; `message-user-fqdn' seems to be valid
5005 ((and (string-match message-valid-fqdn-regexp system-name) 5005 ((and (string-match message-valid-fqdn-regexp system-name)
5006 (not (string-match message-bogus-system-names system-name))) 5006 (not (string-match message-bogus-system-names system-name)))
5007 ;; `system-name' returned the right result. 5007 ;; `system-name' returned the right result.
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index bada9da6891..5c0777531c5 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -375,7 +375,10 @@ and the second %s is replaced by a date criterium.
375One useful (and perhaps the only useful) value to change this to would 375One useful (and perhaps the only useful) value to change this to would
376be `UID %s NOT SENTSINCE %s' to make nnimap use the Date: header 376be `UID %s NOT SENTSINCE %s' to make nnimap use the Date: header
377instead of the internal date of messages. See section 6.4.4 of RFC 377instead of the internal date of messages. See section 6.4.4 of RFC
3782060 for more information on valid strings.") 3782060 for more information on valid strings.
379
380However, if `nnimap-search-uids-not-since-is-evil' is true, this
381variable has no effect since the search logic is reversed.")
379 382
380(defvoo nnimap-importantize-dormant t 383(defvoo nnimap-importantize-dormant t
381 "If non-nil, mark \"dormant\" articles as \"ticked\" for other IMAP clients. 384 "If non-nil, mark \"dormant\" articles as \"ticked\" for other IMAP clients.
diff --git a/lisp/gnus/nnrss.el b/lisp/gnus/nnrss.el
index 318560179f5..f21fd74d138 100644
--- a/lisp/gnus/nnrss.el
+++ b/lisp/gnus/nnrss.el
@@ -418,8 +418,10 @@ otherwise return nil."
418 (nnheader-remove-cr-followed-by-lf) 418 (nnheader-remove-cr-followed-by-lf)
419 ;; Decode text according to the encoding attribute. 419 ;; Decode text according to the encoding attribute.
420 (when (setq cs (nnrss-get-encoding)) 420 (when (setq cs (nnrss-get-encoding))
421 (mm-decode-coding-region (point-min) (point-max) cs) 421 (insert (prog1
422 (mm-enable-multibyte)) 422 (mm-decode-coding-string (buffer-string) cs)
423 (erase-buffer)
424 (mm-enable-multibyte))))
423 (goto-char (point-min)) 425 (goto-char (point-min))
424 426
425 ;; Because xml-parse-region can't deal with anything that isn't 427 ;; Because xml-parse-region can't deal with anything that isn't
diff --git a/lisp/gnus/spam.el b/lisp/gnus/spam.el
index 047035536f2..589b2b0a619 100644
--- a/lisp/gnus/spam.el
+++ b/lisp/gnus/spam.el
@@ -351,14 +351,18 @@ All unmarked article in such group receive the spam mark on group entry."
351 "Spam ifile configuration." 351 "Spam ifile configuration."
352 :group 'spam) 352 :group 'spam)
353 353
354(defcustom spam-ifile-path (executable-find "ifile") 354(make-obsolete-variable 'spam-ifile-path 'spam-ifile-program)
355 "File path of the ifile executable program." 355;; "22.1" ;; Gnus 5.10.9
356(defcustom spam-ifile-program (executable-find "ifile")
357 "Name of the ifile program."
356 :type '(choice (file :tag "Location of ifile") 358 :type '(choice (file :tag "Location of ifile")
357 (const :tag "ifile is not installed")) 359 (const :tag "ifile is not installed"))
358 :group 'spam-ifile) 360 :group 'spam-ifile)
359 361
360(defcustom spam-ifile-database-path nil 362(make-obsolete-variable 'spam-ifile-database-path 'spam-ifile-database)
361 "File path of the ifile database." 363;; "22.1" ;; Gnus 5.10.9
364(defcustom spam-ifile-database nil
365 "File name of the ifile database."
362 :type '(choice (file :tag "Location of the ifile database") 366 :type '(choice (file :tag "Location of the ifile database")
363 (const :tag "Use the default")) 367 (const :tag "Use the default"))
364 :group 'spam-ifile) 368 :group 'spam-ifile)
@@ -386,8 +390,10 @@ your main source of newsgroup names."
386 "Spam bogofilter configuration." 390 "Spam bogofilter configuration."
387 :group 'spam) 391 :group 'spam)
388 392
389(defcustom spam-bogofilter-path (executable-find "bogofilter") 393(make-obsolete-variable 'spam-bogofilter-path 'spam-bogofilter-program)
390 "File path of the Bogofilter executable program." 394;; "22.1" ;; Gnus 5.10.9
395(defcustom spam-bogofilter-program (executable-find "bogofilter")
396 "Name of the Bogofilter program."
391 :type '(choice (file :tag "Location of bogofilter") 397 :type '(choice (file :tag "Location of bogofilter")
392 (const :tag "Bogofilter is not installed")) 398 (const :tag "Bogofilter is not installed"))
393 :group 'spam-bogofilter) 399 :group 'spam-bogofilter)
@@ -423,7 +429,8 @@ your main source of newsgroup names."
423 :group 'spam-bogofilter) 429 :group 'spam-bogofilter)
424 430
425(defcustom spam-bogofilter-database-directory nil 431(defcustom spam-bogofilter-database-directory nil
426 "Directory path of the Bogofilter databases." 432 "Location of the Bogofilter database.
433When nil, use the default location."
427 :type '(choice (directory 434 :type '(choice (directory
428 :tag "Location of the Bogofilter database directory") 435 :tag "Location of the Bogofilter database directory")
429 (const :tag "Use the default")) 436 (const :tag "Use the default"))
@@ -434,8 +441,8 @@ your main source of newsgroup names."
434 :group 'spam) 441 :group 'spam)
435 442
436(defcustom spam-spamoracle-database nil 443(defcustom spam-spamoracle-database nil
437 "Location of spamoracle database file. When nil, use the default 444 "Location of spamoracle database file.
438spamoracle database." 445When nil, use the default spamoracle database."
439 :type '(choice (directory :tag "Location of spamoracle database file.") 446 :type '(choice (directory :tag "Location of spamoracle database file.")
440 (const :tag "Use the default")) 447 (const :tag "Use the default"))
441 :group 'spam-spamoracle) 448 :group 'spam-spamoracle)
@@ -1370,11 +1377,12 @@ functions")
1370;;; check the ifile backend; return nil if the mail was NOT classified 1377;;; check the ifile backend; return nil if the mail was NOT classified
1371;;; as spam 1378;;; as spam
1372 1379
1380
1373(defun spam-get-ifile-database-parameter () 1381(defun spam-get-ifile-database-parameter ()
1374 "Get the command-line parameter for ifile's database from 1382 "Return the command-line parameter for ifile's database.
1375 spam-ifile-database-path." 1383See `spam-ifile-database'."
1376 (if spam-ifile-database-path 1384 (if spam-ifile-database
1377 (format "--db-file=%s" spam-ifile-database-path) 1385 (format "--db-file=%s" spam-ifile-database)
1378 nil)) 1386 nil))
1379 1387
1380(defun spam-check-ifile () 1388(defun spam-check-ifile ()
@@ -1390,7 +1398,7 @@ functions")
1390 (save-excursion 1398 (save-excursion
1391 (set-buffer article-buffer-name) 1399 (set-buffer article-buffer-name)
1392 (apply 'call-process-region 1400 (apply 'call-process-region
1393 (point-min) (point-max) spam-ifile-path 1401 (point-min) (point-max) spam-ifile-program
1394 nil temp-buffer-name nil "-c" 1402 nil temp-buffer-name nil "-c"
1395 (if db-param `(,db-param "-q") `("-q")))) 1403 (if db-param `(,db-param "-q") `("-q"))))
1396 ;; check the return now (we're back in the temp buffer) 1404 ;; check the return now (we're back in the temp buffer)
@@ -1418,7 +1426,7 @@ Uses `gnus-newsgroup-name' if category is nil (for ham registration)."
1418 (when (stringp article-string) 1426 (when (stringp article-string)
1419 (insert article-string)))) 1427 (insert article-string))))
1420 (apply 'call-process-region 1428 (apply 'call-process-region
1421 (point-min) (point-max) spam-ifile-path 1429 (point-min) (point-max) spam-ifile-program
1422 nil nil nil 1430 nil nil nil
1423 add-or-delete-option category 1431 add-or-delete-option category
1424 (if db `(,db "-h") `("-h")))))) 1432 (if db `(,db "-h") `("-h"))))))
@@ -1702,7 +1710,7 @@ REMOVE not nil, remove the ADDRESSES."
1702 (set-buffer article-buffer-name) 1710 (set-buffer article-buffer-name)
1703 (apply 'call-process-region 1711 (apply 'call-process-region
1704 (point-min) (point-max) 1712 (point-min) (point-max)
1705 spam-bogofilter-path 1713 spam-bogofilter-program
1706 nil temp-buffer-name nil 1714 nil temp-buffer-name nil
1707 (if db `("-d" ,db "-v") `("-v")))) 1715 (if db `("-d" ,db "-v") `("-v"))))
1708 (setq return (spam-check-bogofilter-headers score)))) 1716 (setq return (spam-check-bogofilter-headers score))))
@@ -1728,7 +1736,7 @@ REMOVE not nil, remove the ADDRESSES."
1728 1736
1729 (apply 'call-process-region 1737 (apply 'call-process-region
1730 (point-min) (point-max) 1738 (point-min) (point-max)
1731 spam-bogofilter-path 1739 spam-bogofilter-program
1732 nil nil nil switch 1740 nil nil nil switch
1733 (if db `("-d" ,db "-v") `("-v")))))))) 1741 (if db `("-d" ,db "-v") `("-v"))))))))
1734 1742
diff --git a/lisp/pgg-def.el b/lisp/pgg-def.el
index 790b6bd1e6b..95f0d7658f6 100644
--- a/lisp/pgg-def.el
+++ b/lisp/pgg-def.el
@@ -71,9 +71,7 @@ Whether the passphrase is cached at all is controlled by
71 :group 'pgg 71 :group 'pgg
72 :type 'integer) 72 :type 'integer)
73 73
74(defcustom pgg-passphrase-coding-system 74(defcustom pgg-passphrase-coding-system nil
75 (if (boundp 'locale-coding-system)
76 locale-coding-system)
77 "Coding system to encode passphrase." 75 "Coding system to encode passphrase."
78 :group 'pgg 76 :group 'pgg
79 :type 'coding-system) 77 :type 'coding-system)
diff --git a/lisp/pgg-gpg.el b/lisp/pgg-gpg.el
index 95c3e5e5996..514be51a6a3 100644
--- a/lisp/pgg-gpg.el
+++ b/lisp/pgg-gpg.el
@@ -94,8 +94,10 @@
94 (if pgg-passphrase-coding-system 94 (if pgg-passphrase-coding-system
95 (progn 95 (progn
96 (setq encoded-passphrase-with-new-line 96 (setq encoded-passphrase-with-new-line
97 (encode-coding-string passphrase-with-newline 97 (encode-coding-string
98 pgg-passphrase-coding-system)) 98 passphrase-with-newline
99 (coding-system-change-eol-conversion
100 pgg-passphrase-coding-system 'unix)))
99 (pgg-clear-string passphrase-with-newline)) 101 (pgg-clear-string passphrase-with-newline))
100 (setq encoded-passphrase-with-new-line passphrase-with-newline 102 (setq encoded-passphrase-with-new-line passphrase-with-newline
101 passphrase-with-newline nil)) 103 passphrase-with-newline nil))