2010-01-02 TAKAHASHI Kaoru <kaoru@kaisei.org>
+ * wl-thread.el (wl-thread-open, wl-thread-close): Use
+ `point-at-bol', `point-at-eol'.
+
* wl.el (wl-plugged-server-indent, wl-plugged-drawing)
(wl-plugged-redrawing-switch, wl-plugged-toggle): Use
`(string-to-char " ")' instead of `? ', `?\ '.
(let (depth beg)
(wl-thread-entity-set-opened entity nil)
(setq depth (wl-thread-get-depth-of-current-line))
- (beginning-of-line)
- (setq beg (point))
+ (setq beg (point-at-bol))
(wl-thread-goto-bottom-of-sub-thread)
(wl-thread-remove-argument-region beg
(point))
(defun wl-thread-open (entity)
(let (depth beg)
- (beginning-of-line)
- (setq beg (point))
+ (setq beg (point-at-bol))
(setq depth (wl-thread-get-depth-of-current-line))
- (end-of-line)
- (delete-region beg (point))
+ (delete-region (point-at-bol) (point-at-eol))
(wl-thread-entity-set-opened entity t)
(wl-thread-insert-entity depth ;(- depth 1)
entity