[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gtags-mode 599dfb8002 18/61: Improve debug of async pro
From: |
ELPA Syncer |
Subject: |
[elpa] externals/gtags-mode 599dfb8002 18/61: Improve debug of async processes. |
Date: |
Thu, 28 Apr 2022 10:57:39 -0400 (EDT) |
branch: externals/gtags-mode
commit 599dfb80029eed62d0a2754cc64fecb4e7b708c5
Author: Jimmy Aguilar Mena <kratsbinovish@gmail.com>
Commit: Jimmy Aguilar Mena <kratsbinovish@gmail.com>
Improve debug of async processes.
Check process-exit-status too.
Fix the path in local updates
---
global-xref.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/global-xref.el b/global-xref.el
index 2ba6858128..bb5778cb1a 100644
--- a/global-xref.el
+++ b/global-xref.el
@@ -101,7 +101,8 @@ the address is relative on remote hosts.")
"Sentinel to run when PROCESS emits EVENT.
This is the sentinel set in `global-xref--exec-async'."
(let ((temp-buffer (process-buffer process)))
- (if (eq (process-status process) 'exit)
+ (if (and (eq (process-status process) 'exit)
+ (eq (process-exit-status process) 0))
(and (buffer-name temp-buffer)
(kill-buffer temp-buffer))
(with-current-buffer temp-buffer
@@ -203,7 +204,9 @@ name, code, file, line."
"After save hook to update GLOBAL database with changed data."
(when (and buffer-file-name global-xref--project-root)
(global-xref--exec-async
- 'global-xref--global `("--single-update" ,buffer-file-name))))
+ 'global-xref--global
+ (list "--single-update"
+ (file-name-nondirectory buffer-file-name)))))
(defun global-xref--find-file-hook ()
"Try to enable `global-xref' when opening a file.
- [elpa] externals/gtags-mode d4890f5bb3 45/61: Small simplification., (continued)
- [elpa] externals/gtags-mode d4890f5bb3 45/61: Small simplification., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 95b730930b 27/61: Remove global-xref--sync-sentinel, ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 1f2f3d272b 57/61: Fix performance issue., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 9dcb18fbe7 58/61: Use cscope output; it is easier to parse., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 0954a065d3 37/61: Miscellaneous fixes, ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode a14940cd98 35/61: Reorder some code and simplify cache code, ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode e8d19c4333 52/61: Add code to run extra sentinel, ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 9c4323a5e6 13/61: Improve connection local code., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode a9f6acbaba 22/61: List GTAGS buffers., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 04c2d9fbaf 24/61: Use file-truename, ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 599dfb8002 18/61: Improve debug of async processes.,
ELPA Syncer <=