From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64439: 28.2; auto-fill-mode gets turned on all over the place Date: Mon, 10 Jul 2023 13:28:22 -0400 Message-ID: References: <83h6qlm0oc.fsf@gnu.org> <1034974.1688399705@warthog.procyon.org.uk> <1211099.1688406521@warthog.procyon.org.uk> <837crgn90u.fsf@gnu.org> <11d9848d-5a70-c1e5-cbc8-e00341889398@gmail.com> <83edlhbn1y.fsf@gnu.org> <83zg447za9.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16135"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: dhowells@redhat.com, Jim Porter , Michael Albinus , 64439@debbugs.gnu.org, Noam Postavsky To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 10 19:29:45 2023 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 1qIuhk-0003yU-NF for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Jul 2023 19:29:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qIuhP-0004PM-JF; Mon, 10 Jul 2023 13:29:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qIuhG-0004P0-Sg for bug-gnu-emacs@gnu.org; Mon, 10 Jul 2023 13:29:15 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qIuh4-0000O3-NX for bug-gnu-emacs@gnu.org; Mon, 10 Jul 2023 13:29:12 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qIuh4-0000yN-3T for bug-gnu-emacs@gnu.org; Mon, 10 Jul 2023 13:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Jul 2023 17:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64439 X-GNU-PR-Package: emacs Original-Received: via spool by 64439-submit@debbugs.gnu.org id=B64439.16890101153686 (code B ref 64439); Mon, 10 Jul 2023 17:29:02 +0000 Original-Received: (at 64439) by debbugs.gnu.org; 10 Jul 2023 17:28:35 +0000 Original-Received: from localhost ([127.0.0.1]:49051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qIugc-0000xN-LD for submit@debbugs.gnu.org; Mon, 10 Jul 2023 13:28:34 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:17987) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qIugY-0000x3-7u for 64439@debbugs.gnu.org; Mon, 10 Jul 2023 13:28:33 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 8BC251000C4; Mon, 10 Jul 2023 13:28:24 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 72C361000B9; Mon, 10 Jul 2023 13:28:23 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1689010103; bh=XCwzNzizV4NsKGb8v51WTR67OhZF3HBVBZrgGf9flcM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=R05jYCjGtD1TedwdyEll9JxaM+Qf86pgcNP4FzncKfYLcPkuEkhwPdsZ/FnJDWi0v 5GXt+6/SjfEgW7C2dG2WqFJQIbtdROv0nuWfU5BDVfGtamtur5l7+BPkbtJGs9VUf+ NV8/nei3Q5Ac3X2DaJDwZnirIngewZ8FJkbk6v9a0vaxEVdb/+SiMApblgTWfIalS+ 7pc3Qzx+C+LAPTUgfn3QPWJm27mOpU+1fA/2ElFUPO78LEKvBezg0YSn593OJkeOM6 rP8VgTO0jFslGrCHy3uu0NelhsKSogYxZ85sQdib3M01e9NHaLIP3fCIBVyxqEzB4M iUn58kv4a00Yw== Original-Received: from pastel (unknown [24.140.234.50]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 3D645120208; Mon, 10 Jul 2023 13:28:23 -0400 (EDT) In-Reply-To: <83zg447za9.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 10 Jul 2023 14:59:26 +0300") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:264895 Archived-At: [ Adding Noam, because this seems related to https://github.com/joaotavora/yasnippet/issues/919. ] > Stefan, are there any other situations where setting a buffer-local > variable will actually set its default value? Depends what you mean, but if you do: (let ((auto-fill-function #'foo)) [...] (setq auto-fill-function #'bar) [...]) then `auto-fill-function` will not be made buffer-local. But that won't set the toplevel default value either (that default value will be reverted to nil when we leave the `let`). Interactions between buffer-local values and let-bindings can be tricky, tho, so there might still be bugs in there. Jim, did you collect various backtraces? Do you still have them? Can you check more thoroughly to try and see what they all have in common (in addition to `ask-user-about-supersession-threat` and "Tramp")? Can you get an interactive backtrace buffer? If so, I'd be curious to know the values that e (list auto-fill-function (default-value 'auto-fill-function)) RET returns and more importantly, how it varies from frame to frame. Stefan