FG

How can I send a literal tab to bash in emacs' shell-mode?

Fresh3 days ago
Mar 15, 20263420 views
Confidence Score0%
0%

Problem

I want to bypass comint-mode's completion support completely, instead relying on the subordinate process to do it for me. Specifically, if I'm running: emacs shell-mode bash Then I want to be passed to the bash process and expanded by it. If I'm running: emacs shell-mode bash psql Then I'd want to …

Error Output

(define-key shell-mode-map "\t" 'self-insert-command)

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I send a literal tab to bash in emacs' shell-mode?

Low Risk

Emacs buffers are not terminals (i.e., they do not use ptys (pseudo-terminals)), so no program running in such a buffer (the shell, the programs run by the shell, etc.) can perform character-at-a-time input. Each line is typed in full and only sent …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment