]> git.eshelyaron.com Git - emacs.git/commit
comint-insert-previous-argument doesn't detect and ignore trailing &
authorDima Kogan <dima@secretsauce.net>
Sun, 25 Dec 2016 19:49:44 +0000 (11:49 -0800)
committerDima Kogan <dima@secretsauce.net>
Mon, 18 Jun 2018 05:59:21 +0000 (22:59 -0700)
commitba2ddadb5378351e8003c8e172b52bfabaa27554
tree8c62c3f64a6af263bddb6777ab3fa2fb71ca1a26
parent74f377b3955198d6f66afa34bbbf6d004aad134a
comint-insert-previous-argument doesn't detect and ignore trailing &

This function is invoked in shell-mode by the user, and is meant to
emulate what M-. does in zsh and bash: it inserts an argument from a
previous command.  Neither zsh nor bash treat a trailing & specially:
M-. simply inserts it if it is encountered.  Emacs DID have extra
logic to detect and discard trailing &, but this logic was buggy, and
a && anywhere in the sequence would confuse it.  This patch simply
removes that logic to fix the bug and to emulate zsh and bash more
closely

* lisp/comint.el (comint-insert-previous-argument): don't detect and
  ignore trailing &
  (Bug#25271)
* etc/NEWS: Document this.
etc/NEWS
lisp/comint.el