[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dedent in Python-mode
From: |
Paul Pogonyshev |
Subject: |
Re: dedent in Python-mode |
Date: |
Mon, 25 Jun 2007 23:44:54 +0300 |
User-agent: |
KMail/1.7.2 |
Markus Triska wrote:
> Paul Pogonyshev <address@hidden> writes:
>
> > Yeah. In principle, I could write backtab function in my .emacs as
> > well. But don't you agree that if I press Shift+Tab and nothing in
> > the buffer changes, not even the point position, it looks like a
> > little broken?
>
> Please try this patch instead of the previous one:
Sorry, doesn't work at all here:
class Test ():
I put point right after (): and evaluate (newline-and-indent):
Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
1-(nil)
(setq python-indent-index (1- python-indent-list-length))
(if (and (= dir -1) (= ... ...) (> python-indent-list-length 1)) (progn (setq
python-indent-index ...) (python-indent-propose)) (setq python-indent-index (1-
python-indent-list-length)) (python-indent-line-1))
(if (and (member this-command cyclic) (member last-command cyclic)) (if (= 1
python-indent-list-length) (message "Sole indentation") (progn ... ...)) (if
(and ... ... ...) (progn ... ...) (setq python-indent-index ...)
(python-indent-line-1)))
(let ((cyclic ...)) (if (and ... ...) (if ... ... ...) (if ... ... ... ...)))
python-indent-line-dir(1)
python-indent-line()
indent-according-to-mode()
newline-and-indent()
eval((newline-and-indent))
eval-expression((newline-and-indent) nil)
call-interactively(eval-expression)
Paul
- dedent in Python-mode, Paul Pogonyshev, 2007/06/24
- Re: dedent in Python-mode, Markus Triska, 2007/06/24
- Re: dedent in Python-mode, Paul Pogonyshev, 2007/06/24
- Re: dedent in Python-mode, Markus Triska, 2007/06/24
- Re: dedent in Python-mode, Paul Pogonyshev, 2007/06/24
- Re: dedent in Python-mode, Markus Triska, 2007/06/24
- Re: dedent in Python-mode, Paul Pogonyshev, 2007/06/25
- Re: dedent in Python-mode, Markus Triska, 2007/06/25
- Re: dedent in Python-mode,
Paul Pogonyshev <=
- Re: dedent in Python-mode, Markus Triska, 2007/06/25
- Re: dedent in Python-mode, Paul Pogonyshev, 2007/06/25