[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15137: python mode patch
From: |
fabian |
Subject: |
bug#15137: python mode patch |
Date: |
Sat, 31 Aug 2013 09:44:43 -0300 |
User-agent: |
mu4e 0.9.9.5; emacs 24.3.1 |
monnier@iro.umontreal.ca writes:
>> ! (buffer-substring start end))
> [...]
>> ! ;; wrap with a conditional to avoid errors about python unexpected
>> indentation
>> ! "if True:\n"
>> ! (buffer-substring start end)
>> ! "\n")
>
> That looks pretty good, thank you.
> Fabián, could you take a look?
>
The idea is good but the patch needs bit more of work -- this approach
will work when an indented region is sent but won't when sending a
region which starts with no indentation at all. Also backtraces numbers
will be wrong for a -1 offset.
I'll push something for this soon.
Regards,
Fabián.