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: directory-files called with empty string Date: Wed, 09 Dec 2009 09:27:03 -0500 Message-ID: References: <87hbs1jh85.fsf@tux.homenetwork> <87pr6oiqg3.fsf@tux.homenetwork> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1260368846 18867 80.91.229.12 (9 Dec 2009 14:27:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Dec 2009 14:27:26 +0000 (UTC) Cc: Andreas Schwab , emacs-devel@gnu.org To: Thierry Volpiatto Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 09 15:27:18 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NINVb-0007wi-EL for ged-emacs-devel@m.gmane.org; Wed, 09 Dec 2009 15:27:15 +0100 Original-Received: from localhost ([127.0.0.1]:42732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NINVb-0004O3-5e for ged-emacs-devel@m.gmane.org; Wed, 09 Dec 2009 09:27:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NINVV-0004Mi-UE for emacs-devel@gnu.org; Wed, 09 Dec 2009 09:27:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NINVQ-0004D1-Qn for emacs-devel@gnu.org; Wed, 09 Dec 2009 09:27:09 -0500 Original-Received: from [199.232.76.173] (port=34771 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NINVQ-0004Cs-NV for emacs-devel@gnu.org; Wed, 09 Dec 2009 09:27:04 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:33820 helo=ironport2-out.pppoe.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NINVQ-0007Oz-EU for emacs-devel@gnu.org; Wed, 09 Dec 2009 09:27:04 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtkEAApCH0vO+INN/2dsb2JhbACBTNV9hCwEihs X-IronPort-AV: E=Sophos;i="4.47,368,1257138000"; d="scan'208";a="51095324" Original-Received: from 206-248-131-77.dsl.teksavvy.com (HELO pastel.home) ([206.248.131.77]) by ironport2-out.pppoe.ca with ESMTP; 09 Dec 2009 09:27:03 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id A58498065; Wed, 9 Dec 2009 09:27:03 -0500 (EST) In-Reply-To: <87pr6oiqg3.fsf@tux.homenetwork> (Thierry Volpiatto's message of "Wed, 09 Dec 2009 07:58:36 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:118452 Archived-At: >>>> is it the normal behavior of directory-files to use default-directory >>>> when it is called with empty string or is it a bug? >>> That is the normal behviour of every file related function. It is >>> basically what expand-file-name defines. >> Indeed, although I don't think it's documented, and code had probably >> better not rely on it. > Ok i see, thank you Stefan and Andreas, maybe that should be documented, for > all file related functions. I prefer to keep features which are accidental undocumented, unless we really consider them as good features (even if we bumped into them by accident), in which case they can be documented and their use can be blessed. Stefan