python shell prompts should not be editable
Bug #1027556 reported by
Russell Sim
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
High
|
Russell Sim |
Bug Description
Hey,
From a prompt like,
>>>
it would be nice if pressing backspace didn't result in parts of the prompt being deleted like,
>>
I have used slime extensively and one nice piece of usability that it has is a prompt that isn't editable, eshell also has this feature. I wasn't able to figure out how they do this in slime but in eshell there are hooks that are run when you enter/exit the prompt area, that change some of the keybindings. so when you are in the prompt the backwards-word and character functions that won't jump past the prompt and the backspace key won't allow you to delete the prompt.
any alternative thoughts on how this could be implemented?
Cheers,
Russell
Related branches
lp:~russell-sim/python-mode/read-only-prompt
- Andreas Roehler: Approve
-
Diff: 43 lines (+9/-3)1 file modifiedpython-mode.el (+9/-3)
Changed in python-mode: | |
assignee: | nobody → Russell Sim (russell-sim) |
Changed in python-mode: | |
status: | New → Fix Committed |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Am 22.07.2012 06:36, schrieb Russell Sim:
> Public bug reported:
>
> Hey,
>
>>From a prompt like,
>>>>
> it would be nice if pressing backspace didn't result in parts of the prompt being deleted like,
>>>
>
> I have used slime extensively and one nice piece of usability that it
> has is a prompt that isn't editable, eshell also has this feature. I
> wasn't able to figure out how they do this in slime but in eshell there
> are hooks that are run when you enter/exit the prompt area, that change
> some of the keybindings. so when you are in the prompt the backwards-
> word and character functions that won't jump past the prompt and the
> backspace key won't allow you to delete the prompt.
>
> any alternative thoughts on how this could be implemented?
>
> Cheers,
> Russell
>
would think at property setting, i.e. making the prompt area intangible.
Cheers,
Andreas