* riece-ruby.el (riece-ruby-set-output-handler): New function.
authorueno <ueno>
Thu, 11 Aug 2005 04:13:30 +0000 (04:13 +0000)
committerueno <ueno>
Thu, 11 Aug 2005 04:13:30 +0000 (04:13 +0000)
lisp/ChangeLog
lisp/riece-ruby.el

index 68beb49..8628b54 100644 (file)
@@ -3,6 +3,7 @@
        * server.rb: Renamed from rubyserv.rb; s/RubyServ/Server/.
        * riece-ruby.el (riece-ruby-server-program): Follow the filename
        change.
+       (riece-ruby-set-output-handler): New function.
 
 2005-08-11  Daiki Ueno  <ueno@unixuser.org>
 
index 4759f10..da209ca 100644 (file)
     ;;check if the program already exited
     (riece-ruby-inspect)))
 
+(defun riece-ruby-set-output-handler (name handler)
+  (let ((entry (assoc name riece-ruby-output-handler-alist)))
+    (if entry
+       (setcdr entry handler)
+      (setq riece-ruby-output-handler-alist
+           (cons (cons name handler)
+                 riece-ruby-output-handler-alist)))))
+
 (provide 'riece-ruby)
 
 ;;; riece-ruby.el ends here