comparison scripts/miscellaneous/edit.m @ 12287:0566e6fef0c0 release-3-4-x

edit.m: As most editors open their own window, change mode to "async".
author Ben Abbott <bpabbott@mac.com>
date Sat, 29 Jan 2011 16:56:42 -0500
parents c792872f8942
children 2dbac27e0e40
comparison
equal deleted inserted replaced
12286:45c97076c161 12287:0566e6fef0c0
151 persistent FUNCTION = struct ("EDITOR", cstrcat (EDITOR (), " %s"), 151 persistent FUNCTION = struct ("EDITOR", cstrcat (EDITOR (), " %s"),
152 "HOME", fullfile (default_home, "octave"), 152 "HOME", fullfile (default_home, "octave"),
153 "AUTHOR", default_user(1), 153 "AUTHOR", default_user(1),
154 "EMAIL", [], 154 "EMAIL", [],
155 "LICENSE", "GPL", 155 "LICENSE", "GPL",
156 "MODE", "sync", 156 "MODE", "async",
157 "EDITINPLACE", false); 157 "EDITINPLACE", false);
158
159 ## Make sure the state variables survive "clear functions". 158 ## Make sure the state variables survive "clear functions".
160 mlock; 159 mlock;
161 160
162 if (nargin == 2) 161 if (nargin == 2)
163 switch (toupper (file)) 162 switch (toupper (file))