+2001-12-17 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * wl-e21.el (wl-e21-toolbar-configurations): Replace
+ `auto-resize-tool-bar' to `auto-resize-tool-bars'. Pavel Janik
+ <Pavel@Janik.cz> has realized this in the emacs-w3m list.
+
+ * wl-demo.el (wl-demo-insert-image): Retry to read *.img file only
+ if it was failed.
+ (wl-demo): Disable undo in the demo buffer.
+
2001-12-15 Yuuichi Teranishi <teranisi@gohome.org>
* wl-version.el (wl-version): Changed codename.
((eq 'bitmap image-type)
;; Use ready-composed bitmap image.
(require 'bitmap)
- (if wl-on-emacs21
- (progn
- ;; Decode bitmap data line by line.
- (let ((coding-system-for-read 'raw-text))
- (insert-file-contents file))
- (while (not (eobp))
- (decode-coding-region (point) (line-end-position)
- 'iso-2022-7bit)
- (forward-line 1))
- (goto-char (point-min)))
- (let ((coding-system-for-read 'iso-2022-7bit)
- (input-coding-system '*iso-2022-jp*))
- (insert-file-contents file)))
- (end-of-line)
+ (let ((coding-system-for-read 'iso-2022-7bit)
+ (input-coding-system '*iso-2022-jp*))
+ (insert-file-contents file))
+ (goto-char (point-max))
+ (unless (bolp)
+ (insert "\n"))
+ (setq width 0)
+ (while (progn
+ (end-of-line 0)
+ (not (bobp)))
+ (setq width (max width (current-column))))
+ ;; Emacs 21.1 would fail to decode composite chars
+ ;; if it has been built without fixing coding.c.
+ (when (and wl-on-emacs21
+ (>= width 80))
+ (erase-buffer)
+ (let ((coding-system-for-read 'raw-text))
+ (insert-file-contents file))
+ (goto-char (point-max))
+ (unless (bolp)
+ (insert "\n"))
+ (setq width 0)
+ (while (progn
+ (end-of-line 0)
+ (not (bobp)))
+ ;; Decode bitmap data line by line.
+ (decode-coding-region (line-beginning-position)
+ (point)
+ 'iso-2022-7bit)
+ (setq width (max width (current-column)))))
(indent-rigidly (point-min) (point-max)
- (max 0 (/ (1+ (- (window-width)
- (current-column)))
- 2)))
+ (max 0 (/ (1+ (- (window-width) width)) 2)))
(put-text-property (point-min) (point-max)
'face 'wl-highlight-logo-face)
(count-lines (point-min) (goto-char (point-max))))
(get-buffer-create "*WL Demo*"))))
(switch-to-buffer buffer)
(setq buffer-read-only nil)
+ (buffer-disable-undo)
(erase-buffer)
(setq truncate-lines t
tab-width 8)
success)))
(defvar wl-e21-toolbar-configurations
- '((auto-resize-tool-bar . t)
+ '((auto-resize-tool-bars . t)
(auto-raise-tool-bar-buttons . t)
(tool-bar-button-margin . 0)
(tool-bar-button-relief . 2)))