]> code.delx.au - gnu-emacs-elpa/commitdiff
Mark the obsolete variables as such
authorDmitry Gutov <dgutov@yandex.ru>
Sun, 10 Feb 2013 06:02:06 +0000 (10:02 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 10 Feb 2013 06:02:06 +0000 (10:02 +0400)
Close #80

js2-mode.el

index 2074173b3047f03e5fab27fa3e3ceda0a7584c62..de465f1d20e66c4ec840a1ff70b8b08240adeb65 100644 (file)
@@ -215,6 +215,8 @@ Similar to `c-basic-offset'."
   :group 'js2-mode
   :type 'boolean)
 
+(make-obsolete-variable 'js2-mirror-mode 'electric-pair-mode "1.0")
+
 (defcustom js2-auto-indent-p nil
   "Automatic indentation with punctuation characters.
 If non-nil, the current line is indented when certain punctuations
@@ -222,6 +224,8 @@ are inserted."
   :group 'js2-mode
   :type 'boolean)
 
+(make-obsolete-variable 'js2-auto-indent-p 'electric-indent-mode "1.0")
+
 (defcustom js2-bounce-indent-p nil
   "Non-nil to have indent-line function choose among alternatives.
 If nil, the indent-line function will indent to a predetermined column
@@ -259,24 +263,32 @@ This is unusual for Emacs modes but common in IDEs like Eclipse."
   :type 'boolean
   :group 'js2-mode)
 
+(make-obsolete-variable 'js2-indent-on-enter-key nil "1.0")
+
 (defcustom js2-enter-indents-newline nil
   "Non-nil to have Enter/Return key indent the newly-inserted line.
 This is unusual for Emacs modes but common in IDEs like Eclipse."
   :type 'boolean
   :group 'js2-mode)
 
+(make-obsolete-variable 'js2-enter-indents-newline nil "1.0")
+
 (defcustom js2-rebind-eol-bol-keys t
   "Non-nil to rebind `beginning-of-line' and `end-of-line' keys.
 If non-nil, bounce between bol/eol and first/last non-whitespace char."
   :group 'js2-mode
   :type 'boolean)
 
+(make-obsolete-variable 'js2-rebind-eol-bol-keys nil "1.0")
+
 (defcustom js2-electric-keys '("{" "}" "(" ")" "[" "]" ":" ";" "," "*")
   "Keys that auto-indent when `js2-auto-indent-p' is non-nil.
 Each value in the list is passed to `define-key'."
   :type 'list
   :group 'js2-mode)
 
+(make-obsolete-variable 'js2-electric-keys 'electric-indent-chars "1.0")
+
 (defcustom js2-idle-timer-delay 0.2
   "Delay in secs before re-parsing after user makes changes.
 Multiplied by `js2-dynamic-idle-timer-adjust', which see."
@@ -302,6 +314,8 @@ If `js2-dynamic-idle-timer-adjust' is 0 or negative,
   :type 'boolean
   :group 'js2-mode)
 
+(make-obsolete-variable 'js2-mode-escape-quotes nil "1.0")
+
 (defcustom js2-concat-multiline-strings t
   "Non-nil to automatically turn a newline in mid-string into a
 string concatenation.  When `eol', the '+' will be inserted at the
@@ -407,6 +421,8 @@ This is useful for xulrunner apps."
   :type 'boolean
   :group 'js2-mode)
 
+(make-obsolete-variable 'js2-cleanup-whitespace 'before-save-hook "1.0")
+
 (defcustom js2-move-point-on-right-click t
   "Non-nil to move insertion point when you right-click.
 This makes right-click context menu behavior a bit more intuitive,