From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#64439: 28.2; auto-fill-mode gets turned on all over the place Date: Sun, 9 Jul 2023 11:00:46 -0700 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5990"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dhowells@redhat.com, 64439@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 09 20:01:22 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 1qIYin-0001Rw-89 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 Jul 2023 20:01:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qIYiW-0002YV-Bq; Sun, 09 Jul 2023 14:01:04 -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 1qIYiU-0002YH-P5 for bug-gnu-emacs@gnu.org; Sun, 09 Jul 2023 14:01:02 -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 1qIYiU-0005v6-GW for bug-gnu-emacs@gnu.org; Sun, 09 Jul 2023 14:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qIYiU-0006m5-1g for bug-gnu-emacs@gnu.org; Sun, 09 Jul 2023 14:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Jul 2023 18:01: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.168892565926026 (code B ref 64439); Sun, 09 Jul 2023 18:01:02 +0000 Original-Received: (at 64439) by debbugs.gnu.org; 9 Jul 2023 18:00:59 +0000 Original-Received: from localhost ([127.0.0.1]:47131 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qIYiQ-0006li-Vo for submit@debbugs.gnu.org; Sun, 09 Jul 2023 14:00:59 -0400 Original-Received: from mail-pf1-f178.google.com ([209.85.210.178]:45346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qIYiM-0006lL-4z for 64439@debbugs.gnu.org; Sun, 09 Jul 2023 14:00:57 -0400 Original-Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-66f5faba829so2051781b3a.3 for <64439@debbugs.gnu.org>; Sun, 09 Jul 2023 11:00:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688925648; x=1691517648; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=xI1NzTpCCiynnhzpBfURsFLlLKQHpTbKt1xftT2/Jf4=; b=ZkVQvWivgIsDjQl0hpR5eymj96OSJIdRlx5vgJrXIZec8eeWJPYVkNK0i2XiCuLVJG og4FB1NWwOg7fFbMBY1ys9MLnQUBg4JZK5JAKxjAwtzEAaGlKqLI0wDr21owFLBHZdc4 6oHrNrekEnCB3cJvCkeQVgmk3uuYCOCQuzQ09f7EG8e38+Z9XG/dbzkg0psN/E5/RvEl tpmEztZzwf2S6O5nfsXtQ3GlQ+Evl8os3CymIX1VTyom/C2I4ATnbORz+NlfAEX8qGRo a4LTEP0CqcqNr0OvfPMrCHeKuh5beDm6lSsNMkTHgrOFpQqRC6Sk6ld25MZLarHZz0C1 ZJ7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688925648; x=1691517648; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xI1NzTpCCiynnhzpBfURsFLlLKQHpTbKt1xftT2/Jf4=; b=Pna1v1aubbTRdNFv2vgCa09NupeZILEzpSqZf/4ZALr/i16QRKKWwyh6oGv/56iFiN YDHCZ/dijm0ReOKOn9MXd9/XnSV0omNOOO5CLI1eThfHC6cxZ3Uo1eULgXMgVefkLTYj 61n1ENuQ9WE9jdPXnWkGR8gRwPvRFI1pTLxNeIdfLwl0ZuQ5D6cRr+UllCl1YjSDUOZY sEAjHIwNOsBS1PrEVWTrAK6SiP/EjFN7QFakcLO56+ZQfRbcwwAMFB8y0U3NMJxh9QU1 tTXay1dOfKkFuUsd4Njz6d914OOPWoFSbN91xDNd0cwXaBOMIa9SyJ5JUWWaWXd3XEVV ajWw== X-Gm-Message-State: ABy/qLZJLTWBgjZtb9lN7r0IwuJwjbF3ORsdhRh76D6YMOhnFLEW0Y3v 0h/9idOXbWg6LKwH/QohgDs= X-Google-Smtp-Source: APBJJlHyHkgCNVdBhaY3wb9eG7gTBd+cyoX8w01Ibuhs/31WugMcuiqvyD/vrbhc6erMuoyv46YZXA== X-Received: by 2002:a05:6a00:190b:b0:66a:6339:e8f9 with SMTP id y11-20020a056a00190b00b0066a6339e8f9mr10493657pfi.0.1688925648136; Sun, 09 Jul 2023 11:00:48 -0700 (PDT) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id q17-20020a62e111000000b0062bc045bf4fsm5905683pfh.19.2023.07.09.11.00.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 09 Jul 2023 11:00:47 -0700 (PDT) Content-Language: en-US In-Reply-To: <83edlhbn1y.fsf@gnu.org> 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:264849 Archived-At: On 7/8/2023 11:45 PM, Eli Zaretskii wrote: > I must be missing something: why is the above deemed to be a bug? > AFAIU, you asked any text-mode derivative mode to turn on auto-fill, > and this is what happened here: normal-mode called outline-mode, which > turned on auto-fill. What am I missing? The bug is that when this occurs, rather than setting 'auto-fill-function' buffer-locally in text modes, it actually (somehow) sets the default value of 'auto-fill-function', so *every* buffer has 'auto-fill-mode' enabled. I've instrumented this code in a few other ways previously, and the best I can guess so far is that at some point during this backtrace, Emacs gets confused about the current buffer, so that when we ultimately call "(setq auto-fill-function X)", the code to set the value buffer-locally doesn't run. I've only ever seen this happen when 'ask-user-about-supersession-threat' is in the stack. The backtraces I've captured all include Tramp too, but I'm not sure the latter is actually necessary to reproduce this bug, or if it just changes the timings to make it more likely.