GNU bug report logs - #21671
[PATCH] fix python.el hanging up during fontification #21657

Previous Next

Package: emacs;

Reported by: immerrr again <immerrr <at> gmail.com>

Date: Mon, 12 Oct 2015 11:49:02 UTC

Severity: normal

Tags: confirmed, fixed, patch

Merged with 21628, 21629, 21646, 21657, 24839, 24856, 24905, 26041

Found in versions 25.0.50, 25.1, 25.1.50, 26.0.50

Fixed in version 25.2

Done: Daniel Colascione <dancol <at> dancol.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: immerrr again <immerrr <at> gmail.com>
To: 21671 <at> debbugs.gnu.org
Subject: bug#21671: [PATCH] fix python.el hanging up during fontification #21657
Date: Mon, 12 Oct 2015 14:48:50 +0300
[Message part 1 (text/plain, inline)]
Two patches are included.

One fixes the fact that for some reason syntax-propertize--done has
ceased to be buffer-local after commit [1] and for some reason commit
[2] did not help. I did it the way other buffer-local variables are
initialized and it worked. The change fixes #21657 that was failing
because syntax-propertize--done was inherited from scratch buffer and
docstring boundaries were not propertized as a result.

The other infinite loop I found accidentally when adding a whitespace
before module docstring. I have fixed one corner-case of it, but in
other circumstances I'd argue that whatever smart extensions
python-mode adds to forward-sexp, those extensions should never move
point less than the normal forward-sexp should.

Cheers,
immerrr

1. https://github.com/emacs-mirror/emacs/commit/3928ef2dd5b8febf3b1d9c1bfb22af3698d16bea

2. https://github.com/emacs-mirror/emacs/commit/0360b7f2c4f0358106e229de4dfe91a67445a50c
[0002-Prevent-infinite-loop-in-python-info-docstring-p.patch (text/x-patch, attachment)]
[0001-Fix-syntax-propertize-done-to-be-buffer-local.patch (text/x-patch, attachment)]

This bug report was last modified 8 years and 72 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.