From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64439: 28.2; auto-fill-mode gets turned on all over the place Date: Mon, 03 Jul 2023 21:29:38 +0300 Message-ID: <837crgn90u.fsf@gnu.org> References: <83h6qlm0oc.fsf@gnu.org> <1034974.1688399705@warthog.procyon.org.uk> <1211099.1688406521@warthog.procyon.org.uk> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14444"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64439@debbugs.gnu.org To: David Howells Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 03 20:30:30 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 1qGOJg-0003a1-Jc for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Jul 2023 20:30:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qGOJK-0006T4-1d; Mon, 03 Jul 2023 14:30:06 -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 1qGOJH-0006Pr-5h for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2023 14:30:03 -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 1qGOJG-0007sO-Sf for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2023 14:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qGOJG-0001CC-5U for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2023 14:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Jul 2023 18:30: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.16884089514513 (code B ref 64439); Mon, 03 Jul 2023 18:30:02 +0000 Original-Received: (at 64439) by debbugs.gnu.org; 3 Jul 2023 18:29:11 +0000 Original-Received: from localhost ([127.0.0.1]:34472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGOIR-0001Ai-7w for submit@debbugs.gnu.org; Mon, 03 Jul 2023 14:29:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51444) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGOIN-0001AI-4a for 64439@debbugs.gnu.org; Mon, 03 Jul 2023 14:29:10 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qGOIH-0007hm-BU; Mon, 03 Jul 2023 14:29:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Opm8FhYScX3ymCL+WLjXiLTkTWZHxtxgaUnCoPPMU6I=; b=b7HwA9LV+BuS 9kG3V1yXmms3mHLGFxhlwz2Wmr+A7NGcoi7mTDguX3Df8g+jbiB2eFF0LVtDqmIxOCc2DWUpp1xvt aZr0A9/EXvfgB28OzF9HuKIGazHkOLp8WVKdPJXA9QbkD/nGCf6BJogzzJgaFHCQcHCVf+qMbH0UB 4d0xjSqy7gzgLAmOqK4fKiysGxrBimTYqkgy9lEpQLO5F3rzd/Y/jIQOuG0GJ6LOYsBFCdj08TIsg uxW2I8DUw3zbvukzBAG6KgoVOzcyb2G2lEQTPEsE9lLxSPqjPX0Z1Ly9QC3mbFTQj4VH+VyDdl3gE zDwveOQLrnxT2coqlY/wHg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qGOIG-00047t-R2; Mon, 03 Jul 2023 14:29:01 -0400 In-Reply-To: <1211099.1688406521@warthog.procyon.org.uk> (message from David Howells on Mon, 03 Jul 2023 18:48:41 +0100) 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:264544 Archived-At: > From: David Howells > Cc: dhowells@redhat.com, 64439@debbugs.gnu.org > Date: Mon, 03 Jul 2023 18:48:41 +0100 > > Eli Zaretskii wrote: > > > Try evaluating this: > > > > (defun my-watcher (_symbol new-value operation where) > > (error "auto-fill-mode: %s %s %s" new-value operation where)) > > (add-variable-watcher 'auto-fill-function 'my-watcher) > > (debug-on-entry 'my-watcher) > > > > and run your sessions with this. Whenever auto-fill-mode is turned > > on, you will get a backtrace. > > I restarted emacs and added the above. I was editing some C code, pressed > enter and got: > > Debugger entered--entering a function: > * my-watcher(auto-fill-function nil set nil) > newline(nil 1) > funcall-interactively(newline nil 1) > command-execute(newline) Hmm... > auto-fill-mode didn't seem to turn on, though Because the function newline only let-binds auto-fill-function locally. I guess tracking down this problem will be harder, then. I hope I at least gave you some ideas with which you will be able to construct a suitable trap and find the culprit. Good luck!