[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gtags-mode b18a7cb93d 46/61: Fix docs, info messages an
From: |
ELPA Syncer |
Subject: |
[elpa] externals/gtags-mode b18a7cb93d 46/61: Fix docs, info messages and use `(, |
Date: |
Thu, 28 Apr 2022 10:57:41 -0400 (EDT) |
branch: externals/gtags-mode
commit b18a7cb93ded1d47552ac060ee73c68b418f720d
Author: Jimmy Aguilar Mena <kratsbinovish@gmail.com>
Commit: Jimmy Aguilar Mena <kratsbinovish@gmail.com>
Fix docs, info messages and use `(,
---
gtags-mode.el | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/gtags-mode.el b/gtags-mode.el
index 34a75be468..7dcf906feb 100644
--- a/gtags-mode.el
+++ b/gtags-mode.el
@@ -105,7 +105,7 @@ This is the sentinel set in `gtags-mode--exec-async'."
(kill-buffer temp-buffer))
(with-current-buffer temp-buffer ;; else print error
(while (accept-process-output process))
- (message "Global error output:\n%s" (buffer-string))))
+ (message "Global async error output:\n%s" (buffer-string))))
(when (buffer-live-p parent-buffer) ;; Always clear the cache
(with-current-buffer parent-buffer
(plist-put gtags-mode--plist :cache nil)))
@@ -115,15 +115,15 @@ This is the sentinel set in `gtags-mode--exec-async'."
(defsubst gtags-mode--quote (args symbol)
"Pre-process ARGS and quote SYMBOL."
(append args (and (stringp symbol) (not (string-blank-p symbol))
- (list (shell-quote-argument symbol)))))
+ `(,(shell-quote-argument symbol)))))
(defun gtags-mode--exec-async (cmd args &optional target)
- "Run CMD with ARGS asynchronously and set SENTINEL to process.
+ "Run CMD with ARGS on TARGET asynchronously.
Start an asynchronous process and sets
`gtags-mode--exec-async-sentinel' as the process sentinel.
Returns the process object."
(when cmd
- (let* ((command (append `(,cmd) (gtags-mode--quote args target)))
+ (let* ((command (gtags-mode--quote (append `(,cmd) args) target))
(pr (make-process :name (format "%s-async" cmd)
:buffer (generate-new-buffer " *temp*" t)
:command command
@@ -134,9 +134,9 @@ Returns the process object."
pr)))
(defun gtags-mode--exec-sync (args &optional target)
- "Run global with ARGS synchronously.
+ "Run global with ARGS on TARGET synchronously.
On success return a list of strings or nil if any error occurred."
- (when-let ((global gtags-mode--global)
+ (when-let ((global gtags-mode--global) ;; Required for with-temp-buffer
(cargs (gtags-mode--quote args target)))
(with-temp-buffer
(let ((status (apply #'process-file global nil (current-buffer) nil
cargs)))
@@ -144,7 +144,7 @@ On success return a list of strings or nil if any error
occurred."
(string-lines (string-trim (buffer-substring-no-properties
(point-min)
(point-max))) t)
- (message "Global error output:\n%s" (buffer-string))
+ (message "Global sync error output:\n%s" (buffer-string))
(message "Sync global %s: exited abnormally with code %s" cargs
status)
nil)))))
@@ -164,7 +164,7 @@ On success return a list of strings or nil if any error
occurred."
(when-let* ((root (car (gtags-mode--exec-sync '("--print-dbpath")))))
(setq root (concat (file-remote-p default-directory) (file-truename root)))
(or (gtags-mode--get-plist root) ;; already exist
- (car (push (list :gtagsroot root :cache nil) gtags-mode--alist)))))
+ (car (push `(:gtagsroot ,root :cache nil) gtags-mode--alist)))))
(defun gtags-mode--list-completions (prefix)
"Get the list of completions for PREFIX.
@@ -184,7 +184,7 @@ completions usually from the cache when possible."
(and-let* ((bname (buffer-local-value 'buffer-file-name buf))
(tname (file-truename bname))
((string-prefix-p root tname))
- ((list buf)))))
+ (`(,buf)))))
(buffer-list))))
(defun gtags-mode--filter-find-symbol (args symbol creator)
@@ -224,7 +224,7 @@ name, code, file, line."
(when (and buffer-file-name (plist-get gtags-mode--plist :gtagsroot))
(gtags-mode--exec-async
gtags-mode--global
- (list "--single-update" (file-name-nondirectory buffer-file-name)))))
+ `("--single-update" ,(file-name-nondirectory buffer-file-name)))))
(defun gtags-mode--find-file-hook ()
"Try to enable `gtags' when opening a file.
@@ -301,7 +301,7 @@ Return as a list of xref location objects."
(gtags-mode--exec-sync
'("--path-style=absolute" "--path")
(string-remove-prefix root tdir)))))
- (or dirs (list root)))))
+ (or dirs `(,root)))))
(if (> (length dirs) 1) (delete-dups results) results)))
(cl-defmethod project-buffers ((project (head :gtagsroot)))
- [elpa] externals/gtags-mode c88225e3f1 02/61: Add Readme.md, (continued)
- [elpa] externals/gtags-mode c88225e3f1 02/61: Add Readme.md, ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 9763f8fb69 03/61: Add async processes to create and update database cleanly., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode f4bda60a1a 06/61: Fix global-xref--set-connection-locals., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 82b7f79aff 08/61: Simplify code., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 45fdfac932 09/61: Simplify imenu again., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 8734f6b54d 48/61: Reorder, ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 10a710a3dd 54/61: Fix and simplify, ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 86777df9a3 50/61: Call gtags-mode--set-connection-locals before processes, ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode ae397208b5 32/61: Finish rename process., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode c1bbe60f19 30/61: Simplify code:, ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode b18a7cb93d 46/61: Fix docs, info messages and use `(,,
ELPA Syncer <=
- [elpa] externals/gtags-mode 3d7bf179bb 29/61: Use make-process instead of start-file-process., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode dc50f340d4 12/61: Small fixes in documentation and other details., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 5525174de9 34/61: Many changes:, ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 317ed00754 61/61: Assert we retun nil on error, ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 7dc81cbae2 56/61: Small simplifies, ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 5445a63b79 21/61: Small fixes., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 33938b17e7 41/61: New function, ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode d1195ca318 40/61: Use memoization function, ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 65c2da145a 11/61: Reorder code a but and simplify., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 9b67043bcf 44/61: Use a workaround to pint proper information, ELPA Syncer, 2022/04/28