From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Aidan Gauland Newsgroups: gmane.emacs.devel Subject: Re: pcase is autoloaded? Date: Sun, 03 Mar 2013 11:30:36 +1300 Message-ID: <87k3pp304z.fsf@dimension8.tehua.net> References: <87wqttqsyz.fsf@ferrier.me.uk> <878v66nthz.fsf@dimension8.tehua.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1362263462 28012 80.91.229.3 (2 Mar 2013 22:31:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Mar 2013 22:31:02 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 02 23:31:26 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UBuxg-0006Dx-FR for ged-emacs-devel@m.gmane.org; Sat, 02 Mar 2013 23:31:24 +0100 Original-Received: from localhost ([::1]:39837 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBuxL-0007EK-8m for ged-emacs-devel@m.gmane.org; Sat, 02 Mar 2013 17:31:03 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBuxI-0007ED-4e for emacs-devel@gnu.org; Sat, 02 Mar 2013 17:31:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBuxG-0005Tz-V4 for emacs-devel@gnu.org; Sat, 02 Mar 2013 17:31:00 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:45343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBuxG-0005Tn-Og for emacs-devel@gnu.org; Sat, 02 Mar 2013 17:30:58 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UBuxY-00064V-1j for emacs-devel@gnu.org; Sat, 02 Mar 2013 23:31:16 +0100 Original-Received: from 114-134-7-192.rurallink.co.nz ([114.134.7.192]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 02 Mar 2013 23:31:16 +0100 Original-Received: from aidalgol by 114-134-7-192.rurallink.co.nz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 02 Mar 2013 23:31:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 114-134-7-192.rurallink.co.nz User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:edk/Ct4AOrX4LdugFlBuwDk5ojk= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:157485 Archived-At: Aidan Gauland writes: > If pcase is not loaded when the test is run, this happens; if pcase *is* > loaded when the test is run, this error does not occur. This does seem > to suggest that the autoloading of pcase causes a problem, but as Sacha > Chua pointed out (on #emacs), `fakir--expand-file-name' does not > correctly handle the a nil case, and calls `file-name-as-directory' with > nil. (I do not know how that case should be handled.) > > From what I can tell, pcase being autoloaded is not the problem, it's > just exposing a bug in fakir, and explicitly loading pcase before > running the above test only masks the problem. Actually, scratch that. It's not a bug in fakir; it's fakir being called unexpectedly. (Just talked with Nic in #emacs.) This would probably happen with any other autoloaded library, because fakir is mocking (some of) the file functions. In this particular instance, I think esxml, the library that's causing pcase to be autoloaded, should explicitly `require' pcase. For the general case, I have no idea how to address. Regards, Aidan Gauland