Newsgroups: fj.editor.emacs
Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!news.join.ad.jp!aoba!akiu!gatortia!celery!suguri
From: suguri@sendai.comtec.co.jp (Hiroki Suguri)
Subject: Re: search matching-patern
In-Reply-To: tyama@eoa.cow.melco.co.jp's message of Wed, 2 Nov 1994 03:32:48 GMT
Content-Type: text/plain; charset=ISO-2022-JP
Message-ID: <SUGURI.94Nov3142604@tomato.sendai.comtec.co.jp>
Sender: news@celery.sendai.comtec.co.jp (COMTEC News System)
Nntp-Posting-Host: tomato
Organization: COMTEC CO., LTD., Sendai City, Miyagi, Japan
References: <FURIHATA.94Nov1155836@mmas4.hangi.tjsys.co.jp>
	<TYAMA.94Nov2123249@seafood.cow.melco.co.jp>
Mime-Version: 1.0
Distribution: fj
Date: Thu, 3 Nov 1994 05:26:04 GMT
Lines: 44
Xref: galaxy.trc.rwcp.or.jp fj.editor.emacs:5091
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.editor.emacs&nb=5091&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

$B%3%`%F%C%/$N?\7*$H?=$7$^$9!#(B

 On Wed, 2 Nov 1994 03:32:48 GMT,
 Takashi Yamamoto (== "    Takashi> ") said
 in message <TYAMA.94Nov2123249@seafood.cow.melco.co.jp>:

    Takashi> $B;3K\!w;0I)EE5!$G$9!#(B
    >> $B;~9o(B Tue, 1 Nov 1994 06:58:36 GMT $B$K(BMamoru Furihata$B$5$s$N(B
    >> $B=P$7$?(BMessage-ID
    >> <FURIHATA.94Nov1155836@mmas4.hangi.tjsys.co.jp Newsgroup
    >> fj.editor.emacs$B$N(Bsearch matching-patern $B$H$$$&OCBj$G$O(B...

    Takashi> ($BN,(B)
    $B9_4z$5$s(B> $B$l$O(B $B$3$l$GNI$$$N$G$9$,!"4{$KF~NO$5$l$F$$$k%+%C%3(B
    $B9_4z$5$s(B> $B!J3+JD$I$A$i$G$b!K$,(B $B$I$l(B $B$KBP1~$9$k$+$r4JC1$K8+$D(B
    $B9_4z$5$s(B> $B$1$k%3%^%s%I$O$J$$$G$7$g$&$+!#(Bvi $B$G$O!"(B`%'$B$N%-!<$r(B
    $B9_4z$5$s(B> $B2!$9$H$G$-$k$s$G$9$,!&!&!&!#(B

    Takashi> $B;d$b$=$&;W$C$F!"(Bvip$B%b!<%I$+$i$Q$/$C$F$-$?0J2<$N$b$N(B
    Takashi> $B$r;H$C$F$$$^$9!#(B

etc/FAQ$B$K$O!"<!$N$h$&$J$N$b$"$j$^$7$?!#(B

  Here is some Emacs Lisp that will make the % key show the matching
  parenthesis, like in vi.  In addition, if the cursor isn't over a
  parenthesis, it simply inserts a % like normal.
  
    ;; By an unknown contributor
  
    (global-set-key "%" 'match-paren)
  
    (defun match-paren (arg)
      "Go to the matching parenthesis if on parenthesis otherwise insert %."
      (interactive "p")
      (cond ((looking-at "\\s\(") (forward-list 1) (backward-char 1))
    ((looking-at "\\s\)") (forward-char 1) (backward-list 1))
    (t (self-insert-command (or arg 1)))))
  
--
--------------------------------------------------------------------
Hiro Suguri         tel: 022-222-2591  Replace first '0' with '81'
Comtec Co., Ltd.    fax: 022-222-2545  (Japan's country code) for
suguri@comtec.co.jp                    international call.
--------------------------------------------------------------------
