all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Aidan Gauland <aidalgol@no8wireless.co.nz>
To: emacs-devel@gnu.org
Subject: Re: pcase is autoloaded?
Date: Sat, 02 Mar 2013 20:36:08 +1300	[thread overview]
Message-ID: <878v66nthz.fsf@dimension8.tehua.net> (raw)
In-Reply-To: jwv1uc1md1z.fsf-monnier+emacs@gnu.org

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> This means that people leave it to be autoloaded rather than
>> specifically required. In our case it broke our test badly because our
>> file-system mock was loading pcase.el (which didn't work, surprise!)
>
> I have no idea what problem you bumped into.  I don't know what is your
> "file system mock", nor do I know why loading pcase.el didn't work (or
> why it should come as (no?) surprise).
>
>> Is this a good idea? I don't think so.
>
> Please give more concrete details,

Here is the relevant backtrace: https://gist.github.com/aidalgol/5070012

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.

Regards,
Aidan Gauland




  parent reply	other threads:[~2013-03-02  7:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-27 22:42 pcase is autoloaded? Nic Ferrier
2013-02-28  1:41 ` Stefan Monnier
2013-03-01 21:48   ` Nic Ferrier
2013-03-02  2:59     ` Stefan Monnier
2013-03-02  7:36   ` Aidan Gauland [this message]
2013-03-02 22:30     ` Aidan Gauland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878v66nthz.fsf@dimension8.tehua.net \
    --to=aidalgol@no8wireless.co.nz \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.