GNU bug report logs -
#29305
26.0.90; Wrong electrified indentation with Python multiline string
Previous Next
Reported by: Lele Gaifax <lele <at> metapensiero.it>
Date: Wed, 15 Nov 2017 09:35:02 UTC
Severity: minor
Tags: fixed, patch
Found in version 26.0.90
Fixed in version 26.1
Done: Noam Postavsky <npostavs <at> users.sourceforge.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Noam Postavsky <npostavs <at> users.sourceforge.net> writes:
> Well, there is no big mystery I think. It's simply that
> `python-indent-context' goes to the beginning of line itself:
>
> (defun python-indent-context ()
> ...
> (save-restriction
> (prog-widen)
> (let ((ppss (save-excursion
> (beginning-of-line)
> (syntax-ppss))))
Doh, you are right, I just skimmed through its docstring :-|
> Actually, I forgot to check for an indent context of :inside-docstring
> though. I'm not sure if there is valid python code which could trigger
> electric indent next to a docstring, but it's probably more correct to
> do this instead:
Will try your latest in my next Emacs sessions.
> Subject: [PATCH v2] Disable eletric indent for python strings (Bug#29305)
ele*ctric
Thank you again,
ciao, lele.
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele <at> metapensiero.it | -- Fortunato Depero, 1929.
This bug report was last modified 7 years and 269 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.