From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17005 invoked from network); 13 Feb 2022 14:28:33 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 13 Feb 2022 14:28:33 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nJFrc-00EnUu-2e for ml@inbox.vuxu.org; Sun, 13 Feb 2022 08:28:32 -0600 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94.2) (envelope-from ) id 1nJFrb-004Ht7-Av for ml@inbox.vuxu.org; Sun, 13 Feb 2022 08:28:31 -0600 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtp (Exim 4.94.2) (envelope-from ) id 1nJFrY-004Hsy-Uv for ding@lists.math.uh.edu; Sun, 13 Feb 2022 08:28:28 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nJFrW-00EnUO-AC for ding@lists.math.uh.edu; Sun, 13 Feb 2022 08:28:28 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:Mime-Version:References:Message-ID:Date:Subject: From:To:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=OcDgb3PHy3yYmas6gSCcdH8Rib8ECo56hq4bQinxBr8=; b=MCFsn66JwQRhnWXR5CijGuDLmg XCG4NkqvnzDkNOewze6bX7hkyWVWQxPKFXEL+kRQLBjAr2ELc0KsjW1BkH6atbfXp+MkBCtolAQwT o2MS1rl/v1JB9JfBRF8A2jikUC7KVM8/AEVsetoxzu1CX3kmGagsw9dTcNLc43R9uhRg=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nJFrO-0003ww-PV for ding@gnus.org; Sun, 13 Feb 2022 15:28:21 +0100 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nJFrM-0001dk-V2 for ding@gnus.org; Sun, 13 Feb 2022 15:28:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: hput Subject: Re: make emacs handle 'if fi' like it does parens Date: Sun, 13 Feb 2022 09:28:01 -0500 Organization: Still searching... Message-ID: <8735km3kpa.fsf@local.lan> References: <87sfso2ifc.fsf@local.lan> <875ypk9h6t.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cancel-Lock: sha1:Ws9XH+ty3wViFVyeeU748d5LU/Q= List-ID: Precedence: bulk Eric Abrahamsen 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.