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 19:15:15 +0300 Message-ID: <83h6qlm0oc.fsf@gnu.org> References: <1034974.1688399705@warthog.procyon.org.uk> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9203"; 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 18:15:14 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 1qGMCn-00027V-EH for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Jul 2023 18:15:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qGMCf-0003bJ-V1; Mon, 03 Jul 2023 12:15:05 -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 1qGMCd-0003aV-AY for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2023 12:15: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 1qGMCc-0001ec-W7 for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2023 12:15:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qGMCc-0005yV-BJ for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2023 12:15: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 16:15: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.168840088722926 (code B ref 64439); Mon, 03 Jul 2023 16:15:02 +0000 Original-Received: (at 64439) by debbugs.gnu.org; 3 Jul 2023 16:14:47 +0000 Original-Received: from localhost ([127.0.0.1]:34362 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGMCN-0005xi-4k for submit@debbugs.gnu.org; Mon, 03 Jul 2023 12:14:47 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGMCL-0005xU-Te for 64439@debbugs.gnu.org; Mon, 03 Jul 2023 12:14:46 -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 1qGMCG-0001VM-FJ; Mon, 03 Jul 2023 12:14:40 -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=yaTfC+EgvgtwnpEUzYnCL4KFCsW7t8nzstb0Z3R/Kw4=; b=RgD92UxAySNU GTPUwwJ9/U/qIfoZedvtvp+UD6ffpaR8XEpCtswiQDWVZj1YAWW7T7rN3MxXynHdXmEeqenx/xc61 27s4l+tJ7M57BPvtYckXEufCI3KEaMxh8NjATblCOlUBnt0d4s7UjDvd7TZBrvNVIIhd7SQf1bWLI NmgLY4wbFbnI06NLnZhAM0Di30YgQduYLjDiR0jbYDllm5pMvxEqfXtRlcyAxewbs9f1XFe3psXvk qyLUDMzASYWSzKPB8FrleZi38PfgxMbqRphm9ihZdlW2XUOo+LxX+Er4t9TDPwjTfrD9kJ+03oTsR qR3fjLJRyuj/w4n3nPIrDQ==; 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 1qGMCE-0004oN-OB; Mon, 03 Jul 2023 12:14:40 -0400 In-Reply-To: <1034974.1688399705@warthog.procyon.org.uk> (message from David Howells on Mon, 03 Jul 2023 16:55:05 +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:264533 Archived-At: > Cc: dhowells@redhat.com > From: David Howells > Date: Mon, 03 Jul 2023 16:55:05 +0100 > > I'm seeing an issue in which auto-fill-mode gets turned on for all the buffers > in a running emacs instance, including the command entry window (M-x, grep, > compile, etc.). This is a problem as it starts mangling the code I'm working > on and making it harder to enter long commands (such as grep or compile > commands). I can turn it off manually on most buffers (though not the command > window), but it immediately turns back on in a buffer if I have to reload it. > > The problem has happened in several emacs instances now. It shows up in the > instances I've been using to edit C code and view patches. It takes a little > while for the problem to manifest when it does. I'm not sure what triggers > it. 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. If you turn this mode yourself, and don't want to be annoyed by entering the debugger each time, remove the last line from the recipe: then you will just see a message when auto-fill-mode is turned on, and will need to investigate which code did that.