From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philipp Newsgroups: gmane.emacs.bugs Subject: bug#33414: 27.0.50; inhibit-changing-match-data can be t in syntax-propertize functions, breaking backtrace and looking-at Date: Sat, 4 Sep 2021 20:39:46 +0200 Message-ID: <22C40A08-9611-4925-B840-8F3795175B0F@gmail.com> References: <83lg5ru88i.fsf@gnu.org> <83k1lbu5xj.fsf@gnu.org> <87r1eylsea.fsf@gnus.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="769"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Pip Cet , 33414@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 04 20:40:33 2021 Return-path: Envelope-to: geb-bug-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 1mMaae-000AXj-La for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Sep 2021 20:40:32 +0200 Original-Received: from localhost ([::1]:54268 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMaab-0005pr-Qg for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Sep 2021 14:40:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40254) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMaaA-0005oD-EQ for bug-gnu-emacs@gnu.org; Sat, 04 Sep 2021 14:40:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37018) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mMaaA-0001F0-62 for bug-gnu-emacs@gnu.org; Sat, 04 Sep 2021 14:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mMaa9-0004I7-VF for bug-gnu-emacs@gnu.org; Sat, 04 Sep 2021 14:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Sep 2021 18:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33414 X-GNU-PR-Package: emacs Original-Received: via spool by 33414-submit@debbugs.gnu.org id=B33414.163078079416478 (code B ref 33414); Sat, 04 Sep 2021 18:40:01 +0000 Original-Received: (at 33414) by debbugs.gnu.org; 4 Sep 2021 18:39:54 +0000 Original-Received: from localhost ([127.0.0.1]:48564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMaa2-0004Hf-Cd for submit@debbugs.gnu.org; Sat, 04 Sep 2021 14:39:54 -0400 Original-Received: from mail-wm1-f54.google.com ([209.85.128.54]:45954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMaa1-0004HU-Dg for 33414@debbugs.gnu.org; Sat, 04 Sep 2021 14:39:53 -0400 Original-Received: by mail-wm1-f54.google.com with SMTP id j17-20020a05600c1c1100b002e754875260so1817733wms.4 for <33414@debbugs.gnu.org>; Sat, 04 Sep 2021 11:39:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=w5xsH6d6l9AjPw3KgTX8GdutxGOy/ckU1UNAu+XmGYs=; b=JUvcnl0Qwug0ISydzc4YV61ObWAK1EmqZ7pkvgSUhn1Jw3uaXMMTVWyGrLMS2Pniu/ r+Hlop1oFZ3HbiJA58A6/2EUagjeLBjBXPHWTWZaQHCmnDlXH2xrjS89yORypaoQBQx4 lEc5dd72ZZ9xO6MmdKJ2+8blISuP0sZ5ELOQpRHC2+JLJMEZqv1JQr9ttZCk44GVS0JG pCw7yqb82MbyEh14M/PXuKVTJUQ02M7mct85obqibR4yjRpUJPvrHQzjAqHIF6wO16NK 1Nrbv/40lKPH0zZZpuKDd226byQcQyHs+UShuH+gzFj4MbqYstnOPHhG3PczWq/H3cnr d0ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=w5xsH6d6l9AjPw3KgTX8GdutxGOy/ckU1UNAu+XmGYs=; b=JDG9pxIwBByaBP/V2Ch/5IO+VOU62vGAHr9P4OxIReCwTp4oRAU/gPBPkq9rblIda+ ygEHxMzhYH1MxB/AmHXd1/oTsUAxp+bPph+tHSSCyFC4qhErvVsjHIlcQk7FMZSz4rCB eDuTc4nw+O1NJ+GLpmuMzQwnGXbh6tWcCizTCoYX2r9kk35/2aWvY7UxCfzxjEoc1F1I xp30PR76JM2ZD/nPAGh8HB0ssycUApR858ywEFqdxPgmBSLmKDinSeCVn/zgoZQvMVcw bDwgCqs0x7S5fReB9AyQJhDdknajPbDuWstXpqFqCCq4BbQhljQUU1j1H1bxbIMfSe1I LT2A== X-Gm-Message-State: AOAM5325GCcPYnY6NZFCGZ7e06tXCYLrGfTBDeco+wHyO+1pf+uTCTqx u8LRWciGDYh48OybxIRLkbc= X-Google-Smtp-Source: ABdhPJyOT9trs2t+9h31S+uWtR+Ch9RwmfiYwks6XWGTt2rFnfMy5ITANXBANdF/bjwS7VGkoVMHLw== X-Received: by 2002:a7b:c351:: with SMTP id l17mr4130998wmj.120.1630780787505; Sat, 04 Sep 2021 11:39:47 -0700 (PDT) Original-Received: from smtpclient.apple ([46.128.209.111]) by smtp.gmail.com with ESMTPSA id s13sm2667629wmc.47.2021.09.04.11.39.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Sep 2021 11:39:47 -0700 (PDT) In-Reply-To: <87r1eylsea.fsf@gnus.org> X-Mailer: Apple Mail (2.3654.120.0.1.13) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:213430 Archived-At: > Am 12.08.2021 um 15:11 schrieb Lars Ingebrigtsen : >=20 >=20 > `inhibit-changing-match-data' just seems like a bad interface to me. Yes, using a public dynamic variable (i.e., public global mutable state) = to influence the behavior of a function is normally a bad idea. = Effectively, the dynamic variable becomes a hidden parameter to the = function, and robust code has to bind it explicitly do override any = surprising binding up the call stack. You normally don't see such a = coding style in other programming languages, and ELisp would be better = off without it, too.