From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jon Eskin Newsgroups: gmane.emacs.bugs Subject: bug#67687: Feature request: automatic tags management Date: Thu, 7 Dec 2023 14:57:08 -0500 Message-ID: References: <2f86b882-9ec1-f63f-d90b-5f8f7ae114f2@gutov.dev> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.200.91.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2911"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67687@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 07 20:58:04 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rBKVY-0000Zd-OL for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Dec 2023 20:58:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBKVM-0006d5-15; Thu, 07 Dec 2023 14:57:52 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rBKVJ-0006bz-V0 for bug-gnu-emacs@gnu.org; Thu, 07 Dec 2023 14:57:49 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rBKVJ-0006iS-Ml for bug-gnu-emacs@gnu.org; Thu, 07 Dec 2023 14:57:49 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rBKVW-0006ZC-5a for bug-gnu-emacs@gnu.org; Thu, 07 Dec 2023 14:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jon Eskin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Dec 2023 19:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67687 X-GNU-PR-Package: emacs Original-Received: via spool by 67687-submit@debbugs.gnu.org id=B67687.170197906225205 (code B ref 67687); Thu, 07 Dec 2023 19:58:02 +0000 Original-Received: (at 67687) by debbugs.gnu.org; 7 Dec 2023 19:57:42 +0000 Original-Received: from localhost ([127.0.0.1]:43193 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBKVC-0006YS-6Z for submit@debbugs.gnu.org; Thu, 07 Dec 2023 14:57:42 -0500 Original-Received: from mail-qk1-x729.google.com ([2607:f8b0:4864:20::729]:48291) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rBKV8-0006Y5-1j for 67687@debbugs.gnu.org; Thu, 07 Dec 2023 14:57:40 -0500 Original-Received: by mail-qk1-x729.google.com with SMTP id af79cd13be357-77db736aae5so52951785a.0 for <67687@debbugs.gnu.org>; Thu, 07 Dec 2023 11:57:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701979040; x=1702583840; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=F7nLyzO/Mma4n4yj9VXEElmZ73TcZGHZEQ9yJBHtdpw=; b=OGn81deE9U0cs48IUWTcsk8h8Drr3ZDHZS+vvzCxn9kGcRewFB/57dO3IjDuaFkZwU yWBKYk42A5yZwPvV5EXqYnlUOJxTIRF7WH92//nJUCsi+o46BVvbOHiVtp6gIa4O/Vzf +34eFtRzFR9Ps8Zr8WdONwOQwTlMtFtzE/0LJaYGY6bBfHkx8Nkz5F2D8SGvRzNlx5eq YUVfawIE2arUwhTMr0xI1qhP/T5aVL4c/xvFTbakE9SSPWeJcP7YaMVPyCqWGiH26QXQ PYKIv7dSuAjtRTY/K2wBhSwud3mDf2agNopQ6MRZ22gGW/3wTbwEpgyLitCVmaoCSZjW RmhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701979040; x=1702583840; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=F7nLyzO/Mma4n4yj9VXEElmZ73TcZGHZEQ9yJBHtdpw=; b=R+ajW+GzdPXbUHh/6nPqccrokIFHa8AW3+LB4mCvHPUwB7Y+VdnXdc7LmoR9Fe1bCA /gTt4goeZsCAKJFxl0YVyaAfaDx2anCJgu/O/59MbxJhjf3/Tcy9x0rCA9g0Kn8e/a8V 3stkq9K41By7mFE7KBm1xqRBCs9WDoEVHifK2TEXA5X1vfN49WFwfapCMel1smrguOrS zoda9ETArUoBKB5EmAtHUx20wmfcChY/60KMf+CawhkI8pj25WiE5AP899oQvbNfuqZ7 BsmalgfxLIY+F1uiMh+B/m8/qyrkyDy6ei/Lm91GdZiUp74v0bpN0bpP2YI/7AWPzbxu Msfg== X-Gm-Message-State: AOJu0Yw604exC0zz5fzrF9LAS1/rpH8ZlBvDT9pRpTSya3JYnJOKBFY3 YD3NuPoaA2rhcE+0oe+XRBE= X-Google-Smtp-Source: AGHT+IE3LOxAM1I1XxiDzb77mPaxeWP7Yksui4NsIcLr3NQlj2S54cFLUQhiZzPFbEyuv+5STsBKjQ== X-Received: by 2002:a05:620a:828c:b0:77b:c47e:727f with SMTP id ox12-20020a05620a828c00b0077bc47e727fmr1597919qkn.28.1701979039752; Thu, 07 Dec 2023 11:57:19 -0800 (PST) Original-Received: from smtpclient.apple (pool-173-73-227-157.washdc.fios.verizon.net. [173.73.227.157]) by smtp.gmail.com with ESMTPSA id b5-20020a05620a270500b0076ce061f44dsm148131qkp.25.2023.12.07.11.57.19 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Dec 2023 11:57:19 -0800 (PST) In-Reply-To: <2f86b882-9ec1-f63f-d90b-5f8f7ae114f2@gutov.dev> X-Mailer: Apple Mail (2.3774.200.91.1.1) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:275701 Archived-At: Hi Dmitry! > I have some related work that's been lying in a drawer as of late. >=20 > Do you know what gutentags does when a file is deleted, or added = externally, or you switch to a different Git branch and many files = change their contents at once? To my knowledge, changes to tags due to files being added or deleted are = regenerated only when vim is started inside the project. Switching to a = different git branch should work the same, because it=E2=80=99s only = looking at the filesystem. If the editor is already running, such changes will not be picked up; = even if you try to navigate to a tag that no longer exists, I do not = believe that it will regenerate tags automatically until you close and = re-open the editor. When you save a file inside the editor, it will wipe out tags for that = individual file and regenerate them. Here are some docs for customization options you might find interesting: *gutentags_generate_on_missing* g:gutentags_generate_on_missing If set to 1, Gutentags will start generating an = initial tag file if a file is open in a project where no = tags file is found. See |gutentags_project_root| for = how Gutentags locates the project. When set to 0, Gutentags will only generate the = first time the file is saved (if |gutentags_generate_on_write| is set to 1), or = when |GutentagsUpdate| or |GutentagsGenerate| is run. Defaults to 1. = *gutentags_generate_on_new* g:gutentags_generate_on_new If set to 1, Gutentags will start generating the = tag file when a new project is open. A new project = is considered open when a buffer is created for a = file whose corresponding tag file has not been "seen" = yet in the current Vim session -- which pretty much = means when you open the first file in a given source = control repository. When set to 0, Gutentags won't do anything = special. See also |gutentags_generate_on_missing| and |gutentags_generate_on_write|. Defaults to 1. = *gutentags_generate_on_write* g:gutentags_generate_on_write If set to 1, Gutentags will update the current project's tag file when a file inside that = project is saved. See |gutentags_project_root| for how = Gutentags locates the project. When set to 0, Gutentags won't do anything on = save. This means that the project's tag file won't = reflect the latest changes, and you will have to run |GutentagsUpdate| manually. Defaults to 1. = *gutentags_generate_on_empty_buffer* g:gutentags_generate_on_empty_buffer If set to 1, Gutentags will start generating the = tag file even if there's no buffer currently open, = as long as the current working directory (as returned by |:cd|) is inside a known project. This is useful if you want Gutentags to generate = the tag file right after opening Vim. Defaults to 0. More can be found here: = https://github.com/ludovicchabant/vim-gutentags/blob/master/doc/gutentags.= txt=