From 4f0e9a51683063e47dbc28ecdc08f6e5f9a0d692 Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Thu, 3 Jan 2019 22:54:43 +0800 Subject: [PATCH] [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. --- libgnucash/app-utils/options.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libgnucash/app-utils/options.scm b/libgnucash/app-utils/options.scm index c87dbf165a..bc0a99e8a0 100644 --- a/libgnucash/app-utils/options.scm +++ b/libgnucash/app-utils/options.scm @@ -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