[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Nov 10 08:35:02 1994 
Subject:Re: turning vedmessage off (msg from Luc Beaudoin) 
From:"A.Sloman" 
Volume-ID:941111.02 

> It would be in my best interest, sometimes, to turn vedmessage off.

Luc, I am not sure what you are trying to do . Here's the REF file entry
for vedmessage:

vedmessage -> string                                          [variable]
string -> vedmessage
        The string holding  the message  to be displayed  on the  status
        line. Once displayed, this  string is reset  to ''. When  empty,
        the name of the file is displayed instead.

Note that you can't assign false to it. It must have a string value.

Are you saying you don't want anything displayed on the status
line? (e.g. EDITING: <filename>)?

Under what conditions? Is this while you are actually typing into VED,
or is it while a program is running?

If it is while a program is running, try
	vedputmessage(nullstring);

Otherwise you could try using vedprocesstrap, as described in REF VEDPROCS

vedprocess()                                                 [procedure]
        Repeatedly reads  in and  processes  characters from  the  user,
        using vedprocesschar. It calls vedprocesstrap before reading  in
        each key-sequence. .....

vedprocesstrap()                                    [procedure variable]
        User-assignable   procedure-typed   variable   (default    value
        identfn), called once each time  around the Ved top level  loop,
        just before the call of vedprocesschar in vedprocess, i.e.  once
        per key  or escape  sequence. It  can be  used, for  example  to
        examine  ved_last_char   the   last   character   read   in   by
        vedprocesschar.

If you assign nullstring to vedmessage then that is used by VED as an
excuse to display the file name. So you can assign a string containing
just a space, e.g.

define vedprocesstrap();
	'\s' -> vedmessage;
enddefine;

Alternatively, or more simply, make vednamestring empty (see REF VEDVARS)

nullstring -> vednamestring;

That will cause the message for the file to be empty until you next
change files. If you wish it to be empty for all files, define your
procedure vedinitfile so as to do that assignment.

Warning. If you mess up vedprocesstrap you may be unable to use VED.
In that case type CTRL-Y or whatever your "quit" control character is
(not the ordinary interrupt). Wait a second and you will get a setpop.
Then, outside VED do

	identfn -> vedprocesstrap

I hope that helps.

Aaron
PS
Things may be different in XVed. I hope not.