unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Patrick Mahan <plmahan@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Xref oddness
Date: Wed, 29 Apr 2020 12:32:30 -0700	[thread overview]
Message-ID: <CAFDHx1LMOF0w7biZFhCHxhiik7ubTHJsBij_o-zts_G75voiOg@mail.gmail.com> (raw)
In-Reply-To: <83blnaxfms.fsf@gnu.org>

On Wed, Apr 29, 2020 at 12:21 PM Eli Zaretskii <eliz@gnu.org> wrote:

> > From: Patrick Mahan <plmahan@gmail.com>
> > Date: Wed, 29 Apr 2020 12:00:27 -0700
> >
> > Our sysadmins have setup where our home directories and development
> > directories are on multiple drives but are all symlinked through the same
> > top-level directory.  For example, my actual home directory is on
> > /home2/patrick but it is access via /home/patrick (patrick under /home is
> > sym-linked to /home2/patrick).  The same occurs for our development
> > directories (/development/patrick is sym-linked to
> /development5/patrick).
> > Now since our development directories are setup as multiple directories,
> I
> > was using the following  method for finding TAGS 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")))
> >
> > WORK is defined as the top of my current development sandbox and changes
> as
> > I jump between sandboxes.
>
> I don't think I understand how the symlinks come into play here.
> Could you please tell more?  How do you get from $WORK to
> /home/patrick and /home2/patrick? or maybe its /development/patrick
> and /development5/patrick?  I'm confused.
>
>
I use the sym-linked name.  For example I would 'cd /home/temp' instead of
'/home2/temp'.  WORK is defined to '/development/patrick/current' or
'/development/patrick/release5'.  It is never defined to
'/development5/patrick/...'.

I have commands to switch between different development sandboxes (and
redefine WORK).

I realized I forgot to describe the problem I am seeing.  If I am editing a
file in a sandbox, for example, emacs $WORK/src/bin/app1/main.c, then need
to find a tag (M-.) under 25.2 it always gives me two choices, both are
same, except one shows the sym-linked directory and the other shows the
realpath directory.  Forcing me to have to chose.  This is rather annoying,
especially if I do a (M-4 .) for finding a tag in another window or (M-5 .)
for finding a tag in another frame.  It gives me the list of choices, but
then takes over the original buffer.

If I use the original 'find-tag' command in 25.2 it works as it does under
24.5.


> > Or should I just go back to redefining those keys to the old
> > 'find-tag' et.al.?
>
> Not recommended: you'll be fighting an uphill battle.  Perhaps there's
> a bug, or there's a way to configure your Emacs a bit differently.
>
> Not something I would like to do as my .emacs is complicate enough with
all the platforms I work upon.

I hope that is clearer,

Thanks,

Patrick


  reply	other threads:[~2020-04-29 19:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-29 19:00 Xref oddness Patrick Mahan
2020-04-29 19:20 ` Eli Zaretskii
2020-04-29 19:32   ` Patrick Mahan [this message]
2020-05-02  9:36     ` Eli Zaretskii
2020-05-06 23:17       ` Patrick Mahan
2020-05-19 15:13         ` Eli Zaretskii
2020-05-19 19:14           ` Patrick Mahan
2020-05-20  2:23             ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFDHx1LMOF0w7biZFhCHxhiik7ubTHJsBij_o-zts_G75voiOg@mail.gmail.com \
    --to=plmahan@gmail.com \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).