1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-25 05:52:42 -08:00
emacs/test/lisp
Philipp Stephani 4fbd330fae Protect against an infloop in python-mode
There appears to be an edge case caused by using `syntax-ppss' in a
narrowed buffer during JIT lock inside of Python triple-quote strings.
Unfortunately it is impossible to reproduce without manually
destroying the syntactic information in the Python buffer, but it has
been observed in practice.  In that case it can happen that the syntax
caches get sufficiently out of whack so that there appear to be
overlapping strings in the buffer.  As Python has no nested strings,
this situation is impossible and leads to an infloop in
`python-nav-end-of-statement'.  Protect against this by checking
whether the search for the end of the current string makes progress.

* python.el (python-nav-end-of-statement): Protect against infloop.
* progmodes/python-tests.el
(python-tests--python-nav-end-of-statement--infloop): Add unit test.
2017-03-23 23:05:19 +01:00
..
calc Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
calendar Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
emacs-lisp * test/lisp/emacs-lisp/lisp-mode-tests.el (indent-subsexp): Test for Bug#26187 2017-03-21 20:45:32 -04:00
emulation Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
erc Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
eshell Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
gnus Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
international Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
mail Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
net Use lexical-bind in Tramp 2017-03-23 14:58:04 +01:00
progmodes Protect against an infloop in python-mode 2017-03-23 23:05:19 +01:00
textmodes Fix bug in css--mdn-find-symbol 2017-02-11 08:43:47 -07:00
url Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
vc epatch: Save right backups in Git multipatches 2017-03-21 17:25:55 +09:00
abbrev-tests.el test/*.el: Avoid byte-compiler warnings 2017-01-28 04:40:36 +01:00
auth-source-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
autorevert-tests.el Fix autorevert-tests on MS-Windows 2017-02-04 13:49:55 +02:00
buff-menu-tests.el Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
char-fold-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
comint-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
dabbrev-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
descr-text-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
dired-tests.el Choose the right target dir on dired operations 2017-02-27 16:26:06 +09:00
dom-tests.el Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
electric-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
epg-tests.el Fix epg-tests with dummy-pinentry program (Bug#23619) 2017-02-28 19:57:35 -05:00
faces-tests.el test/*.el: Avoid byte-compiler warnings 2017-01-28 04:40:36 +01:00
ffap-tests.el test/*.el: Avoid byte-compiler warnings 2017-01-28 04:40:36 +01:00
filenotify-tests.el Fix filenotify.el issue for kqueue 2017-03-22 19:33:03 +00:00
files-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
files-x-tests.el Rework connection local variables 2017-02-19 17:14:35 +01:00
help-fns-tests.el Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
htmlfontify-tests.el Don't require a shell when loading htmlfontify 2017-01-27 18:37:58 +01:00
ibuffer-tests.el test/*.el: Avoid byte-compiler warnings 2017-01-28 04:40:36 +01:00
imenu-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
info-xref-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
isearch-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
jit-lock-tests.el Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
json-tests.el Fix encoding of JSON surrogate pairs 2017-01-01 13:24:14 +01:00
kmacro-tests.el Add tests for lisp/kmacro.el 2017-02-04 13:55:47 +02:00
man-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
md4-tests.el Turn on lexical-binding in md4.el 2017-01-03 18:34:13 -05:00
minibuffer-tests.el test/*.el: Avoid byte-compiler warnings 2017-01-28 04:40:36 +01:00
mouse-tests.el Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
obarray-tests.el Add obarray-size and fix tests accordingly. Use obarrayp in cedet. 2017-03-16 12:31:07 -04:00
ps-print-tests.el Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
replace-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
rot13-tests.el Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
shell-tests.el Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
simple-tests.el test/*.el: Avoid byte-compiler warnings 2017-01-28 04:40:36 +01:00
sort-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
subr-tests.el Add support for Unicode whitespace in [:blank:] 2017-01-06 20:12:48 +01:00
thingatpt-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
whitespace-tests.el Update copyright year to 2017 in master 2017-01-01 01:48:59 -08:00
xml-tests.el xml: Fix parsing of default namespace with quoted names 2017-01-24 22:56:05 +01:00
xt-mouse-tests.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00