Backtrace:
In unknown file:
   ?: 0* [gnc:report-save-to-savefile #]
In /usr/share/gnucash/scm/report.scm:
 420: 1* (let* (# # #) (if # #))
 427: 2  (if (record? save-result) (begin (display saved-form #) (force-output) ...))
 428: 3  (begin (display saved-form #) (force-output) (let # #))
 429: 4* [display ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Options for saved report \"test\", based on template \"Account Summary\"
(let ()
 (define (options-gen)
  (let ((options (gnc:report-template-new-options/name \"Account Summary\")))

; Section: Commodities


; Section: General

(let ((option (gnc:lookup-option options
                                 \"General\"
                                 \"Report name\")))
  ((lambda (option) (if option ((gnc:option-setter option) \"test\"))) option))


; Section: Accounts


; Section: Display

  options))
 (gnc:define-report 
  'version 1
  'name \"test\"
  'options-generator options-gen
  'menu-path (list gnc:menuname-custom)
  'renderer (gnc:report-template-renderer/name \"Account Summary\")))

" ...
 430: 5*  (open-file conf-file-name "a")

/usr/share/gnucash/scm/report.scm:430:20: In expression (open-file conf-file-name "a"):
/usr/share/gnucash/scm/report.scm:430:20: Unbound variable: open-file

