Article View: fj.editor.emacs
Article #602Re: Emacs 22.1 released
From: Katsumi Yamaoka
Date: Tue, 05 Jun 2007 05:28
Date: Tue, 05 Jun 2007 05:28
25 lines
1901 bytes
1901 bytes
>>>>> In <87y7izkour.fsf@nict.go.jp>
>>>>> Gernot Hassenpflug <gernot@nict.go.jp> wrote:
> replace-regexpでlisp表現が使用可能です。
おっと、これは便利ですね。C-M-% (query-replace-regexp-eval) でも
有効ですし。これがいつも使えるように練習しようと思います。以下は
info にあった例です:
(info "(emacs)Regexp Replacement") <- ここで `C-x C-e' をタイプ。
,----
| `x' と `y' を入れ替える:
|
| M-x replace-regexp <RET> \(x\)\|y <RET>
| \,(if \1 "y" "x") <RET>
|
| 72桁以下の幅の行の行末に ABC00000 から始まる通し番号を付ける:
|
| M-x replace-regexp <RET> ^.\{0,72\}$ <RET>
| \,(format "%-72sABC%05d" \& \#) <RET>
`----
Gernot さん、どうもありがとうございます。
--
山岡
Technical Details
Message-ID:
<b4mhcpn0y3g.fsf@jpl.org>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<mailman.1548.1180925943.32220.info-gnu-emacs@gnu.org> <b4mps4cmjnd.fsf@jpl.org> <YAS.07Jun4194014@kirk.is.tsukuba.ac.jp> <87ira4ynyh.fsf@roddy.4407.kankyo-u.ac.jp> <b4m3b17te5p.fsf@jpl.org> <87y7izkour.fsf@nict.go.jp>Show Full Headers
Complete Article Headers
X-Google-Thread: ff358,d0eb7f9466b1c83b X-Google-Attributes: gidff358,public,usenet X-Google-Language: Japanese,JIS Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Katsumi Yamaoka <yamaoka@jpl.org> Newsgroups: fj.editor.emacs Subject: Re: Emacs 22.1 released Date: Tue, 05 Jun 2007 14:28:03 +0900 Organization: Emacsen advocacy group Lines: 25 Message-ID: <b4mhcpn0y3g.fsf@jpl.org> References: <mailman.1548.1180925943.32220.info-gnu-emacs@gnu.org> <b4mps4cmjnd.fsf@jpl.org> <YAS.07Jun4194014@kirk.is.tsukuba.ac.jp> <87ira4ynyh.fsf@roddy.4407.kankyo-u.ac.jp> <b4m3b17te5p.fsf@jpl.org> <87y7izkour.fsf@nict.go.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp X-Trace: individual.net E2bsTIuGT+9Lpi/abab4JwkhXMMdDJJolGF3YJWeI9zp4m0lI= X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:FVkrQsr6AXe4GMSm0aZhDAU9TYo=