]> git.eshelyaron.com Git - emacs.git/commitdiff
Prefer "initialize" to "initialise"
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 10 Mar 2015 23:29:01 +0000 (16:29 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 10 Mar 2015 23:29:59 +0000 (16:29 -0700)
* lisp/progmodes/js.el (js-indent-first-init):
Rename from js-indent-first-initialiser, to avoid worrying about
American vs British spelling.  All uses changed.
* test/indent/js-indent-init-t.js: Rename from
indent/js-indent-first-initialiser-t.js.
* test/indent/js-indent-init-dynamic.js: Rename from
test/indent/js-indent-first-initialiser-dynamic.js.

ChangeLog
etc/NEWS
lisp/ChangeLog
lisp/ChangeLog.16
lisp/progmodes/js.el
test/ChangeLog
test/indent/js-indent-first-initialiser-dynamic.js [deleted file]
test/indent/js-indent-first-initialiser-t.js [deleted file]
test/indent/js-indent-init-dynamic.js [new file with mode: 0644]
test/indent/js-indent-init-t.js [new file with mode: 0644]

index 5e5c922fd450e71fdfb7e2cb90f71783ef051ac5..4f6523ea8128c294b5140b013a0919ef1849cfdd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 
 2014-11-25  Glenn Morris  <rgm@gnu.org>
 
-       * configure.ac: Fix yesterday's use of uninitialised $version.
+       * configure.ac: Fix yesterday's use of uninitialized $version.
 
 2014-11-25  Oscar Fuentes  <ofv@wanadoo.es>
 
index 6f59064560ef23136d0ee29a59ec1d2bfb07ee4f..75d55de3f36979fbd4bfc6721ef416827750dd25 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -389,7 +389,7 @@ The remainder were:
 
 ** New ERT function `ert-summarize-tests-batch-and-exit'.
 
-** New js.el option `js-indent-first-initialiser'.
+** New js.el option `js-indent-first-init'.
 
 ---
 ** `Info-fontify-maximum-menu-size' can be t for no limit.
index b798e14c0870f667ff8ac4f926991dc2e59cd42a..b25988de51619e35879aa23578659ca2ee3c5fdf 100644 (file)
@@ -1,3 +1,10 @@
+2015-03-10  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Prefer "initialize" to "initialise"
+       * progmodes/js.el (js-indent-first-init):
+       Rename from js-indent-first-initialiser, to avoid worrying about
+       American vs British spelling.  All uses changed.
+
 2015-03-10  Glenn Morris  <rgm@gnu.org>
 
        * progmodes/js.el (js-indent-first-initialiser):
        (tildify-foreach-region-function): New variable specifying
        a function determining portions of buffer that should be
        tildified.  It allows major modes to create a filtering function
-       more elaborate than a set of regular expressions.  Initialised to
+       more elaborate than a set of regular expressions.  Initialized to
        `tildify--deprecated-ignore-evironments' by default to handle now
        deprecated `tildify-ignored-environments-alist' variable.
        (tildify--foreach-region): A new function that takes
        file-format 2 --- ie. no local printers --- and 3 --- i.e. may have
        local printers.
        (ses-localvars): Add local variables needed for local printer handling.
-       (ses-set-localvars): Handle hashmap initialisation.
+       (ses-set-localvars): Handle hashmap initialization.
        (ses-paramlines-plist): Add param-line for number of local printers.
        (ses-paramfmt-plist): New defconst, needed for code factorization
        between functions `ses-set-parameter' and
        * progmodes/cc-mode.el (c-initialize-cc-mode): Add CC Mode hooks
        to electric-indent-{,local-}-mode.
        (c-basic-common-init): Set electric-indent-inhibit.
-       Initialise c-electric-flag from electric-indent-mode.
+       Initialize c-electric-flag from electric-indent-mode.
        (c-electric-indent-mode-hook, c-electric-indent-local-mode-hook):
        New hook functions which propagate electric-indent-mode to CC mode.
 
 
 2013-04-30  Alan Mackenzie  <acm@muc.de>
 
-       Handle arbitrarily long C++ member initialisation lists.
+       Handle arbitrarily long C++ member initialization lists.
        * progmodes/cc-engine.el (c-back-over-member-initializers):
        new function.
        (c-guess-basic-syntax): New CASE 5R (extracted from 5B) to handle
index 14ee914179eb81eb3395978071230f7daa275985..bf8a97352c6a55edcf3dd0c098c58b2db2b3acb6 100644 (file)
 2012-09-09  Alan Mackenzie  <acm@muc.de>
 
        * progmodes/cc-engine.el (c-state-cache-init):
-       Initialise c-state-semi-nonlit-pos-cache\(-limit\)? properly.
+       Initialize c-state-semi-nonlit-pos-cache\(-limit\)? properly.
        (c-record-parse-state-state):
        Record c-state-semi-nonlit-pos-cache\(-limit\)?.
 
        (c-nonlabel-token-key): Allow string literals for AWK.
        Refactor for the other modes.
 
-       Large brace-block initialisation makes CC Mode slow: Fix.
+       Large brace-block initialization makes CC Mode slow: Fix.
        Tidy up and accelerate c-in-literal, etc. by using the c-parse-state
        routines.  Limit backward searching in c-font-lock-enclosing.decl.
 
index 7e547428da9660c8f56356a5d9bcd9c138ca18f4..ff002983d12d6e091c143177ea86f45715b19dbd 100644 (file)
@@ -509,9 +509,9 @@ getting timeout messages."
   :type 'integer
   :group 'js)
 
-(defcustom js-indent-first-initialiser nil
-  "Non-nil means specially indent the first variable declaration's initialiser.
-Normally, the first declaration's initialiser is unindented, and
+(defcustom js-indent-first-init nil
+  "Non-nil means specially indent the first variable declaration's initializer.
+Normally, the first declaration's initializer is unindented, and
 subsequent declarations have their identifiers aligned with it:
 
   var o = {
@@ -524,7 +524,7 @@ subsequent declarations have their identifiers aligned with it:
       bar = 2;
 
 If this option has the value t, indent the first declaration's
-initialiser by an additional level:
+initializer by an additional level:
 
   var o = {
           foo: 3
@@ -536,7 +536,7 @@ initialiser by an additional level:
       bar = 2;
 
 If this option has the value `dynamic', if there is only one declaration,
-don't indent the first one's initialiser; otherwise, indent it.
+don't indent the first one's initializer; otherwise, indent it.
 
   var o = {
       foo: 3
@@ -1902,14 +1902,14 @@ In particular, return the buffer position of the first `for' kwd."
 
 (defun js--maybe-goto-declaration-keyword-end (parse-status)
   "Helper function for `js--proper-indentation'.
-Depending on the value of `js-indent-first-initialiser', move
+Depending on the value of `js-indent-first-init', move
 point to the end of a variable declaration keyword so that
 indentation is aligned to that column."
   (cond
-   ((eq js-indent-first-initialiser t)
+   ((eq js-indent-first-init t)
     (when (looking-at js--declaration-keyword-re)
       (goto-char (1+ (match-end 0)))))
-   ((eq js-indent-first-initialiser 'dynamic)
+   ((eq js-indent-first-init 'dynamic)
     (let ((bracket (nth 1 parse-status))
           declaration-keyword-end
           at-closing-bracket-p
index 93ee3c5bc16317e9cf79ab77ef0318e5bbf0b372..fba6cfcd4c8b8abf905f3009f9181a6025b6138b 100644 (file)
@@ -1,3 +1,11 @@
+2015-03-10  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Prefer "initialize" to "initialise"
+       * indent/js-indent-init-t.js: Rename from
+       indent/js-indent-first-initialiser-t.js.
+       * indent/js-indent-init-dynamic.js: Rename from
+       test/indent/js-indent-first-initialiser-dynamic.js.
+
 2015-03-10  Jackson Ray Hamilton  <jackson@jacksonrayhamilton.com>
 
        * indent/js.js: Add local variables.
diff --git a/test/indent/js-indent-first-initialiser-dynamic.js b/test/indent/js-indent-first-initialiser-dynamic.js
deleted file mode 100644 (file)
index 9c705db..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-var foo = function() {
-  return 7;
-};
-
-var foo = function() {
-      return 7;
-    },
-    bar = 8;
-
-var foo = function() {
-      return 7;
-    },
-    bar = function() {
-      return 8;
-    };
-
-// Local Variables:
-// indent-tabs-mode: nil
-// js-indent-level: 2
-// js-indent-first-initialiser: dynamic
-// End:
-
-// The following test intentionally produces a scan error and should
-// be placed below all other tests to prevent awkward indentation.
-// (It still thinks it's within the body of a function.)
-
-var foo = function() {
-  return 7;
-  ,
-  bar = 8;
diff --git a/test/indent/js-indent-first-initialiser-t.js b/test/indent/js-indent-first-initialiser-t.js
deleted file mode 100644 (file)
index 2f08527..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-var foo = function() {
-      return 7;
-    };
-
-var foo = function() {
-      return 7;
-    },
-    bar = 8;
-
-var foo = function() {
-      return 7;
-    },
-    bar = function() {
-      return 8;
-    };
-
-// Local Variables:
-// indent-tabs-mode: nil
-// js-indent-level: 2
-// js-indent-first-initialiser: t
-// End:
diff --git a/test/indent/js-indent-init-dynamic.js b/test/indent/js-indent-init-dynamic.js
new file mode 100644 (file)
index 0000000..f330c2c
--- /dev/null
@@ -0,0 +1,30 @@
+var foo = function() {
+  return 7;
+};
+
+var foo = function() {
+      return 7;
+    },
+    bar = 8;
+
+var foo = function() {
+      return 7;
+    },
+    bar = function() {
+      return 8;
+    };
+
+// Local Variables:
+// indent-tabs-mode: nil
+// js-indent-level: 2
+// js-indent-first-initializer: dynamic
+// End:
+
+// The following test intentionally produces a scan error and should
+// be placed below all other tests to prevent awkward indentation.
+// (It still thinks it's within the body of a function.)
+
+var foo = function() {
+  return 7;
+  ,
+  bar = 8;
diff --git a/test/indent/js-indent-init-t.js b/test/indent/js-indent-init-t.js
new file mode 100644 (file)
index 0000000..bb75542
--- /dev/null
@@ -0,0 +1,21 @@
+var foo = function() {
+      return 7;
+    };
+
+var foo = function() {
+      return 7;
+    },
+    bar = 8;
+
+var foo = function() {
+      return 7;
+    },
+    bar = function() {
+      return 8;
+    };
+
+// Local Variables:
+// indent-tabs-mode: nil
+// js-indent-level: 2
+// js-indent-first-init: t
+// End: