Mercurial > emacs
changeset 24284:c8a762e57cf6
(compilation-setup): Set value of
compilation-directory-stack as in compilation-forget-errors.
(compile-reinitialize-errors): Bind buffer-undo-list and deactivate-mark.
(compilation-forget-errors): Likewise.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 08 Feb 1999 23:50:42 +0000 |
parents | 6822ef19292a |
children | 8a8bc81dd902 |
files | lisp/progmodes/compile.el |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/compile.el Mon Feb 08 18:03:22 1999 +0000 +++ b/lisp/progmodes/compile.el Mon Feb 08 23:50:42 1999 +0000 @@ -937,7 +937,8 @@ (set (make-local-variable 'compilation-error-list) nil) (set (make-local-variable 'compilation-old-error-list) nil) (set (make-local-variable 'compilation-parsing-end) 1) - (set (make-local-variable 'compilation-directory-stack) nil) + (set (make-local-variable 'compilation-directory-stack) + (list default-directory)) (setq compilation-last-buffer (current-buffer))) (defvar compilation-shell-minor-mode nil @@ -1260,6 +1261,8 @@ ;; Mouse-Highlight (the first line of) each error message when the ;; mouse pointer moves over it: (let ((inhibit-read-only t) + (buffer-undo-list t) + deactivate-mark (error-list compilation-error-list)) (while error-list (save-excursion @@ -1666,7 +1669,9 @@ compilation-directory-stack (list default-directory) compilation-parsing-end 1) ;; Remove the highlighting added by compile-reinitialize-errors: - (let ((inhibit-read-only t)) + (let ((inhibit-read-only t) + (buffer-undo-list t) + deactivate-mark) (remove-text-properties (point-min) (point-max) '(mouse-face highlight))) )