aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2006-09-07 05:58:54 +0000
committerMiles Bader2006-09-07 05:58:54 +0000
commit31a7c2ff1f7c3addb7c945f688bcb37d893d761a (patch)
tree742668cfc3643490fce7ff24a7e93174ddfdc5b6
parentbe9b5a607607e3e77815c358274f39b0fbed6bf3 (diff)
downloademacs-31a7c2ff1f7c3addb7c945f688bcb37d893d761a.tar.gz
emacs-31a7c2ff1f7c3addb7c945f688bcb37d893d761a.zip
Merge from gnus--rel--5.10
Patches applied: * gnus--rel--5.10 (patch 134-135) - Merge from emacs--devo--0 - Update from CVS 2006-09-06 Daiki Ueno <ueno@unixuser.org> * lisp/pgg-gpg.el (pgg-gpg-process-region): Encode passphrase with pgg-passphrase-coding-system rather than locale-coding-system. * lisp/pgg-def.el (pgg-passphrase-coding-system): New user option. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-428
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/gnus/ChangeLog2
-rw-r--r--lisp/pgg-def.el7
-rw-r--r--lisp/pgg-gpg.el4
4 files changed, 16 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index aa2fb64ad60..df7050f30a5 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12006-09-06 Daiki Ueno <ueno@unixuser.org>
2
3 * pgg-gpg.el (pgg-gpg-process-region): Encode passphrase with
4 pgg-passphrase-coding-system rather than locale-coding-system.
5 * pgg-def.el (pgg-passphrase-coding-system): New user option.
6
12006-09-06 Stefan Monnier <monnier@iro.umontreal.ca> 72006-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
2 8
3 * progmodes/prolog.el: Remove * in docstrings. 9 * progmodes/prolog.el: Remove * in docstrings.
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 142bb93bef4..312d822e375 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -2873,7 +2873,7 @@
2873 2873
2874 * gnus.el (gnus-group-startup-message): Search for gnus images in 2874 * gnus.el (gnus-group-startup-message): Search for gnus images in
2875 etc/images/gnus. 2875 etc/images/gnus.
2876 * mm-util.el (mm-find-charset-region): Likewise. 2876 * mm-util.el (mm-image-load-path): Likewise.
2877 * smiley.el (smiley-data-directory): Search for smilies in 2877 * smiley.el (smiley-data-directory): Search for smilies in
2878 etc/images/smilies. 2878 etc/images/smilies.
2879 2879
diff --git a/lisp/pgg-def.el b/lisp/pgg-def.el
index 6481a433423..790b6bd1e6b 100644
--- a/lisp/pgg-def.el
+++ b/lisp/pgg-def.el
@@ -71,6 +71,13 @@ 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
75 (if (boundp 'locale-coding-system)
76 locale-coding-system)
77 "Coding system to encode passphrase."
78 :group 'pgg
79 :type 'coding-system)
80
74(defvar pgg-messages-coding-system nil 81(defvar pgg-messages-coding-system nil
75 "Coding system used when reading from a PGP external process.") 82 "Coding system used when reading from a PGP external process.")
76 83
diff --git a/lisp/pgg-gpg.el b/lisp/pgg-gpg.el
index 07be6c47f61..4b8b79b068e 100644
--- a/lisp/pgg-gpg.el
+++ b/lisp/pgg-gpg.el
@@ -91,11 +91,11 @@
91 (set-process-sentinel process #'ignore) 91 (set-process-sentinel process #'ignore)
92 (when passphrase 92 (when passphrase
93 (setq passphrase-with-newline (concat passphrase "\n")) 93 (setq passphrase-with-newline (concat passphrase "\n"))
94 (if (boundp 'locale-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 passphrase-with-newline
98 locale-coding-system)) 98 pgg-passphrase-coding-system))
99 (pgg-clear-string passphrase-with-newline)) 99 (pgg-clear-string passphrase-with-newline))
100 (setq encoded-passphrase-with-new-line passphrase-with-newline 100 (setq encoded-passphrase-with-new-line passphrase-with-newline
101 passphrase-with-newline nil)) 101 passphrase-with-newline nil))