From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: jump between if-fi Date: Mon, 31 Dec 2007 09:12:25 +0100 Message-ID: <87ir2fuvti.fsf@dell.linuxdev.us.dell.com> References: <87y7bbpz12.fsf@newsguy.com> <4778285B.8020204@gmail.com> <87bq87bcn7.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1199088828 17560 80.91.229.12 (31 Dec 2007 08:13:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 31 Dec 2007 08:13:48 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: reader@newsguy.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 31 09:14:02 2007 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 1J9Fma-0002Rn-NJ for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Dec 2007 09:14:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J9FmE-00067B-Vy for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Dec 2007 03:13:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J9FlA-0005Rs-Um for help-gnu-emacs@gnu.org; Mon, 31 Dec 2007 03:12:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J9FlA-0005Qk-CB for help-gnu-emacs@gnu.org; Mon, 31 Dec 2007 03:12:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J9FlA-0005QR-60 for help-gnu-emacs@gnu.org; Mon, 31 Dec 2007 03:12:32 -0500 Original-Received: from fg-out-1718.google.com ([72.14.220.152]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J9Fl9-0004MV-R8 for help-gnu-emacs@gnu.org; Mon, 31 Dec 2007 03:12:32 -0500 Original-Received: by fg-out-1718.google.com with SMTP id d23so2852506fga.30 for ; Mon, 31 Dec 2007 00:12:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references:face:date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=5O9MkUxMjTyBWeyLSxIIigDoUn6FPgYZd8bDkwAgu5A=; b=dHxt2NJ+RIIg94d9ov4aeKpqgzYMT+B27RQgzvbdO4WYn3lY05QspizjjwTqZN7VIltYe0hch/ZJD8Y42K95yHhjlm2m8mi1mAulyobEhNIvGLo2bGKeOrW/dRhzSd7Heq1Zjy3tMhpQTJo3fWA7dzgNdK3Y2oZCKaaDbMFB3h4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:face:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=h6L/+IC4VQ4SxewcpvHRiILtXTmRxckazQ9Y/DfyAZhCS+BqWnN3dsT+7uhKjAuYFomyYkE40Lq1IF63cG4lmh/gG6mkEgvslpf0oxX8c+j3XTZtwljUXBTt4DGbP9jefIMHVFjf475klQGfOZxa7C6vhPHnatH/1lezU9vXV8c= Original-Received: by 10.86.99.9 with SMTP id w9mr12023321fgb.22.1199088750342; Mon, 31 Dec 2007 00:12:30 -0800 (PST) Original-Received: from dell.linuxdev.us.dell.com ( [78.114.32.115]) by mx.google.com with ESMTPS id 13sm17018469fks.8.2007.12.31.00.12.27 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 31 Dec 2007 00:12:28 -0800 (PST) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEUHAwJfJRBxTStaVVUq QleXMROlTymlaEzRTR/FRCfb1LmsjGQqBf0nAAAACXBIWXMAAAsSAAALEgHS3X78AAAB+ElEQVQ4 y3VTPW/bQAw9Jorno5pzGmSxDCQBuhkpumSpIaFzrgAdaZQBSejWNkiEIFMHIeetLiBDWjtqbIB0 6J8rz0Xhj5w5mDDf8ZF8pIT4b96WX1kkdlgUvXcDXrQrJwqXKXBTXm1meOFbi5wH/q20gaOySP9B 4cUT//qoHgfs937TsPhs44fh4dhS4WvznX2hATC3wEnXPQ0sEJsf7DJku+aU8Zuu+2nJR7Gphehl ZGaUPwbD4Z+u+2WrB4lZCHHQNmamVfHwPL25uAwCTmGqqRCJMUYL6OfBVEbjDyoQQsVmLsTEmIpf gfQRPC5cSCD7VEA708shMPDCCFK6tRy2OUXLMcWeZMXhDj5xnNYVyS3u59A3TYVrcci1lDCZcput 3tDwiP+fGlYNcVN0vP8a9DPpWAdqQFd8/91o6Fpfr6wnKB1r7yXtXIp9xymcaXx1OXIcCpI/xHLw EoCizcjOtt0anLV1XNMAfDwfbVAp3mVSfQNCzNO1BFQUk2pSJNKx+bICTokrKNLimHh581VKSvyU uLJqqao+roCxBGahK15dQrTRGRzXlsNPar01SsxbnU3KO9we0QKV0i+0h6QxJkWH9KpZXpRDrqzV 7o8Nd8QP+IKcwKS+fhg4gXZx7wL4jJOFi4uVb1JnHFXuvDhE7W4X18/5L9gPfl3mJR3tAAAAGnpU WHRKUEVHLUNvbG9yc3BhY2UAAHjaMwIAADMAMxEWfmMAAAAnelRYdEpQRUctU2FtcGxpbmctZmFj dG9ycwAAeNozqjDSMawwBGEAEYMC6WQPG2IAAAAASUVORK5CYII= In-Reply-To: <87bq87bcn7.fsf@newsguy.com> (reader@newsguy.com's message of "Mon, 31 Dec 2007 00:29:16 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) 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:50399 Archived-At: reader@newsguy.com writes: > "Lennart Borgman (gmail)" writes: > >> 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-% >> >> Maybe you mean %, not C-%? > > Yes I did. > >> You can in Emacs too, using Viper. But see >> >> http://www.emacswiki.org/cgi-bin/wiki/ViKeys >> http://www.emacswiki.org/cgi-bin/wiki/ViAndEmacs >> > Thanks for those ... I knew some it but found some more. > But no, I don't want to try to turn emacs into vi so much as turn > emacs power loose on if-fi while-done etc constructs. > >>> 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. > > That was my my main question and I didn't notice anything on those > sites about that... I hope I just missed it. > > So still wondering how to get paren type actions to work on if-fi type > shell constructs. While you are in a script shell you have keybindings for case, if, while getopts, etc... to construct all this statements. If you do C-h m you will find them. -- A+ Thierry Pub key: http://pgp.mit.edu