From: tomo Date: Thu, 28 Dec 2000 11:05:57 +0000 (+0000) Subject: Revert to use `static'. X-Git-Tag: semi21-D20010129~1 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=43de84b66944ed85154bcf778e394f00935539fa;p=elisp%2Flemi.git Revert to use `static'. --- diff --git a/mime/mime-view.el b/mime/mime-view.el index 15032e0..8cdf3e7 100644 --- a/mime/mime-view.el +++ b/mime/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)))))