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

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

[elpa] externals/modus-operandi-theme adb02c5 069/153: Use more appropri


From: Stefan Monnier
Subject: [elpa] externals/modus-operandi-theme adb02c5 069/153: Use more appropriate syntax for obsolete variables
Date: Thu, 18 Mar 2021 13:47:41 -0400 (EDT)

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

    Use more appropriate syntax for obsolete variables
---
 modus-operandi-theme.el | 30 ++++++++++++++++++------------
 modus-vivendi-theme.el  | 30 ++++++++++++++++++------------
 2 files changed, 36 insertions(+), 24 deletions(-)

diff --git a/modus-operandi-theme.el b/modus-operandi-theme.el
index 066747c..8de6a5d 100644
--- a/modus-operandi-theme.el
+++ b/modus-operandi-theme.el
@@ -611,8 +611,9 @@ For more on the matter, read the documentation of
 `set-face-attribute', specifically the ':height' section."
   :type 'number)
 
-(define-obsolete-variable-alias 'modus-operandi-theme-visible-fringes
-  'modus-operandi-theme-fringes "`modus-operandi-theme' 0.12.0")
+(make-obsolete 'modus-operandi-theme-visible-fringes
+               'modus-operandi-theme-fringes
+               "`modus-operandi-theme' 0.12.0")
 
 (defcustom modus-operandi-theme-visible-fringes nil
   "Use a visible style for fringes."
@@ -630,15 +631,17 @@ pronounced greyscale value."
           (const :tag "Subtle greyscale background" subtle)
           (const :tag "Intense greyscale background" intense)))
 
