Skip to content

Commit

Permalink
Emacs: Do not hide the notes buffer when jumping to an error location.
Browse files Browse the repository at this point in the history
  • Loading branch information
nominolo committed Mar 8, 2009
1 parent 040869c commit 94f8159
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion emacs/scion.el
Expand Up @@ -1763,7 +1763,13 @@ The overlay has several properties:
(defun scion-goto-source-location (loc)
(let ((file (scion-note.filename loc)))
(when file
(find-file file)
(let ((buff (find-buffer-visiting file)))
(if buff
(let ((buff-window (get-buffer-window buff)))
(if buff-window
(select-window buff-window)
(display-buffer buff)))
(find-file-other-window file)))
(goto-line (scion-note.line loc)))))

(defun scion-list-compiler-notes (notes)
Expand Down

0 comments on commit 94f8159

Please sign in to comment.