1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-12 17:10:43 -08:00
emacs/lisp/eshell
Stefan Monnier ce28de5d3a Pcomplete: Better obey completion-at-point-functions
Functions on `completion-at-point-functions` should not modify
the buffer.  Pcomplete itself mostly abides by this but Eshell's
use of it doesn't.  Try and catch those cases.  Also fix one of
those cases.

* lisp/pcomplete.el (pcomplete-allow-modifications): New var.
(pcomplete-completions-at-point): Enforce it.
(pcomplete, pcomplete-expand-and-complete, pcomplete-expand):
Rebind it since these commands expect the extra side effects.

* lisp/eshell/em-cmpl.el (eshell--pcomplete-insert-tab): New function,
extracted from `eshell-complete-parse-arguments`.
(eshell-complete-parse-arguments): Use it and obey
`pcomplete-allow-modifications`.
2022-03-18 11:59:32 -04:00
..
em-alias.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
em-banner.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
em-basic.el Raise an error from 'eval-eval-using-options' for unknown options 2022-01-21 13:06:11 +01:00
em-cmpl.el Pcomplete: Better obey completion-at-point-functions 2022-03-18 11:59:32 -04:00
em-dirs.el Tweak how eshell/cd works when cd-ing to ".." from "/" 2022-02-05 23:57:38 +01:00
em-extpipe.el Fix input of sharp-quoted symbols in Eshell with em-extpipe 2022-01-26 14:16:40 +01:00
em-glob.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
em-hist.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
em-ls.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
em-pred.el Fix evaluation of negated argument predicates in Eshell 2022-03-13 19:59:07 +01:00
em-prompt.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
em-rebind.el When executing an Eshell pipeline, send input to the first process 2022-02-03 20:02:22 +01:00
em-script.el Don't use 'eshell-eval-using-options' for 'eshell/source' or 'eshell/.' 2022-01-21 13:06:34 +01:00
em-smart.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
em-term.el When executing an Eshell pipeline, send input to the first process 2022-02-03 20:02:22 +01:00
em-tramp.el Make usage of su and sudo consistent in eshell (bug#53783) 2022-02-06 09:43:13 +01:00
em-unix.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
em-xtra.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
esh-arg.el Improve wording of Eshell variable interpolation code/documentation 2022-03-08 15:54:16 +02:00
esh-cmd.el Improve wording of Eshell variable interpolation code/documentation 2022-03-08 15:54:16 +02:00
esh-ext.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
esh-io.el Send SIGPIPE to external Eshell processes if their output target closes 2022-02-21 18:39:40 +01:00
esh-mode.el When executing an Eshell pipeline, send input to the first process 2022-02-03 20:02:22 +01:00
esh-module.el Add Eshell syntax to more easily bypass Eshell's own pipelining 2022-01-24 21:46:31 +01:00
esh-opt.el Treat "-" as a positional arg in 'eshell-eval-using-options' 2022-01-25 13:28:48 +01:00
esh-proc.el Don't superfluously emit prompts when terminating processes in Eshell 2022-02-24 10:35:54 +01:00
esh-util.el When executing an Eshell pipeline, send input to the first process 2022-02-03 20:02:22 +01:00
esh-var.el Support applying indices to more Eshell dollar expansions 2022-03-08 15:55:41 +02:00
eshell.el When executing an Eshell pipeline, send input to the first process 2022-02-03 20:02:22 +01:00