>> > How 'bout adding an optional argument to `generate-new-buffer` to set >> > `inhibit_buffer_hooks`? >> >> How about moving 'generate-new-buffer' to C to set that flag without >> exposing it to Lisp (and to avoid things like >> >> ;; We can't use `generate-new-buffer' because files.el >> ;; is not yet loaded. >> >> in 'load-with-code-conversion')? > > Fine with me. I attach a preliminary patch. martin