2010-01-02 TAKAHASHI Kaoru <kaoru@kaisei.org>
+ * wl-addrmgr.el(wl-addrmgr-mark-write): Use `string-to-char'
+ instead of `? '. Use `point-at-bol' and `point-at-eol'. Remove
+ verbose point move.
+
* 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):
(defun wl-addrmgr-mark-write (&optional mark)
"Set MARK to the current address entry."
(save-excursion
- (end-of-line)
- (unless (< (count-lines (point-min) (point)) 3)
+ (unless (< (count-lines (point-min) (point-at-eol)) 3)
(let ((buffer-read-only nil) beg end)
(beginning-of-line)
(delete-char 4)
(cc "Cc: ")
(bcc "Bcc:")
(t " ")))
- (insert (make-string (- 4 (current-column)) ? ))
- (beginning-of-line)
- (setq beg (point))
- (setq end (progn (end-of-line)
- (point)))
+ (insert (make-string (- 4 (current-column)) (string-to-char " ")))
+ (setq beg (point-at-bol))
+ (setq end (point-at-eol))
(put-text-property beg end 'face nil)
(wl-highlight-message beg end nil))
- (set-buffer-modified-p nil)
- (beginning-of-line)
- (forward-char 4))))
+ (set-buffer-modified-p nil))))
(defun wl-addrmgr-apply ()
(interactive)