[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gtags-mode 053184f8b5 14/61: Don't call with-connection
From: |
ELPA Syncer |
Subject: |
[elpa] externals/gtags-mode 053184f8b5 14/61: Don't call with-connection-local-variables |
Date: |
Thu, 28 Apr 2022 10:57:38 -0400 (EDT) |
branch: externals/gtags-mode
commit 053184f8b5dc9afdf612b3f00fc334210263575a
Author: Jimmy Aguilar Mena <kratsbinovish@gmail.com>
Commit: Jimmy Aguilar Mena <kratsbinovish@gmail.com>
Don't call with-connection-local-variables
With the new changes in the code it is not needed.
---
global-xref.el | 34 ++++++++++++++++------------------
1 file changed, 16 insertions(+), 18 deletions(-)
diff --git a/global-xref.el b/global-xref.el
index 0feba4043f..8e3498ad86 100644
--- a/global-xref.el
+++ b/global-xref.el
@@ -115,14 +115,13 @@ Starts an asynchronous process and sets
`global-xref--exec-async-sentinel' as the process sentinel if
SENTINEL is 'nil' or not specified. Returns the process
handler."
- (with-connection-local-variables
- (when-let* ((cmd (symbol-value command))
- (process (apply #'start-file-process
- (format "%s-async" cmd)
- (generate-new-buffer " *temp*" t) cmd args))
- (sentinel (or sentinel #'global-xref--exec-async-sentinel)))
- (set-process-sentinel process sentinel)
- process)))
+ (when-let* ((cmd (symbol-value command))
+ (process (apply #'start-file-process
+ (format "%s-async" cmd)
+ (generate-new-buffer " *temp*" t) cmd args))
+ (sentinel (or sentinel #'global-xref--exec-async-sentinel)))
+ (set-process-sentinel process sentinel)
+ process))
;; Sync functions
(defun global-xref--sync-sentinel ()
@@ -144,16 +143,15 @@ Starts a sync process; on success call SENTINEL or
`global-xref--sync-sentinel' if SENTINEL is not specified or
'nil'. Returns the output of SENTINEL or nil if any error
occurred."
- (with-connection-local-variables
- (when-let ((cmd (symbol-value command))
- (sentinel (or sentinel #'global-xref--sync-sentinel)))
- (with-temp-buffer ;; When sync
- (let ((status (apply #'process-file cmd nil (current-buffer) nil args)))
- (if (eq status 0)
- (funcall sentinel)
- (message "global error output:\n%s" (buffer-string))
- (error "Sync %s %s: exited abnormally with code %s" cmd args status)
- nil))))))
+ (when-let ((cmd (symbol-value command))
+ (sentinel (or sentinel #'global-xref--sync-sentinel)))
+ (with-temp-buffer ;; When sync
+ (let ((status (apply #'process-file cmd nil (current-buffer) nil args)))
+ (if (eq status 0)
+ (funcall sentinel)
+ (message "global error output:\n%s" (buffer-string))
+ (error "Sync %s %s: exited abnormally with code %s" cmd args status)
+ nil)))))
;; Api functions
(defun global-xref--find-root ()
- [elpa] externals/gtags-mode a3b99b9aa6 25/61: Enable the mode in all the already opened buffers sharing root., (continued)
- [elpa] externals/gtags-mode a3b99b9aa6 25/61: Enable the mode in all the already opened buffers sharing root., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 777c51d630 53/61: Convert the mode in a global mode., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 1aaac5fead 10/61: Simplify code to so only the needed., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 70b6c217d5 20/61: Add support for project.el., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 148041bbe9 55/61: Cleanup and reorder code., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 3012f128ea 59/61: Change "Gtags" to " Gtags" for minor-mode name, ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode a2c84b5a2b 28/61: Optimize avoiding with-current-buffer., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 076ae4a55e 51/61: Fall back to default on imenu., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode c60bb82307 42/61: Don't use with-memoization it is too new., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 54368ee7e0 38/61: Better use of the new plist., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 053184f8b5 14/61: Don't call with-connection-local-variables,
ELPA Syncer <=
- [elpa] externals/gtags-mode 192258fa32 17/61: Use list instead of quotes., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode 9fc5c618a1 36/61: Simplify a bit more the cache handling code., ELPA Syncer, 2022/04/28
- [elpa] externals/gtags-mode c823dcffc9 49/61: Assert not call plist-put for nil, ELPA Syncer, 2022/04/28
- [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