aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorThien-Thi Nguyen2007-08-27 13:41:54 +0000
committerThien-Thi Nguyen2007-08-27 13:41:54 +0000
commit41fd2086e7cb98008e3511218f1962c4ff55a04a (patch)
tree9fc33ede4a78c07a5a09bd850a7add2747f78e36 /lisp
parent769174c4d4efe3e849480e4410c679605bb51eb2 (diff)
downloademacs-41fd2086e7cb98008e3511218f1962c4ff55a04a.tar.gz
emacs-41fd2086e7cb98008e3511218f1962c4ff55a04a.zip
(m2-definition, m2-module): Don't use previous-line.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/modula2.el4
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1bfbc6f3460..02011db6695 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-08-27 Thien-Thi Nguyen <ttn@gnuvola.org>
2
3 * progmodes/modula2.el (m2-definition, m2-module):
4 Don't use previous-line. Reported by T. V. Raman.
5
12007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 62007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2 7
3 * term/mac-win.el (mac-handle-toolbar-switch-mode): Add explicit 8 * term/mac-win.el (mac-handle-toolbar-switch-mode): Add explicit
diff --git a/lisp/progmodes/modula2.el b/lisp/progmodes/modula2.el
index fde526ab303..f2530a7f502 100644
--- a/lisp/progmodes/modula2.el
+++ b/lisp/progmodes/modula2.el
@@ -295,7 +295,7 @@ followed by the first character of the construct.
295 (insert "DEFINITION MODULE ") 295 (insert "DEFINITION MODULE ")
296 (let ((name (read-string "Name: "))) 296 (let ((name (read-string "Name: ")))
297 (insert name ";\n\n\n\nEND " name ".\n")) 297 (insert name ";\n\n\n\nEND " name ".\n"))
298 (previous-line 3)) 298 (forward-line -3))
299 299
300(defun m2-else () 300(defun m2-else ()
301 "Insert ELSE keyword and indent for next line." 301 "Insert ELSE keyword and indent for next line."
@@ -364,7 +364,7 @@ followed by the first character of the construct.
364 (insert "IMPLEMENTATION MODULE ") 364 (insert "IMPLEMENTATION MODULE ")
365 (let ((name (read-string "Name: "))) 365 (let ((name (read-string "Name: ")))
366 (insert name ";\n\n\n\nEND " name ".\n") 366 (insert name ";\n\n\n\nEND " name ".\n")
367 (previous-line 3) 367 (forward-line -3)
368 (m2-header) 368 (m2-header)
369 (m2-type) 369 (m2-type)
370 (newline) 370 (newline)