+2009-07-15 Jari Aalto <jari.aalto@cante.net>
+
+ * 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 <handa@m17n.org>
* international/mule-cmds.el (set-language-environment-charset):
\f
(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'.
(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