Function: m2-toggle
m2-toggle is an interactive and byte-compiled function defined in
modula2.el.gz.
Signature
(m2-toggle)
Documentation
Toggle between .mod and .def files for the module.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/modula2.el.gz
(defun m2-toggle ()
"Toggle between .mod and .def files for the module."
(interactive)
(cond ((string-equal (substring (buffer-name) -4) ".def")
(find-file-other-window
(concat (substring (buffer-name) 0 -4) ".mod")))
((string-equal (substring (buffer-name) -4) ".mod")
(find-file-other-window
(concat (substring (buffer-name) 0 -4) ".def")))
((string-equal (substring (buffer-name) -3) ".mi")
(find-file-other-window
(concat (substring (buffer-name) 0 -3) ".md")))
((string-equal (substring (buffer-name) -3) ".md")
(find-file-other-window
(concat (substring (buffer-name) 0 -3) ".mi")))))