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: Tue, 28 Sep 2021 07:22:35 -0400 Message-ID: References: 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="11150"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: thibaut.verron@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 28 13:27:24 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 1mVBGc-0002gz-An for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 28 Sep 2021 13:27:22 +0200 Original-Received: from localhost ([::1]:32972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVBGb-0000db-Au for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 28 Sep 2021 07:27:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43450) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVBCE-0002u7-1w for help-gnu-emacs@gnu.org; Tue, 28 Sep 2021 07:22:50 -0400 Original-Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]:40567) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVBCC-00007N-EE for help-gnu-emacs@gnu.org; Tue, 28 Sep 2021 07:22:49 -0400 Original-Received: by mail-lf1-x134.google.com with SMTP id b15so89896560lfe.7 for ; Tue, 28 Sep 2021 04:22:47 -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=eX6dhtzP5Ek9BQ73cvupOcwTeVGQRTv/1q722552hm4=; b=l9eomQ6EblI0d0KGuBw4gCQDVgDBNkk9x8ny6Sbj57+1+VvLRszMb4B3sqKKo8P6vA cu3OiMEmh69z+EL0MLyOPiw9un14kh5HQZxYdCSZctc+b8HLvjDo872UGBVqvIJtDkbp Gc0M66kMPyNoVGYRvGQavjVGTWcG2V8cGKtSpmPJSguQ2IbL9qcQ+cLiT7/4TVxJiax8 Zoyp/Wnu9baRs6KJbFYU+S7Rvm5g2+vWRjppytbVARNQtR5tLosaAoaVTkldPAnq/TYL ltbLw4nifQs9mvkIFAXfdKDKk7WLvS+Trw4K47t1YglDrTn+XGqdBqhfi8R0295fciDF fc9A== 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=eX6dhtzP5Ek9BQ73cvupOcwTeVGQRTv/1q722552hm4=; b=fHuLupVOn4K7PJKBv0dPuJQAZQTXbh7BDCCF54dz7A/c9FJ8dB+EDeiSdYtMMNV/NW YzGlaBDOr3AwCycHu9GJhjQV3oq1Y+BaQjBC/BPW1EdZDhsmEF8An87wl1PzWttH6fvi uRgO4gzgFaDACwAYlJSVARQmgQlkyCWpKqv5KkjK6dgeY50saUFSCMXfBzPUpKIB9PVv HeLKrY9j9A7o/d7KBDI94fxHUy139Mv+gFU+U3/sd8O/2SCeuQSjRB5iwIZ3ksZ6mYzJ HVsZRhVJ1Xf1A3pmdWqylpHqu4FPDfF2Q+wRcTCMZvrw9/EQACDy08+KWUT/cC8ahzpk 1k8g== X-Gm-Message-State: AOAM532XHBD3f73ObZUQJEveQqOWn3wYOpvgQMSVzXSiBo151HhVHMEG RSYKGwQzHOu0acYDNqi4CoOIQH5LoLmmZu9oEuY= X-Google-Smtp-Source: ABdhPJyGwLqxqn8TGka041DdFvQKl5klFfULgU84865m5OgSStiqKwvZaFi+LuVSwbD0CiQfekH39XVpb+CgemlqpLI= X-Received: by 2002:a2e:9782:: with SMTP id y2mr4858928lji.421.1632828166493; Tue, 28 Sep 2021 04:22:46 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=prouleau001@gmail.com; helo=mail-lf1-x134.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:133343 Archived-At: On Mon, Sep 27, 2021 at 11:45 PM Thibaut Verron wrote: > > On Mon, 27 Sep 2021, 23:48 Pierre Rouleau, wrote: > >> >> >> On Mon, Sep 27, 2021 at 5:34 PM Thibaut Verron >> wrote: >> >>> >>> How are you modifying the syntax table? Directly in the source code of >>> the erlang mode, or in your user configuration? >>> >>> >> I commented out the lines that identified ?< and ?> as "." and added >> after >> the following 2 lines: >> >> (modify-syntax-entry ?< "(>" table) >> (modify-syntax-entry ?> "(<" table) >> > > There is a typo there, the second one should be )<. > > Ahhhhh!!! That's it!! Thanks!! -- /Pierre