From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pierre Rouleau Newsgroups: gmane.emacs.help Subject: Re: How to make `forward-sexp` handle other balanced character-pairs such as < and > or << and >> in erlang-mode or others? Date: Mon, 27 Sep 2021 17:17:19 -0400 Message-ID: References: <8f629810-8ee7-6ef0-09f1-66d1722f0043@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2061"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Nikolay Kudryavtsev Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 27 23:18:09 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mUy0m-0000OB-B8 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 27 Sep 2021 23:18:08 +0200 Original-Received: from localhost ([::1]:39334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUy0k-0006JB-Ek for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 27 Sep 2021 17:18:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUy0E-0006IN-NO for help-gnu-emacs@gnu.org; Mon, 27 Sep 2021 17:17:34 -0400 Original-Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]:40668) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUy0B-0006Dz-R7 for help-gnu-emacs@gnu.org; Mon, 27 Sep 2021 17:17:33 -0400 Original-Received: by mail-ed1-x530.google.com with SMTP id g8so74625581edt.7 for ; Mon, 27 Sep 2021 14:17:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1MUcfz7rDtyjRaMUSsMtEnyDVsjPS3oRbikxcm5OPvk=; b=RU71o44yLwEHYnmlsk/JG1tNiXCbZdgS1Kqah45TngrgK3ntERrqtGB7ImkqJlveaq VB25vlngRH+ibZIK3ZkN9wWPur4XyKT+M3OfZIX3uRK4hyRoQAu9twUflNMRLPkC3vYY 5N/x2hNsz8fwWmgt2Ltvjza67Tzm1LO8vaAuDNp0Il39svF7uY2Y3kVM+vHWtL3bKVNM vR4m0hdDnPgkbddoi79jqREaP+Ylohshtaa7cW8OWF/Fj2SBsRelzvsIus3HCMhNKfpk AK2i1TlPhPsMNND94oN874uQo60JSKTI/IfwuorV6IEP0cJx0mNS2gS3T/yDL0tfZDkz /0aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1MUcfz7rDtyjRaMUSsMtEnyDVsjPS3oRbikxcm5OPvk=; b=AGShk39ExAjf/Xs/gjOvrvFNTtNnKoK3c/eA+r6Pys65U6h/3V8wzLB0o+MtrcOfBH kK+UhLWgPNGtGdGDSt/X5qE55a6si0RMoTSbXhTfeDgsU2jrKCBT6aUW/4oZcQA/RT8T 0BXpF5m1bVkg8cZzhWhhHd+1Dy9JLJDW9TDKp39kJ6BqjGdLrmbMfqvCRRlwM1t/gJFB IvufJS8D+QJWCghX6badWzcvuvu3rJtHIMD0SFx5EcmVRVkyXEmRe+Joy3YkaWlTbBUG B48rKb4yOYEsRiI2JZwwVXiOaCyqoacvvH88jeByV7enx3I6A0aOklBGQ0WM3oEUk/HN 5N3Q== X-Gm-Message-State: AOAM532V/AF8AfsyGGHSwbJfGLo2pr+2R5LU62rTs3qfOhyHmOS0g2tr uKRScG4/VH9nV5sn9+v5bQTQIcyYBMXKdHKeRko= X-Google-Smtp-Source: ABdhPJwnU610DGue7lt282k65TiWNW2BrtxLRcEiNEEroxm3lA4a86g/wWjijgydnNaCrInUMBoKWFAFeii+7GcCebI= X-Received: by 2002:a17:906:f24e:: with SMTP id gy14mr2527480ejb.397.1632777449949; Mon, 27 Sep 2021 14:17:29 -0700 (PDT) In-Reply-To: <8f629810-8ee7-6ef0-09f1-66d1722f0043@gmail.com> Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=prouleau001@gmail.com; helo=mail-ed1-x530.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:133303 Archived-At: I have tried smartparens. I was able to add support for << and >> pairs but it still does not work as I'd wish for. And besides, I am curious to get the normal forward-sexp working because that would unlock a large set of functionality. On Mon, Sep 27, 2021 at 5:13 PM Nikolay Kudryavtsev < nikolay.kudryavtsev@gmail.com> wrote: > Have you tried smartparens? It provides it's own implementation of > forward-sexp for most of such cases, so maybe it's exactly what you're > looking for. > > -- /Pierre