From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: File modes facilities. Date: Fri, 21 Oct 2005 22:39:07 -0700 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1129959627 28444 80.91.229.2 (22 Oct 2005 05:40:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 22 Oct 2005 05:40:27 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 22 07:40:18 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ETC6w-0003d2-8t for ged-emacs-devel@m.gmane.org; Sat, 22 Oct 2005 07:40:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ETC6u-0000Yi-5j for ged-emacs-devel@m.gmane.org; Sat, 22 Oct 2005 01:40:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ETC6D-0000Yc-ME for emacs-devel@gnu.org; Sat, 22 Oct 2005 01:39:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ETC6B-0000XZ-Qs for emacs-devel@gnu.org; Sat, 22 Oct 2005 01:39:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ETC6B-0000XK-Dl for emacs-devel@gnu.org; Sat, 22 Oct 2005 01:39:19 -0400 Original-Received: from [141.146.126.231] (helo=agminet04.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1ETC6B-0008Jt-GZ for emacs-devel@gnu.org; Sat, 22 Oct 2005 01:39:19 -0400 Original-Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by agminet04.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j9M5dI24023940 for ; Sat, 22 Oct 2005 00:39:18 -0500 Original-Received: from rgmsgw300.us.oracle.com (localhost [127.0.0.1]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j9M5dHQQ019828 for ; Fri, 21 Oct 2005 23:39:17 -0600 Original-Received: from dradamslap (dhcp-amer-rmdc-csvpn-gw5-141-144-104-54.vpn.oracle.com [141.144.104.54]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id j9M5dGG9019821 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Fri, 21 Oct 2005 23:39:17 -0600 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:44554 Archived-At: AFAIK M-x load-library accepts and properly completes both kinds of arguments. Yes, it seems to. That's a change I had forgotten about. (In the old days, load-library did no completion at all.) However, load-file only reads file names, and only completes file names. Could load-file now be an alias to load-library? Don't load-file and load-library complete the file name differently? Doesn't load-library expect the library to be in the load-path, while load-file is content to load a file even if it is not in the load-path? (defun load-library (library) (interactive (list (completing-read "Load library: " 'locate-file-completion (cons load-path load-suffixes)))) (load library)) The (cons load-path load-suffixes) makes me think this only works for load-path files. (defun load-file (file) (interactive (list (let ((completion-ignored-extensions (remove ".elc" completion-ignored-extensions))) (read-file-name "Load file: ")))) (load (expand-file-name file) nil nil t)) This one has no connection with load-path. Or am I misunderstanding the issue?