unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Alan Mackenzie <acm@muc.de>
Subject: Re: marrying braket for ?: operator
Date: Thu, 28 Jul 2005 07:48:30 +0000	[thread overview]
Message-ID: <ek2acd.46.ln@acm.acm> (raw)
In-Reply-To: 878xzr33rg.fsf@wash.edu

Baloff <washdc@wash.edu> 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 :.

A tip: When you're asking questions like this, it's a good idea to write
"C++ Mode" in the subject line (or even in the body of your post), so
that people interested in C++ can zoom in quickly, and those not
interested can ignore it quickly.  ;-)

And thanks for printing your CC Mode configuration settings.  Even though
it turned out it wasn't relevant here, it's often very useful.

-- 
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").

  reply	other threads:[~2005-07-28  7:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-28  5:20 marrying braket for ?: operator Baloff
2005-07-28  7:48 ` Alan Mackenzie [this message]
2005-07-28 20:06   ` Robert Marshall
2005-07-28 20:37     ` Kevin Rodgers
2005-07-28 22:04     ` Alan Mackenzie
2005-07-29  8:22       ` Baloff
2005-07-31 12:20         ` Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ek2acd.46.ln@acm.acm \
    --to=acm@muc.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).