From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Allen Li Newsgroups: gmane.emacs.bugs Subject: bug#53646: 27.2; auto-insert-mode causes interactive prompt for update-directory-autoloads Date: Sun, 30 Jan 2022 17:06:40 -0800 Message-ID: <80h79kzpb3.fsf@felesatra.moe> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18440"; mail-complaints-to="usenet@ciao.gmane.io" To: 53646@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 31 02:07:27 2022 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 1nELAE-0004bN-PQ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 31 Jan 2022 02:07:26 +0100 Original-Received: from localhost ([::1]:51160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nELAD-0006Ib-6r for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 30 Jan 2022 20:07:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48908) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEL9q-0006IP-Dv for bug-gnu-emacs@gnu.org; Sun, 30 Jan 2022 20:07:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45138) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nEL9q-00075G-4B for bug-gnu-emacs@gnu.org; Sun, 30 Jan 2022 20:07:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nEL9p-0003Hp-Sx for bug-gnu-emacs@gnu.org; Sun, 30 Jan 2022 20:07:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Allen Li Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 31 Jan 2022 01:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53646 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164359120912613 (code B ref -1); Mon, 31 Jan 2022 01:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Jan 2022 01:06:49 +0000 Original-Received: from localhost ([127.0.0.1]:38041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEL9d-0003HN-DY for submit@debbugs.gnu.org; Sun, 30 Jan 2022 20:06:49 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:53252) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEL9a-0003HA-DN for submit@debbugs.gnu.org; Sun, 30 Jan 2022 20:06:48 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48876) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEL9a-0006Ha-15 for bug-gnu-emacs@gnu.org; Sun, 30 Jan 2022 20:06:46 -0500 Original-Received: from [2607:f8b0:4864:20::1033] (port=38852 helo=mail-pj1-x1033.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nEL9Y-0006zA-7a for bug-gnu-emacs@gnu.org; Sun, 30 Jan 2022 20:06:45 -0500 Original-Received: by mail-pj1-x1033.google.com with SMTP id o16-20020a17090aac1000b001b62f629953so9299083pjq.3 for ; Sun, 30 Jan 2022 17:06:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=felesatra-moe.20210112.gappssmtp.com; s=20210112; h=from:to:subject:date:message-id:mime-version; bh=A6Uwn66+2JaAFl+j0NHUFIJt1158unBiw2Gr0pib908=; b=KO2yOum6igm2Vp7Layj5EFlokhV4j2BNin9YGd01RkGnI7/93pf1RNIAamkcR5V5aN a6VCOE6LRgYtE3IP1V6oWgGO1nbBpdu0sCm0NUC1xg4Ue4J7xGV1z9TCv4nS9wnUoGbw cT9QLCVio/n9gjvnTngHISx7+yQ8C9PUs4enJFvDRpN3HtZlIR5Bog9vSZXaAjfZmrL5 sX3PXGNl1zXWJDEqPCQQiSAa68FSU/9q8Mu+lkQ3HWcvKX5PSkj4boFbtQVnr/r8YL9H dzgdJOcZYiaJVnFgG9GQdBW6I462E/s8/5Tlz5q/9qHl6RR0CpHKY4uCECPSQkVPa9fJ 9VQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=A6Uwn66+2JaAFl+j0NHUFIJt1158unBiw2Gr0pib908=; b=2LComeUH6lSmsTeaWBanF8/hcSMg2zyUEqHhzJqLTMLcX5y/SZKKQamno9fORIOcqG iI5jCjtyJ4Sio9D8j7fCGDvb3QHH/s0jgaWeskFjCZZchypfghXQPQVJqIRXICLOF+Pz 03IA7VS49WI/PHZuijU9BJ7GBBvMOzLa4nVyiMX2nBdXIg3OzHDRIcLuweAaszydRwf7 LKPTqNqrWaWC1mpJnCNFZY894S/TLlhFbx1gYli7izQcEKfPnlLb/ft23iL5E9lZe4Sa UGkWI5FNVL4+FxKDrESBFUAUhSFQGJg4ODk/f+8j3+HpUo/Pqk3CHGawldjH+WRctFuM FKTA== X-Gm-Message-State: AOAM532onBcGXLsF5X7WRPJX09xENI3/l1T9PWfFeOyJnmvdHFapvwpW u3nkIEaaAX4TGn23dlsXOCeZ1YwqBE2LGQ== X-Google-Smtp-Source: ABdhPJxd2TBXmoazTd/CvdtJ8+tUljFyjoyVlJhO8GGxBgnwzvTTrGOWMiTiVj1PShkPxHc9GMOU9Q== X-Received: by 2002:a17:90b:1c0e:: with SMTP id oc14mr22031423pjb.2.1643591202064; Sun, 30 Jan 2022 17:06:42 -0800 (PST) Original-Received: from localhost ([2600:1700:7270:7d1f:fa59:71ff:fe00:10cc]) by smtp.gmail.com with ESMTPSA id k3sm17539847pfu.180.2022.01.30.17.06.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Jan 2022 17:06:41 -0800 (PST) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::1033 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::1033; envelope-from=darkfeline@felesatra.moe; helo=mail-pj1-x1033.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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" Xref: news.gmane.io gmane.emacs.bugs:225644 Archived-At: 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