[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vile] Odd vileserv error

From: J. Chris Coppick
Subject: Re: [vile] Odd vileserv error
Date: Fri, 17 Apr 2015 17:25:05 -0500

In theory, Vileserv will detect if it's already running and do the right thing so you MIGHT be able to do without the '~if &not &rd "$HOME/.vilesock"'...

At least that's what I read in the Vileserv doc but it's unlikely the guy who wrote that knew what the heck he was talking about.  Very, very unlikely.


On Fri, Apr 17, 2015 at 4:47 PM, Brendan O'Dea <address@hidden> wrote:
On 18 April 2015 at 01:41, Chris Green <address@hidden> wrote:
> On Sat, Apr 11, 2015 at 08:48:51PM +1000, Brendan O'Dea wrote:
>> You may have a floating about the place which is requiring
>> Vileserv, because what you have there won't work as-is.

Oh, [following up to myself] I completely forgot that register
configured auto-loading of the last argument...  and I *wrote* that

I still think that there is something missing though, since register
needs to be loaded somehow...

>> So either locate where it is being installed, or you can manually
>> register the hook in your .vilerc in the same way that you are doing
>> with "startserv" and "stopserv".
> Could you expand on that a bit please, I assume I need to to something
> similar to this bit of the above:-
>          perl "Vile::register 'startserv', 'Vileserv::start', \
>             'Start Edit Server', ''"
> So:-
>          perl "Vile::register 'vileserv-writehook', '<but what do I put here?>', \
>             'Vileserve writehook function', ''"
> ... but as it says, what replaces Vileserv::start?

"Vileserv::writehook", although I'd be more inclined to just remove
much of what you have there and just let the module do it.  You should
be able to replace the configuration you included in an earlier
message with the following:

~if &seq $progname "xvile"
    perl "Vile::register 'dir', 'dir', 'Dir Browser', ''"

    ; Add vile edit server
    ~if &not &rd "$HOME/.vilesock"
        perl "use Vileserv" ; starts automatically, stops on exit

Which should be much the same as what you had before, although it
should only run the server if there is not another running (cribbed
from /usr/share/vile/vileperl.rc).

You may also want to replace the "" line with:

  ; Add directory browser
  perl "use directory"


vile mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]