From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Howells Newsgroups: gmane.emacs.bugs Subject: bug#64439: 28.2; auto-fill-mode gets turned on all over the place Date: Mon, 03 Jul 2023 18:48:41 +0100 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 Message-ID: <1211099.1688406521@warthog.procyon.org.uk> References: <83h6qlm0oc.fsf@gnu.org> <1034974.1688399705@warthog.procyon.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28513"; 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 Mon Jul 03 19:49:17 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 1qGNfp-0007GY-3P for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Jul 2023 19:49:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qGNff-0007bz-95; Mon, 03 Jul 2023 13:49: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 1qGNfa-0007b3-8t for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2023 13:49: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 1qGNfZ-0007ud-Pi for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2023 13:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qGNfZ-0000Al-LK for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2023 13:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Howells Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Jul 2023 17:49: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.1688406528644 (code B ref 64439); Mon, 03 Jul 2023 17:49:01 +0000 Original-Received: (at 64439) by debbugs.gnu.org; 3 Jul 2023 17:48:48 +0000 Original-Received: from localhost ([127.0.0.1]:34434 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGNfL-0000AK-T4 for submit@debbugs.gnu.org; Mon, 03 Jul 2023 13:48:48 -0400 Original-Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:46936) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGNfI-0000A8-2B for 64439@debbugs.gnu.org; Mon, 03 Jul 2023 13:48:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688406523; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=TmMz/s7NwJtN1sFfBP4btE7VUdnqAopDF7LC/FwjZk8=; b=X1S69Bdaj0oYQTij3C+gZbnCXL5Um0rdDwoHvMVgicg19wJNItO8kPR5Mm3TvWX/2oYLgp I44TVbL9TSPp6dFfYKHOiJI7M1eR5idCS8wSHDt/Xj2U5y6SECVZLBXuiaUqcH8Pz2Wi1B B/0rQ0jzIWR6TWvDnOB0f8lTiLIjGEA= Original-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-600-sfWdE0s1Nm2aXDZ3oGrJnQ-1; Mon, 03 Jul 2023 13:48:42 -0400 X-MC-Unique: sfWdE0s1Nm2aXDZ3oGrJnQ-1 Original-Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0EDC685A58A; Mon, 3 Jul 2023 17:48:42 +0000 (UTC) Original-Received: from warthog.procyon.org.uk (unknown [10.42.28.195]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9DF43492B01; Mon, 3 Jul 2023 17:48:41 +0000 (UTC) In-Reply-To: <83h6qlm0oc.fsf@gnu.org> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-ID: <1211098.1688406520.1@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:264542 Archived-At: 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) auto-fill-mode didn't seem to turn on, though - I'm not sure if that's to be expected. It's also not the first time I pressed enter in that buffer. David