* liece-misc.el (liece-remove-properties-region): Abolish.
+2003-05-22 Daiki Ueno <ueno@unixuser.org>
+
+ * liece-commands.el (liece-command-tag-region): Simplify.
+ * liece-misc.el (liece-remove-properties-region): Abolish.
+
2003-05-18 OHASHI Akira <bg66@koka-in.org>
* liece.el (liece-dialogue-mode-map): Don't bind
(if (liece-region-active-p)
(list (region-beginning)(region-end))
(list (line-beginning-position)(line-end-position))))
- (static-if (fboundp 'extent-property)
- (kill-ring-save start end)
- (let ((start (set-marker (make-marker) start))
- (end (set-marker (make-marker) end))
- (inhibit-read-only t)
- buffer-read-only
- buffer-undo-list)
- (liece-remove-properties-region start end)
- (kill-ring-save start end)
- (push nil buffer-undo-list)
- (undo))))
+ (kill-new (buffer-substring-no-properties start end)))
(provide 'liece-commands)
(or (>= ,limit 0)
(and (< diff ,limit) (> diff (- 0 ,limit)))))))
-(defmacro liece-remove-properties-region (start end)
- (unless (fboundp 'make-extent)
- `(save-excursion
- (save-restriction
- (narrow-to-region ,start ,end)
- (goto-char (point-min))
- (let (start)
- (while (setq start (next-single-property-change
- (point) 'invisible))
- (when (invisible-p start)
- (delete-region start (next-visible-point start))
- (goto-char start))
- (remove-text-properties (point-min)(point-max) '(face))))))))
-
(provide 'liece-misc)
;;; liece-misc.el ends here