File 9523-Replace-find-tag-with-xref-find-definitions-in-menus.patch of Package erlang

From 5f26ade42eb0b0f0f8b37a1a6f33f6e62187226d Mon Sep 17 00:00:00 2001
From: Bozhidar Batsov <bozhidar@batsov.dev>
Date: Fri, 20 Mar 2026 13:35:36 +0200
Subject: [PATCH 13/17] Replace find-tag with xref-find-definitions in menus

find-tag was removed in Emacs 29. Update the TAGS menu entries
to use xref-find-definitions which has been available since Emacs 25.
---
 lib/tools/emacs/erlang.el        | 3 +--
 lib/tools/emacs/erlang_appwiz.el | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/lib/tools/emacs/erlang.el b/lib/tools/emacs/erlang.el
index 5c6996a8cd..6d8d95ec60 100644
--- a/lib/tools/emacs/erlang.el
+++ b/lib/tools/emacs/erlang.el
@@ -161,9 +161,8 @@ variable.")
       ("Level 1" erlang-font-lock-level-1)
       ("Off" erlang-font-lock-level-0)))
     ("TAGS"
-     (("Find Tag" find-tag)
+     (("Find Definition" xref-find-definitions)
       ("Find Next Tag" erlang-find-next-tag)
-                                        ;("Find Regexp" find-tag-regexp)
       ("Complete Word" erlang-complete-tag)
       ("Tags Apropos" tags-apropos)
       ("Search Files" tags-search))))
diff --git a/lib/tools/emacs/erlang_appwiz.el b/lib/tools/emacs/erlang_appwiz.el
index f19ddf178f..6a142d53c2 100644
--- a/lib/tools/emacs/erlang_appwiz.el
+++ b/lib/tools/emacs/erlang_appwiz.el
@@ -443,9 +443,8 @@ files written in other languages than Erlang.")
       ("Level 1" erlang-font-lock-level-1)
       ("Off" erlang-font-lock-level-0)))
     ("TAGS"
-     (("Find Tag" find-tag)
+     (("Find Definition" xref-find-definitions)
       ("Find Next Tag" erlang-find-next-tag)
-      ;("Find Regexp" find-tag-regexp)
       ("Complete Word" erlang-complete-tag)
       ("Tags Apropos" tags-apropos)
       ("Search Files" tags-search)))
-- 
2.51.0

openSUSE Build Service is sponsored by