From: hput <hputn3@zohomail.com>
To: ding@gnus.org
Subject: Re: make emacs handle 'if fi' like it does parens
Date: Sun, 13 Feb 2022 09:28:01 -0500 [thread overview]
Message-ID: <8735km3kpa.fsf@local.lan> (raw)
In-Reply-To: <875ypk9h6t.fsf@ericabrahamsen.net>
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>> I'd like to be able to jump between matching `if fi' and have the
>> matching pardner hilite as when putting cursor just after closing
>> paren.
>>
>> If it is possible using standard emacs commands already, maybe
>> someone will be kind enough to mention the combinations? If not, then
>> .. where might I find code that does what I'm after?
>
> (This probably should have gone to emacs.help, not emacs.gnus.general,
> fwiw)
Sorry, that was actually the intent .. had cursor on wrong group when
pressing `C-u a' and neglected to check the headers for rightness.
> A brief test indicates that `forward-sexp' and `backward-sexp', bound to
> C-M-f and C-M-b, do what you want.
That works great but only C-M_f. C-M-f plows thru a number of lines of code
and finds the correct 'fi'.
And just resting cursor on the `if' lights up its `fi' pardner.
But C-M-b Stops at the first '[[', 'while', 'done','read' etc that
occurs in code above. And sadly never finds the
corresponding 'if'
Further, even C-M-f does nothing but hilight `elif' does'nt track to
next 'elif' or 'fi'
WHOOPs I've wondered off ... and discussing on the wrong group
again...
I'll take any more commentary to 'emacs.help'
Thanks for the commands... C-M-f is proving to be a big help.
prev parent reply other threads:[~2022-02-13 14:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-12 15:50 hput
2022-02-12 16:35 ` Eric Abrahamsen
2022-02-13 14:28 ` hput [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8735km3kpa.fsf@local.lan \
--to=hputn3@zohomail.com \
--cc=ding@gnus.org \
/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 NNTP newsgroup(s).