GNU bug report logs - #70198
M-x shell: deal with environment variables present when tab expanding

Previous Next

Package: emacs;

Reported by: Dan Jacobson <jidanni <at> jidanni.org>

Date: Thu, 4 Apr 2024 13:52:02 UTC

Severity: wishlist

Full log


Message #20 received at 70198 <at> debbugs.gnu.org (full text, mbox):

From: Federico Tedin <federicotedin <at> gmx.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 70198 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#70198: M-x shell: deal with environment variables present
 when tab expanding
Date: Wed, 10 Jul 2024 22:17:41 +0200
Eli Zaretskii <eliz <at> 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.




This bug report was last modified 188 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.