-(define-obsolete-variable-alias 'modus-operandi-theme-distinct-org-blocks
-  'modus-operandi-theme-org-blocks "`modus-operandi-theme' 0.11.0")
+(make-obsolete 'modus-operandi-theme-distinct-org-blocks
+               'modus-operandi-theme-org-blocks
+               "`modus-operandi-theme' 0.11.0")
 
 (defcustom modus-operandi-theme-distinct-org-blocks nil
   "Use a distinct neutral background for `org-mode' blocks."
   :type 'boolean)
 
-(define-obsolete-variable-alias 'modus-operandi-theme-rainbow-org-src-blocks
-  'modus-operandi-theme-org-blocks "`modus-operandi-theme' 0.11.0")
+(make-obsolete 'modus-operandi-theme-rainbow-org-src-blocks
+               'modus-operandi-theme-org-blocks
+               "`modus-operandi-theme' 0.11.0")
 
 (defcustom modus-operandi-theme-rainbow-org-src-blocks nil
   "Use colour-coded backgrounds for `org-mode' source blocks.
@@ -668,8 +671,9 @@ association list)."
           (const :tag "Subtle grey block background" greyscale)
           (const :tag "Colour-coded background per programming language" 
rainbow)))
 
-(define-obsolete-variable-alias 'modus-operandi-theme-3d-modeline
-  'modus-operandi-theme-mode-line "`modus-operandi-theme' 0.13.0")
+(make-obsolete 'modus-operandi-theme-3d-modeline
+               'modus-operandi-theme-mode-line
+               "`modus-operandi-theme' 0.13.0")
 
 (defcustom modus-operandi-theme-3d-modeline nil
   "Use a three-dimensional style for the active mode line."
@@ -697,8 +701,9 @@ intended purpose, this option can also be used without the
           (const :tag "Three-dimensional style for the active mode line" 3d)
           (const :tag "No box effects, which are optimal for use with the 
`moody' library" moody)))
 
-(define-obsolete-variable-alias 'modus-operandi-theme-subtle-diffs
-  'modus-operandi-theme-diffs "`modus-operandi-theme' 0.13.0")
+(make-obsolete 'modus-operandi-theme-subtle-diffs
+               'modus-operandi-theme-diffs
+               "`modus-operandi-theme' 0.13.0")
 
 (defcustom modus-operandi-theme-subtle-diffs nil
   "Use fewer/dim backgrounds in `diff-mode', `ediff',`magit'."
@@ -726,8 +731,9 @@ greyscale value is used."
           (const :tag "Slightly accented backgrounds with tinted text" 
desaturated)
           (const :tag "No backgrounds, except for refined diffs" fg-only)))
 
-(define-obsolete-variable-alias 
'modus-operandi-theme-intense-standard-completions
-  'modus-operandi-theme-completions "`modus-operandi-theme' 0.12.0")
+(make-obsolete 'modus-operandi-theme-intense-standard-completions
+               'modus-operandi-theme-completions
+               "`modus-operandi-theme' 0.12.0")
 
 (defcustom modus-operandi-theme-intense-standard-completions nil
   "Use prominent backgrounds for Icomplete, Ido, or similar."
diff --git a/modus-vivendi-theme.el b/modus-vivendi-theme.el
index 3271c19..682c7a2 100644
--- a/modus-vivendi-theme.el
+++ b/modus-vivendi-theme.el
@@ -611,8 +611,9 @@ For more on the matter, read the documentation of
 `set-face-attribute', specifically the ':height' section."
   :type 'number)
 
-(define-obsolete-variable-alias 'modus-vivendi-theme-visible-fringes
-  'modus-vivendi-theme-fringes "`modus-vivendi-theme' 0.12.0")
+(make-obsolete 'modus-vivendi-theme-visible-fringes
+               'modus-vivendi-theme-fringes
+               "`modus-vivendi-theme' 0.12.0")
 
 (defcustom modus-vivendi-theme-visible-fringes nil
   "Use a visible style for fringes."
@@ -630,15 +631,17 @@ pronounced greyscale value."
           (const :tag "Subtle greyscale background" subtle)
           (const :tag "Intense greyscale background" intense)))
 
-(define-obsolete-variable-alias 'modus-vivendi-theme-distinct-org-blocks
-  'modus-vivendi-theme-org-blocks "`modus-vivendi-theme' 0.11.0")
+(make-obsolete 'modus-vivendi-theme-distinct-org-blocks
+               'modus-vivendi-theme-org-blocks
+               "`modus-vivendi-theme' 0.11.0")
 
 (defcustom modus-vivendi-theme-distinct-org-blocks nil
   "Use a distinct neutral background for `org-mode' blocks."
   :type 'boolean)
 
-(define-obsolete-variable-alias 'modus-vivendi-theme-rainbow-org-src-blocks
-  'modus-vivendi-theme-org-blocks "`modus-vivendi-theme' 0.11.0")
+(make-obsolete 'modus-vivendi-theme-rainbow-org-src-blocks
+               'modus-vivendi-theme-org-blocks
+               "`modus-vivendi-theme' 0.11.0")
 
 (defcustom modus-vivendi-theme-rainbow-org-src-blocks nil
   "Use colour-coded backgrounds for `org-mode' source blocks.
@@ -668,8 +671,9 @@ association list)."
           (const :tag "Subtle grey block background" greyscale)
           (const :tag "Colour-coded background per programming language" 
rainbow)))
 
-(define-obsolete-variable-alias 'modus-vivendi-theme-3d-modeline
-  'modus-vivendi-theme-mode-line "`modus-vivendi-theme' 0.13.0")
+(make-obsolete 'modus-vivendi-theme-3d-modeline
+               'modus-vivendi-theme-mode-line
+               "`modus-vivendi-theme' 0.13.0")
 
 (defcustom modus-vivendi-theme-3d-modeline nil
   "Use a three-dimensional style for the active mode line."
@@ -697,8 +701,9 @@ intended purpose, this option can also be used without the
           (const :tag "Three-dimensional style for the active mode line" 3d)
           (const :tag "No box effects, which are optimal for use with the 
`moody' library" moody)))
 
-(define-obsolete-variable-alias 'modus-vivendi-theme-subtle-diffs
-  'modus-vivendi-theme-diffs "`modus-vivendi-theme' 0.13.0")
+(make-obsolete 'modus-vivendi-theme-subtle-diffs
+               'modus-vivendi-theme-diffs
+               "`modus-vivendi-theme' 0.13.0")
 
 (defcustom modus-vivendi-theme-subtle-diffs nil
   "Use fewer/dim backgrounds in `diff-mode', `ediff',`magit'."
@@ -726,8 +731,9 @@ greyscale value is used."
           (const :tag "Slightly accented backgrounds with tinted text" 
desaturated)
           (const :tag "No backgrounds, except for refined diffs" fg-only)))
 
-(define-obsolete-variable-alias 
'modus-vivendi-theme-intense-standard-completions
-  'modus-vivendi-theme-completions "`modus-vivendi-theme' 0.12.0")
+(make-obsolete 'modus-vivendi-theme-intense-standard-completions
+               'modus-vivendi-theme-completions
+               "`modus-vivendi-theme' 0.12.0")
 
 (defcustom modus-vivendi-theme-intense-standard-completions nil
   "Use prominent backgrounds for Icomplete, Ido, or similar."



reply via email to

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