]> git.eshelyaron.com Git - emacs.git/commitdiff
* net/rcirc.el (rcirc): Use history variables.
authorChong Yidong <cyd@stupidchicken.com>
Wed, 15 Jul 2009 15:07:39 +0000 (15:07 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Wed, 15 Jul 2009 15:07:39 +0000 (15:07 +0000)
(rcirc-server-name-history, rcirc-nick-name-history)
(rcirc-server-port-history): New variables.

lisp/ChangeLog
lisp/net/rcirc.el

index 70c3b7b434d42d888c66c87a8a7db82a61060244..f639b1af8fa5f7e13a0d4628b7d83ec0dc4933a3 100644 (file)
@@ -1,3 +1,9 @@
+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):
index 1f312843f086fef69d9a364d5cbce0fbbe0b3d07..095ebe7245ff54b16f8b1e75757ca81651e45bee 100644 (file)
@@ -359,6 +359,15 @@ and the cdr part is used for encoding."
 \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'.
@@ -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