From: tomo Date: Thu, 28 Dec 2000 11:04:58 +0000 (+0000) Subject: Revert to use `static'. X-Git-Tag: semi-1_14_3-ueno-1~6 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=499257870dbde45b99ee44c453eef9d0731c32df;p=elisp%2Fsemi.git Revert to use `static'. --- diff --git a/mime-view.el b/mime-view.el index 15032e0..8cdf3e7 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)))))