From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joel Reicher Newsgroups: gmane.emacs.help Subject: Re: Tagging Fortran variables Date: Wed, 07 Aug 2024 12:38:54 +1000 Message-ID: <8634nhawg1.fsf@gmail.com> References: <87jzgur4ig.fsf@librehacker.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35888"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Help Gnu Emacs Mailing List To: Christopher Howard Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 07 04:39:27 2024 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 1sbWaF-0009BH-Bj for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 07 Aug 2024 04:39:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sbWZr-00083S-RT; Tue, 06 Aug 2024 22:39:03 -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 1sbWZq-00083F-8J for help-gnu-emacs@gnu.org; Tue, 06 Aug 2024 22:39:02 -0400 Original-Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sbWZn-0003V2-Sx for help-gnu-emacs@gnu.org; Tue, 06 Aug 2024 22:39:01 -0400 Original-Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-70eb0ae23e4so1048163b3a.0 for ; Tue, 06 Aug 2024 19:38:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722998337; x=1723603137; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=y0BCJi5b1pUaNxAMPgLQ1YOzqk7ndkk6DpUHmwGjcc4=; b=ldokA9m03pPR2VRz40Q3Kvro79imhxfnRj1YNZlIk0gXuAMoiHiNawyNgWsIcoHExn 8BM65cSEIaqaYBarEyjXb0C707DXf1/K1HR4+2dmvve4g6WLZ5V9MhllNEU3qKxN6bUp /4lscMR0NWYb1uVbBhwoFAUL/BvUXrEGIYKQ+20uFrjbb95X/tSHdyWUIMvftdRyaEGA NJUBG0+TrCwFPyWYZAjco296v8cDsRj6K61lsa/KzPcOQge6tLTvgDYuuciVt5sxicky uc7wn6PO9NvscBb3eajGDEZ19U+Hwvb1SyBHomzn0L/j3OZTBQgl16+s0BAvwBSxK/AL C3nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722998337; x=1723603137; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=y0BCJi5b1pUaNxAMPgLQ1YOzqk7ndkk6DpUHmwGjcc4=; b=PkxIYVue600dVFkOFQc67zJ2HsFc/5b3Ez9SPB63hmtcPnsWkXPXlKv0BL/h3V4Xo0 tPjfWP3QVnzbKPx6I1jNaGySWffi3gJhqg/+vR1P8IgXKzXRL66x7CmGud2fZMkyPYKH Y4ctKYldOeEhEKrvRmmFLUn/X12VIAvFsjwlJRh4usQQWPpU4hwT1LeGXAg/nezalGhw v+NY6E0/Qvto6Qv6InI/3z4pk/oLoDfQ78+3WW7vN1CZRMaImzFiy8skf/YWsoPI2DQ+ ttWiaLv0z+YBsB4LBKgVpcAY0xIA1FAHDbNOU2Kegu4RbQuKvKudbdV7NT/Eg35tyQlR fh4w== X-Gm-Message-State: AOJu0YwZq0XiAWCyqdJs+LAd3LOywb9Xy+exe+q3pO+xnQOaEyW68g5l 6LS0mzc705nlAUtQb4jnBO5zvykwejMU5oloM9KbJ8W0aOpLz7RL44BzXA== X-Google-Smtp-Source: AGHT+IHmT9S+K9hEjkNiEzsitxZMJOVSr6cTAtAhYYiri9D1MQF6F5rz8+ySQba1C6utFXRvFQrU8Q== X-Received: by 2002:a05:6a00:17a2:b0:70e:8f89:7e2e with SMTP id d2e1a72fcca58-7106cfd783dmr16207163b3a.18.1722998336679; Tue, 06 Aug 2024 19:38:56 -0700 (PDT) Original-Received: from LAPTOP-ACR66VVN (14-200-117-166.static.tpgi.com.au. [14.200.117.166]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7106ecfd196sm7561922b3a.161.2024.08.06.19.38.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Aug 2024 19:38:56 -0700 (PDT) In-Reply-To: <87jzgur4ig.fsf@librehacker.com> (Christopher Howard's message of "Mon, 05 Aug 2024 14:25:43 -0800") Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=joel.reicher@gmail.com; helo=mail-pf1-x42d.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:147534 Archived-At: Christopher Howard writes: > Hi, part of my work is researches/troubleshooting in a big > collection of old Fortran code files. I want to be able to use > the xref tools to help me. However, it seems that etags does not > tag Fortran variables, which 99% of the time is what I am > interested in. It looks like there is a way to tag anything you > want using regexps, so I was looking at the fortran.el code to > see if maybe I could find the magic regexp for this. But there > is a lot going on here in fortran.el that I don't understand yet > and I am wondering if somebody might be able to help me figure > this out. Have you tried using xref in eglot? It will attempt to use the fortls fortran language server. (I haven't tried this myself, but I've had good experiences with eglot and language servers in general.) Cheers, - Joel