Article View: fj.editor.emacs
Article #684Re: C-,と C-. への割り当て
From: KATAYAMA Yoshio
Date: Thu, 19 Feb 2004 10:03
Date: Thu, 19 Feb 2004 10:03
31 lines
2360 bytes
2360 bytes
ohta@src.ricoh.co.jp (Junn Ohta) writes:
> fj.editor.emacsの記事<yf1n07gedk6.wl%hirose31@t3.rim.or.jp>で
> hirose31@t3.rim.or.jpさんは書きました。
> > X な emacs だと期待通りの挙動なのですが、emacs -nw だと C-, を押すと『,』
> > が、C-. を押すと『.』が入力されてしまいます。ターミナルの中の emacs
> > で C-, と C-. に関数を割り当てるのにはどうすればよいのでしょうか?
>
> たぶん不可能です。
“emacs -nw”なので、xterm か kterm でわないかと、、、、
^^^
それでしたら、xterm/kterm の resource を使って“C-,”や“C-.”で
エスケープシーケンスを出すように定義して、emacs でそれを拾えばい
いです。
私の場合は、“C-;”を入力メソッドの ON/OFF にしていますが、次の
ようになっています。
.Xresources:
*VT100.Translations: #override \
!Ctrl <KeyPress> semicolon: string(0x1b) string("[34~")
.emacs:
(global-set-key [?\C-\;] 'toggle-input-method)
(global-set-key [f20] 'toggle-input-method)
--
片山@PFU
Technical Details
Message-ID:
<qkpptcb9yij.fsf@dash.tokyo.pfu.co.jp>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!newsfeed2.easynews.com!easynews.com!easynews!newsfeed.news2me.com!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!nntp4.phx1!pnewsgw3!netnewsa!not-for-mailReferences:
<yf1n07gedk6.wl%hirose31@t3.rim.or.jp> <c0vpgc$179$1@ns.src.ricoh.co.jp>Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS X-Google-Thread: ff358,1fa89b68c55cd738 X-Google-Attributes: gidff358,public X-Google-ArrivalTime: 2004-02-19 02:20:21 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!newsfeed2.easynews.com!easynews.com!easynews!newsfeed.news2me.com!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!nntp4.phx1!pnewsgw3!netnewsa!not-for-mail From: KATAYAMA Yoshio <kate@pfu.fujitsu.com> Newsgroups: fj.editor.emacs Subject: Re: C-,と C-. への割り当て Date: 19 Feb 2004 19:03:48 +0900 Organization: PFU Limited Lines: 31 Message-ID: <qkpptcb9yij.fsf@dash.tokyo.pfu.co.jp> References: <yf1n07gedk6.wl%hirose31@t3.rim.or.jp> <c0vpgc$179$1@ns.src.ricoh.co.jp> NNTP-Posting-Host: dash.tokyo.pfu.co.jp Mime-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 8bit X-Trace: netnewsa.pfu.co.jp 1077185027 27097 10.232.220.121 (19 Feb 2004 10:03:47 GMT) X-Complaints-To: usenet@netnewsa.pfu.co.jp NNTP-Posting-Date: 19 Feb 2004 10:03:47 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3