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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/gtags-mode 17c7c7c4bd 1/2: Only run update on after-sav


From: ELPA Syncer
Subject: [elpa] externals/gtags-mode 17c7c7c4bd 1/2: Only run update on after-save-hook in Global projects.
Date: Wed, 24 Jan 2024 12:58:11 -0500 (EST)

branch: externals/gtags-mode
commit 17c7c7c4bd7b46b7c83b142fa479cb6dd4681e92
Author: Magiel Bruntink <magiel.bruntink@icloud.com>
Commit: Magiel Bruntink <magiel.bruntink@icloud.com>

    Only run update on after-save-hook in Global projects.
---
 gtags-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gtags-mode.el b/gtags-mode.el
index 20e5f813b0..529c8c9bf0 100644
--- a/gtags-mode.el
+++ b/gtags-mode.el
@@ -259,7 +259,7 @@ This iterates over the buffers and tries to reset
 ;; Hooks =============================================================
 (defun gtags-mode--after-save-hook ()
   "After save hook to update GLOBAL database with changed data."
-  (when (and buffer-file-name (gtags-mode--local-plist))
+  (when (and buffer-file-name (gtags-mode--get-plist buffer-file-name))
     (gtags-mode--exec-async
      'gtags-mode--global
      '("--single-update") (file-name-nondirectory buffer-file-name))))



reply via email to

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