# HG changeset patch # User Thien-Thi Nguyen # Date 1188222027 0 # Node ID 96cf59afcbbc7c6957b23dc7e9db7c700deea244 # Parent bf0e628b88ccfe50f731ba909453c5f4d4f16574 (m2-definition, m2-module): Don't use previous-line. diff -r bf0e628b88cc -r 96cf59afcbbc lisp/progmodes/modula2.el --- a/lisp/progmodes/modula2.el Mon Aug 27 08:33:57 2007 +0000 +++ b/lisp/progmodes/modula2.el Mon Aug 27 13:40:27 2007 +0000 @@ -295,7 +295,7 @@ (insert "DEFINITION MODULE ") (let ((name (read-string "Name: "))) (insert name ";\n\n\n\nEND " name ".\n")) - (previous-line 3)) + (forward-line -3)) (defun m2-else () "Insert ELSE keyword and indent for next line." @@ -364,7 +364,7 @@ (insert "IMPLEMENTATION MODULE ") (let ((name (read-string "Name: "))) (insert name ";\n\n\n\nEND " name ".\n") - (previous-line 3) + (forward-line -3) (m2-header) (m2-type) (newline)