command line is not empty, insert it into the minibuffer before
reading input. Thanks to Akinori MUSHA <knu@iDaemons.org>
[cf. <Liece:00123>]
+2003-10-24 Daiki Ueno <ueno@unixuser.org>
+
+ * riece-ctcp.el (riece-command-ctcp-action): If the current
+ command line is not empty, insert it into the minibuffer before
+ reading input. Thanks to Akinori MUSHA <knu@iDaemons.org>
+ [cf. <Liece:00123>]
+
2003-10-23 Daiki Ueno <ueno@unixuser.org>
* riece-naming.el (riece-naming-assert-rename): Follow the
(riece-get-identities-on-server (car entry)))
riece-server-process-alist)))
riece-current-channel)
- (read-string "Action: ")))
+ (let (message)
+ (beginning-of-line)
+ (setq message (buffer-substring (point)
+ (progn (end-of-line) (point))))
+ (if (equal message "")
+ (read-string "Action: ")
+ (prog1 (read-from-minibuffer "Action: " (cons message 0))
+ (let ((next-line-add-newlines t))
+ (next-line 1)))))))
(if (equal action "")
(error "No action"))
(riece-send-string (format "PRIVMSG %s :\1ACTION %s\1\r\n"