1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-07 06:50:23 -08:00
emacs/lisp/eshell
Jay Kamat 933d8fc0b7 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.
2018-01-05 09:29:00 -05:00
..
em-alias.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
em-banner.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
em-basic.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
em-cmpl.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
em-dirs.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
em-glob.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
em-hist.el Make eshell history expansion more like bash (Bug#29821) 2018-01-05 09:29:00 -05:00
em-ls.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
em-pred.el Make eshell history expansion more like bash (Bug#29821) 2018-01-05 09:29:00 -05:00
em-prompt.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
em-rebind.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
em-script.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
em-smart.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
em-term.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
em-tramp.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
em-unix.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
em-xtra.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
esh-arg.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
esh-cmd.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
esh-ext.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
esh-io.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
esh-mode.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
esh-module.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
esh-opt.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
esh-proc.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
esh-util.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
esh-var.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00
eshell.el Update copyright year to 2018 2018-01-01 00:57:59 -08:00