+2002-10-22 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * elmo.el (elmo-generic-folder-diff): Avoid byte-compile warning.
+
2002-10-12 Yoichi NAKAYAMA <yoichi@eken.phys.nagoya-u.ac.jp>
* elmo-dop.el (elmo-folder-status-dop): If spool-folder is absent,
(if (and in-folder
(null in-db))
(cdr in-folder)
- (if (null (car in-folder))
- nil))))
+ (car in-folder))))
(setq messages (cdr in-folder))
(if (and unsync messages (> unsync messages))
(setq unsync messages))
+2002-10-22 Yuuichi Teranishi <teranisi@gohome.org>
+
+ * wl-util.el (wl-region-exists-p): New function.
+
+ * wl-mime.el (wl-draft-yank-current-message-entity): Use it;
+ Remove defvars for byte-compile warnings.
+
2002-10-22 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
* wl-mime.el (toplevel): Fixed last change; use defvar instead of
(require 'mime-play)
(require 'elmo)
-;; avoid compile warnings
-(defvar zmacs-regions)
-(defvar zmacs-region-active-p)
-(defvar transient-mark-mode)
-(defvar mark-active)
-
;;; Draft
(defalias 'wl-draft-editor-mode 'mime-edit-mode)
(set-buffer (wl-current-message-buffer))
(save-restriction
(widen)
- (if (or (and wl-on-xemacs
- zmacs-regions zmacs-region-active-p)
- (and (not wl-on-xemacs)
- transient-mark-mode mark-active))
- (wl-mime-preview-follow-current-region)
- (mime-preview-follow-current-entity)))))))
+ (if (wl-region-exists-p)
+ (wl-mime-preview-follow-current-region)
+ (mime-preview-follow-current-entity)))))))
;; modified mime-preview-follow-current-entity from mime-view.el
(defun wl-mime-preview-follow-current-region ()
(defalias 'wl-expand-newtext 'elmo-expand-newtext)
+(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)
+ (and transient-mark-mode mark-active)))
+
(defvar wl-line-string)
(defun wl-line-parse-format (format spec-alist)
"Make a formatter from FORMAT and SPEC-ALIST."