From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#36945: 27.0.50; read-library-name Date: Mon, 14 Sep 2020 16:46:05 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16108"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 36945@debbugs.gnu.org To: Fabrice Popineau Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 14 22:47:18 2020 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 1kHvNe-00043s-3E for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 14 Sep 2020 22:47:18 +0200 Original-Received: from localhost ([::1]:58410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHvNc-0008Cl-9U for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 14 Sep 2020 16:47:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34472) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHvNP-0008CM-B2 for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2020 16:47:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44882) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kHvNN-0006wN-LF for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2020 16:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kHvNN-00012C-KN for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2020 16:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Sep 2020 20:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36945 X-GNU-PR-Package: emacs Original-Received: via spool by 36945-submit@debbugs.gnu.org id=B36945.16001163763921 (code B ref 36945); Mon, 14 Sep 2020 20:47:01 +0000 Original-Received: (at 36945) by debbugs.gnu.org; 14 Sep 2020 20:46:16 +0000 Original-Received: from localhost ([127.0.0.1]:56428 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHvMe-00011B-He for submit@debbugs.gnu.org; Mon, 14 Sep 2020 16:46:16 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:32081) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHvMb-00010x-S2 for 36945@debbugs.gnu.org; Mon, 14 Sep 2020 16:46:16 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 39F408009D; Mon, 14 Sep 2020 16:46:08 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id BC2A680D86; Mon, 14 Sep 2020 16:46:06 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1600116366; bh=1LtBvNkUkAEcPJTzzyGxc97Ci/q1MSHYG501l9uXs1M=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=eUm4Oac1STlOzSc417G5yPqG+qjdjiiEMqXctJPF3oZ9ftobt1/btFiVfiWrkkPDB +Z/S9I5IybQVHvYpO0eWH0tBBJ4eVgaSwoO3DyCZAto6E1eQz0XOifMEMj/O8FIdQz PnFKTagYsW3lZEVfYftKw5DiYrrjJKojM16YWkdNxg0xIVZLTza3AMeNpB2RB/fW2i Xi+idxorNzzv5a7VxiTo/uoMthbbijvAH51JeuAPY1hRc9rAvwqsZ4ZJZapUbsRX3T QkRmiYZOzAzMMjDKFWaegpzQNiyrVX1l16imnuzcN5I0g4igAh8u10RzrntDH4aTOp FwnxoKJI/PrqA== Original-Received: from alfajor (unknown [45.72.232.131]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 5C10B120034; Mon, 14 Sep 2020 16:46:06 -0400 (EDT) In-Reply-To: (Fabrice Popineau's message of "Tue, 6 Aug 2019 11:48:12 +0200") 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:188091 Archived-At: > read-library-name offers and .elc for each library name. > I expect that .elc names should not be offered. I think it should indeed not be displayed when `` is already listed alongside others, but when the users type ` TAB` it would make sense to list the `.elc` file since it's quite possible that they want to choose between the `.el` and the `.elc` version of the file. > .dir-locals > .elpaignore > .elpaignore > .git > .git > > in the list of propositions. These are obviously not library names. ~/.emacs is a common name for a file that can be loaded, so I will object to it being "obvious". Also, while `.git` should preferably not be listed, `.git/` arguably could since you might keep Elisp files in there. So I think we should list all directories, but I agree we should probably strip away all files whose name doesn't end in `.el`, `.elc`, `.el.gz` (and any other such extension in `load-suffixes`), and we should ideally only list the extension when it's the only remaining choice. Oh, and another reason to keep files that don't just end in `.el` is when you want to load `foo.el.BAK` or `foo.el~`, so maybe we should only skip those files which don't have `.el` somewhere in their name :-( Stefan