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

[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.



reply via email to

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