File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 33
33
34
34
(define-error 'ghub-graphql-error " GraphQL Error" 'ghub-error )
35
35
36
+ (defvar ghub-graphql-message-progress nil
37
+ " Whether to show \" Fetching page N...\" in echo area during requests.
38
+ By default this information is only shown in the mode-line of the buffer
39
+ from which the request was initiated, and if you kill that buffer, then
40
+ nowhere. That may make it desirable to display the same message in the
41
+ echo area as well." )
42
+
36
43
(defvar ghub-graphql-items-per-request 50
37
44
" Number of GraphQL items to query for entities that return a collection.
38
45
@@ -384,6 +391,9 @@ See Info node `(ghub)GraphQL Support'."
384
391
385
392
(cl-defun ghub--graphql-retrieve (req &optional lineage cursor )
386
393
(let ((p (cl-incf (ghub--graphql-req-pages req))))
394
+ (when ghub-graphql-message-progress
395
+ (let ((message-log-max nil ))
396
+ (message " Fetching page %s ... " p)))
387
397
(when (> p 1 )
388
398
(ghub--graphql-set-mode-line req " Fetching page %s" p)))
389
399
(setf (ghub--graphql-req-query-str req)
You can’t perform that action at this time.
0 commit comments