From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Arnaldo Mandel" Newsgroups: gmane.emacs.help Subject: Re: jump between if-fi Date: Wed, 9 Jan 2008 07:43:12 -0200 Message-ID: <72df5b830801090143j7c9569acgc3f7f5ba9a857850@mail.gmail.com> References: <87y7bbpz12.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0007136159==" X-Trace: ger.gmane.org 1199871829 12819 80.91.229.12 (9 Jan 2008 09:43:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Jan 2008 09:43:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 09 10:44:09 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JCXTk-0000uc-Dp for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Jan 2008 10:44:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCXTN-0001PS-3u for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Jan 2008 04:43:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JCXSu-0001N9-7C for help-gnu-emacs@gnu.org; Wed, 09 Jan 2008 04:43:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JCXSs-0001Kw-Je for help-gnu-emacs@gnu.org; Wed, 09 Jan 2008 04:43:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCXSs-0001Kl-BK for help-gnu-emacs@gnu.org; Wed, 09 Jan 2008 04:43:14 -0500 Original-Received: from py-out-1112.google.com ([64.233.166.181]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JCXSs-0006zZ-9y for help-gnu-emacs@gnu.org; Wed, 09 Jan 2008 04:43:14 -0500 Original-Received: by py-out-1112.google.com with SMTP id u52so219596pyb.1 for ; Wed, 09 Jan 2008 01:43:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; bh=Wb6xsUvO+XRwHPgGIKeurxusRvz1jeU3JftF73lZP6s=; b=XSsNFTrsgd0Ghsf20wHGWTuEE0dfKKokq3fhxYgsPgpQWO7qaCLgUfsGCXmHNLc3o3+NO+W/H1aOgRUPWiycORFOPY+r/KR1vInK9IGAMPH/X9FDlzlp0I9oQPVfdGmqphHqERxQUJzLOgCl5aBQSxIMT6e8aezojTyQimf6+Q8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=C33HrSpo5gpqZ6Iul987sv+YrRvBPuKiypooWrtELUXQxYVmNYefNj02pGl9nSohi+Ldk7Nj62lO99GEgDKcg1a/RGNwQWST6q7gk8eR/mrSaO1M3FqEmFDa4itqiv1yKugVVskudQ6bUOKudybFxAyCLcUml3QbTTAlsioyEM4= Original-Received: by 10.142.231.7 with SMTP id d7mr60456wfh.130.1199871792273; Wed, 09 Jan 2008 01:43:12 -0800 (PST) Original-Received: by 10.142.178.5 with HTTP; Wed, 9 Jan 2008 01:43:12 -0800 (PST) In-Reply-To: <87y7bbpz12.fsf@newsguy.com> X-Google-Sender-Auth: 63470c67d157a7d9 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50599 Archived-At: --===============0007136159== Content-Type: multipart/alternative; boundary="----=_Part_53194_29792173.1199871792268" ------=_Part_53194_29792173.1199871792268 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Dec 30, 2007 9:02 PM, wrote: > I hope this isn't one of those things that is just plain obvious to > lookup in emacs but I'm striking out with M-x apropos > > How can I make emacs do something similar with if-fi constructs as it > does with parens? > > Even better I'd like the kind of behaviour one can get in vim with > parens, where not only does the syntax coloring show the other paren > but you can jump there with a Ctrl-% > > I know emacs can do that as well but not as easily. But anyway, I use > emacs more and would like to turn its powers used in paren recognition > against the `if fi', `while done', `for done'... etc. one uses in > shell scripting. > In case I am not too late, I suggest looking at gap-mode.el. It was made for the GAP computer algebra system, which uses a language with this kind of syntax. It does a good job of matching and indentation. It does not do exactly what you want, but since the adequate matching functions are there, you can probably get some strong leverage. am ------=_Part_53194_29792173.1199871792268 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Dec 30, 2007 9:02 PM, <reader@newsguy.com> wrote:
I hope this isn't one of those things that is just plain obvious to
lookup in emacs but I'm striking out with M-x apropos

How can I make emacs do something similar with if-fi constructs as it
does with parens?

Even better I'd like the kind of behaviour one can get in vim with
parens, where not only does the syntax coloring show the other paren
but you can jump there with a Ctrl-%

I know emacs can do that as well but not as easily.  But anyway, I use
emacs more and would like to turn its powers used in paren recognition
against the `if fi', `while done', `for done'... etc. one uses in
shell scripting.

In case I am not too late, I suggest looking at  gap-mode.el.  It was made for the GAP computer algebra system, which uses a language with this kind of syntax.
It does a good job of matching and indentation.  It does not do exactly what you want, but since the adequate matching functions are there, you can probably
get some strong leverage.

am

------=_Part_53194_29792173.1199871792268-- --===============0007136159== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============0007136159==--