HELP YANKSTUFF                                 Ben Rubinstein April 1986

This file assumes you are familiar with the selection and 'stuffing' of
text in a "Shelltool" on the Sun workstations (see MAN SUNTOOLS), and
that you know about marking a range of text (see HELP * MARK).

The "stuff" command on the Shelltool's "tty" menu is a very useful way
of editing commands to an application.  When used with VED, however,
there are three problems: firstly that Shelltool uses a line-feed
character to separate lines, and using "stuff" to insert a range into a
vedfile can therefore mess up over lines that are already present; and
secondly that VED does not display text in the first column of a file,
and so using the mouse-cursor method of selecting text may pick up
either an extra space at the beginning of each line, or possibly a
character that VED was using to indicate the marked range.  The third
problem is similar: VED does not display all of long lines, but only as
much as will fit in the width of the screen; thus selecting with the
mouse will miss the ends of long lines.

There are two procedures to help overcome these problems.

    <ENTER> yankstuff

reads characters in from the Suntools stuff buffer, and inserts them
into the file.  It takes care of converting line-feeds to carriage
returns.  Its effect is the same as doing <ENTER> yank, if the text that
in the stuff buffer were in VED's marked-range buffer.  That is, the
inserted text appears on lines starting below the line on which the
cursor was when the command was given.

    <ENTER> stuffmr

copies the marked range into the Suntools stuff buffer, avoiding the
first column, and 'stuffing' the whole of each line, regardless of
whether or not it fits in the screen.

NOTE: Both these procedures will ONLY work if the POPLOG process is
running on the Sun that you are working at.  Their actions if invoked
when running Poplog on a computer on which you are remotely logged in
are not predicted.


--- C.sun/help/yankstuff -----------------------------------------------
--- Copyright University of Sussex 1986. All rights reserved. ----------
