EmacsCE+navi2chで快適2chアクセス

このエントリーをはてなブックマークに追加
14523
えー、なんとか立ち直りました23っす。
んでcall-processで動いたっつーことを。

; (apply 'call-process-region
; (point-min) (point-max)
; navi2ch-net-gunzip-program t t nil
; navi2ch-net-gunzip-args)
(set (make-local-variable 'tempfn)
(concat (getenv "TMP") "\\" (make-temp-name "")))
(set (make-local-variable 'tempfngz)
(concat tempfn ".gz"))
(write-file tempfngz nil)
(call-process shell-file-name nil nil nil
shell-command-switch (concat "gzip -d " tempfngz))
(set-visited-file-name tempfn nil t)
(revert-buffer t t)
(delete-file tempfn)

結局、gzipのstdinを取り込む案はダメでした。別の窓がどうしても開いちゃう。
ただそれはlsだとできてることなんで、gzip側の実装の問題だろうとにらんでます。
とりあえず報告まで!