2004-05-29 Daiki Ueno <ueno@unixuser.org>
+ * riece-commands.el (riece-command-finger): Complete user names
+ without server-name.
+ (riece-command-invite): Ditto.
+ (riece-command-change-mode): Ditto.
+ (riece-command-enter-message-to-user): Ditto.
+
+ * riece-identity.el (riece-completing-read-identity): Add extra
+ 8th arg "no-server".
+
+2004-05-29 Daiki Ueno <ueno@unixuser.org>
+
* riece-server.el: Move autoload setting for 'riece-exit before
riece-open-server.
(let* ((completion-ignore-case t)
(user (riece-completing-read-identity
"Finger user: "
- (riece-get-users-on-server (riece-current-server-name)))))
+ (riece-get-users-on-server (riece-current-server-name))
+ nil nil nil nil nil t)))
(list user current-prefix-arg)))
(if recurse
(riece-send-string (format "WHOIS %s %s\r\n"
(riece-check-channel-commands-are-usable t)
(list (riece-completing-read-identity
"Invite user: "
- (riece-get-users-on-server (riece-current-server-name))))))
+ (riece-get-users-on-server (riece-current-server-name))
+ nil nil nil nil nil t))))
(riece-send-string (format "INVITE %s %s\r\n"
(riece-identity-prefix user)
(riece-identity-prefix riece-current-channel))))
(if current-prefix-arg
(riece-completing-read-identity
"Change mode for channel/user: "
- (riece-get-identities-on-server (riece-current-server-name)))
+ (riece-get-identities-on-server (riece-current-server-name))
+ nil nil nil nil nil t)
(riece-check-channel-commands-are-usable t)
riece-current-channel))
(riece-overriding-server-name (riece-identity-server channel))
(let ((completion-ignore-case t))
(list (riece-completing-read-identity
"Message to user: "
- (riece-get-users-on-server (riece-current-server-name))))))
+ (riece-get-users-on-server (riece-current-server-name))
+ nil nil nil nil nil t))))
(let ((text (buffer-substring
(riece-line-beginning-position)
(riece-line-end-position))))
(defun riece-completing-read-identity (prompt channels
&optional predicate require-match
- initial history default)
+ initial history default
+ no-server)
"Read an identity object in the minibuffer, with completion.
PROMPT is a string to prompt with; normally it ends in a colon and a space.
CHANNELS is a list of identity objects.
(completing-read
prompt
(mapcar (lambda (channel)
- (list (riece-format-identity channel)))
+ (list (riece-format-identity channel no-server)))
(delq nil (copy-sequence (or channels
riece-current-channels))))
predicate require-match initial history default))