* riece-xemacs.el (riece-recent-messages): New function.
[riece] / lisp / riece-xemacs.el
index 3c5cf43..71613f9 100644 (file)
   (add-text-properties start end (list prop value 'start-open t 'end-open t)
                       object))
 
+(defun riece-recent-messages (n)
+  "Return N most recent messages, most recent first.
+If N is nil, all messages will be returned."
+  (with-output-to-string
+    (print-recent-messages n)))
+
 (provide 'riece-xemacs)
 
 ;;; riece-xemacs.el ends here