home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BCI NET 2
/
BCI NET 2.iso
/
archives
/
programming
/
source
/
emacs-18.59src.lha
/
emacs-18.59
/
amiga
/
contrib
/
chopps
/
lisp
/
fix-endif-no-comment.el
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1993-03-19
|
362 b
|
14 lines
;;
;; This small bit of lisp will fix the so common #endif somthing
;; (with no comment) code.
;;
(defun fix-endif-no-comment ()
(interactive)
(save-excursion
(beginning-of-buffer)
(replace-regexp "^#endif \\(.*\\)" "#endif /* \\1 */")
(beginning-of-buffer)
(replace-regexp "^#endif /\\* /\\* \\(.*\\) \\*/ \\*/" "#endif /* \\1 */")))