GNU bug report logs - #53646
27.2; auto-insert-mode causes interactive prompt for update-directory-autoloads

Previous Next

Package: emacs;

Reported by: Allen Li <darkfeline <at> felesatra.moe>

Date: Mon, 31 Jan 2022 01:07:01 UTC

Severity: normal

Tags: moreinfo

Found in version 27.2

Done: Allen Li <darkfeline <at> felesatra.moe>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Allen Li <darkfeline <at> felesatra.moe>
To: 53646 <at> debbugs.gnu.org
Subject: bug#53646: 27.2; auto-insert-mode causes interactive prompt for update-directory-autoloads
Date: Sun, 30 Jan 2022 17:06:40 -0800
When `auto-insert-mode` is enabled, `update-directory-autoloads` causes an
interactive prompt to appear for inserting an Emacs Lisp header.

This is because `update-directory-autoloads` calls
`autoload-find-generated-file`, which uses `find-file-noselect`.

Arguably, it's wrong to use `find-file-noselect` programmaticaly
(https://emacs.stackexchange.com/a/2898), but I understand that
`find-file-noselect` does some convenient magic like decoding.  A quick
hacky fix would be to `let`-bind `auto-insert` to nil in
`autoload-find-generated-file`.

In GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.27, cairo version 1.17.4)
 of 2021-03-26 built on juergen
Windowing system distributor 'The X.Org Foundation', version 11.0.12101003
System Description: Arch Linux




This bug report was last modified 3 years and 98 days ago.

Previous Next


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