[gnu.emacs] Compilation difficulties

damerell@NSS.CS.UCL.AC.UK (Dr R M Damerell, RHBNC) (04/16/89)

(SUN 3/60, SUN-OS 3.5, Emacs 18.50, Emacstool and (setq sun-esc-bracket t) )

1. Tried to compile an (erroneous) file of Emacs Lisp with  M-X load-file.

I get an error message with nothing to show where in the file the error 
was detected. I feel sure there must be some technique for locating 
syntax errors in files, or it would be impossible to do any serious
programming. I cannot find it in the manual, please could somebody tell
me what it is?

2. Tried to compile a Pascal program (also erroneous) with M-X compile.
The next-error command does not work, I assume that this is because the format
of    pc    error messages differs from that of    cc    , and that
compilation-error-regexp  does not match these.

3. It would be useful to have a command like    compile-this-buffer

which could call the right compiler (and the right error-regexp)

I believe that nearly all our colleagues here (and students) are programmers 
in a very modest way, and tend to work on a basis of one-file-per-program
so we need a compile command that makes just the one file instead of trying
to make everything.

Mark