emacs-devel
[Top][All Lists]
Advanced

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

Re: python-mode (python.el): python-backspace


From: Dave Love
Subject: Re: python-mode (python.el): python-backspace
Date: Mon, 17 May 2004 18:12:33 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux)

Karl Chen <address@hidden> writes:

> Python.el's python-backspace:
>     Close the current block
>
>     Counter-intuitive in many cases, such as if point is already
>     left of where python-backspace moves indents to (backspace
>     moves the cursor rightward?!)

I don't understand that.

> I suggest python-backspace's behavior be changed so that: if point
> is <= where the current behavior would have indented to, then
> unindent by 1 python-indent level

I don't remember whether the behaviour was intended to be the same as
python-mode.el or not.  Anyhow, I don't object if someone cares to
change it.

I see the `python-backspace' doc string is unclear/incorrect.  I'd
suggest changing it to something like this for the current
implementation:

  "Maybe delete a level of indentation on the current line.
Do so if point is at the end of line's indentation.
Otherwise, just call `backward-delete-char-untabify'.
With ARG, repeat that many times."




reply via email to

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