Mercurial > hg > octave-nkf
diff scripts/miscellaneous/edit.m @ 8746:5dd06f19e9be
handle commands in the lexer
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 15 Feb 2009 23:49:15 -0500 |
parents | bc982528de11 |
children | bb38a86efa1b |
line wrap: on
line diff
--- a/scripts/miscellaneous/edit.m +++ b/scripts/miscellaneous/edit.m @@ -134,8 +134,6 @@ ## Original version by Paul Kienzle distributed as free software in the ## public domain. -## PKG_ADD: mark_as_command edit - function ret = edit (file, state) ## Pick up globals or default them. @@ -498,13 +496,13 @@ endfunction %!test -%! s.editor = edit get editor; -%! s.home = edit get home; -%! s.author = edit get author; -%! s.email = edit get email; -%! s.license = edit get license; -%! s.editinplace = edit get editinplace; -%! s.mode = edit get mode; +%! s.editor = edit ("get", "editor"); +%! s.home = edit ("get", "home"); +%! s.author = edit ("get", "author"); +%! s.email = edit ("get", "email"); +%! s.license = edit ("get", "license"); +%! s.editinplace = edit ("get", "editinplace"); +%! s.mode = edit ("get", "mode"); %! edit editor none %! edit home none %! edit author none