branch: elpa/graphql-mode
commit 0e723b962ea98f2a56f10ae3c0a183771ee09c1d
Author: Aleksandar Dimitrov <[email protected]>
Commit: Aleksandar Dimitrov <[email protected]>
Factor in quitting function
Too trivial to factor out
---
graphql-mode.el | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/graphql-mode.el b/graphql-mode.el
index 68372c9d16..33a913a59a 100644
--- a/graphql-mode.el
+++ b/graphql-mode.el
@@ -413,22 +413,18 @@ when sending a request."
"Non-nil when current buffer is a header editing buffer."
(bound-and-true-p graphql-edit-headers-mode))
-(defun graphql-edit-headers--kill-pop-up-buffer ()
- "Kill transient buffer and restore window configuration."
- (quit-window 'kill-buffer))
-
(defun graphql-edit-headers-accept ()
"Accept buffer contents and write to `graphql-extra-headers'."
(interactive)
(unless (graphql-edit-headers-buffer-p) (error "Not in a GraphQL headers
buffer"))
(setq graphql-extra-headers (json-read-from-string (buffer-string)))
- (graphql-edit-headers--kill-pop-up-buffer))
+ (quit-window 'kill-buffer))
(defun graphql-edit-headers-abort ()
"Kill current headers buffer and return to graphql file."
(interactive)
(unless (graphql-edit-headers-buffer-p) (error "Not in a GraphQL headers
buffer"))
- (graphql-edit-headers--kill-pop-up-buffer))
+ (quit-window 'kill-buffer))
(define-minor-mode graphql-edit-headers-mode
"Minor mode for editing graphql extra headers.