GNU bug report logs - #64439
28.2; auto-fill-mode gets turned on all over the place

Previous Next

Package: emacs;

Reported by: David Howells <dhowells <at> redhat.com>

Date: Mon, 3 Jul 2023 15:57:02 UTC

Severity: normal

Found in version 28.2

Full log


Message #11 received at 64439 <at> debbugs.gnu.org (full text, mbox):

From: David Howells <dhowells <at> redhat.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: dhowells <at> redhat.com, 64439 <at> debbugs.gnu.org
Subject: Re: bug#64439: 28.2; auto-fill-mode gets turned on all over the place
Date: Mon, 03 Jul 2023 18:48:41 +0100
Eli Zaretskii <eliz <at> gnu.org> 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





This bug report was last modified 1 year and 344 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.