* riece-ctcp.el (riece-command-ctcp-action): If the current
authorDaiki Ueno <ueno@unixuser.org>
Fri, 24 Oct 2003 02:41:57 +0000 (02:41 +0000)
committerDaiki Ueno <ueno@unixuser.org>
Fri, 24 Oct 2003 02:41:57 +0000 (02:41 +0000)
command line is not empty, insert it into the minibuffer before
reading input.  Thanks to Akinori MUSHA  <knu@iDaemons.org>
[cf. <Liece:00123>]

lisp/ChangeLog
lisp/riece-ctcp.el

index 5590284..e531463 100644 (file)
@@ -1,3 +1,10 @@
+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
index dfde187..5ea2e8d 100644 (file)
                               (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"