* riece-layout.el (riece-set-window-points): Move point in
authorDaiki Ueno <ueno@unixuser.org>
Tue, 28 Oct 2003 04:25:08 +0000 (04:25 +0000)
committerDaiki Ueno <ueno@unixuser.org>
Tue, 28 Oct 2003 04:25:08 +0000 (04:25 +0000)
the channel-buffer's window.

* riece-ctcp.el (riece-command-ctcp-version): Prompt to select
an identity on the current server.
(riece-command-ctcp-ping): Ditto.
(riece-command-ctcp-clientinfo): Ditto.
(riece-command-ctcp-action): Ditto.

* riece-commands.el (riece-command-change-mode): Prompt to select
an identity on the current server.
(riece-command-join): Ditto.

lisp/ChangeLog
lisp/riece-commands.el
lisp/riece-ctcp.el
lisp/riece-layout.el

index ecf1f19..148837e 100644 (file)
@@ -1,3 +1,18 @@
+2003-10-28  Daiki Ueno  <ueno@unixuser.org>
+
+       * riece-layout.el (riece-set-window-points): Move point in
+       the channel-buffer's window.
+
+       * riece-ctcp.el (riece-command-ctcp-version): Prompt to select
+       an identity on the current server.
+       (riece-command-ctcp-ping): Ditto.
+       (riece-command-ctcp-clientinfo): Ditto.
+       (riece-command-ctcp-action): Ditto.
+
+       * riece-commands.el (riece-command-change-mode): Prompt to select
+       an identity on the current server.
+       (riece-command-join): Ditto.
+
 2003-10-27  Daiki Ueno  <ueno@unixuser.org>
 
        * riece-keyword.el (riece-keywords): Change custom spec.
index 4994a8f..c242442 100644 (file)
@@ -252,7 +252,8 @@ the layout to the selected layout-name."
          (channel
           (if current-prefix-arg
               (riece-completing-read-identity
-               "Channel/User: " riece-current-channels)
+               "Channel/User: "
+               (riece-get-identities-on-server (riece-current-server-name)))
             (riece-check-channel-commands-are-usable t)
             riece-current-channel))
          (riece-overriding-server-name (riece-identity-server channel))
@@ -428,9 +429,11 @@ the layout to the selected layout-name."
                               riece-join-channel-candidate)))
                 (riece-completing-read-identity
                  (format "Channel/User (default %s): " default)
-                 riece-current-channels nil nil nil nil default))
+                 (riece-get-identities-on-server (riece-current-server-name))
+                 nil nil nil nil default))
             (riece-completing-read-identity
-             "Channel/User: " riece-current-channels)))
+             "Channel/User: "
+             (riece-get-identities-on-server (riece-current-server-name)))))
          key)
      (if (and current-prefix-arg
              (riece-channel-p (riece-identity-prefix target)))
index 5ea2e8d..99266cd 100644 (file)
   (interactive
    (list (riece-completing-read-identity
          "Channel/User: "
-         (apply #'nconc
-                (mapcar (lambda (entry)
-                          (riece-get-identities-on-server (car entry)))
-                        riece-server-process-alist)))))
+         (riece-get-identities-on-server (riece-current-server-name)))))
   (riece-send-string (format "PRIVMSG %s :\1VERSION\1\r\n"
                             (riece-identity-prefix target))))
 
   (interactive
    (list (riece-completing-read-identity
          "Channel/User: "
-         (apply #'nconc
-                (mapcar (lambda (entry)
-                          (riece-get-identities-on-server (car entry)))
-                        riece-server-process-alist)))))
+         (riece-get-identities-on-server (riece-current-server-name)))))
   (riece-send-string (format "PRIVMSG %s :\1PING\1\r\n"
                             (riece-identity-prefix target)))
   (setq riece-ctcp-ping-time (current-time)))
   (interactive
    (list (riece-completing-read-identity
          "Channel/User: "
-         (apply #'nconc
-                (mapcar (lambda (entry)
-                          (riece-get-identities-on-server (car entry)))
-                        riece-server-process-alist)))))
+         (riece-get-identities-on-server (riece-current-server-name)))))
   (riece-send-string (format "PRIVMSG %s :\1CLIENTINFO\1\r\n"
                             (riece-identity-prefix target))))
 
    (list (if current-prefix-arg
             (riece-completing-read-identity
              "Channel/User: "
-             (apply #'nconc
-                    (mapcar (lambda (entry)
-                              (riece-get-identities-on-server (car entry)))
-                            riece-server-process-alist)))
+             (riece-get-identities-on-server (riece-current-server-name)))
           riece-current-channel)
         (let (message)
           (beginning-of-line)
index 8643a4e..e1c6908 100644 (file)
@@ -83,7 +83,23 @@ happen unconditionally."
       (with-current-buffer riece-channel-list-buffer
        (unless (riece-frozen riece-channel-list-buffer)
          (set-window-start (get-buffer-window riece-channel-list-buffer)
-                           (point-min))))))
+                           (point-min)))))
+  (if (and riece-channel-buffer
+          (get-buffer-window riece-channel-buffer))
+      (with-current-buffer riece-channel-buffer
+       (unless (riece-frozen riece-channel-buffer)
+         (set-window-point (get-buffer-window riece-channel-buffer)
+                           (point-max)))))
+  (if (get-buffer-window riece-others-buffer)
+      (with-current-buffer riece-others-buffer
+       (unless (riece-frozen riece-others-buffer)
+         (set-window-point (get-buffer-window riece-others-buffer)
+                           (point-max)))))
+  (if (get-buffer-window riece-dialogue-buffer)
+      (with-current-buffer riece-dialogue-buffer
+       (unless (riece-frozen riece-dialogue-buffer)
+         (set-window-point (get-buffer-window riece-dialogue-buffer)
+                           (point-max))))))
 
 (defun riece-reconfigure-windows-predicate ()
   "Return t, if window reconfiguration is needed.