Menu

#220 saveHook error with multiple untitled documents

9.0
closed
nobody
None
Bug
major
2019-11-04
2019-10-04
No

With the backup feature activated, try to save the
second of some untitled windows. The actual save
operation is accomplished correctly, but the following
error is raised at the same time:

'saveHook' hook error log for proc 'backupOnSave': could not read "untitled": no such file or directory - errorInfo: could not read "untitled": no such file or directory
while executing
"file size $name"
(procedure "backupOnSave" line 10)
invoked from within
"backupOnSave {untitled <2>}"
("eval" body line 1)
invoked from within
"eval backupOnSave {{untitled <2>}}"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list eval $proc $args]"

Discussion

  • Bernard Desgraupes

    This is fixed. The backupOnSave proc was calling [file size] on a file which does not exist on disk.
    Changes committed to the repository (rev. 1789).

     
  • Bernard Desgraupes

    • status: open --> fixed
     
  • Bernard Desgraupes

    • status: fixed --> closed
     

Log in to post a comment.