+2010-01-02 TAKAHASHI Kaoru <kaoru@kaisei.org>
+
+ * wl-address.el (wl-address-add-or-change): Use `point-at-bol'
+ and `point-at-eol'.
+ * wl-addrmgr.el (wl-addrmgr-unmark, wl-addrmgr-address-entry):
+ Ditto.
+
2010-01-01 TAKAHASHI Kaoru <kaoru@kaisei.org>
* wl-util.el (wl-count-lines): Use `point-at-bol' instead of
(insert "\n")))
;; override
(while (re-search-forward (concat "^[ \t]*" address) nil t)
- (delete-region (save-excursion (beginning-of-line)
- (point))
- (save-excursion (end-of-line)
- (+ 1 (point))))))
+ (delete-region (point-at-bol) (1+ (point-at-eol)))))
(insert (format "%s\t%s\t%s\n"
(or new-addr address)
(prin1-to-string the-petname)
(let ((entry (wl-addrmgr-address-entry))
buffer-read-only)
(save-excursion
- (beginning-of-line)
- (delete-region (point) (progn (end-of-line)(point)))
+ (delete-region (point-at-bol) (point-at-eol))
(wl-addrmgr-insert-line entry))
(set-buffer-modified-p nil)
(wl-addrmgr-next)))
;;; Operations.
(defun wl-addrmgr-address-entry ()
- (save-excursion
- (end-of-line)
- (get-text-property (previous-single-property-change
- (point) 'wl-addrmgr-entry nil
- (progn
- (beginning-of-line)
- (point)))
- 'wl-addrmgr-entry)))
+ (get-text-property (previous-single-property-change
+ (point-at-eol) 'wl-addrmgr-entry nil
+ (point-at-bol))
+ 'wl-addrmgr-entry))
(defun wl-addrmgr-mark-write (&optional mark)
"Set MARK to the current address entry."