From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: File modes facilities. Date: Mon, 24 Oct 2005 09:40:02 -0400 Message-ID: <87veznaveb.fsf-monnier+emacs@gnu.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130162091 20568 80.91.229.2 (24 Oct 2005 13:54:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 Oct 2005 13:54:51 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 24 15:54:49 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EU2lg-0003h3-9n for ged-emacs-devel@m.gmane.org; Mon, 24 Oct 2005 15:53:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EU2lf-0005Sp-NE for ged-emacs-devel@m.gmane.org; Mon, 24 Oct 2005 09:53:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EU2YY-0006Js-Rf for emacs-devel@gnu.org; Mon, 24 Oct 2005 09:40:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EU2YW-0006JC-TU for emacs-devel@gnu.org; Mon, 24 Oct 2005 09:40:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EU2YW-0006J0-IS for emacs-devel@gnu.org; Mon, 24 Oct 2005 09:40:04 -0400 Original-Received: from [209.226.175.110] (helo=tomts43-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EU2YW-0007ck-Jb for emacs-devel@gnu.org; Mon, 24 Oct 2005 09:40:04 -0400 Original-Received: from alfajor ([70.48.83.21]) by tomts43-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20051024134002.XWLN2981.tomts43-srv.bellnexxia.net@alfajor>; Mon, 24 Oct 2005 09:40:02 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id DD38DD781C; Mon, 24 Oct 2005 09:40:02 -0400 (EDT) Original-To: "Drew Adams" In-Reply-To: (Drew Adams's message of "Sun, 23 Oct 2005 11:27:14 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:44713 Archived-At: > Yes, slightly. But if your file name starts with / or ~ (i.e. is an > absolute file name, as is the default for `load-file' because > of its default initial value) then the difference is minimal. > I guess I still don't understand. I see this difference in completion > behavior - do you not? > Go to a directory that is not in your load-path. M-x load-library > will not complete the name of an Emacs-Lisp file in that directory... > M-x load-file will complete its name. Which part of "starts with / or ~" don't you understand? > I see the default for `load-file' being an absolute file name that is in the > default-directory. I see it completing to any file in that directory. I > don't see `load-library' doing that at all - I see `load-library' completing > only wrt the `load-path'. As I said, the initial value (empty string for load-library, default-directory for load-file) is the main difference. But if you type in the default directory manually in load-library the completion facilities will then work pretty much as they do in load-file. Stefan