My name is hoge. に対して sed -e 's/is/are/' のようなことはできますか? (my-sed "My name is hoge." "s/is/are/") みたいに。 emacs lisp リファレンスマニュアルに perform-replace や replace-match というのがありましたが、この辺りにサンプルコードが全く書いて無いし 引数も多いので使い方が全く分かりません。
emacsでは日本語入力できるのですがxemacsでは以下のようなエラーがでて入力できません。 ぐぐってみましたが意味がわからなかったのでアドバイスお願いします。 (initialization/error) An error has occurred while loading /home/hoge/.xemacs/init.el:
Can't activate input method 'japanese-canna'
To ensure normal operation, you should investigate the cause of the error in your initialization file and remove it. Use the '-debug-init' option to XEmacs to view complete error backtrace.
でxemacs -debug-initを実行した所 Signaling:(error "Can't activate input method 'japanese-canna'") signal(error ("Can't activate input method 'japanese-canna')) cerror(Can't activate input method '%s'" "japanese-canna') apply(cerror "Can't activate input method '%s'" "japanese-canna") error("Can't activate input method '%s" "japanese-canna") activate-input-method(japanese-canna) set-input-method(japanese-canna) load-internal("/home/hoge/.xemacs/init.el" t t t undecided) load("/home/hoge/.xemacs/init.el" t t t) load-user-init-file() load-init-file() command-line() normal-top-level()