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

prevent the 'Buffer modified, kill anyway?' prompt when closing the frame with C-c C-c #99

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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: 4 additions & 3 deletions emacs-everywhere.el
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,10 @@ Never paste content when ABORT is non-nil."
(apply #'call-process (car emacs-everywhere-paste-command)
nil nil nil (cdr emacs-everywhere-paste-command)))))
;; Clean up after ourselves in case the buffer survives `server-buffer-done'
;; (b/c `server-existing-buffer' is non-nil).
(emacs-everywhere-mode -1)
(server-buffer-done (current-buffer))))
(set-buffer-modified-p nil)
(let ((kill-buffer-query-functions nil))
(emacs-everywhere-mode -1)
(server-buffer-done (current-buffer)))))

(defun emacs-everywhere-abort ()
"Abort current emacs-everywhere session."
Expand Down