bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Switch vi-insert TAB binding only for the default binding


From: Koichi Murase
Subject: Re: [PATCH] Switch vi-insert TAB binding only for the default binding
Date: Sat, 16 Feb 2019 08:58:24 +0900

> There is a third option: turning posix mode on saves the old binding
> for TAB; turning it off restores it. That, combined with a check of
> whether or not the binding was still TAB:self-insert, should handle
> both cases.

Thank you for your reply. I am fine with the third option as far as
`local POSIXLY_CORRECT' safely works. Actually I initially thought
about that option, but I felt it is a little bit inconsistent because
with that option only the binding for TAB becomes POSIX compliant, and
user-defined bindings for all the other keys/keymaps are kept
user-defined in POSIX mode. The fourth option would be to prepare
immutable keymaps (corresponding to `emacs-standard', `vi-move', and
`vi-insert') for the POSIX mode and switch keymaps instead of
bindings. But the choice of the option depends on how much Bash
extensions (such as `bind') would be considered to be allowed in the
POSIX mode, and I have no sense for that. Anyway I would like to
follow your decision.

Best regards,
Koichi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]