aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/modula2.el
diff options
context:
space:
mode:
authorThien-Thi Nguyen <[email protected]>2007-08-27 13:38:50 +0000
committerThien-Thi Nguyen <[email protected]>2007-08-27 13:38:50 +0000
commit2503f22288aa87e0ce77af4d45f7ef6e7b6eeab7 (patch)
tree45c57919fd56f1c58dbe347895e8be84618266ed /lisp/progmodes/modula2.el
parent970a31dd849125f9d98bbc5519276338d1ddff28 (diff)
(m2-definition, m2-module): Don't use previous-line.
Diffstat (limited to 'lisp/progmodes/modula2.el')
-rw-r--r--lisp/progmodes/modula2.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/modula2.el b/lisp/progmodes/modula2.el
index fde526ab30..f2530a7f50 100644
--- a/lisp/progmodes/modula2.el
+++ b/lisp/progmodes/modula2.el
@@ -295,7 +295,7 @@ followed by the first character of the construct.
(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 @@ followed by the first character of the construct.
(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)