From: Chong Yidong Date: Wed, 15 Jul 2009 15:07:39 +0000 (+0000) Subject: * net/rcirc.el (rcirc): Use history variables. X-Git-Tag: emacs-pretest-23.1.90~2159 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c0db3477b4b038cf220b60790cb7bd7a9eff976d;p=emacs.git * net/rcirc.el (rcirc): Use history variables. (rcirc-server-name-history, rcirc-nick-name-history) (rcirc-server-port-history): New variables. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 70c3b7b434d..f639b1af8fa 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2009-07-15 Jari Aalto + + * net/rcirc.el (rcirc): Use history variables. + (rcirc-server-name-history, rcirc-nick-name-history) + (rcirc-server-port-history): New variables. + 2009-07-15 Kenichi Handa * international/mule-cmds.el (set-language-environment-charset): diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index 1f312843f08..095ebe7245f 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el @@ -359,6 +359,15 @@ and the cdr part is used for encoding." (defvar rcirc-startup-channels nil) +(defvar rcirc-server-name-history nil + "History variable for \\[rcirc] call.") + +(defvar rcirc-server-port-history nil + "History variable for \\[rcirc] call.") + +(defvar rcirc-nick-name-history nil + "History variable for \\[rcirc] call.") + ;;;###autoload (defun rcirc (arg) "Connect to all servers in `rcirc-server-alist'. @@ -371,15 +380,18 @@ If ARG is non-nil, instead prompt for connection parameters." (let* ((server (completing-read "IRC Server: " rcirc-server-alist nil nil - (caar rcirc-server-alist))) + (caar rcirc-server-alist) + 'rcirc-server-name-history)) (server-plist (cdr (assoc-string server rcirc-server-alist))) (port (read-string "IRC Port: " (number-to-string (or (plist-get server-plist :port) - rcirc-default-port)))) + rcirc-default-port)) + 'rcirc-server-port-history)) (nick (read-string "IRC Nick: " (or (plist-get server-plist :nick) - rcirc-default-nick))) + rcirc-default-nick) + 'rcirc-nick-name-history)) (channels (split-string (read-string "IRC Channels: " (mapconcat 'identity