From 2da08702bab17cc020815f024dc993ea5a0d6733 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Fri, 2 Sep 2022 07:52:01 +0200 Subject: Expand rationale for reworking Emacs bash completion --- itches/emacs/interpreters.org | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'itches/emacs/interpreters.org') diff --git a/itches/emacs/interpreters.org b/itches/emacs/interpreters.org index 258d92c..535405d 100644 --- a/itches/emacs/interpreters.org +++ b/itches/emacs/interpreters.org @@ -23,8 +23,17 @@ Some solutions: #+end_src ** Use Bash completions -E.g. in most terminals, typing ~ls TAB~ in a folder with a single file -expands to ~ls that-file~. +Emacs filename completions in =*shell*= are subtly different to +Bash's; e.g. typing ~ls TAB~ in a folder with a single file expands to +~ls that-file~. + +Also, in general, =*shell*= has no clue about + +- changes to =$PATH=, which affect what programs are available, +- Bash aliases, +- changes to the current working directory not triggered by an + explicit ~cd~, and not announced by OSC 7, +- etc. See [[https://debbugs.gnu.org/26661][bug#26661]], and [[https://github.com/szermatt/emacs-bash-completion/issues/45][szermatt/emacs-bash-completion!45]]. ** Handle DECSC, DECRC, CUU, ED, HVP and DECSTBM console codes -- cgit v1.2.3