emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/modus-operandi-theme 505043b 066/153: Fix bug with cust


From: Stefan Monnier
Subject: [elpa] externals/modus-operandi-theme 505043b 066/153: Fix bug with custom variable obsolete alias
Date: Thu, 18 Mar 2021 13:47:41 -0400 (EDT)

branch: externals/modus-operandi-theme
commit 505043b272242176f5a85311ab0f95fc8bf961f6
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Fix bug with custom variable obsolete alias
    
    I should not have use 'define-obsolete-variable-alias' because that is
    meant to retain the user's previous value.  So a boolean to an alist
    would fail for a non-nil value.
    
    See issue 88: https://gitlab.com/protesilaos/modus-themes/-/issues/88
---
 modus-operandi-theme.el | 10 ++++++----
 modus-vivendi-theme.el  | 10 ++++++----
 2 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/modus-operandi-theme.el b/modus-operandi-theme.el
index bde370b..a661e68 100644
--- a/modus-operandi-theme.el
+++ b/modus-operandi-theme.el
@@ -446,15 +446,17 @@ between foreground and background is >= 7:1)."
   "Use proportional fonts (variable-pitch) in headings."
   :type 'boolean)
 
-(define-obsolete-variable-alias 'modus-operandi-theme-rainbow-headings
-  'modus-operandi-theme-headings "`modus-operandi-theme' 0.13.0")
+(make-obsolete 'modus-operandi-theme-rainbow-headings
+               'modus-operandi-theme-headings
+               "`modus-operandi-theme' 0.13.0")
 
 (defcustom modus-operandi-theme-rainbow-headings nil
   "Use more saturated colours for headings."
   :type 'boolean)
 
-(define-obsolete-variable-alias 'modus-operandi-theme-section-headings
-  'modus-operandi-theme-headings "`modus-operandi-theme' 0.13.0")
+(make-obsolete 'modus-operandi-theme-section-headings
+               'modus-operandi-theme-headings
+               "`modus-operandi-theme' 0.13.0")
 
 (defcustom modus-operandi-theme-section-headings nil
   "Use a background and an overline in headings."
diff --git a/modus-vivendi-theme.el b/modus-vivendi-theme.el
index 4afbe9c..a6b6457 100644
--- a/modus-vivendi-theme.el
+++ b/modus-vivendi-theme.el
@@ -446,15 +446,17 @@ between foreground and background is >= 7:1)."
   "Use proportional fonts (variable-pitch) in headings."
   :type 'boolean)
 
-(define-obsolete-variable-alias 'modus-vivendi-theme-rainbow-headings
-  'modus-vivendi-theme-headings "`modus-vivendi-theme' 0.13.0")
+(make-obsolete 'modus-vivendi-theme-rainbow-headings
+               'modus-vivendi-theme-headings
+               "`modus-vivendi-theme' 0.13.0")
 
 (defcustom modus-vivendi-theme-rainbow-headings nil
   "Use more saturated colours for headings."
   :type 'boolean)
 
-(define-obsolete-variable-alias 'modus-vivendi-theme-section-headings
-  'modus-vivendi-theme-headings "`modus-vivendi-theme' 0.13.0")
+(make-obsolete 'modus-vivendi-theme-section-headings
+               'modus-vivendi-theme-headings
+               "`modus-vivendi-theme' 0.13.0")
 
 (defcustom modus-vivendi-theme-section-headings nil
   "Use a background and an overline in headings."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]