python shell prompts should not be editable

Bug #1027556 reported by Russell Sim
6
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

Revision history for this message
Andreas Roehler (a-roehler) wrote : Re: [Bug 1027556] [NEW] python shell prompts should not be editable

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

Changed in python-mode:
importance: Undecided → High
milestone: none → 6.1.0
Changed in python-mode:
assignee: nobody → Russell Sim (russell-sim)
Revision history for this message
Russell Sim (russell-sim) wrote :

I found a facility in comint mode to enable readonly prompts, i have added it as a buffer local variable and added a config option

Revision history for this message
Andreas Roehler (a-roehler) wrote :

Thanks, however, don't think it's needed as an option.
We never edit the prompt, it's just a bug.

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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.