[options] gnc:warn when looking up old option names

the option lookup mechanism will dynamically translate option
names. warn the user if this takes place so that the report writer may
use new option names.
This commit is contained in:
Christopher Lam 2019-01-03 22:54:43 +08:00
parent 7c4d340e65
commit 4f0e9a5168

View File

@ -1749,6 +1749,9 @@ the option '~a'."))
(and name-match
(let ((new-section (car (cadr name-match)))
(new-name (cdr (cadr name-match))))
(gnc:debug
(format #f "option ~s/~s has been renamed to ~s/~s\n"
section name new-section new-name))
;; compare if new-section name exists.
(if new-section
;; if so, if it's different to current section name