[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Autoloading of toolboxes?
From: |
John W. Eaton |
Subject: |
Re: Autoloading of toolboxes? |
Date: |
Mon, 29 Jan 2007 11:23:14 -0500 |
On 29-Jan-2007, David Bateman wrote:
| Bill Denney wrote:
| > David Bateman wrote:
| >> Michael Creel wrote:
| >>
| >>> What's the advantage of not automatically loading whatever is
| >>> available?
| >>>
| >> It might not be desirable to load octplot, tsa etc automatically as they
| >> overload existing functionality..
| >>
| > We could assume that people would only install packages that they
| > always wanted loaded (not a perfect assumption by any means). There
| > could be another package option that would have functionality like:
| >
| > pkg load pkgname manual
| >
| > vs.
| >
| > pkg load pkgname auto
| >
| > Where it would touch or remove a file named PKG_AUTOLOAD in the
| > package's directory whose existence would control auto loading. All
| > packages would be set to autoload by default and people could easily
| > turn off the auto loading. That sounds like it's the most flexible
| > and simple (from a user's point of view at least) to me.
| >
| > Bill
| >
| I think more appropriate syntax for this would be
|
| pkg manual pkgname
| pkg auto pkgname
|
| and then have
|
| ## PKG_ADD: pkg("load","auto");
|
| in pkg.m to load only the packages marked as auto. This makes sense to
| me, who wants to implement it :-)
Maybe if the package is installed in a site-wide directory, pkg should
ask the installer whether the package should be autoloaded for all
users?
jwe
- Autoloading of toolboxes?, David Bateman, 2007/01/29
- Re: Autoloading of toolboxes?, Michael Creel, 2007/01/29
- Re: Autoloading of toolboxes?, Søren Hauberg, 2007/01/29
- Re: Autoloading of toolboxes?, David Bateman, 2007/01/29
- Re: Autoloading of toolboxes?, Bill Denney, 2007/01/29
- Re: Autoloading of toolboxes?, David Bateman, 2007/01/30
- Re: Autoloading of toolboxes?, David Bateman, 2007/01/30
Autoloading of toolboxes?, John W. Eaton, 2007/01/29