Skip to content

Change the editor module using an environment variable? #113

Description

@dgutov

Description

The latest version of IRB is broken when used through Emacs comint (the inf-ruby package).

The standalone irb works okay-ish if passed --nomultiline, (EDIT:) and for Rails one can do rails console -- --nomultiline (with recent enough rails). Any other program that similarly embeds Irb is still affected, and in all cases, when a script has to make a choice whether to pass --nomultiline, it creates a performance penalty on top of it.

If IRB read some environment variable and disabled multiline editing (singleline too maybe, it doesn't seem any effect here), that would be great.

Terminal Emulator

Emacs comint.

Setting Files

Are you using ~/.irbrc and ~/.inputrc?

No. Changing IRB.conf[:USE_MULTILINE] through .irbrc works, but I can hardly ask every user to do that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions