[To reply replace "Aaron.Sloman.XX" with "A.Sloman"]
Over a year ago I posted a message about the problem of syntactic error
messages (i.e. compile-time error messages) being displayed on the
status line rather than in an output buffer, when compiling from a Ved
buffer.
I offered a redefined version of vederror to overcome this:
=======================================================================
define vederror(string);
edit('output.p');
vedendfile();
if vedusewindows and wved_is_live_window(wvedwindow) then
;;; make sure error message file is visible,
;;; de-iconising if necessary
wved_open_window(wvedwindow)
endif;
dlocal
cucharout = vedcharinsert,
cucharerr = vedcharinsert,
vedbreak;
true -> vedbreak;
mishap(string, []);
enddefine;
=======================================================================
I have now produced a new library file LIB newvederror, which is
available here
http://www.cs.bham.ac.uk/research/poplog/lib/newvederror.p
and includes the following code:
=======================================================================
;;; Save old version of vederror
global constant oldvederror = vederror;
define vars vederror(string);
if iscaller(ved_lmr) then
;;; compiling from marked range,
;;; so put mishap message in output file.
if vedlmr_print_in_file then
;;; redirect output to that file
vedlmr_print_in_file -> ved_chario_file
endif;
printf('\n;;; MISHAP %p\n', [^string]);
vedscreenbell();
vedscr_flush_output();
else
oldvederror(string)
endif;
enddefine;
global vars newvederror = vederror;
=======================================================================
I am thinking of changing the system version of vederror to act like
this.
This new version is included in the file I have prepared for people who
want linux poplog configured as we have it here in Birmingham.
(As announced about two weeks ago).
See
http://www.cs.bham.ac.uk/research/poplog/linux-cd/
This contains a short text file and a 21 Mbyte gzipped tar file, with
linux poplog (for use with motif) has been packaged with various other
things for our students.
It now includes a much simplified installation script.
Comments welcome.
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 (ReadATas@please !)
PAPERS: http://www.cs.bham.ac.uk/research/cogaff/ (And free book on Philosophy of AI)
FREE TOOLS: http://www.cs.bham.ac.uk/research/poplog/freepoplog.html
|