From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.help Subject: Re: marrying braket for ?: operator Date: Thu, 28 Jul 2005 22:04:50 +0000 Organization: muc.de e.V. -- private internet access Message-ID: <3qkbcd.u8.ln@acm.acm> References: <878xzr33rg.fsf@wash.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1122619571 17162 80.91.229.2 (29 Jul 2005 06:46:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Jul 2005 06:46:11 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 29 08:46:03 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DyOcv-0000RN-Cb for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jul 2005 08:45:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DyOfP-0001P3-AN for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jul 2005 02:48:23 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.tiscali.de!news.csl-gmbh.net!informatik.tu-muenchen.de!news.muc.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 43 Original-NNTP-Posting-Host: acm.muc.de Original-X-Trace: marvin.muc.de 1122618657 30451 193.149.49.134 (29 Jul 2005 06:30:57 GMT) Original-X-Complaints-To: news-admin@muc.de Original-NNTP-Posting-Date: 29 Jul 2005 06:30:57 GMT User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686)) Original-Xref: shelby.stanford.edu gnu.emacs.help:132748 Original-To: help-gnu-emacs@gnu.org 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:28272 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28272 Robert Marshall wrote on Thu, 28 Jul 2005 21:06:20 +0100: > On Thu, 28 Jul 2005, Alan Mackenzie wrote: >> Baloff wrote on 28 Jul 2005 15:20:51 +1000: >>> Hello >>> when I move my pointer to a braket, it highlight its marrying >>> braket. but how can I get it to do the same with the ternary >>> if-else operator (?:) I hope this is a good group for this question >>> otherwise please point me. >> It's exactly the right group! >> There is no command which jumps from a ? to it's : or vice versa. >> Maybe there should be one. Maybe somebody, somewhere, has >> implemented one, and will jump in here with a URL pointing to the >> source code. >> The thing is, though, how useful would this command be? Programmers >> tend not to nest these conditional expressions very much. The >> command would have to bound to a key sequence, something like C-c : >> (that's "control-c colon"). By the time you've typed that in, you >> could just as well have found the colon by interactive search by >> typing C-s :. > And it's probably not straightforward (for either case), you might have > (x > 4) ? weeble::kerplunk(funky::gibbon ? whoop : holler()) : foible::gibber::eugh(); Believe me, compared with some of the stuff that's already in CC Mode, that's nothing. ;-) > Robert > -- > La grenouille songe..dans son château d'eau -- Alan Mackenzie (Munich, Germany) Email: aacm@muuc.dee; to decode, wherever there is a repeated letter (like "aa"), remove half of them (leaving, say, "a").