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

Emacs: reset configuration in all buffers when stopping the merlin server #1004

Merged
merged 1 commit into from
Sep 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions emacs/merlin.el
Original file line number Diff line number Diff line change
Expand Up @@ -571,8 +571,11 @@ return (LOC1 . LOC2)."
(unless merlin-mode (message "Buffer is not managed by merlin."))
(when merlin-mode
(merlin--call-merlin "stop-server")
(setq merlin-erroneous-buffer nil)
(setq merlin-buffer-configuration nil)))
;; These are buffer-local variables, so reset them in all buffers.
(dolist (buf (buffer-list))
(with-current-buffer buf
(kill-local-variable 'merlin-buffer-configurationn)
rgrinberg marked this conversation as resolved.
Show resolved Hide resolved
(kill-local-variable 'merlin-erroneous-buffer)))))

;;;;;;;;;;;;;;;;;;;;
;; FILE SWITCHING ;;
Expand Down