* riece-emacs.el (riece-put-text-property-nonsticky): New function.
* riece-identity.el (riece-format-identity): Use it instead of
put-text-property.
+2004-08-28 Daiki Ueno <ueno@unixuser.org>
+
+ * riece-xemacs.el (riece-put-text-property-nonsticky): New function.
+ * riece-emacs.el (riece-put-text-property-nonsticky): New function.
+ * riece-identity.el (riece-format-identity): Use it instead of
+ put-text-property.
+
2004-08-27 Daiki Ueno <ueno@unixuser.org>
* riece-commands.el (riece-command-complete-user): Move point to
(add-text-properties 0 (length string) properties string)
string)
+(defun riece-put-text-property-nonsticky (start end prop value
+ &optional object)
+ (add-text-property start end
+ (list prop value 'front-sticky nil 'rear-nonsticky t)
+ object))
+
(defalias 'riece-facep 'facep)
(provide 'riece-emacs)
(riece-identity-server identity)))))
(if riece-abbrev-identity-string-function
(setq string (funcall riece-abbrev-identity-string-function string)))
- (put-text-property 0 (length string) 'riece-identity identity string)
+ (riece-put-text-property-nonsticky 0 (length string)
+ 'riece-identity identity
+ string)
(if prefix-only
- (put-text-property 0 (length string)
- 'riece-format-identity-prefix-only t
- string))
+ (riece-put-text-property-nonsticky 0 (length string)
+ 'riece-format-identity-prefix-only t
+ string))
string))
(defun riece-parse-identity (string)
(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))
+
(provide 'riece-xemacs)
;;; riece-xemacs.el ends here