[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/graphql-mode 033f6a074c 082/122: Don't use temp buffer, as
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/graphql-mode 033f6a074c 082/122: Don't use temp buffer, as it breaks local variables |
Date: |
Sat, 29 Jan 2022 08:03:36 -0500 (EST) |
branch: elpa/graphql-mode
commit 033f6a074c909410f6a329745f77f818f8525536
Author: Artur Malabarba <artur@endlessparentheses.com>
Commit: Artur Malabarba <artur@endlessparentheses.com>
Don't use temp buffer, as it breaks local variables
In the previous implementation, setting `graphql-extra-headers` as a
local variable didn't work because the variable was used inside
`graphql-post-request` which was called inside a temp buffer.
Removing the temp buffer solves this issue.
---
graphql-mode.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/graphql-mode.el b/graphql-mode.el
index c61768903e..5e800ad5b8 100644
--- a/graphql-mode.el
+++ b/graphql-mode.el
@@ -94,8 +94,7 @@ of the variables used in the query."
;; Note that we need to get the value of graphql-url in the current
;; before before we switch to the temporary one.
(let ((url graphql-url))
- (with-temp-buffer
- (graphql-post-request url query operation variables))))
+ (graphql-post-request url query operation variables)))
(declare-function request "request")
(declare-function request-response-data "request")
- [nongnu] elpa/graphql-mode 2326c1fb18 034/122: Merge pull request #7 from eoma/fix-url, (continued)
- [nongnu] elpa/graphql-mode 2326c1fb18 034/122: Merge pull request #7 from eoma/fix-url, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 04e56ae626 053/122: Disable json-mode for response temporarily, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode ab58192967 081/122: Merge pull request #23 from leoliu/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode c643d53a4b 083/122: Don't send operationName when operation is an empty string, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 09a9af6c98 075/122: Merge remote-tracking branch 'origin/master' into next, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode b802f77542 068/122: graphql-send-query: Silence byte-compiler, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 4aebf7afd9 066/122: graphql-post-request: Use URL instead of missing ENDPOINT, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 7c37aee28b 096/122: Open .gql files automatically as well, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 1125c2136d 055/122: extend graphql-current-operation to support 'line' boundary if sexp fail, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 321c1f4b64 095/122: Implement support for loading graphql-configs, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 033f6a074c 082/122: Don't use temp buffer, as it breaks local variables,
ELPA Syncer <=
- [nongnu] elpa/graphql-mode 63cd55ed7d 099/122: Implement abort behaviour, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 7088db7250 091/122: Merge pull request #29 from Prillan/enable-json-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 9bed568ec8 097/122: Add Homepage header, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 4147fbfd97 109/122: Refuse to open g-e-h unless in graphql-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 562d13fc20 101/122: Factor out buffer closing code, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode af9b235e14 103/122: Add content of graphql-extra-headers to buffer, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 3581ad03e0 094/122: Allow *GraphQL* response buffer to be closed with "q" key, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 22361631a1 111/122: Add documentation, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 99850e1012 110/122: Don't clobber contents of existing buffer, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 0e723b962e 107/122: Factor in quitting function, ELPA Syncer, 2022/01/29