aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2010-06-09 21:10:04 -0400
committerStefan Monnier2010-06-09 21:10:04 -0400
commita71832f78d2fa8128a03aeb551a1ec0895b49f67 (patch)
treecfc3957c629d290b3af9e4f71a6b8e89d8bf4c10
parentfff84c22e7e57d7364c2298aebf1b35796fc852b (diff)
downloademacs-a71832f78d2fa8128a03aeb551a1ec0895b49f67.tar.gz
emacs-a71832f78d2fa8128a03aeb551a1ec0895b49f67.zip
* lisp/net/rcirc.el (rcirc-server-alist, rcirc, rcirc-connect): Resolve
merge conflict, giving preference to the emacs-23 version of the code.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/net/rcirc.el35
2 files changed, 23 insertions, 17 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index aa2fed11ea2..d5e0b5ac4f4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12010-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * net/rcirc.el (rcirc-server-alist, rcirc, rcirc-connect): Resolve
4 merge conflict, giving preference to the emacs-23 version of the code.
5
12010-06-09 Stefan Monnier <monnier@iro.umontreal.ca> 62010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * emacs-lisp/advice.el (ad-compile-function): 8 * emacs-lisp/advice.el (ad-compile-function):
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el
index 7761bbc650e..76fc1cd72dd 100644
--- a/lisp/net/rcirc.el
+++ b/lisp/net/rcirc.el
@@ -81,15 +81,16 @@ VALUE must be a number or string. If absent,
81VALUE must be a string. If absent, `rcirc-default-user-name' is 81VALUE must be a string. If absent, `rcirc-default-user-name' is
82used. 82used.
83 83
84`:password'
85
86VALUE must be a string. If absent, no PASS command will be sent
87to the server.
88
84`:full-name' 89`:full-name'
85 90
86VALUE must be a string. If absent, `rcirc-default-full-name' is 91VALUE must be a string. If absent, `rcirc-default-full-name' is
87used. 92used.
88 93
89`:pass'
90
91VALUE must be a string.
92
93`:channels' 94`:channels'
94 95
95VALUE must be a list of strings describing which channels to join 96VALUE must be a list of strings describing which channels to join
@@ -99,8 +100,8 @@ connected to automatically."
99 :value-type (plist :options ((:nick string) 100 :value-type (plist :options ((:nick string)
100 (:port integer) 101 (:port integer)
101 (:user-name string) 102 (:user-name string)
103 (:password string)
102 (:full-name string) 104 (:full-name string)
103 (:pass string)
104 (:channels (repeat string))))) 105 (:channels (repeat string)))))
105 :group 'rcirc) 106 :group 'rcirc)
106 107
@@ -406,8 +407,8 @@ If ARG is non-nil, instead prompt for connection parameters."
406 (or (plist-get server-plist :user-name) 407 (or (plist-get server-plist :user-name)
407 rcirc-default-user-name) 408 rcirc-default-user-name)
408 'rcirc-user-name-history)) 409 'rcirc-user-name-history))
409 (pass (read-passwd "IRC Password: " nil 410 (password (read-passwd "IRC Password: " nil
410 (plist-get server-plist :pass))) 411 (plist-get server-plist :password)))
411 (channels (split-string 412 (channels (split-string
412 (read-string "IRC Channels: " 413 (read-string "IRC Channels: "
413 (mapconcat 'identity 414 (mapconcat 'identity
@@ -415,9 +416,9 @@ If ARG is non-nil, instead prompt for connection parameters."
415 :channels) 416 :channels)
416 " ")) 417 " "))
417 "[, ]+" t))) 418 "[, ]+" t)))
418 (rcirc-connect server port nick user-name pass 419 (rcirc-connect server port nick user-name
419 rcirc-default-full-name 420 rcirc-default-full-name
420 channels)) 421 channels password))
421 ;; connect to servers in `rcirc-server-alist' 422 ;; connect to servers in `rcirc-server-alist'
422 (let (connected-servers) 423 (let (connected-servers)
423 (dolist (c rcirc-server-alist) 424 (dolist (c rcirc-server-alist)
@@ -426,10 +427,10 @@ If ARG is non-nil, instead prompt for connection parameters."
426 (port (or (plist-get (cdr c) :port) rcirc-default-port)) 427 (port (or (plist-get (cdr c) :port) rcirc-default-port))
427 (user-name (or (plist-get (cdr c) :user-name) 428 (user-name (or (plist-get (cdr c) :user-name)
428 rcirc-default-user-name)) 429 rcirc-default-user-name))
429 (pass (plist-get (cdr c) :pass))
430 (full-name (or (plist-get (cdr c) :full-name) 430 (full-name (or (plist-get (cdr c) :full-name)
431 rcirc-default-full-name)) 431 rcirc-default-full-name))
432 (channels (plist-get (cdr c) :channels))) 432 (channels (plist-get (cdr c) :channels))
433 (password (plist-get (cdr c) :password)))
433 (when server 434 (when server
434 (let (connected) 435 (let (connected)
435 (dolist (p (rcirc-process-list)) 436 (dolist (p (rcirc-process-list))
@@ -437,8 +438,8 @@ If ARG is non-nil, instead prompt for connection parameters."
437 (setq connected p))) 438 (setq connected p)))
438 (if (not connected) 439 (if (not connected)
439 (condition-case e 440 (condition-case e
440 (rcirc-connect server port nick user-name pass 441 (rcirc-connect server port nick user-name
441 full-name channels) 442 full-name channels password)
442 (quit (message "Quit connecting to %s" server))) 443 (quit (message "Quit connecting to %s" server)))
443 (with-current-buffer (process-buffer connected) 444 (with-current-buffer (process-buffer connected)
444 (setq connected-servers 445 (setq connected-servers
@@ -469,8 +470,8 @@ If ARG is non-nil, instead prompt for connection parameters."
469(defvar rcirc-process nil) 470(defvar rcirc-process nil)
470 471
471;;;###autoload 472;;;###autoload
472(defun rcirc-connect (server &optional port nick user-name pass 473(defun rcirc-connect (server &optional port nick user-name
473 full-name startup-channels) 474 full-name startup-channels password)
474 (save-excursion 475 (save-excursion
475 (message "Connecting to %s..." server) 476 (message "Connecting to %s..." server)
476 (let* ((inhibit-eol-conversion) 477 (let* ((inhibit-eol-conversion)
@@ -519,8 +520,8 @@ If ARG is non-nil, instead prompt for connection parameters."
519 (add-hook 'auto-save-hook 'rcirc-log-write) 520 (add-hook 'auto-save-hook 'rcirc-log-write)
520 521
521 ;; identify 522 ;; identify
522 (when pass 523 (when password
523 (rcirc-send-string process (concat "PASS " pass))) 524 (rcirc-send-string process (concat "PASS " password)))
524 (rcirc-send-string process (concat "NICK " nick)) 525 (rcirc-send-string process (concat "NICK " nick))
525 (rcirc-send-string process (concat "USER " user-name 526 (rcirc-send-string process (concat "USER " user-name
526 " 0 * :" full-name)) 527 " 0 * :" full-name))