From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#36945: 27.0.50; read-library-name Date: Tue, 15 Sep 2020 14:32:58 +0200 Message-ID: <87a6xr9q4l.fsf@gnus.org> 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="20682"; 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, Fabrice Popineau To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 15 14:38:13 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 1kIADt-0005I0-92 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Sep 2020 14:38:13 +0200 Original-Received: from localhost ([::1]:56550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIADs-0005lj-8V for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 15 Sep 2020 08:38:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIA9r-0008DQ-SE for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2020 08:34:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46101) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kIA9r-0002Iu-Gy for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2020 08:34:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kIA9q-0002Cl-En for bug-gnu-emacs@gnu.org; Tue, 15 Sep 2020 08:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Sep 2020 12:34:02 +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.16001731918399 (code B ref 36945); Tue, 15 Sep 2020 12:34:02 +0000 Original-Received: (at 36945) by debbugs.gnu.org; 15 Sep 2020 12:33:11 +0000 Original-Received: from localhost ([127.0.0.1]:57643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIA91-0002BP-5H for submit@debbugs.gnu.org; Tue, 15 Sep 2020 08:33:11 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:44128) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kIA8z-0002Az-Md for 36945@debbugs.gnu.org; Tue, 15 Sep 2020 08:33:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=pqn0aIMR01+mxP2f+EzpoymXtc2MoAWTATe7fEc5qto=; b=ZsILHJmf/CvEJmnLO20tlncHKA OvFCWTN94ZNMxJEEqITqNrIXSOujrUg2s18wvP55mW6r8ynF5rO5Rl2O80tstxpsC/rK8VQ6IdC/a mSEgAlEq9cbjgIbvdEDdWUTFqKIcarnW0bV9B6hI/D9zXH4g9hElPnPvD43kdTHyhQeY=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kIA8p-00006V-Ug; Tue, 15 Sep 2020 14:33:03 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQAAAAB/ecQqAAAABGdBTUEAALGPC/xhBQAAAAJi S0dEAAHdihOkAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAB3RJTUUH5AkPCzUmaBspuQAAABBJREFU GNNj+A8GDKMUdSgAT1Qe8M8TmhgAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMDktMTVUMTE6NTM6 MzgrMDA6MDBIuYtMAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTA5LTE1VDExOjUzOjM4KzAwOjAw OeQz8AAAAABJRU5ErkJggg== X-Now-Playing: Saito Koji's _433-1_: "433_012" In-Reply-To: (Stefan Monnier's message of "Mon, 14 Sep 2020 16:46:05 -0400") 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:188105 Archived-At: Stefan Monnier writes: > ~/.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. read-library-name has slightly unclear semantics -- I didn't know that it was supposed to complete over directory names at all. Perhaps that should be mentioned in the doc string? > 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 :-( Hm... perhaps the function is just misnamed. When I want to find a library, I really do want to complete over the library's name, and nothing else. What read-library-name does, however, is file name completion over load-path, which is something a bit different. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no