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

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

[nongnu] elpa/graphql-mode 04e56ae626 053/122: Disable json-mode for res


From: ELPA Syncer
Subject: [nongnu] elpa/graphql-mode 04e56ae626 053/122: Disable json-mode for response temporarily
Date: Sat, 29 Jan 2022 08:03:32 -0500 (EST)

branch: elpa/graphql-mode
commit 04e56ae6266d50eb0e18e905a3a10b99a0b7223a
Author: David Vázquez Púa <davazp@gmail.com>
Commit: David Vázquez Púa <davazp@gmail.com>

    Disable json-mode for response temporarily
---
 graphql-mode.el | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/graphql-mode.el b/graphql-mode.el
index b85c0e7e86..27c857e36f 100644
--- a/graphql-mode.el
+++ b/graphql-mode.el
@@ -168,7 +168,14 @@ of the variables used in the query."
          "*GraphQL*" 'display-buffer-pop-up-window nil
          (erase-buffer)
          (when (fboundp 'json-mode)
-           (json-mode))
+           ;; TODO: This line has been disabled temporarily as
+           ;; json-mode does not support enabling the mode for buffers
+           ;; without files at this point:
+           ;;
+           ;; https://github.com/joshwnj/json-mode/issues/55
+           ;;
+           ;; (json-mode)
+           )
          (insert response)
          (json-pretty-print-buffer))))
     ;; If the query was successful, then save the value of graphql-url



reply via email to

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