(wl-deactivate-region): New function.
* wl-message.el (wl-message-redisplay): Deactivate region.
* wl-summary.el (wl-summary-reply): Call
`wl-summary-set-message-buffer-or-redisplay' instead of
`wl-summary-redisplay-internal', don't move point.
+2003-11-29 Yoichi NAKAYAMA <yoichi@geiin.org>
+
+ * wl-util.el (wl-region-exists-p): Use region-active-p.
+ (wl-deactivate-region): New function.
+ * wl-message.el (wl-message-redisplay): Deactivate region.
+
+ * wl-summary.el (wl-summary-reply): Call
+ `wl-summary-set-message-buffer-or-redisplay' instead of
+ `wl-summary-redisplay-internal', don't move point.
+
2003-11-29 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
* wl-util.el (wl-region-exists-p): Remove duplicate definition.
(wl-message-select-buffer wl-message-buffer)
(set-buffer message-buf)
+ (wl-deactivate-region)
(make-local-variable 'truncate-partial-width-windows)
(setq truncate-partial-width-windows nil)
(setq truncate-lines wl-message-truncate-lines)
mes-buf)
(when number
(save-excursion
- (wl-summary-redisplay-internal folder number))
+ (wl-summary-set-message-buffer-or-redisplay))
(setq mes-buf wl-message-buffer)
(wl-message-select-buffer wl-message-buffer)
(set-buffer mes-buf)
- (goto-char (point-min))
(condition-case err
(when (setq mes-buf (wl-message-get-original-buffer))
(wl-draft-reply mes-buf arg summary-buf number)
(defun wl-region-exists-p ()
"Return non-nil if a region exists on current buffer."
(static-if (featurep 'xemacs)
- (and zmacs-regions zmacs-region-active-p)
+ (region-active-p)
(and transient-mark-mode mark-active)))
+(defun wl-deactivate-region ()
+ "Deactivate region on current buffer"
+ (static-if (not (featurep 'xemacs))
+ (setq mark-active nil)))
+
(defvar wl-line-string)
(defun wl-line-parse-format (format spec-alist)
"Make a formatter from FORMAT and SPEC-ALIST."