From: yamaoka Date: Thu, 4 Jan 2001 22:40:13 +0000 (+0000) Subject: Synch with `semi-1_14'. X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=967e1c8ebc8e8ee38abe62c3b0314ac4f6470a5a;p=elisp%2Fsemi.git Synch with `semi-1_14'. --- diff --git a/ChangeLog b/ChangeLog index 93ecd4f..a836962 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2000-12-28 MORIOKA Tomohiko + * mime-view.el: Revert to use `static'. + + +2000-12-28 MORIOKA Tomohiko + + * SEMI: Version 1.14.3 (Ushinoya) released. + * mime-view.el (mime-view-read-situation-examples-file): Don't try to read situation-examples-file is it is nil. (mime-situation-examples-file): Avoid to read diff --git a/Makefile b/Makefile index e053d00..b15a54d 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ PACKAGE = wemi API = 1.14 -RELEASE = 2 +RELEASE = 3 FLIM_API= 1.14 diff --git a/mime-view.el b/mime-view.el index 54fb800..4db8b4c 100644 --- a/mime-view.el +++ b/mime-view.el @@ -33,6 +33,8 @@ (require 'alist) (require 'mime-conf) +(eval-when-compile (require 'static)) + ;;; @ version ;;; @@ -377,14 +379,14 @@ mother-buffer." (with-temp-buffer (insert-file-contents file) (setq mime-situation-examples-file-coding-system - (and (boundp 'buffer-file-coding-system) - buffer-file-coding-system) - ;; (static-cond - ;; ((boundp 'buffer-file-coding-system) - ;; (symbol-value 'buffer-file-coding-system)) - ;; ((boundp 'file-coding-system) - ;; (symbol-value 'file-coding-system)) - ;; (t nil)) + (static-cond + ((boundp 'buffer-file-coding-system) + (symbol-value 'buffer-file-coding-system)) + ((boundp 'file-coding-system) + (symbol-value 'file-coding-system)) + (t nil)) + ;; (and (boundp 'buffer-file-coding-system) + ;; buffer-file-coding-system) ) (condition-case error (eval-buffer) @@ -436,15 +438,15 @@ mother-buffer." (insert "\n;;; " (file-name-nondirectory file) " ends here.\n") - (setq buffer-file-coding-system - mime-situation-examples-file-coding-system) - ;; (static-cond - ;; ((boundp 'buffer-file-coding-system) - ;; (setq buffer-file-coding-system - ;; mime-situation-examples-file-coding-system)) - ;; ((boundp 'file-coding-system) - ;; (setq file-coding-system - ;; mime-situation-examples-file-coding-system))) + (static-cond + ((boundp 'buffer-file-coding-system) + (setq buffer-file-coding-system + mime-situation-examples-file-coding-system)) + ((boundp 'file-coding-system) + (setq file-coding-system + mime-situation-examples-file-coding-system))) + ;; (setq buffer-file-coding-system + ;; mime-situation-examples-file-coding-system) (setq buffer-file-name file) (save-buffer)))))