GNU bug report logs -
#70198
M-x shell: deal with environment variables present when tab expanding
Previous Next
Full log
Message #23 received at 70198 <at> debbugs.gnu.org (full text, mbox):
> From: Federico Tedin <federicotedin <at> gmx.de>
> Cc: 70198 <at> debbugs.gnu.org, jidanni <at> jidanni.org
> Date: Wed, 10 Jul 2024 22:17:41 +0200
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > 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.
Yes, I think so. I added Stefan to the discussion in case he has
comments or suggestions. Stefan, what do you think is the best method
of parsing the beginning of the command line to detect where a
program's name starts?
This bug report was last modified 173 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.