-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmark.ml
39 lines (38 loc) · 1.05 KB
/
mark.ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
;;; mark.ml: Rog-O-Matic XIV (CMU) Fri Dec 28 19:07:44 1984 - mlm
(defun
(mark-rgm-edit buffer-was-modified
(setq buffer-was-modified buffer-is-modified)
(save-excursion
(if
(error-occurred
(goto-character 2000)
(search-reverse (concat "Rog-O-Matic XIV" " (CMU) "))
(search-forward "")
(kill-to-end-of-line)
(insert-string
(concat (current-time) " - " (users-login-name))))
(progn
(error-occurred
(beginning-of-file)
(search-forward ": version XIII,")
(end-of-line)
(forward-character)
(set-mark)
(beginning-of-file)
(wipe-region))
(beginning-of-file)
(insert-string "/*")
(newline)
(insert-string
(concat " * " (current-buffer-name)
": Rog-O-Matic XIV" " (CMU) "
(current-time) " - " (users-login-name)))
(newline)
(insert-string
(concat
" * Copyright (C) 1985 by A. Appel, "
"G. Jacobson, L. Hamey, and M. Mauldin"))
(newline)
(insert-string " */")
(newline))))
(setq buffer-is-modified buffer-was-modified)))