branch: elpa/graphql-mode
commit dec32e6441e7e78175ca6f3b0a3255c4fe2540b7
Author: Syohei YOSHIDA <[email protected]>
Commit: Syohei YOSHIDA <[email protected]>
Fix package dependencies
- Set minimum Emacs version for using setq-local
- Add json-mode
---
graphql-mode.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/graphql-mode.el b/graphql-mode.el
index 7484b40536..900498595f 100644
--- a/graphql-mode.el
+++ b/graphql-mode.el
@@ -4,6 +4,7 @@
;; Author: David Vazquez Pua <[email protected]>
;; Keywords: languages
+;; Package-Requires: ((emacs "24.3") (json-mode "1.7.0"))
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -27,6 +28,8 @@
(require 'newcomment)
(require 'json)
(require 'url)
+(require 'json-mode)
+(require 'cl-lib)
(defvar graphql-url
nil)
@@ -127,7 +130,7 @@ response from the server."
;;; Check if the point is in an argument list.
(defun graphql--in-arguments-p ()
- (let ((opening (second (syntax-ppss))))
+ (let ((opening (cl-second (syntax-ppss))))
(eql (char-after opening) ?\()))