Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear the compiler notes when beginning load #148

Merged
merged 1 commit into from May 20, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions idris-commands.el
Expand Up @@ -88,7 +88,13 @@
(idris-ensure-process-and-repl-buffer)
(if (buffer-file-name)
(when (idris-current-buffer-dirty-p)
;; Remove warning overlays
(idris-warning-reset-all)
;; Clear the contents of the compiler notes buffer, if it exists
(when (get-buffer idris-notes-buffer-name)
(with-current-buffer idris-notes-buffer-name
(let ((inhibit-read-only t)) (erase-buffer))))
;; Actually do the loading
(let* ((fn (buffer-file-name))
(ipkg-srcdir (idris-ipkg-find-src-dir))
(srcdir (if ipkg-srcdir
Expand Down
5 changes: 1 addition & 4 deletions idris-warnings-tree.el
Expand Up @@ -43,10 +43,7 @@
(setq buffer-read-only nil)
(erase-buffer)
(if (null notes)
(progn
(message "Cannot find any defect!")
(kill-buffer)
nil)
nil
(let ((root (idris-compiler-notes-to-tree notes)))
(idris-tree-insert root "")
(insert "\n")
Expand Down