by shigemk2

当面は技術的なことしか書かない

with-temp-file

with-temp-file

一時的なバッファをカレントバッファとして フォームbodyを評価する。 そして最後にバッファの内容をファイルfileに書き出す

サンプル

(setq bufpar "test")
(with-temp-file "test.ast" (insert (format "%s" bufpar)))