diff options
author | Jay Kamat <jaygkamat@gmail.com> | 2017-12-22 15:34:44 -0800 |
---|---|---|
committer | Noam Postavsky <npostavs@gmail.com> | 2018-01-05 09:29:00 -0500 |
commit | 933d8fc0b70452f8a266e761231e58a759a7c80a (patch) | |
tree | 255939a4a1f1e651559dedda47964f2f192dc725 /lisp/textmodes/less-css-mode.el | |
parent | 1cc7bc0f63ab118fda55aa40fa4b571a7c94393e (diff) | |
download | emacs-933d8fc0b70452f8a266e761231e58a759a7c80a.tar.gz emacs-933d8fc0b70452f8a266e761231e58a759a7c80a.tar.bz2 emacs-933d8fc0b70452f8a266e761231e58a759a7c80a.zip |
Make eshell history expansion more like bash (Bug#29821)
- Prevent expansion of quick substitutions when the initial "^" is not
at start of line (Bug#29157).
- Allow spaces inside substitutions, so "^foo bar^baz" works.
- Allow trailing characters after substitution, so "^foo^bar^trailing"
works.
- Throw an error when substitution does not match.
* lisp/eshell/em-hist.el (eshell-expand-history-references): Expand
history substitution before other types of expansions, and expand them
with the whole line.
(eshell-history-substitution): New function to expand only
substitutions, taking in the entire typed line rather than individual
arguments.
Diffstat (limited to 'lisp/textmodes/less-css-mode.el')
0 files changed, 0 insertions, 0 deletions