X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Friece-xemacs.el;h=4ebad2be331e8b83bcfe13b76de71030ce32a500;hb=bf2df5d4bf0f70c7f102eb924e352f83d46f3fa4;hp=b1d73495daba040584fceb9a14b5b5d1eb3b5fd7;hpb=93d36d14915e0b8c678e0ab7f4708851a38bd304;p=elisp%2Friece.git diff --git a/lisp/riece-xemacs.el b/lisp/riece-xemacs.el index b1d7349..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: @@ -82,8 +82,8 @@ (defun riece-kill-all-overlays () "Delete all extents in the current buffer." (map-extents (lambda (extent ignore) - (delete-extent extent) - nil))) + (delete-extent extent) + nil))) ;;; stolen (and renamed) from nnheaderxm.el. (defun riece-xemacs-generate-timer-name (&optional prefix) @@ -117,6 +117,28 @@ (defun riece-match-string-no-properties (number &optional string) (format "%s" (match-string number string))) +(defun riece-propertize-modeline-string (string &rest properties) + (let ((extent (make-extent nil nil))) + (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-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) ;;; riece-xemacs.el ends here