Jonathan wrote
> has anyone noticed that
> ENTER w1 foo
> writes the current vedbuffer to disk under its current name (ignoring foo)
> whereas
> ENTER w foo
> writes the current vedbuffer with the name foo, and
> ENTER w
> writes ALL vedbuffers with their current names.
>
> Wouldn't it be more consistent if the w1 command took the optional filename
> argument, and the w command reported an error if given an optional argument?
This is probably my fault. I seem to recall that originally (in the
version of VED produced by Steve Hardy, before I took it over) there
was only ved_w, which wrote everything. Then we realised you'd sometimes
want to write the current buffer to a new file, and
ENTER w foo
was added as an option. Then people dealing with multiple files and slow
disks (in those days on a VAX running VMS) decided they would sometimes
like to write only the current file, and
ENTER w1
was added (probably by me).
That was probably in 1980, or 1981. It can sometimes take about 13 years
for an obvious silliness to be noticed!!!
Cheers.
Aaron
PS
You can redefine these for yourself if you wish, by saving the old
values of ved_w and ved_w1, cancelling them (to prevent things that
already use the old values being screwed up), and then defining new ones
in terms of the old values.
|