Inconsistent behaviour when following links - BTS Issues SS-36 and SS-37 - Messages
1. you silently loose your edits
2. the filename in the window title is not updated
Internally the buffer is treated as if the new file had been opened. When you edit the new file (link target of the original one), then Save will save the edits to the new file name, not to the old, as the window title might suggest. Still, this is better than the earlier behaviour, when saving the new file would overwrite the calling one.
Proposal:
For item 1: Provide a security check dialog before replacing unsaved buffer contents, buttons could be [Save] [No Save] [Cancel].
For item 2: just fix the bug.
WroteIf you edit a file and follow a link in that file, then
1. you silently loose your edits
I agree with this completely. Just to try clarify a bit. If we follow the links (CTRL+left click-means files are editable) than every edited file to popup a dialog window [Save] [No Save] [Cancel] after clicking to any link inside them. At the moment, there is just no difference if the files are set to "editable" or "not-editable", except any editing will be lost in the "editable" .
Wrote
2. the filename in the window title is not updated
This is also important if the previous item is going to be changed in order to see which one of the files has been edited and should be saved. Then I suppose the old file would be overwritten with the edited one with the same name. When the files with links are transformed (somehow) to the Reference Book type, these things are of no importance, because everything will be non-editable.
Wrote
Internally the buffer is treated as if the new file had been opened. When you edit the new file (link target of the original one), then Save will save the edits to the new file name, not to the old, as the window title might suggest. Still, this is better than the earlier behaviour, when saving the new file would overwrite the calling one.
Proposal:
For item 1: Provide a security check dialog before replacing unsaved buffer contents, buttons could be [Save] [No Save] [Cancel].
For item 2: just fix the bug.
Correct me if I was wrong.
Regards,
Radovan
the problem of loosing edits always just affects a single file: the one that contains the link you want to follow. There may be more buffers open and unsaved, but just the current one is going to be replaced by the link target and needs to be saved prior to that.
I am not going to be the one who switches all the files to non-editable prior to distribution. Even the small handbook prototype contains 58 files that I do not want to touch individually just for that. Of course, you can do some scripting about that, but this would make the process of providing contents dependent on third party co-operation. Also, if the feature request is implemented, then the inconsistency is gone.
Martin
Regards,
Radovan
WroteBy the way, I am not sure if I manage to follow all your thoughts correctly but I do not mind to much if I put your Handbook inside Reference Book, and the changes, editing is temporary.
OK, I admit, that the bug fix is more important for handbook writers than for readers ;-)
-
New Posts
-
No New Posts