GNU bug report logs -
#38812
28.0.50; Custom: Problem with reverting some session's customizations
Previous Next
Reported by: Mauro Aranda <maurooaranda <at> gmail.com>
Date: Mon, 30 Dec 2019 14:12:02 UTC
Severity: normal
Tags: patch
Found in version 28.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #13 received at 38812 <at> debbugs.gnu.org (full text, mbox):
> From: Mauro Aranda <maurooaranda <at> gmail.com>
> Date: Tue, 31 Dec 2019 11:22:27 -0300
>
> * lisp/custom.el (custom-variable-theme-value): Return a new list with
> the value of variable, so the values of the properties 'theme-value
> and 'saved-value are not shared. (Bug#38812)
> ---
> lisp/custom.el | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lisp/custom.el b/lisp/custom.el
> index 26bdaae..e9bb0d3 100644
> --- a/lisp/custom.el
> +++ b/lisp/custom.el
> @@ -1483,8 +1483,8 @@ custom-variable-theme-value
>
> This function returns nil if no custom theme specifies a value for VARIABLE."
> (let ((theme-value (get variable 'theme-value)))
> - (if theme-value
> - (cdr (car theme-value)))))
> + (if theme-value ; ((THEME VALUE))
> + (list (cadar theme-value)))))
This will look strange without some comment explaining why we do this.
And I have a question is: isn't it better not to use setcar in
custom-push-theme instead?
This bug report was last modified 5 years and 198 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.