<?php を含めなくてよいところがウリ。php-eval.el を読んでそういえば欲しかったと思い出した。 (defun my-php-eval-region () (interactive) (when (region-active-p) (let ((region-str (buffer-substring-no-properties (region-beginning) (region-end))) (result-buf "*php*") (temp-file (make-temp-file "my-php-eval-region-"))) (with-temp-file temp-file (insert "<?php \n" region-str)) (shell-command (concat "php " temp-file) result-buf) (view-buff