classes and Perl style shy-groups for regexp.
(wl-highlight-plugged-current-line): Use Posix style character classes for
regexp.
(wl-e21-highlight-folder-by-numbers): Ditto.
(wl-e21-display-image-p): Use `display-images-p' instead of
`display-graphic-p'.
(display-images-p): Make an alias to `display-graphic-p' if it is not
available. It is for Emacs version prior to 21.0.105.
* wl-demo.el (wl-demo): Use `display-images-p' instead of `display-graphic-p'.
(wl-demo-image-type-alist): Ditto.
(display-images-p): Make an alias to `display-graphic-p' if it is not
available. It is for Emacs version prior to 21.0.105.
+2001-09-05 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * wl-e21.el (wl-highlight-folder-current-line): Use Posix style
+ character classes and Perl style shy-groups for regexp.
+ (wl-highlight-plugged-current-line): Use Posix style character
+ classes for regexp.
+ (wl-e21-highlight-folder-by-numbers): Ditto.
+ (wl-e21-display-image-p): Use `display-images-p' instead of
+ `display-graphic-p'.
+ (display-images-p): Make an alias to `display-graphic-p' if it is
+ not available. It is for Emacs version prior to 21.0.105.
+
+ * wl-demo.el (wl-demo): Use `display-images-p' instead of
+ `display-graphic-p'.
+ (wl-demo-image-type-alist): Ditto.
+ (display-images-p): Make an alias to `display-graphic-p' if it is
+ not available. It is for Emacs version prior to 21.0.105.
+
2001-09-04 TAKAHASHI Kaoru <kaoru@kaisei.org>
* wl-version.el (wl-generate-user-agent-string-1): Remove tm
(defconst wl-demo-icon-name (concat "wl-" (wl-version-status) "-logo"))
+(eval-and-compile
+ (if wl-on-emacs21
+ ;; `display-images-p' has not been available prior to Emacs 21.0.105.
+ (defalias-maybe 'display-images-p 'display-graphic-p)))
+
;; Avoid byte compile warnings.
(eval-when-compile
(defalias-maybe 'bitmap-compose 'ignore)
(defalias-maybe 'bitmap-read-xbm-file 'ignore)
(defalias-maybe 'create-image 'ignore)
(defalias-maybe 'device-on-window-system-p 'ignore)
- (defalias-maybe 'display-graphic-p 'ignore)
+ (defalias-maybe 'display-images-p 'ignore)
(defalias-maybe 'frame-char-height 'ignore)
(defalias-maybe 'frame-char-width 'ignore)
(defalias-maybe 'frame-parameter 'ignore)
;; demo ;-)
;;
-(defvar wl-logo-ascii " o$ oo$$$$$$ooo
+(defvar wl-logo-ascii "\
+ o$ oo$$$$$$ooo
oo$$$ o$$ o$$$\"\"\"\"\"\"$$$$$o
$$$$$$\" o$$$\" o$\"\" \"$$$
$$\" o$\"\" o$\" $$$
(featurep 'xpm)
(device-on-window-system-p))
(and wl-on-emacs21
- (display-graphic-p)
+ (display-images-p)
(image-type-available-p 'xpm))))
'(("xpm" . xpm)))
(if (and (get 'wl-logo-xbm 'width)
(or (and (featurep 'xemacs)
(device-on-window-system-p))
(and wl-on-emacs21
- (display-graphic-p)
+ (display-images-p)
(image-type-available-p 'xbm))))
'(("xbm" . xbm)))
(if (and (get 'wl-logo-bitmap 'width)
2 (window-pixel-width))))
(set-extent-end-glyph (make-extent (point) (point)) image))
((and wl-on-emacs21
- (display-graphic-p)
+ (display-images-p)
(not (eq 'wl-logo-bitmap image-type)))
(if (eq 'wl-logo-xbm image-type)
(let ((bg (face-background 'wl-highlight-logo-face))
(define-key map (vector 'mode-line mouse) function)
map))
+;; `display-images-p' has not been available prior to Emacs 21.0.105.
+(defalias-maybe 'display-images-p 'display-graphic-p)
+
(add-hook 'wl-folder-mode-hook 'wl-setup-folder)
(add-hook 'wl-folder-mode-hook 'wl-folder-init-icons)
(eval-when-compile
(defmacro wl-e21-display-image-p ()
- '(and (display-graphic-p)
+ '(and (display-images-p)
(image-type-available-p 'xpm))))
(defun wl-e21-setup-toolbar (bar)
(let ((inhibit-read-only t))
(if (and wl-highlight-folder-by-numbers
numbers (nth 0 numbers) (nth 1 numbers)
- (re-search-forward "[0-9-]+/[0-9-]+/[0-9-]+"
+ (re-search-forward "[[:digit:]-]+/[[:digit:]-]+/[[:digit:]-]+"
(line-end-position) t))
(let* ((unsync (nth 0 numbers))
(unread (nth 1 numbers))
(;; basic folder
(and (setq fld-name (wl-folder-get-folder-name-by-id
(get-text-property (point) 'wl-folder-entity-id)))
- (looking-at "[\t ]+\\([^\t\n ]+\\)"))
+ (looking-at "[[:blank:]]+\\([^\t\n ]+\\)"))
(setq start (match-beginning 1)
end (match-end 1))
(let (image)
(when (display-color-p)
(wl-e21-highlight-folder-by-numbers
start end
- (if (looking-at (format "^[\t ]*\\(%s\\|%s\\)"
+ (if (looking-at (format "^[[:blank:]]*\\(?:%s\\|%s\\)"
wl-folder-unsubscribe-mark
wl-folder-removed-mark))
'wl-highlight-folder-killed-face
(when (wl-e21-display-image-p)
(save-excursion
(beginning-of-line)
- (when (looking-at "[\t ]*\\(\\[\\([^]]+\\)\\]\\)")
+ (when (looking-at "[[:blank:]]*\\(\\[\\([^]]+\\)\\]\\)")
(let* ((start (match-beginning 1))
(end (match-end 1))
(status (match-string-no-properties 2))