From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Patrick Mahan Newsgroups: gmane.emacs.help Subject: Using xref-find-definitions Date: Fri, 6 Oct 2023 11:38:18 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1784"; mail-complaints-to="usenet@ciao.gmane.io" To: Help Gnu Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 06 20:39:18 2023 Return-path: Envelope-to: geh-help-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 1qopjJ-0000G4-62 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 06 Oct 2023 20:39:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qopin-0008Al-I1; Fri, 06 Oct 2023 14:38:45 -0400 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 1qopih-0008AW-SG for help-gnu-emacs@gnu.org; Fri, 06 Oct 2023 14:38:40 -0400 Original-Received: from mail-ot1-x32a.google.com ([2607:f8b0:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qopiZ-0006Xh-Ar for help-gnu-emacs@gnu.org; Fri, 06 Oct 2023 14:38:36 -0400 Original-Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-6c6368a1a97so1731813a34.1 for ; Fri, 06 Oct 2023 11:38:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696617509; x=1697222309; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=ZvtrHU3Qi2mCs22BT7M6AWjlZql9hDHvbbuzQaakH2g=; b=B48e6tY6VuQzoLEMWsSyAcaqFR1RUUDHrjpI9pOxuHQkL5Rb6Stv9zQ+mg0Eo597bX i6/lymZbd35HdZUrlldz6aVvjC7EEO8nZqafCEw1T9xaa2tY1am42IMsUOHiPFdUYzOF AdBgvwdJ3wS4bc+Th67Epknpk18u0pA6LKCu4ddJ785ttIz97h+a8q+aX8Ku+qjxdZ26 7Zif5Uw7YmAnbi7eQT87OgNgjlub6vMTq/aKHO+pVHFPESVn7O4XqABNXlugazmqS1X9 oD33XbgJhoZZvharyCdtc8sfgRHsAy0rDhxsUnPX2U23iPbSXLUMQPImCPhA7kdEtz8c 6J9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696617509; x=1697222309; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ZvtrHU3Qi2mCs22BT7M6AWjlZql9hDHvbbuzQaakH2g=; b=S5tyR95qRhOHGbQmw/UqTYS6gHJiY75odmMOmf+FGNByOg1P0zB2BWZkWugBg90ycq 6JMszOzGLvYNYwhM8BAzHdc8BWTiiyhQi9+E/i9bAiTMrGTGT4U6B8VroBO7M+LHZMHO 2aMwjGjFOrhl39hWxKmAVMxGiYpFJVgoR7QrUkXP+oPz3SUHu7ao71l4OMjiy+f9OJ+D h6u6/q4iAn/R6+C3YvHd0ru2Bnu7KACrIlYQmKdYav5+dYJyokfDtMhblbNddXG6osjb oGERPZ0jMUuUCyKk4edgzc29bJH4J3BueGVT4Tuavgj81CREkCFNKo+wgzvMhHJ02U0G f3yA== X-Gm-Message-State: AOJu0YxIP8+IqT066TvGv9CBQIfydQe/P2a6vKeOs+xi85Pm9eEyxjua vvoQdRdITSP/+DtGC40i0C9xqUVS5xfXZOh29hzQWpZx99U= X-Google-Smtp-Source: AGHT+IGRqQj2R7p/HB5GMUSBLHvLE8CvZkyP0WV8Ro/MUROgQw7fmO6Mj3hIzF1accDgFx+HRn8NUcSAQrGZCgvKh4U= X-Received: by 2002:a05:6870:1643:b0:1dd:5556:2d39 with SMTP id c3-20020a056870164300b001dd55562d39mr2816013oae.1.1696617509388; Fri, 06 Oct 2023 11:38:29 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::32a; envelope-from=plmahan@gmail.com; helo=mail-ot1-x32a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145222 Archived-At: I am running 25.2.2 on Ubuntu 18.04 release. I am working on a large software project, with lots of subdirectories and lots of files. Originally, TAGS are built using the cascading makefiles (one per directory) so you get a TAGS file in each directory and as you move up the TAGS file also incorporates the ones below it (without the use of the --include command). In my emacs init file I have tags-table-list set to the list of locations for the tag files - (setq tags-table-list (list "./" "../" (concat (getenv "WORK") "/src/lib") (concat (getenv "WORK") "/src/bin") (concat (getenv "WORK") "/src/include") (concat (getenv "WORK") "/src")))) This has worked well for a while now using the older find-tags command. But now that command is no longer supported and I need to use xref-find-definitions. Which works fine, for the most part, but occasionally I run across the following issue - An *xref* buffer appears with the following - /home/pmahan/workspaces/myos/src/bin/mserv/appclass/my_ipserv.c 109: void flow_log( /home/pmahan/workspaces/myos/src/bin/mserv/appclass/my_ipserv.c 109: void flow_log( When I was using find-tag, it would give me the first hit, then I could do CTRL-u M-. to go to the next entry. I would not have this presented. In the new method, this is churning my buffer displays around which is annoying, especially when the entry is in the same code module. My current assumption is that this is due to all of the various TAGS files that have duplicate entries. Is it time to change how we generate TAGS? Or can I configure xref-find-definitions to handle this situation. Thanks, Patrick