spawn command when no completion is available (if alwaysHighlight is True); changes commandToComplete in Prompt/Shell to complete the whole word instead of using getLastWord

This small patch addresses http://www.haskell.org/pipermail/xmonad/2013-February/013512.html. The new behaviour also affects users that have alwaysHighlight set to False (the default) in the following way: - "xterm -e emacs" autocompleted to e.g. ["emacs","emacs23","emacs-24.2",..] before (using the last word) - "xterm -e emacs" autocompletes to nothing now which I'm not sure is a problem. Best, Carlos

On Sat, Feb 9, 2013 at 8:13 PM, Carlos López Camey
This small patch addresses http://www.haskell.org/pipermail/xmonad/2013-February/013512.html.
The new behaviour also affects users that have alwaysHighlight set to False (the default) in the following way:
- "xterm -e emacs" autocompleted to e.g. ["emacs","emacs23","emacs-24.2",..] before (using the last word) - "xterm -e emacs" autocompletes to nothing now
which I'm not sure is a problem.
Tried and it works for me. Thanks Carlos.

On Sat, Feb 9, 2013 at 2:27 PM, Carsten Mattner
On Sat, Feb 9, 2013 at 8:13 PM, Carlos López Camey
wrote: This small patch addresses http://www.haskell.org/pipermail/xmonad/2013-February/013512.html.
The new behaviour also affects users that have alwaysHighlight set to False (the default) in the following way:
- "xterm -e emacs" autocompleted to e.g. ["emacs","emacs23","emacs-24.2",..] before (using the last word) - "xterm -e emacs" autocompletes to nothing now
which I'm not sure is a problem.
Tried and it works for me. Thanks Carlos.
If no one objects, I will push this in 5 days. -- gwern http://www.gwern.net
participants (3)
-
Carlos López Camey
-
Carsten Mattner
-
Gwern Branwen