1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-31 01:20:37 -08:00
emacs/test
Christoph Wedler 044d4cc0c0 Respect `prog-indentation-context' in python.el
* lisp/progmodes/python.el (python-indent-guess-indent-offset)
(python-indent-context, python-indent--calculate-indentation)
(python-info-current-defun)
(python-info-dedenter-opening-block-message)
(python-info-line-ends-backslash-p)
(python-info-beginning-of-backslash)
(python-info-continuation-line-p): Use `prog-widen'.
(python-indent--calculate-indentation)
(python-indent--calculate-levels)
(python-indent-calculate-indentation): Use `prog-first-column'.
(python-indent--calculate-levels): Simplify.

Ignore also initial empty lines for syntax calculation.
* lisp/progmodes/python.el (python-indent-context): Return
:no-indent for first non-empty line, not just in line 1.
* test/automated/python-tests.el (python-indent-base-case)
(python-indent-inside-paren-1, python-indent-inside-paren-2)
(python-indent-inside-paren-3, python-indent-inside-paren-4)
(python-indent-inside-paren-5, python-indent-inside-paren-6)
(python-indent-after-backslash-1)
(python-indent-after-backslash-2)
(python-indent-after-backslash-3)
(python-indent-after-backslash-4, python-indent-inside-string-1):
Expect :no-indent for first non-empty line.
2015-07-05 08:52:03 +00:00
..
automated Respect `prog-indentation-context' in python.el 2015-07-05 08:52:03 +00:00
cedet Spelling fixes 2015-02-21 20:01:05 -08:00
etags Add etags test for the new -Q option 2015-05-30 15:01:49 +03:00
indent * lisp/progmodes/perl-mode.el: Refine handling of /re/ and y/abc/def/ 2015-06-15 17:10:06 -04:00
BidiCharacterTest.txt Update data files from just-released Unicode 8.0 2015-06-18 11:14:13 +03:00
biditest.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
ChangeLog.1 ; Convert ChangeLog history files to "Bug#NNNN" 2015-04-18 19:48:24 -07:00
README Mention etc/compilation.txt 2009-07-26 15:59:37 +00:00
redisplay-testsuite.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00
rmailmm.el Update copyright year to 2015 2015-01-01 14:26:41 -08:00

This directory contains files intended to test various aspects of
Emacs's functionality.  Please help add tests!

(Also, see etc/compilation.txt for compilation mode font lock tests.)