]> code.delx.au - gnu-emacs/commitdiff
* lisp/progmodes/js.el (js-indent-first-initialiser): Fix doc, type, version.
authorGlenn Morris <rgm@gnu.org>
Tue, 10 Mar 2015 22:40:09 +0000 (18:40 -0400)
committerGlenn Morris <rgm@gnu.org>
Tue, 10 Mar 2015 22:40:09 +0000 (18:40 -0400)
First line of the doc string should be a complete sentence.

* etc/NEWS: Mention new option.

# Fix associated ChangeLog entries.

etc/NEWS
lisp/ChangeLog
lisp/progmodes/js.el
test/ChangeLog

index ad8b6f27812cb31d65e224b679ba592852a99dc9..6f59064560ef23136d0ee29a59ec1d2bfb07ee4f 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -389,6 +389,8 @@ The remainder were:
 
 ** New ERT function `ert-summarize-tests-batch-and-exit'.
 
+** New js.el option `js-indent-first-initialiser'.
+
 ---
 ** `Info-fontify-maximum-menu-size' can be t for no limit.
 
index c7cf53df5e0d9d782842eafd35c698b28c660115..5184167ecd8d0a4dbda824639d46b7c5d8fdc2f2 100644 (file)
@@ -1,16 +1,12 @@
-2015-03-10  Jackson Ray Hamilton  <jackson@jacksonrayhamilton.com>
-
-       * lisp/progmodes/js.el (js--proper-indentation): Add new custom
-       option `js-indent-first-initialiser' and a function to utilize it,
-       `js--maybe-goto-declaration-keyword-end'.
+2015-03-10  Glenn Morris  <rgm@gnu.org>
 
-       * test/indent/js.js: Add local variables.
+       * progmodes/js.el (js-indent-first-initialiser):
+       Fix doc, type, version.
 
-       * test/indent/js-indent-first-initialiser-t.js: New test for
-       `js-indent-first-initialiser'.
+2015-03-10  Jackson Ray Hamilton  <jackson@jacksonrayhamilton.com>
 
-       * test/indent/js-indent-first-initialiser-dynamic.js: New test for
-       `js-indent-first-initialiser'.
+       * progmodes/js.el (js-indent-first-initialiser): New option.
+       (js--maybe-goto-declaration-keyword-end): New function.
 
 2015-03-10  Thomas Fitzsimmons  <fitzsim@fitzsim.org>
 
index 27e67bb77c17575bd3ef380c4c5323d7fa7f73cc..7e547428da9660c8f56356a5d9bcd9c138ca18f4 100644 (file)
@@ -510,12 +510,9 @@ getting timeout messages."
   :group 'js)
 
 (defcustom js-indent-first-initialiser nil
-  "Specially indent the first variable declaration's initialiser
-in variable statements.
-
+  "Non-nil means specially indent the first variable declaration's initialiser.
 Normally, the first declaration's initialiser is unindented, and
-subsequent declarations have their identifiers lined up against
-the first:
+subsequent declarations have their identifiers aligned with it:
 
   var o = {
       foo: 3
@@ -526,8 +523,8 @@ the first:
   },
       bar = 2;
 
-When t, always indent the first declaration's initialiser by an
-additional level:
+If this option has the value t, indent the first declaration's
+initialiser by an additional level:
 
   var o = {
           foo: 3
@@ -538,8 +535,8 @@ additional level:
       },
       bar = 2;
 
-When `dynamic', if there is only one declaration, don't indent
-the first one's initialiser; otherwise, indent it.
+If this option has the value `dynamic', if there is only one declaration,
+don't indent the first one's initialiser; otherwise, indent it.
 
   var o = {
       foo: 3
@@ -549,7 +546,8 @@ the first one's initialiser; otherwise, indent it.
           foo: 3
       },
       bar = 2;"
-  :type 'boolean
+  :version "25.1"
+  :type '(choice (const nil) (const t) (const dynamic))
   :safe 'symbolp
   :group 'js)
 
index 03cc28184787159cee8e18968e7acdf747e3de50..93ee3c5bc16317e9cf79ab77ef0318e5bbf0b372 100644 (file)
@@ -1,3 +1,11 @@
+2015-03-10  Jackson Ray Hamilton  <jackson@jacksonrayhamilton.com>
+
+       * indent/js.js: Add local variables.
+
+       * indent/js-indent-first-initialiser-t.js:
+       * indent/js-indent-first-initialiser-dynamic.js:
+       New tests for `js-indent-first-initialiser'.
+
 2015-03-10  Przemyslaw Wojnowski  <esperanto@cumego.com>
 
        * automated/cl-lib-tests.el: Add tests for plusp, second, ...