From ed2b25ff4eccd90066facef820a0b1a95df20371 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Sun, 22 Dec 2024 13:03:09 +0100 Subject: [PATCH] updaet graphql-mode Signed-off-by: Andreas Gerler --- .../graphql-mode-pkg.el | 2 -- .../graphql-mode-autoloads.el | 34 +++++++++++++++++++ .../graphql-mode-pkg.el | 10 ++++++ .../graphql-mode.el | 27 ++++++++------- 4 files changed, 59 insertions(+), 14 deletions(-) delete mode 100644 elpa/graphql-mode-20230411.1943/graphql-mode-pkg.el create mode 100644 elpa/graphql-mode-20240218.1603/graphql-mode-autoloads.el create mode 100644 elpa/graphql-mode-20240218.1603/graphql-mode-pkg.el rename elpa/{graphql-mode-20230411.1943 => graphql-mode-20240218.1603}/graphql-mode.el (96%) diff --git a/elpa/graphql-mode-20230411.1943/graphql-mode-pkg.el b/elpa/graphql-mode-20230411.1943/graphql-mode-pkg.el deleted file mode 100644 index 5a5a6eca..00000000 --- a/elpa/graphql-mode-20230411.1943/graphql-mode-pkg.el +++ /dev/null @@ -1,2 +0,0 @@ -;;; Generated package description from graphql-mode.el -*- no-byte-compile: t -*- -(define-package "graphql-mode" "20230411.1943" "Major mode for editing GraphQL schemas" '((emacs "24.3")) :commit "0ad4ae0160cabad46109dfbb394297a185eb2525" :authors '(("David Vazquez Pua" . "davazp@gmail.com")) :maintainers '(("David Vazquez Pua" . "davazp@gmail.com")) :maintainer '("David Vazquez Pua" . "davazp@gmail.com") :keywords '("languages") :url "https://github.com/davazp/graphql-mode") diff --git a/elpa/graphql-mode-20240218.1603/graphql-mode-autoloads.el b/elpa/graphql-mode-20240218.1603/graphql-mode-autoloads.el new file mode 100644 index 00000000..e31d1040 --- /dev/null +++ b/elpa/graphql-mode-20240218.1603/graphql-mode-autoloads.el @@ -0,0 +1,34 @@ +;;; graphql-mode-autoloads.el --- automatically extracted autoloads (do not edit) -*- lexical-binding: t -*- +;; Generated by the `loaddefs-generate' function. + +;; This file is part of GNU Emacs. + +;;; Code: + +(add-to-list 'load-path (or (and load-file-name (directory-file-name (file-name-directory load-file-name))) (car load-path))) + + + +;;; Generated autoloads from graphql-mode.el + +(autoload 'graphql-mode "graphql-mode" "\ +A major mode to edit GraphQL schemas. + +(fn)" t) +(add-to-list 'auto-mode-alist '("\\.graphql\\'" . graphql-mode)) +(add-to-list 'auto-mode-alist '("\\.gql\\'" . graphql-mode)) +(register-definition-prefixes "graphql-mode" '("graphql-")) + +;;; End of scraped data + +(provide 'graphql-mode-autoloads) + +;; Local Variables: +;; version-control: never +;; no-byte-compile: t +;; no-update-autoloads: t +;; no-native-compile: t +;; coding: utf-8-emacs-unix +;; End: + +;;; graphql-mode-autoloads.el ends here diff --git a/elpa/graphql-mode-20240218.1603/graphql-mode-pkg.el b/elpa/graphql-mode-20240218.1603/graphql-mode-pkg.el new file mode 100644 index 00000000..30fc5de3 --- /dev/null +++ b/elpa/graphql-mode-20240218.1603/graphql-mode-pkg.el @@ -0,0 +1,10 @@ +;; -*- no-byte-compile: t; lexical-binding: nil -*- +(define-package "graphql-mode" "20240218.1603" + "Major mode for editing GraphQL schemas." + '((emacs "25.1")) + :url "https://github.com/davazp/graphql-mode" + :commit "2183895ea7932359586c4bb99e8562c4aef3aaf7" + :revdesc "2183895ea793" + :keywords '("languages") + :authors '(("David Vazquez Pua" . "davazp@gmail.com")) + :maintainers '(("David Vazquez Pua" . "davazp@gmail.com"))) diff --git a/elpa/graphql-mode-20230411.1943/graphql-mode.el b/elpa/graphql-mode-20240218.1603/graphql-mode.el similarity index 96% rename from elpa/graphql-mode-20230411.1943/graphql-mode.el rename to elpa/graphql-mode-20240218.1603/graphql-mode.el index b7793218..3cd85837 100644 --- a/elpa/graphql-mode-20230411.1943/graphql-mode.el +++ b/elpa/graphql-mode-20240218.1603/graphql-mode.el @@ -4,11 +4,10 @@ ;; Author: David Vazquez Pua ;; Keywords: languages -;; Package-Version: 20230411.1943 -;; Package-Commit: 0ad4ae0160cabad46109dfbb394297a185eb2525 -;; Package-Requires: ((emacs "24.3")) +;; Package-Requires: ((emacs "25.1")) ;; Homepage: https://github.com/davazp/graphql-mode -;; Version: 1.0.0 +;; Package-Version: 20240218.1603 +;; Package-Revision: 2183895ea793 ;; 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 @@ -75,7 +74,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) @@ -227,11 +226,15 @@ Please install it and try again.")) (define-key map (kbd "q") 'quit-window) map)) -(defun graphql-send-query () - "Send the current GraphQL query/mutation/subscription to server." - (interactive) - (let* ((url (or graphql-url (read-string "GraphQL URL: " ))) - (var (or graphql-variables-file (read-file-name "GraphQL Variables: ")))) +(defun graphql-send-query (&optional prompt) + "Send the current GraphQL query/mutation/subscription to server. +With \\[universal-argument] PROMPT, prompt for +`graphql-url'/`graphql-variables-file'." + (interactive "P") + (let* ((url (or (and (not prompt) graphql-url) + (read-string "GraphQL URL: " graphql-url))) + (var (or (and (not prompt) graphql-variables-file) + (read-file-name "GraphQL Variables: " nil graphql-variables-file)))) (let ((graphql-url url) (graphql-variables-file var)) @@ -320,7 +323,7 @@ Please install it and try again.")) (setq column (current-column))) (save-excursion - (let ((level (car (syntax-ppss (point-at-bol))))) + (let ((level (car (syntax-ppss (line-beginning-position))))) ;; Handle closing pairs (when (looking-at "\\s-*\\s)") @@ -439,7 +442,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) "*")) -- 2.47.3