* bug#53646: 27.2; auto-insert-mode causes interactive prompt for update-directory-autoloads
@ 2022-01-31 1:06 Allen Li
2022-01-31 15:44 ` Lars Ingebrigtsen
0 siblings, 1 reply; 3+ messages in thread
From: Allen Li @ 2022-01-31 1:06 UTC (permalink / raw)
To: 53646
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#53646: 27.2; auto-insert-mode causes interactive prompt for update-directory-autoloads
2022-01-31 1:06 bug#53646: 27.2; auto-insert-mode causes interactive prompt for update-directory-autoloads Allen Li
@ 2022-01-31 15:44 ` Lars Ingebrigtsen
2022-02-09 7:54 ` Allen Li
0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2022-01-31 15:44 UTC (permalink / raw)
To: Allen Li; +Cc: 53646
Allen Li <darkfeline@felesatra.moe> writes:
> 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`.
I think this was fixed for Emacs 28 -- would it be possible for you to
try building that and see whether the problem is still present there?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#53646: 27.2; auto-insert-mode causes interactive prompt for update-directory-autoloads
2022-01-31 15:44 ` Lars Ingebrigtsen
@ 2022-02-09 7:54 ` Allen Li
0 siblings, 0 replies; 3+ messages in thread
From: Allen Li @ 2022-02-09 7:54 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 53646-done
[-- Attachment #1: Type: text/plain, Size: 700 bytes --]
Yep, it looks like it's fixed, thanks.
On Mon, Jan 31, 2022 at 7:44 AM Lars Ingebrigtsen <larsi@gnus.org> wrote:
> Allen Li <darkfeline@felesatra.moe> writes:
>
> > 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`.
>
> I think this was fixed for Emacs 28 -- would it be possible for you to
> try building that and see whether the problem is still present there?
>
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
>
[-- Attachment #2: Type: text/html, Size: 1118 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-02-09 7:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-31 1:06 bug#53646: 27.2; auto-insert-mode causes interactive prompt for update-directory-autoloads Allen Li
2022-01-31 15:44 ` Lars Ingebrigtsen
2022-02-09 7:54 ` Allen Li
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.