Mercurial > emacs
comparison lisp/progmodes/compile.el @ 732:a8d94735277e
*** empty log message ***
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Tue, 30 Jun 1992 13:54:21 +0000 |
parents | 540b047ece4d |
children | b39d858a0b19 |
comparison
equal
deleted
inserted
replaced
731:5c6db33a9ef6 | 732:a8d94735277e |
---|---|
270 ;; Pop up the compilation buffer. | 270 ;; Pop up the compilation buffer. |
271 (setq outwin (display-buffer outbuf)) | 271 (setq outwin (display-buffer outbuf)) |
272 (set-buffer outbuf) | 272 (set-buffer outbuf) |
273 (compilation-mode) | 273 (compilation-mode) |
274 (buffer-disable-undo (current-buffer)) | 274 (buffer-disable-undo (current-buffer)) |
275 (setq buffer-read-only t) | |
275 (set (make-local-variable 'compilation-parse-errors-function) parser) | 276 (set (make-local-variable 'compilation-parse-errors-function) parser) |
276 (set (make-local-variable 'compilation-error-message) error-message) | 277 (set (make-local-variable 'compilation-error-message) error-message) |
277 (set (make-local-variable 'compilation-error-regexp-alist) regexp-alist) | 278 (set (make-local-variable 'compilation-error-regexp-alist) regexp-alist) |
278 (setq default-directory thisdir | 279 (setq default-directory thisdir |
279 compilation-directory-stack (list default-directory)) | 280 compilation-directory-stack (list default-directory)) |
341 (unwind-protect | 342 (unwind-protect |
342 (progn | 343 (progn |
343 ;; Write something in the compilation buffer | 344 ;; Write something in the compilation buffer |
344 ;; and hack its mode line. | 345 ;; and hack its mode line. |
345 (set-buffer buffer) | 346 (set-buffer buffer) |
347 (setq buffer-read-only nil) | |
346 (setq omax (point-max) | 348 (setq omax (point-max) |
347 opoint (point)) | 349 opoint (point)) |
348 (goto-char omax) | 350 (goto-char omax) |
349 ;; Record where we put the message, so we can ignore it | 351 ;; Record where we put the message, so we can ignore it |
350 ;; later on. | 352 ;; later on. |
358 ;; Since the buffer and mode line will show that the | 360 ;; Since the buffer and mode line will show that the |
359 ;; process is dead, we can delete it now. Otherwise it | 361 ;; process is dead, we can delete it now. Otherwise it |
360 ;; will stay around until M-x list-processes. | 362 ;; will stay around until M-x list-processes. |
361 (delete-process proc)) | 363 (delete-process proc)) |
362 ;; Force mode line redisplay soon. | 364 ;; Force mode line redisplay soon. |
363 (set-buffer-modified-p (buffer-modified-p))) | 365 (set-buffer-modified-p (buffer-modified-p)) |
366 (setq buffer-read-only t)) | |
364 (if (and opoint (< opoint omax)) | 367 (if (and opoint (< opoint omax)) |
365 (goto-char opoint)) | 368 (goto-char opoint)) |
366 (set-buffer obuf) | 369 (set-buffer obuf) |
367 (if compilation-finish-function | 370 (if compilation-finish-function |
368 (funcall compilation-finish-function buffer msg)) | 371 (funcall compilation-finish-function buffer msg)) |