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

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

[nongnu] elpa/graphql-mode 49a391b529 4/4: Merge pull request #57 from n


From: ELPA Syncer
Subject: [nongnu] elpa/graphql-mode 49a391b529 4/4: Merge pull request #57 from nverno/fix-allow-graphql-ts-mode
Date: Sat, 23 Sep 2023 10:01:17 -0400 (EDT)

branch: elpa/graphql-mode
commit 49a391b5290e3354b07f7b77ded97a154c084f46
Merge: c702483562 3d53176dc7
Author: David Vázquez Púa <davazp@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #57 from nverno/fix-allow-graphql-ts-mode
    
    fix: allow edit headers in graphql-ts-mode
---
 graphql-mode.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/graphql-mode.el b/graphql-mode.el
index 9276f8f5d5..27b7a6558b 100644
--- a/graphql-mode.el
+++ b/graphql-mode.el
@@ -4,7 +4,7 @@
 
 ;; Author: David Vazquez Pua <davazp@gmail.com>
 ;; Keywords: languages
-;; Package-Requires: ((emacs "24.3"))
+;; Package-Requires: ((emacs "25.1"))
 ;; Homepage: https://github.com/davazp/graphql-mode
 ;; Version: 1.0.0
 
@@ -73,7 +73,7 @@
 (defcustom graphql-extra-headers '()
   "Headers to send to the graphql endpoint."
   :tag "GraphQL"
-  :type 'list
+  :type '(repeat sexp)
   :group 'graphql)
 
 (defun graphql-locate-config (dir)
@@ -441,7 +441,7 @@ Open a buffer to edit `graphql-extra-headers'.  The 
contents of this
 buffer take precedence over the setting in `graphql-extra-headers'
 when sending a request."
   (interactive)
-  (unless (equal major-mode 'graphql-mode)
+  (unless (memq major-mode '(graphql-mode graphql-ts-mode))
     (error "Not in graphql-mode, cannot edit headers"))
   (let ((extra-headers-buffer-name
          (concat "*Graphql Headers for " (buffer-name) "*"))



reply via email to

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