From: Federico Tedin via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 70198@debbugs.gnu.org, jidanni@jidanni.org
Subject: bug#70198: M-x shell: deal with environment variables present when tab expanding
Date: Wed, 10 Jul 2024 22:17:41 +0200 [thread overview]
Message-ID: <87cynlypay.fsf@gmx.de> (raw)
In-Reply-To: <86ttgxm6yc.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 10 Jul 2024 21:34:51 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
> Something like
>
> $ FOO='foo=bar' date
>
Ah right, that makes sense.
> It should, just not command completion.
> If we want to detect FOO=BAR, we need to use syntax classes, and I'm
> not sure regexps are the best instrument for that.
But then, just to make sure I'm on the right track:
- When the word at point is a command (not an arg)
`shell-command-completion' should return the proper command completions.
- When the word at point is *not* a command, `shell-command-completion' should
return nil so that other completion functions are attempted.
And these two scenarios need to be decided on using syntax classes
instead of regexps.
next prev parent reply other threads:[~2024-07-10 20:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-04 13:51 bug#70198: M-x shell: deal with environment variables present when tab expanding Dan Jacobson
2024-07-10 16:22 ` Federico Tedin via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-07-10 17:45 ` Eli Zaretskii
2024-07-10 18:11 ` Federico Tedin via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-07-10 18:34 ` Eli Zaretskii
2024-07-10 20:17 ` Federico Tedin via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-07-11 4:36 ` 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=87cynlypay.fsf@gmx.de \
--to=bug-gnu-emacs@gnu.org \
--cc=70198@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=federicotedin@gmx.de \
--cc=jidanni@jidanni.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).