aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii2010-01-23 03:49:15 -0500
committerEli Zaretskii2010-01-23 03:49:15 -0500
commit151b77c2684759f6f883c012ce8469b68741b6eb (patch)
treeff092a00d753e8c643512f4de972759e6f11ee86 /lisp
parent46ee4cb48102fd75ce20609692a7e3ee058cb630 (diff)
parent3d782998caa47e69de96807eb9deee2b9aa1d9d1 (diff)
downloademacs-151b77c2684759f6f883c012ce8469b68741b6eb.tar.gz
emacs-151b77c2684759f6f883c012ce8469b68741b6eb.zip
Merger from mainline.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/net/tramp-imap.el21
2 files changed, 20 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c59ecbae67b..65e171c1381 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12010-01-22 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp-imap.el (top): Autoload needed packages.
4
12010-01-22 Stefan Monnier <monnier@iro.umontreal.ca> 52010-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
2 6
3 * mail/rmailmm.el (rmail-mime-handle): Don't set the buffer to unibyte 7 * mail/rmailmm.el (rmail-mime-handle): Don't set the buffer to unibyte
diff --git a/lisp/net/tramp-imap.el b/lisp/net/tramp-imap.el
index da75e2307ca..6f20d527713 100644
--- a/lisp/net/tramp-imap.el
+++ b/lisp/net/tramp-imap.el
@@ -55,13 +55,23 @@
55(require 'assoc) 55(require 'assoc)
56(require 'tramp) 56(require 'tramp)
57(require 'tramp-compat) 57(require 'tramp-compat)
58(require 'message) 58
59(require 'imap-hash)
60(require 'epa)
61(autoload 'auth-source-user-or-password "auth-source") 59(autoload 'auth-source-user-or-password "auth-source")
60(autoload 'epg-context-operation "epg")
61(autoload 'epg-context-set-armor "epg")
62(autoload 'epg-context-set-passphrase-callback "epg")
63(autoload 'epg-context-set-progress-callback "epg")
64(autoload 'epg-decrypt-string "epg")
65(autoload 'epg-encrypt-string "epg")
66(autoload 'imap-hash-get "imap-hash")
67(autoload 'imap-hash-make "imap-hash")
68(autoload 'imap-hash-map "imap-hash")
69(autoload 'imap-hash-put "imap-hash")
70(autoload 'imap-hash-rem "imap-hash")
62 71
63;; We use the additional header "X-Size" for encoding the size of a file. 72;; We use the additional header "X-Size" for encoding the size of a file.
64(add-to-list 'imap-hash-headers 'X-Size 'append) 73(eval-after-load "imap-hash"
74 '(add-to-list 'imap-hash-headers 'X-Size 'append))
65 75
66;; Define Tramp IMAP method ... 76;; Define Tramp IMAP method ...
67(defconst tramp-imap-method "imap" 77(defconst tramp-imap-method "imap"
@@ -662,7 +672,8 @@ KEY-ID can be 'SYM or 'PIN among others."
662 (read-passwd 672 (read-passwd
663 (if (eq key-id 'PIN) 673 (if (eq key-id 'PIN)
664 "Tramp-IMAP passphrase for PIN: " 674 "Tramp-IMAP passphrase for PIN: "
665 (let ((entry (assoc key-id epg-user-id-alist))) 675 (let ((entry (assoc key-id
676 (symbol-value 'epg-user-id-alist))))
666 (if entry 677 (if entry
667 (format "Tramp-IMAP passphrase for %s %s: " 678 (format "Tramp-IMAP passphrase for %s %s: "
668 key-id (cdr entry)) 679 key-id (cdr entry))