emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/graphql-mode 0e723b962e 107/122: Factor in quitting functi


From: ELPA Syncer
Subject: [nongnu] elpa/graphql-mode 0e723b962e 107/122: Factor in quitting function
Date: Sat, 29 Jan 2022 08:03:39 -0500 (EST)

branch: elpa/graphql-mode
commit 0e723b962ea98f2a56f10ae3c0a183771ee09c1d
Author: Aleksandar Dimitrov <git@aleks.bg>
Commit: Aleksandar Dimitrov <git@aleks.bg>

    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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]