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: Tue, 11 Jul 2023 09:07:22 -0700 Message-ID: <9f219125-ae2d-3683-b615-247452572eba@gmail.com> 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> <6e26e6cf-5784-48fa-4822-5657e8e2db60@gmail.com> <2cc838cc-058e-7275-9b84-fb872b65fa24@gmail.com> <83351u8z17.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="32765"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dhowells@redhat.com, 64439@debbugs.gnu.org, michael.albinus@gmx.de, npostavs@gmail.com, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 11 18:08:23 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 1qJFuX-0008Cm-8Z for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Jul 2023 18:08:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qJFuJ-0000lK-AX; Tue, 11 Jul 2023 12:08:07 -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 1qJFuE-0000jd-Pj for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2023 12:08:06 -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 1qJFuE-0005ZX-HS for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2023 12:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qJFuD-0000uW-QZ for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2023 12:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Jul 2023 16:08:01 +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.16890916543465 (code B ref 64439); Tue, 11 Jul 2023 16:08:01 +0000 Original-Received: (at 64439) by debbugs.gnu.org; 11 Jul 2023 16:07:34 +0000 Original-Received: from localhost ([127.0.0.1]:50921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qJFtl-0000to-Qn for submit@debbugs.gnu.org; Tue, 11 Jul 2023 12:07:34 -0400 Original-Received: from mail-pf1-f174.google.com ([209.85.210.174]:58877) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qJFth-0000tZ-LX for 64439@debbugs.gnu.org; Tue, 11 Jul 2023 12:07:32 -0400 Original-Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-6686c74183cso5183789b3a.1 for <64439@debbugs.gnu.org>; Tue, 11 Jul 2023 09:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689091644; x=1691683644; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=duWmkkJZw3GJZ39a+nB91zRoYpf79QwimiKL92oX/j8=; b=JD4aiZrhkKj3q7vpjedXIZXqjRb0ss9aMlQuEJS8uUnF9aKEtHHIJV3oSTVQlv2+hI yNf99fZJd4Qm8nlnoxkGf6AYJMH+7ntBUK850JPJEPfoPpTTkpjGrgC5NnYi8s2b82NL MBfIEeCfX4J3WwCr/Q3M+NHpwFC+ue8RZ0hBZoKuN9B/lCqvuXLM8sSZW+97Jar/I7gl xs5lpnlfr8sOkhzeNR77a17U1HiUrHDlbtaW8UJhfXpFhEvRpeOX9js8TCeA2yY8RL9u 09TK2uXYs41av7Z7xtquKOjg4skvGIXmLxchmPAHo/ipzIQoHKEA3AolcvRgW0i1LoZq +Zgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689091644; x=1691683644; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=duWmkkJZw3GJZ39a+nB91zRoYpf79QwimiKL92oX/j8=; b=NDCfElH57rRCXvPN4P2CVbBNInqjzmhzx0IIfbQy7Aen9wYPDT1L+fmfZq63Td4TMp b6xMj3EcAKW9U8jyQImWnz1GlT+fpK33ckI2cAbGhW9i3waGvU+Ejw+c58k9eNqGATtb Sevg4lTIp8J5vfmebKqOejAwBSRdMmC0tntyykBP7sKn6Z529+GIPR2mjayHoN/QMTfe sMjyviogx5nt1TcggZ4+7+T5rrbFsUnuNCazY0tYQN3E4Poa4OLw9Ax4SYGOIktGxJWM piP1XM/qPvz4a3WtXMFAaHfNgfkry2vJiRhxo9MMxPz/ZKs2VXyfvXGDJ+v1dKzsJNbN V/nA== X-Gm-Message-State: ABy/qLbZeVV3kwwAPYaSOdu+A+iqoPVSIRAZbkZ2wb/fYzcJh6qlojKw PkZe+wGltjWkF6Nqv0OlrCc= X-Google-Smtp-Source: APBJJlEU/wiA0tMZ6UT9sn7fEWztW0eUPrMFCOuARCgd/1pM/MZcQVuqkFON5k9XGx203lQWHUWn6Q== X-Received: by 2002:a05:6a20:3cab:b0:122:b613:8b2 with SMTP id b43-20020a056a203cab00b00122b61308b2mr19429377pzj.0.1689091643608; Tue, 11 Jul 2023 09:07:23 -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 s18-20020a63a312000000b005579f12a238sm1784112pge.86.2023.07.11.09.07.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Jul 2023 09:07:23 -0700 (PDT) Content-Language: en-US In-Reply-To: <83351u8z17.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:264931 Archived-At: On 7/11/2023 4:31 AM, Eli Zaretskii wrote: >> Date: Mon, 10 Jul 2023 16:53:41 -0700 >> From: Jim Porter >> Cc: dhowells@redhat.com, Michael Albinus , >> 64439@debbugs.gnu.org, Noam Postavsky >> >> On 7/10/2023 2:54 PM, Jim Porter wrote: >>> Interestingly, I can't reproduce this on Emacs 30 (latest master), but I >>> *can* on Emacs 28.2 and the latest rev on the Emacs 29 branch. I haven't >>> dug any further yet to see which commit could have changed this though. >> >> ... and it looks like you're the one who fixed this, Stefan! Should this >> get backported into the emacs-29 branch? > > Sorry, no. We've lived with this subtle problem for 40 years, we can > live another one or two. Ok, just thought I'd ask. It's not too hard to work around anyway. For anyone who's interested, here's what I did to work around the bug in Emacs 29 and earlier: -------------------- (use-package text-mode :preface (defun user/turn-on-auto-fill (&optional recursive) "Turn on `auto-fill-mode', but fix things if it got set globally. See ." (turn-on-auto-fill) (when (default-value 'auto-fill-function) (message "`auto-fill-function' got set globally; fixing it...") (setq-default auto-fill-function nil) (when recursive (error (concat "Recursively setting the default value of " "`auto-fill-function'!"))) (run-with-timer 0 nil (lambda (buf) (with-current-buffer buf (user/turn-on-auto-fill))) (current-buffer)))) :init (add-hook 'text-mode-hook (if (< emacs-major-version 30) #'user/turn-on-auto-fill #'turn-on-auto-fill)))