* lisp/progmodes/python.el (class skeleton): Don't erase last char of class
authorMatthias Meulien <orontee@gmail.com>
Thu, 12 Jun 2014 02:24:24 +0000 (22:24 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 12 Jun 2014 02:24:24 +0000 (22:24 -0400)
name.

Fixes: debbugs:17683

lisp/ChangeLog
lisp/progmodes/python.el

index d5422de..5e039a7 100644 (file)
@@ -1,3 +1,8 @@
+2014-06-12  Matthias Meulien  <orontee@gmail.com>
+
+       * progmodes/python.el (class skeleton): Don't erase last char of class
+       name (bug#17683).
+
 2014-06-12  Cameron Desautels  <camdez@gmail.com>  (tiny change)
 
        * help.el (where-is): Use `default' arg of completing-read (bug#17705).
index 79fbe7f..3a913a3 100644 (file)
@@ -2983,7 +2983,7 @@ The skeleton will be bound to python-skeleton-NAME."
   "class " str "(" ("Inheritance, %s: "
                     (unless (equal ?\( (char-before)) ", ")
                     str)
-  & ")" | -2
+  & ")" | -1
   ":" \n
   "\"\"\"" - "\"\"\"" \n
   > _ \n)