[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Sep 12 17:25:18 1999 
Subject:Re: xved with vedemacs 
From:Aaron Sloman See text for reply address 
Volume-ID:990912.02 

This is a partial and temporary reply. People who are more
experienced emacs users may wish to provide a more detailed answer.

"John Hawkins" <jshawk@leland.stanford.edu> writes:

> Date: Sat, 11 Sep 1999 20:41:07 -0700
>
> I am incredibly new to poplog, but if I read what I'm seeing correctly, I
> don't see how to effectively use clisp, vedemacs, and xved all at the same
> time.  Can anyone clue me in (understanding that I barely understand ANY of
> what I'm doing with poplog) as to how I can go about setting up xved so that
> it works like emacs and then using that environment to work on clisp code?
>
> I am attempting all this on an install of Redhat 5.2 on a Pentium Pro 180,
> if that matters at all.
>
> cheers,
>
> -John Hawkins
> Stanford University

The following answers the question you asked. It may be that you
asked the wrong question, which is answered under OPTION 2 below.

OPTION 1

Instal poplog according to the instructions, set the environment
variable $usepop and do

    source $usepop/pop/com/poplog

The extends $PATH and sets more environment variables.

Decide where you wish to put your poplog startup scripts, e.g. in
your directory ~/Poplib, and specify that directory in your $poplib
environment variable. E.g.

    setenv poplib ~/Poplib

In that directory create a file called vedinit.p containing
the line

    uses vedemacs

Then whenever you start up Ved/Xved from pop11 or common lisp, etc.
it will use the vedemacs library.

Start Poplog common lisp with XVed enabled thus:

    clisp %x

which is equivalent to

    pop11 +clisp %x

That should start up poplog common lisp with X-based editing facilities
turned on by default, and with an XVed window open containing an empty
file temp.lsp.

Driving the editor can use function keys, or control and escape
sequences. Commands are given on the command line (=status line) above
the edit window.

To get the cursor into the command line, use the ENTER key, (on the
right). If that doesn't work use ^G (CTRL+G). Type the enter command and
end with the RETURN key.

So to discover the available vedemacs editing commands, read the file
$usepop/pop/help/vedemacs, which will be read into XVed if you do this,
ending with the RETURN key

    ENTER help vedemacs RETURN

or
    ^G help vedemacs RETURN

There are many additional VED commands described in

    help vedkeys

($usepop/pop/help/vedkeys)

OPTION 2
If you are a very experienced emacs user and would prefer to run
Poplog common lisp from emacs, then provided that you already have emacs
installed, fetch the "Emacs for poplog users" package from here:

    ftp://ftp.cs.bham.ac.uk/pub/dist/poplog/emacs.tar.gz

Unpack it and read the documentation.

Many Emacs users have found this package acceptable, but it will
very shortly be replaced by a new version.

I am not an Emacs user, so cannot answer more detailed questions: please
post them to comp.lang.pop

NOTE, for both options:
You may prefer to start up poplog without having to set all those
environment variables. Instead fetch the file

    ftp://ftp.cs.bham.ac.uk/pub/dist/poplog/man.tar.gz

and unpack it in the directory $poplocal/local/

It includes a man1 subdirectory with unix man files relating to poplog.

It also contains a bin subdirectory, with a shell script
    man/bin/poplog

Edit it to ensure that environment variables point to the right
directories ($usepop, $poplocal, $poplib).

Copy (or link) that shell script to a bin directory containing
executables, then rehash

Then you should be able to do

    poplog clisp %x

It will start up marginally more slowly than the "clisp %x" because it
has to set environment variables.

Aaron
==
-- 
Aaron Sloman, ( http://www.cs.bham.ac.uk/~axs/ )
School of Computer Science, The University of Birmingham, B15 2TT, UK
EMAIL A.Sloman AT cs.bham.ac.uk   (NB: Anti Spam address)
PAPERS: ftp://ftp.cs.bham.ac.uk/pub/groups/cog_affect/0-INDEX.html