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

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

[nongnu] elpa/graphql-mode 8e58196e21 023/122: Merge pull request #1 fro


From: ELPA Syncer
Subject: [nongnu] elpa/graphql-mode 8e58196e21 023/122: Merge pull request #1 from syohex/fix-package
Date: Sat, 29 Jan 2022 08:03:30 -0500 (EST)

branch: elpa/graphql-mode
commit 8e58196e2107a8845d580d014795c515be4a1388
Merge: 41df2a3140 ad54fdb48a
Author: David Vázquez Púa <davazp@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #1 from syohex/fix-package
    
    Fix package
---
 graphql-mode.el | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/graphql-mode.el b/graphql-mode.el
index ab72334375..b2185e1374 100644
--- a/graphql-mode.el
+++ b/graphql-mode.el
@@ -1,9 +1,10 @@
-;;; graphql-mode.el --- An Emacs mode for GraphQL         -*- lexical-binding: 
t; -*-
+;;; graphql-mode.el --- Major mode for editing GraphQL schemas        -*- 
lexical-binding: t; -*-
 
 ;; Copyright (C) 2016  David Vazquez Pua
 
 ;; Author: David Vazquez Pua <davazp@gmail.com>
 ;; 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) ?\()))
 
 
@@ -203,6 +206,7 @@ response from the server."
   (setq imenu-generic-expression
         `((nil ,graphql-definition-regex 2))))
 
+;;;###autoload
 (add-to-list 'auto-mode-alist '("\\.graphql\\'" . graphql-mode))
 
 



reply via email to

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