From f782d531336c7913a9187f0d685849bf88e41f10 Mon Sep 17 00:00:00 2001 From: Fabián Ezequiel Gallina Date: Sun, 26 May 2013 05:55:02 -0300 Subject: * progmodes/python.el (python-indent-block-enders): Add break, continue and raise keywords. --- lisp/progmodes/python.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp/progmodes/python.el') diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 266d193cdda..a76ea875f5d 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -628,7 +628,8 @@ It makes underscores and dots word constituent chars.") These make `python-indent-calculate-indentation' subtract the value of `python-indent-offset'.") -(defvar python-indent-block-enders '("return" "pass") +(defvar python-indent-block-enders + '("break" "continue" "pass" "raise" "return") "List of words that mark the end of a block. These make `python-indent-calculate-indentation' subtract the value of `python-indent-offset' when `python-indent-context' is -- cgit v1.2.1 From 20992a85041ddd8c2852eaef24fe69f9a47019a2 Mon Sep 17 00:00:00 2001 From: Fabián Ezequiel Gallina Date: Sun, 26 May 2013 06:06:02 -0300 Subject: * progmodes/python.el: Fix typo in commentary. --- lisp/progmodes/python.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/progmodes/python.el') diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index a76ea875f5d..f84849de4dd 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -157,7 +157,7 @@ ;; Skeletons: 6 skeletons are provided for simple inserting of class, ;; def, for, if, try and while. These skeletons are integrated with -;; dabbrev. If you have `dabbrev-mode' activated and +;; abbrev. If you have `abbrev-mode' activated and ;; `python-skeleton-autoinsert' is set to t, then whenever you type ;; the name of any of those defined and hit SPC, they will be ;; automatically expanded. As an alternative you can use the defined -- cgit v1.2.1