# HG changeset patch # User Katsumi Yamaoka # Date 1283731855 0 # Node ID 6f3cc57741508c0b85d2648037aa1725357c6339 # Parent 1a9f718ae4836046721247124d1ab44cc2261a99 imap.el (imap-mailbox-get): Revert last change for this function. diff -r 1a9f718ae483 -r 6f3cc5774150 lisp/ChangeLog --- a/lisp/ChangeLog Mon Sep 06 00:06:55 2010 +0000 +++ b/lisp/ChangeLog Mon Sep 06 00:10:55 2010 +0000 @@ -7,6 +7,7 @@ (imap-mailbox-map): Ditto. (imap-mailbox-put): Ditto. (imap-mailbox-get): Ditto. + (imap-mailbox-get): Revert last change for this function. 2010-09-05 Lars Magne Ingebrigtsen diff -r 1a9f718ae483 -r 6f3cc5774150 lisp/net/imap.el --- a/lisp/net/imap.el Mon Sep 06 00:06:55 2010 +0000 +++ b/lisp/net/imap.el Mon Sep 06 00:10:55 2010 +0000 @@ -1315,9 +1315,10 @@ (get (intern-soft (or mailbox imap-current-mailbox) imap-mailbox-data) propname)) -(defun imap-mailbox-get (propname &optional mailbox) - (imap-mailbox-get-1 propname (or (imap-utf7-encode mailbox) - imap-current-mailbox))) +(defun imap-mailbox-get (propname &optional mailbox buffer) + (with-current-buffer (or buffer (current-buffer)) + (imap-mailbox-get-1 propname (or (imap-utf7-encode mailbox) + imap-current-mailbox)))) (defun imap-mailbox-map-1 (func &optional mailbox-decoder) (let (result)