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: When is a syntax-propertize-function called when parse-sexp-lookup-properties is t for a current buffer? Date: Tue, 5 Oct 2021 11:36:32 -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="23467"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 05 17:53:36 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 1mXml6-0005le-Df for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 05 Oct 2021 17:53:36 +0200 Original-Received: from localhost ([::1]:43686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXml4-0006Hz-E7 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 05 Oct 2021 11:53:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39490) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXmUs-0001WE-V5 for help-gnu-emacs@gnu.org; Tue, 05 Oct 2021 11:36:50 -0400 Original-Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]:40732) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXmUn-00023k-PV for help-gnu-emacs@gnu.org; Tue, 05 Oct 2021 11:36:50 -0400 Original-Received: by mail-ed1-x52d.google.com with SMTP id g8so453485edt.7 for ; Tue, 05 Oct 2021 08:36:45 -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=6YSPX10yt14nLyv25tK57RcGCpKk5ksw+CdRKI/DwHs=; b=FLLrYZrnCBC1WWDK50tfKDgUvyeWk5FJ1FstXAIo18qrDwXd80uDSmqCya8+gWiR7+ GlYJFsmfoXLpjySxjUD7wXyrAE6n1fBYENyem2QTBPDI+heT0lebpbkGJdlzi3R5YT8n wkNKIvPahLFNiEdXghaM2X3IrxmvJDjVX7FVG19wGggT5hW9dPkCA71nC184jlB3QzUx giHcEG1CxFiJ/35g0C1MTYeNIyTABLk55q3wMqbib8c+yHSSyieuWljetra0Ym1/fveZ eCzUgBeAzYwBK0X9G6iCq4C4jYphTfI8uk7IDVAdVP+NuYiLO3beSqWbaZ2GBUHRT8c+ Sy+w== 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=6YSPX10yt14nLyv25tK57RcGCpKk5ksw+CdRKI/DwHs=; b=rDKSbpgwrctUCWRKip2ZyAx3Sd82V2D/xA2WY7YberHyGzQ16c0JBlo5oY9jiuwCi6 7lRVJmEEqm6hD0XAbev9Iwv76nSzXWm6pgbYCGXPi0QVmcCBI4QhT/U/OZ3QKjjUFiNN YDoe3m6olGpvl/7OdohCpN8Q8TQMWuflB1C4FAu72E3hg9GJmuNX03q9tta+Cv8woSOo 2MX5jAqssx0eUKCFo3I1OtEIH76CwR7/pYnafVt5QKsIaaPkeNys/X0xp1HKONTd5MNg 1ujQPbiFuaxzA4aRaGkWkwPXsgEBxL+4iUwngvg0xxF/6fUm7veGUxvP2ifRQJtRxr+9 MRCQ== X-Gm-Message-State: AOAM532jYhNSYFjehutzfOEiu4v0ZzM/EhKcIE08pwdPPxP+MTmzdLL5 +yeyTFMvoLxZxEfCGYO6+HlvEsUvx5/WjsOOPapYNFT+jy0= X-Google-Smtp-Source: ABdhPJwInnVGxsUbvwp1cPfgPQK6lf3/jDO+KlqakkhweWXvTQK93YzeE8db5l1uxkRMYIOOpxM3jfDodO+YYSN5YWM= X-Received: by 2002:a17:906:269a:: with SMTP id t26mr26380565ejc.20.1633448203936; Tue, 05 Oct 2021 08:36:43 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::52d; envelope-from=prouleau001@gmail.com; helo=mail-ed1-x52d.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:133582 Archived-At: > `setq-local` at the toplevel makes no sense. > Is it really the code you're using, or are you paraphrasing? > > Sorry. I did not provide enough context. That code is not at top-level; it is being called by the erlang-mode function. At the moment I placed it right inside my local copy of the erlang.el function `erlang-electric-init' which gets called by what is defined by a (define-derived-mode erlang-mode) form. I won't leave that code there once I understand the behaviour. I'm just modifying my local copy of erlang.el to 1) understand that code better 2) eliminate as many external sources of disruption while I investigate. BTW, I'm trying to get it working on Emacs >= 26.1 if this matters. -- /Pierre