シングルクォートで括れば、なんでも実行できるな。
% emacs -q –no-site-file -batch -eval ‘(message (getenv “HOME”))’
% emacs -q –no-site-file -batch -eval ‘(message (getenv “HOME”))’
(let ((str "hogehoge,") (regexp ",$") (newstr "")) (cond ((eq emacs-major-version 21) (replace-regexp-in-string regexp newstr str)) ((eq emacs-major-version 20) (progn (string-match regexp str) (replace-match newstr nil nil str))) ((eq emacs-major-version 19) (progn (require 'dired) (dired-replace-in-string regexp newstr str)))))
ファイル名がかぶっていて、loadされないファイルを表示する。
(symbol-function 'MEW-TO) => (lambda nil (aref mew-vec 5))
GNU-Emacs 21.2.93 だと音を鳴らせるようだ。 (play-sound '(sound :file "~/Mail/email.wav"))
call-process()でファイル名等を渡す時は expand-file-name()しなければならない。
*scratch* バッファで edebug-defun() すると、edebug-def-mark がないと言われるときがある。
(query-replace-regexp "\\(いい\\|わるい\\)\\(.+?\\)。" "\\2は\\1。")
プロンプトが出たら M-x send-invisible してパスワードを打つ。
M-x animate-birthday-present [Enter] マスタカ [Enter] ;; *scratch* バッファで、以下をコピペ。最後の ")" の後ろで Ctrl-j (animate-string "キタ━━━━━━(゜∀゜)━━━━━━ !!!!!" 13 0)