aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJuri Linkov2005-04-07 15:15:38 +0000
committerJuri Linkov2005-04-07 15:15:38 +0000
commit6a1cdc5bee322596240622770180e642ac28a34f (patch)
tree810d751746b89e4e58111b96ba931d5c9b83053b /lisp
parent9c9b00d67f955c2077bf32781cdab7b15ec6c76b (diff)
downloademacs-6a1cdc5bee322596240622770180e642ac28a34f.tar.gz
emacs-6a1cdc5bee322596240622770180e642ac28a34f.zip
(compilation-setup):
Set `next-error-overlay-arrow-position' to nil. Also set it to nil in the local hook `kill-buffer-hook'. Make local variable `overlay-arrow-string' and set it to "=>". (compilation-goto-locus): Set BOL position to `next-error-overlay-arrow-position' instead of `overlay-arrow-position'.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/compile.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index bafc901d3d1..bcff4d2f70d 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -1233,6 +1233,10 @@ Optional argument MINOR indicates this is called from
1233 (make-local-variable 'compilation-messages-start) 1233 (make-local-variable 'compilation-messages-start)
1234 (make-local-variable 'compilation-error-screen-columns) 1234 (make-local-variable 'compilation-error-screen-columns)
1235 (make-local-variable 'overlay-arrow-position) 1235 (make-local-variable 'overlay-arrow-position)
1236 (set (make-local-variable 'overlay-arrow-string) "=>")
1237 (setq next-error-overlay-arrow-position nil)
1238 (add-hook 'kill-buffer-hook
1239 (lambda () (setq next-error-overlay-arrow-position nil)) nil t)
1236 ;; Note that compilation-next-error-function is for interfacing 1240 ;; Note that compilation-next-error-function is for interfacing
1237 ;; with the next-error function in simple.el, and it's only 1241 ;; with the next-error function in simple.el, and it's only
1238 ;; coincidentally named similarly to compilation-next-error. 1242 ;; coincidentally named similarly to compilation-next-error.
@@ -1641,8 +1645,9 @@ and overlay is highlighted between MK and END-MK."
1641 (numberp next-error-highlight))) 1645 (numberp next-error-highlight)))
1642 (delete-overlay compilation-highlight-overlay)))))) 1646 (delete-overlay compilation-highlight-overlay))))))
1643 (when (and (eq next-error-highlight 'fringe-arrow)) 1647 (when (and (eq next-error-highlight 'fringe-arrow))
1644 (set (make-local-variable 'overlay-arrow-position) 1648 (setq next-error-overlay-arrow-position
1645 (copy-marker (line-beginning-position)))))) 1649 (copy-marker (line-beginning-position))))))
1650
1646 1651
1647(defun compilation-find-file (marker filename dir &rest formats) 1652(defun compilation-find-file (marker filename dir &rest formats)
1648 "Find a buffer for file FILENAME. 1653 "Find a buffer for file FILENAME.