From: Eli Zaretskii <eliz@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 16260@debbugs.gnu.org, jarekczek@poczta.onet.pl
Subject: bug#16260: 24.3.50; shell-command-completion and removal of exec-directory from exec-path
Date: Wed, 20 Jan 2021 17:15:34 +0200 [thread overview]
Message-ID: <83mtx37i7d.fsf@gnu.org> (raw)
In-Reply-To: <87k0s85o8j.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 20 Jan 2021 03:35:56 +0100)
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: 16260@debbugs.gnu.org, Jarek Czekalski <jarekczek@poczta.onet.pl>
> Date: Wed, 20 Jan 2021 03:35:56 +0100
>
> (path-dirs
> ;; Ignore `exec-directory', the last entry in `exec-path'.
> (append (cdr (reverse (exec-path)))
> (if (and (memq system-type '(windows-nt ms-dos))
> (not (file-remote-p default-directory)))
> '("."))))
>
> [...]
>
> > However, just clipping away the last member of exec-path list only
> > does TRT in the default case. It will not work if either of the
> > following happens:
> >
> > . The user changes epaths.h to specify more than a single directory
> >
> > . EMACSPATH is set in the environment
> >
> > To get this right, we should record at startup time the value of
> > exec-path before appending $PATH to it, and then filter out the
> > directories recorded at that time in shell--command-completion-data.
>
> I haven't looked further at this (since the FIXME is gone), but it this
> something that needs further work?
Not if we don't care about the two scenarios I described above.
> > As a minor nit, the doc string of shell-dynamic-complete-command
> > should not talk about "library path", which is a non-existing term in
> > Emacs, but instead mention exec-directory.
>
> This doc string doesn't mention "library path" any more.
Right, that part was fixed in the meantime.
prev parent reply other threads:[~2021-01-20 15:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-26 20:26 bug#16260: 24.3.50; shell-command-completion and removal of exec-directory from exec-path Eli Zaretskii
2021-01-20 2:35 ` Lars Ingebrigtsen
2021-01-20 15:15 ` Eli Zaretskii [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83mtx37i7d.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=16260@debbugs.gnu.org \
--cc=jarekczek@poczta.onet.pl \
--cc=larsi@gnus.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.