X-Git-Url: http://cgit.sxemacs.org/?p=riece;a=blobdiff_plain;f=lisp%2Friece-xemacs.el;h=4ebad2be331e8b83bcfe13b76de71030ce32a500;hp=aa75f046b0e7f620ba1d2dc3268ea6f8eadb392b;hb=4078e29a9780cbfecc432dd4954c63fbeebd4a8d;hpb=43c6410d601a861852fa4e2344b3fef62fef9844 diff --git a/lisp/riece-xemacs.el b/lisp/riece-xemacs.el index aa75f04..4ebad2b 100644 --- a/lisp/riece-xemacs.el +++ b/lisp/riece-xemacs.el @@ -18,8 +18,8 @@ ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs; see the file COPYING. If not, write to the -;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, -;; Boston, MA 02111-1307, USA. +;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +;; Boston, MA 02110-1301, USA. ;;; Code: @@ -122,12 +122,22 @@ (set-extent-properties extent properties) (cons extent string))) +(defalias 'riece-normalize-modeline-string 'identity) + (defalias 'riece-facep 'find-face) (defun riece-put-text-property-nonsticky (start end prop value &optional object) - (add-text-property start end (list prop value 'start-open t 'end-open t) - object)) + (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))) + +(defalias 'riece-remprop 'remprop) (provide 'riece-xemacs)