Re: Patch for autoload.v3 to allow export of function

2017-08-17 Thread Matthew Persico
It has finally occurred to me after 24 hours that attachments are pretty useless in this forum. I will repost this evening with the contents in the mail body. And, since this is not longer a patch but really a rerwite, I'll use a fresh thread. On Wed, Aug 16, 2017 at 1:56 AM, Matthew Persico wrot

Re: Patch for autoload.v3 to allow export of function

2017-08-15 Thread Matthew Persico
Please see the attached 'autoload.v4' and 'autoload.v4.t'. On Mon, Aug 14, 2017 at 10:30 AM, Chet Ramey wrote: > On 8/11/17 6:55 PM, Matthew Persico wrote: > > > What I propose to do between steps 2 and 3 is > > > > 2.1 - After sourcing the function in, type the function to get its text > > 2.2

Re: Patch for autoload.v3 to allow export of function

2017-08-14 Thread Chet Ramey
On 8/11/17 6:55 PM, Matthew Persico wrote: > What I propose to do between steps 2 and 3 is > > 2.1 - After sourcing the function in, type the function to get its text > 2.2 - type appears to pretty print function code. No matter how sloppy or > compact your function is on disk, type presents it t

Re: Patch for autoload.v3 to allow export of function

2017-08-11 Thread Matthew Persico
You'll notice from the dates on this chain that it has been a while that I have been working on this. There are a number of reasons (like having to work at my $job), but one of those reasons is a design one. If you look at the code, there seven functions. Of those, only three are used to implement

Re: Patch for autoload.v3 to allow export of function

2017-07-02 Thread Chet Ramey
On 7/1/17 5:50 PM, Matthew Persico wrote: > Greetings! > > I have finally gotten around to working on autoload again to ensure that > there are no issues. But I have a question about the _AUTOLOADS array, > which is used to track what has been autoloaded and is the source of > information for the

Re: Patch for autoload.v3 to allow export of function

2017-07-01 Thread Matthew Persico
Greetings! I have finally gotten around to working on autoload again to ensure that there are no issues. But I have a question about the _AUTOLOADS array, which is used to track what has been autoloaded and is the source of information for the -p command. The code executes a linear scan of the ar

Re: Patch for autoload.v3 to allow export of function

2017-02-08 Thread Eduardo Bustamante
On Wed, Feb 8, 2017 at 11:27 AM, Matthew Persico wrote: [...] > > Where should it be discussed and how does one format and submit a patch > (fork, clone, pull request or patch submission on the savanah site or > something else)? Hi Matthew, you can send patches to this list, or to Chet Ramey. You