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: Mon, 3 Jul 2023 11:14:10 -0700 Message-ID: <684d9020-84e2-a60c-18e4-b443ed7d16b5@gmail.com> References: <1034974.1688399705@warthog.procyon.org.uk> 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="8475"; mail-complaints-to="usenet@ciao.gmane.io" To: David Howells , 64439@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 03 20:15: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 1qGO54-00026N-E9 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Jul 2023 20:15:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qGO4n-0003UK-Eu; Mon, 03 Jul 2023 14: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 1qGO4l-0003UA-6H for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2023 14: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 1qGO4k-0004fK-Ta for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2023 14:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qGO4k-0000pE-F6 for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2023 14:15: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: Mon, 03 Jul 2023 18: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.16884080603097 (code B ref 64439); Mon, 03 Jul 2023 18:15:02 +0000 Original-Received: (at 64439) by debbugs.gnu.org; 3 Jul 2023 18:14:20 +0000 Original-Received: from localhost ([127.0.0.1]:34464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGO43-0000nt-ON for submit@debbugs.gnu.org; Mon, 03 Jul 2023 14:14:19 -0400 Original-Received: from mail-pj1-f42.google.com ([209.85.216.42]:47196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGO40-0000na-Jr for 64439@debbugs.gnu.org; Mon, 03 Jul 2023 14:14:18 -0400 Original-Received: by mail-pj1-f42.google.com with SMTP id 98e67ed59e1d1-2632a72f289so2302415a91.2 for <64439@debbugs.gnu.org>; Mon, 03 Jul 2023 11:14:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688408050; x=1691000050; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=TVxGwThjAU9ndCfgtilwMsUvQ8k479UCERAfZ3GdzVs=; b=S405bU/AAGzyNWYvBitiTLCORUfwW3JDtG5lESHpsJXy04SwILsQOk5WAM9SPJncOt jkXYyONlOv5IBKxSAkXejduCy8JWL8BXwhwPmyb194wLV1x425Xynfo8CUzXx1hiBvM8 9YsUpYkq1l7ws1SRnnlAUiAq0SkigLSuLjo+1620bZ5M9M8m1vmqXqsfhrTlK7IFuZVQ nX1TakrMs/D7WpnOC4/EBaD5gTdMZ8BBF3n1lRi/P1JEoR73kidF9nWWOfa40ELkhXRv /RWl88RTmezY+hrCJ6LGQ5achILeZfpGeREiDZpOzcZwe1tJxe/MbYW6YcbdPvfsuxIc zkzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688408050; x=1691000050; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TVxGwThjAU9ndCfgtilwMsUvQ8k479UCERAfZ3GdzVs=; b=N19/MB3zxz3QvItVLuQehIU8PuhDZmPKBk6i5SWa76H8iS+lIriP6is7SME0gZFn1J dw55esTnSVn2y9g+iNfjGMMTUIQaGdmXiBSFWVNcWcKXLK0IpChulNdWn0P92iFDUgVB Fj2flMvQg59Q+DrMhl2ndzvNr9BhOtcOeYDQeqpodC9z109ofGdho67pAvuTl9yj4/RS m2cgQkn4gsp4c4TZ4ETGP1qw5i9baG0+QOp9pRnHGE0b6mpNnbhL/Jiqyp5yN7wcQAu1 R5lQDiD0fDkBdM/roG5VxVsa1/Uj0TVECKvf3BQGuZ5P2tsJVg9vTSEqTjHzREk+liFP ecvg== X-Gm-Message-State: ABy/qLY11yo031g8c5ObHnwrnw8OkcZi0C6aV7b8kwWFpQRrSrztyzxt VjLwBJ4JQGZEqnBgrAHpaIA= X-Google-Smtp-Source: APBJJlEJYDjwTCYTf8ZaxmZACpcGFR3CODYcRlgzdqRvpBJ0YyKb/gs/9Fg6RRwpxEoZM+WHBYPo1A== X-Received: by 2002:a17:90a:1308:b0:262:fab9:b12 with SMTP id h8-20020a17090a130800b00262fab90b12mr9243750pja.45.1688408050269; Mon, 03 Jul 2023 11:14:10 -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 10-20020a17090a19ca00b0026104629998sm18738771pjj.43.2023.07.03.11.14.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Jul 2023 11:14:09 -0700 (PDT) Content-Language: en-US In-Reply-To: <1034974.1688399705@warthog.procyon.org.uk> 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:264543 Archived-At: On 7/3/2023 8:55 AM, David Howells wrote: > 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.). I've seen this too actually, but have had a hard time narrowing it down. I did something similar to Eli's suggestion a bit ago and did get a couple of data points, however: * First, I have 'turn-on-auto-fill-mode' set on 'text-mode-hook'. * It only seems to happen for me when a text-mode file was changed outside of Emacs, and then I press "r" (refresh) at the Emacs supersession prompt. This results in the mode being restarted (I think), which in turn calls 'turn-on-auto-fill-mode'. Occasionally, something gets messed up, and that function ends up setting the *default* value for 'auto-fill-function'. * I usually notice this on files I'm editing over Tramp, but that might not be relevant since I use Tramp very heavily, and maybe I'm just getting "lucky". I'm not sure, but perhaps there's a bug in 'set_internal'? There's some code in the 'SYMBOL_LOCALIZED' block of the switch statement in there that seems like it could relate to this, but I haven't had time to dig much into this, so that could be a red herring... > In both cases, the emacs instances are typically running for multiple weeks > till I need to reboot - or the issue becomes sufficiently irritating that I > restart emacs. Something like "(setq-default auto-fill-function nil)" should fix your Emacs session.