commit 2da08702bab17cc020815f024dc993ea5a0d6733
parent 63f0949145e734e191824bdc1cbe789ca275cd96
Author: Kévin Le Gouguec <kevin.legouguec@gmail.com>
Date: Fri, 2 Sep 2022 07:52:01 +0200
Expand rationale for reworking Emacs bash completion
Diffstat:
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git 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