diff options
| author | Leo Liu | 2012-06-24 10:34:52 +0800 |
|---|---|---|
| committer | Leo Liu | 2012-06-24 10:34:52 +0800 |
| commit | d939b632e16854db64f4ffc142eb8f9b243c4f5c (patch) | |
| tree | 68b8c1f88effa2dbae72ace71980c5ef648e331c | |
| parent | c101ef0a3cf3e5c99280beb739c006955865b1ff (diff) | |
| download | emacs-d939b632e16854db64f4ffc142eb8f9b243c4f5c.tar.gz emacs-d939b632e16854db64f4ffc142eb8f9b243c4f5c.zip | |
Backport: Avoid error when process-contact returns t in rcirc
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/net/rcirc.el | 12 |
2 files changed, 9 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 6d51598a777..3e75c2d718f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2012-06-24 Leo Liu <sdl.web@gmail.com> | 1 | 2012-06-24 Leo Liu <sdl.web@gmail.com> |
| 2 | 2 | ||
| 3 | * net/rcirc.el (rcirc): Avoid error when process-contact returns t. | ||
| 4 | |||
| 3 | * vc/diff-mode.el (diff-file-prev/next): Fix typo. | 5 | * vc/diff-mode.el (diff-file-prev/next): Fix typo. |
| 4 | 6 | ||
| 5 | 2012-06-23 Leo Liu <sdl.web@gmail.com> | 7 | 2012-06-23 Leo Liu <sdl.web@gmail.com> |
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index 1c74e6190dc..e34b7c79b3b 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el | |||
| @@ -471,7 +471,8 @@ If ARG is non-nil, instead prompt for connection parameters." | |||
| 471 | rcirc-default-full-name)) | 471 | rcirc-default-full-name)) |
| 472 | (channels (plist-get (cdr c) :channels)) | 472 | (channels (plist-get (cdr c) :channels)) |
| 473 | (password (plist-get (cdr c) :password)) | 473 | (password (plist-get (cdr c) :password)) |
| 474 | (encryption (plist-get (cdr c) :encryption))) | 474 | (encryption (plist-get (cdr c) :encryption)) |
| 475 | contact) | ||
| 475 | (when server | 476 | (when server |
| 476 | (let (connected) | 477 | (let (connected) |
| 477 | (dolist (p (rcirc-process-list)) | 478 | (dolist (p (rcirc-process-list)) |
| @@ -483,10 +484,11 @@ If ARG is non-nil, instead prompt for connection parameters." | |||
| 483 | full-name channels password encryption) | 484 | full-name channels password encryption) |
| 484 | (quit (message "Quit connecting to %s" server))) | 485 | (quit (message "Quit connecting to %s" server))) |
| 485 | (with-current-buffer (process-buffer connected) | 486 | (with-current-buffer (process-buffer connected) |
| 486 | (setq connected-servers | 487 | (setq contact (process-contact |
| 487 | (cons (process-contact (get-buffer-process | 488 | (get-buffer-process (current-buffer)) :host)) |
| 488 | (current-buffer)) :host) | 489 | (setq connected-servers |
| 489 | connected-servers)))))))) | 490 | (cons (if (stringp contact) contact server) |
| 491 | connected-servers)))))))) | ||
| 490 | (when connected-servers | 492 | (when connected-servers |
| 491 | (message "Already connected to %s" | 493 | (message "Already connected to %s" |
| 492 | (if (cdr connected-servers) | 494 | (if (cdr connected-servers) |