After I change from +DD to +D, I see in the Backup options that global directory is set. I wanted to have the backup history kept.
Does this mean I cannot use the backup history save option until this is fixed?
+DD is a valid option - it means "Delta" backup. +DM means global nested directory. +DB means same directory as .Bak +DK means child directory. +D is valid too. All options must be space separated so this is part of the reason you get "invalid option" so go back into tools-> options file options -> backup and select what you want. After saving the options, look at def_save_options and try adding spaces where they are missing - there might not be any missing to start with.
I've never had a problem with the def_save_options getting corrupted and I use backup history every day. The def_save_option string I have is -O -Z -ZR -E -S -L +DD
In previous versions of slickedit there was a function in filecfg.e called oncloseSaveBackupOptions() which built the def_save_options string and went to great trouble to insert a space between each option but this function has disappeared in SE2008.
There seems to be a bug in _file_load_select function in optionsxml.e where it calls _set_load_save_select with the first argument set to false when it should be set to true. This causes it to modify def_save_options when it should be modifying def_load_options. The function _set_load_save_select is also puzzling because it seems to assume that each option is followed by a value, however I don't understand the regular expression it's using. It's also going to have a problem matching +D because this will also match +DM +DD etc. but it doesn't seem to get called with the D option.
Graeme
Edit I had another look at this and _fbuo_backup_directory_option calls _file_save_select with the D option so set_load_save_select gets called with the D option and as far as I can see, it will work incorrectly if the existing options string has a +/-D option with no second character after the first D - in that case it will incorrectly strip a space character. However nothing seems to call _fbuo_backup_directory_option. =D by itself supposedly means the backup option is "global directory" but if I select global directory, the D option gets removed from def_save_options completely so I don't know how you'd ever get just +D (unless you edit the string yourself). By playing with the backup options I'm actually getting increasing amounts of redundant spaces added to it. This is what my def_save_options look like now! -O -Z -ZR -E -S -L +DD