> > I would suggest: > > (add-hook 'perl-mode-hook > (lambda () > (set (make-local-variable 'compile-command) > (format "perl %s" > (file-name-nondirectory buffer-file-name))))) > ` > and then `M-x compile', which gives you a *compilation* buffer whose > error messges you can navigate (instead of a *Shell Command Output* > buffer). >
I can't see any difference in the work of `M-x compile' if I use (add-hook 'perl-mode-hook (lambda () (set (make-local-variable 'compile-command) (format "perl %s" (file-name-nondirectory buffer-file-name))))) (I've wrote it in a file and have loaded it with 'load-file'). In both cases (with and without it) after using `M-x compile' emacs suggests 'make -k' and behaves in the same way. _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs