diff options
| author | Stefan Monnier | 2001-11-25 22:19:45 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2001-11-25 22:19:45 +0000 |
| commit | f78cebe31ca1fccf79cc0d0775d5792ce98e7945 (patch) | |
| tree | 60b3e3d621851bb0bab160117444229a1376de5d | |
| parent | 1ab0fac670b7575a683282e2f8c86b6525d6cca1 (diff) | |
| download | emacs-f78cebe31ca1fccf79cc0d0775d5792ce98e7945.tar.gz emacs-f78cebe31ca1fccf79cc0d0775d5792ce98e7945.zip | |
(imap-interactive-login, imap-open, imap-authenticate):
Use make-local-variable rather than make-variable-buffer-local.
| -rw-r--r-- | lisp/gnus/imap.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/gnus/imap.el b/lisp/gnus/imap.el index c2808a72430..ea267332980 100644 --- a/lisp/gnus/imap.el +++ b/lisp/gnus/imap.el | |||
| @@ -719,8 +719,8 @@ LOGINFUNC is passed a username and a password, it should return t if | |||
| 719 | it where sucessful authenticating itself to the server, nil otherwise. | 719 | it where sucessful authenticating itself to the server, nil otherwise. |
| 720 | Returns t if login was successful, nil otherwise." | 720 | Returns t if login was successful, nil otherwise." |
| 721 | (with-current-buffer buffer | 721 | (with-current-buffer buffer |
| 722 | (make-variable-buffer-local 'imap-username) | 722 | (make-local-variable 'imap-username) |
| 723 | (make-variable-buffer-local 'imap-password) | 723 | (make-local-variable 'imap-password) |
| 724 | (let (user passwd ret) | 724 | (let (user passwd ret) |
| 725 | ;; (condition-case () | 725 | ;; (condition-case () |
| 726 | (while (or (not user) (not passwd)) | 726 | (while (or (not user) (not passwd)) |
| @@ -887,7 +887,7 @@ necessery. If nil, the buffer name is generated." | |||
| 887 | (with-current-buffer (get-buffer-create buffer) | 887 | (with-current-buffer (get-buffer-create buffer) |
| 888 | (if (imap-opened buffer) | 888 | (if (imap-opened buffer) |
| 889 | (imap-close buffer)) | 889 | (imap-close buffer)) |
| 890 | (mapcar 'make-variable-buffer-local imap-local-variables) | 890 | (mapcar 'make-local-variable imap-local-variables) |
| 891 | (imap-disable-multibyte) | 891 | (imap-disable-multibyte) |
| 892 | (buffer-disable-undo) | 892 | (buffer-disable-undo) |
| 893 | (setq imap-server (or server imap-server)) | 893 | (setq imap-server (or server imap-server)) |
| @@ -957,8 +957,8 @@ password is remembered in the buffer." | |||
| 957 | (or (eq imap-state 'auth) | 957 | (or (eq imap-state 'auth) |
| 958 | (eq imap-state 'select) | 958 | (eq imap-state 'select) |
| 959 | (eq imap-state 'examine)) | 959 | (eq imap-state 'examine)) |
| 960 | (make-variable-buffer-local 'imap-username) | 960 | (make-local-variable 'imap-username) |
| 961 | (make-variable-buffer-local 'imap-password) | 961 | (make-local-variable 'imap-password) |
| 962 | (if user (setq imap-username user)) | 962 | (if user (setq imap-username user)) |
| 963 | (if passwd (setq imap-password passwd)) | 963 | (if passwd (setq imap-password passwd)) |
| 964 | (if (funcall (nth 2 (assq imap-auth imap-authenticator-alist)) buffer) | 964 | (if (funcall (nth 2 (assq imap-auth imap-authenticator-alist)) buffer) |