From: Etienne G. <et...@is...> - 2002-11-02 13:25:20
|
Hello, for those who use emacs and are updating octave code for 2.1.39, the following macro may come handy to substitute a line like function foo (...) into ## pre 2.1.39 function foo (...) function foo (...) ## pos 2.1.39 , so that it be easy to keep track of the changes. Hth, Etienne ====================================================================== ;; Keyboard Macro Editor. Press C-c C-c to finish; press C-x k RET to cancel. ;; Original keys: C-a C-k C-y C-a ## S-SPC pre SPC 2.1.39 SPC C-e RET C-y C-e SPC ## SPC pos SPC 2.1.39 Command: octadapt Key: none Macro: C-a ;; beginning-of-line C-k ;; kill-line C-y ;; hilit-yank C-a ;; beginning-of-line ## ;; self-insert-command * 2 S-SPC pre ;; self-insert-command * 3 SPC ;; self-insert-command 2.1.39 ;; self-insert-command * 6 SPC ;; self-insert-command C-e ;; end-of-line RET ;; newline C-y ;; hilit-yank C-e ;; end-of-line SPC ;; self-insert-command ## ;; self-insert-command * 2 SPC ;; self-insert-command pos ;; self-insert-command * 3 SPC ;; self-insert-command 2.1.39 ;; self-insert-command * 6 -- Etienne Grossmann ------ http://www.isr.ist.utl.pt/~etienne |