diff options
| author | Paul Eggert | 2015-03-10 16:29:01 -0700 |
|---|---|---|
| committer | Paul Eggert | 2015-03-10 16:29:59 -0700 |
| commit | 2a1be9eb2361f705e61839b78e8bba1d841944f6 (patch) | |
| tree | ffa17d176692104269c58d268a5ec5ce407120a7 | |
| parent | c3ca6a911a84e49aa0a0126cfc8640b90fb73572 (diff) | |
| download | emacs-2a1be9eb2361f705e61839b78e8bba1d841944f6.tar.gz emacs-2a1be9eb2361f705e61839b78e8bba1d841944f6.zip | |
Prefer "initialize" to "initialise"
* 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.
| -rw-r--r-- | ChangeLog | 2 | ||||
| -rw-r--r-- | etc/NEWS | 2 | ||||
| -rw-r--r-- | lisp/ChangeLog | 15 | ||||
| -rw-r--r-- | lisp/ChangeLog.16 | 4 | ||||
| -rw-r--r-- | lisp/progmodes/js.el | 16 | ||||
| -rw-r--r-- | test/ChangeLog | 8 | ||||
| -rw-r--r-- | test/indent/js-indent-init-dynamic.js (renamed from test/indent/js-indent-first-initialiser-dynamic.js) | 2 | ||||
| -rw-r--r-- | test/indent/js-indent-init-t.js (renamed from test/indent/js-indent-first-initialiser-t.js) | 2 |
8 files changed, 33 insertions, 18 deletions
| @@ -394,7 +394,7 @@ | |||
| 394 | 394 | ||
| 395 | 2014-11-25 Glenn Morris <rgm@gnu.org> | 395 | 2014-11-25 Glenn Morris <rgm@gnu.org> |
| 396 | 396 | ||
| 397 | * configure.ac: Fix yesterday's use of uninitialised $version. | 397 | * configure.ac: Fix yesterday's use of uninitialized $version. |
| 398 | 398 | ||
| 399 | 2014-11-25 Oscar Fuentes <ofv@wanadoo.es> | 399 | 2014-11-25 Oscar Fuentes <ofv@wanadoo.es> |
| 400 | 400 | ||
| @@ -389,7 +389,7 @@ The remainder were: | |||
| 389 | 389 | ||
| 390 | ** New ERT function `ert-summarize-tests-batch-and-exit'. | 390 | ** New ERT function `ert-summarize-tests-batch-and-exit'. |
| 391 | 391 | ||
| 392 | ** New js.el option `js-indent-first-initialiser'. | 392 | ** New js.el option `js-indent-first-init'. |
| 393 | 393 | ||
| 394 | --- | 394 | --- |
| 395 | ** `Info-fontify-maximum-menu-size' can be t for no limit. | 395 | ** `Info-fontify-maximum-menu-size' can be t for no limit. |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b798e14c087..b25988de516 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2015-03-10 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Prefer "initialize" to "initialise" | ||
| 4 | * progmodes/js.el (js-indent-first-init): | ||
| 5 | Rename from js-indent-first-initialiser, to avoid worrying about | ||
| 6 | American vs British spelling. All uses changed. | ||
| 7 | |||
| 1 | 2015-03-10 Glenn Morris <rgm@gnu.org> | 8 | 2015-03-10 Glenn Morris <rgm@gnu.org> |
| 2 | 9 | ||
| 3 | * progmodes/js.el (js-indent-first-initialiser): | 10 | * progmodes/js.el (js-indent-first-initialiser): |
| @@ -4551,7 +4558,7 @@ | |||
| 4551 | (tildify-foreach-region-function): New variable specifying | 4558 | (tildify-foreach-region-function): New variable specifying |
| 4552 | a function determining portions of buffer that should be | 4559 | a function determining portions of buffer that should be |
| 4553 | tildified. It allows major modes to create a filtering function | 4560 | tildified. It allows major modes to create a filtering function |
| 4554 | more elaborate than a set of regular expressions. Initialised to | 4561 | more elaborate than a set of regular expressions. Initialized to |
| 4555 | `tildify--deprecated-ignore-evironments' by default to handle now | 4562 | `tildify--deprecated-ignore-evironments' by default to handle now |
| 4556 | deprecated `tildify-ignored-environments-alist' variable. | 4563 | deprecated `tildify-ignored-environments-alist' variable. |
| 4557 | (tildify--foreach-region): A new function that takes | 4564 | (tildify--foreach-region): A new function that takes |
| @@ -9015,7 +9022,7 @@ | |||
| 9015 | file-format 2 --- ie. no local printers --- and 3 --- i.e. may have | 9022 | file-format 2 --- ie. no local printers --- and 3 --- i.e. may have |
| 9016 | local printers. | 9023 | local printers. |
| 9017 | (ses-localvars): Add local variables needed for local printer handling. | 9024 | (ses-localvars): Add local variables needed for local printer handling. |
| 9018 | (ses-set-localvars): Handle hashmap initialisation. | 9025 | (ses-set-localvars): Handle hashmap initialization. |
| 9019 | (ses-paramlines-plist): Add param-line for number of local printers. | 9026 | (ses-paramlines-plist): Add param-line for number of local printers. |
| 9020 | (ses-paramfmt-plist): New defconst, needed for code factorization | 9027 | (ses-paramfmt-plist): New defconst, needed for code factorization |
| 9021 | between functions `ses-set-parameter' and | 9028 | between functions `ses-set-parameter' and |
| @@ -12275,7 +12282,7 @@ | |||
| 12275 | * progmodes/cc-mode.el (c-initialize-cc-mode): Add CC Mode hooks | 12282 | * progmodes/cc-mode.el (c-initialize-cc-mode): Add CC Mode hooks |
| 12276 | to electric-indent-{,local-}-mode. | 12283 | to electric-indent-{,local-}-mode. |
| 12277 | (c-basic-common-init): Set electric-indent-inhibit. | 12284 | (c-basic-common-init): Set electric-indent-inhibit. |
| 12278 | Initialise c-electric-flag from electric-indent-mode. | 12285 | Initialize c-electric-flag from electric-indent-mode. |
| 12279 | (c-electric-indent-mode-hook, c-electric-indent-local-mode-hook): | 12286 | (c-electric-indent-mode-hook, c-electric-indent-local-mode-hook): |
| 12280 | New hook functions which propagate electric-indent-mode to CC mode. | 12287 | New hook functions which propagate electric-indent-mode to CC mode. |
| 12281 | 12288 | ||
| @@ -24212,7 +24219,7 @@ | |||
| 24212 | 24219 | ||
| 24213 | 2013-04-30 Alan Mackenzie <acm@muc.de> | 24220 | 2013-04-30 Alan Mackenzie <acm@muc.de> |
| 24214 | 24221 | ||
| 24215 | Handle arbitrarily long C++ member initialisation lists. | 24222 | Handle arbitrarily long C++ member initialization lists. |
| 24216 | * progmodes/cc-engine.el (c-back-over-member-initializers): | 24223 | * progmodes/cc-engine.el (c-back-over-member-initializers): |
| 24217 | new function. | 24224 | new function. |
| 24218 | (c-guess-basic-syntax): New CASE 5R (extracted from 5B) to handle | 24225 | (c-guess-basic-syntax): New CASE 5R (extracted from 5B) to handle |
diff --git a/lisp/ChangeLog.16 b/lisp/ChangeLog.16 index 14ee914179e..bf8a97352c6 100644 --- a/lisp/ChangeLog.16 +++ b/lisp/ChangeLog.16 | |||
| @@ -6751,7 +6751,7 @@ | |||
| 6751 | 2012-09-09 Alan Mackenzie <acm@muc.de> | 6751 | 2012-09-09 Alan Mackenzie <acm@muc.de> |
| 6752 | 6752 | ||
| 6753 | * progmodes/cc-engine.el (c-state-cache-init): | 6753 | * progmodes/cc-engine.el (c-state-cache-init): |
| 6754 | Initialise c-state-semi-nonlit-pos-cache\(-limit\)? properly. | 6754 | Initialize c-state-semi-nonlit-pos-cache\(-limit\)? properly. |
| 6755 | (c-record-parse-state-state): | 6755 | (c-record-parse-state-state): |
| 6756 | Record c-state-semi-nonlit-pos-cache\(-limit\)?. | 6756 | Record c-state-semi-nonlit-pos-cache\(-limit\)?. |
| 6757 | 6757 | ||
| @@ -15662,7 +15662,7 @@ | |||
| 15662 | (c-nonlabel-token-key): Allow string literals for AWK. | 15662 | (c-nonlabel-token-key): Allow string literals for AWK. |
| 15663 | Refactor for the other modes. | 15663 | Refactor for the other modes. |
| 15664 | 15664 | ||
| 15665 | Large brace-block initialisation makes CC Mode slow: Fix. | 15665 | Large brace-block initialization makes CC Mode slow: Fix. |
| 15666 | Tidy up and accelerate c-in-literal, etc. by using the c-parse-state | 15666 | Tidy up and accelerate c-in-literal, etc. by using the c-parse-state |
| 15667 | routines. Limit backward searching in c-font-lock-enclosing.decl. | 15667 | routines. Limit backward searching in c-font-lock-enclosing.decl. |
| 15668 | 15668 | ||
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 7e547428da9..ff002983d12 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el | |||
| @@ -509,9 +509,9 @@ getting timeout messages." | |||
| 509 | :type 'integer | 509 | :type 'integer |
| 510 | :group 'js) | 510 | :group 'js) |
| 511 | 511 | ||
| 512 | (defcustom js-indent-first-initialiser nil | 512 | (defcustom js-indent-first-init nil |
| 513 | "Non-nil means specially indent the first variable declaration's initialiser. | 513 | "Non-nil means specially indent the first variable declaration's initializer. |
| 514 | Normally, the first declaration's initialiser is unindented, and | 514 | Normally, the first declaration's initializer is unindented, and |
| 515 | subsequent declarations have their identifiers aligned with it: | 515 | subsequent declarations have their identifiers aligned with it: |
| 516 | 516 | ||
| 517 | var o = { | 517 | var o = { |
| @@ -524,7 +524,7 @@ subsequent declarations have their identifiers aligned with it: | |||
| 524 | bar = 2; | 524 | bar = 2; |
| 525 | 525 | ||
| 526 | If this option has the value t, indent the first declaration's | 526 | If this option has the value t, indent the first declaration's |
| 527 | initialiser by an additional level: | 527 | initializer by an additional level: |
| 528 | 528 | ||
| 529 | var o = { | 529 | var o = { |
| 530 | foo: 3 | 530 | foo: 3 |
| @@ -536,7 +536,7 @@ initialiser by an additional level: | |||
| 536 | bar = 2; | 536 | bar = 2; |
| 537 | 537 | ||
| 538 | If this option has the value `dynamic', if there is only one declaration, | 538 | If this option has the value `dynamic', if there is only one declaration, |
| 539 | don't indent the first one's initialiser; otherwise, indent it. | 539 | don't indent the first one's initializer; otherwise, indent it. |
| 540 | 540 | ||
| 541 | var o = { | 541 | var o = { |
| 542 | foo: 3 | 542 | foo: 3 |
| @@ -1902,14 +1902,14 @@ In particular, return the buffer position of the first `for' kwd." | |||
| 1902 | 1902 | ||
| 1903 | (defun js--maybe-goto-declaration-keyword-end (parse-status) | 1903 | (defun js--maybe-goto-declaration-keyword-end (parse-status) |
| 1904 | "Helper function for `js--proper-indentation'. | 1904 | "Helper function for `js--proper-indentation'. |
| 1905 | Depending on the value of `js-indent-first-initialiser', move | 1905 | Depending on the value of `js-indent-first-init', move |
| 1906 | point to the end of a variable declaration keyword so that | 1906 | point to the end of a variable declaration keyword so that |
| 1907 | indentation is aligned to that column." | 1907 | indentation is aligned to that column." |
| 1908 | (cond | 1908 | (cond |
| 1909 | ((eq js-indent-first-initialiser t) | 1909 | ((eq js-indent-first-init t) |
| 1910 | (when (looking-at js--declaration-keyword-re) | 1910 | (when (looking-at js--declaration-keyword-re) |
| 1911 | (goto-char (1+ (match-end 0))))) | 1911 | (goto-char (1+ (match-end 0))))) |
| 1912 | ((eq js-indent-first-initialiser 'dynamic) | 1912 | ((eq js-indent-first-init 'dynamic) |
| 1913 | (let ((bracket (nth 1 parse-status)) | 1913 | (let ((bracket (nth 1 parse-status)) |
| 1914 | declaration-keyword-end | 1914 | declaration-keyword-end |
| 1915 | at-closing-bracket-p | 1915 | at-closing-bracket-p |
diff --git a/test/ChangeLog b/test/ChangeLog index 93ee3c5bc16..fba6cfcd4c8 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2015-03-10 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Prefer "initialize" to "initialise" | ||
| 4 | * indent/js-indent-init-t.js: Rename from | ||
| 5 | indent/js-indent-first-initialiser-t.js. | ||
| 6 | * indent/js-indent-init-dynamic.js: Rename from | ||
| 7 | test/indent/js-indent-first-initialiser-dynamic.js. | ||
| 8 | |||
| 1 | 2015-03-10 Jackson Ray Hamilton <jackson@jacksonrayhamilton.com> | 9 | 2015-03-10 Jackson Ray Hamilton <jackson@jacksonrayhamilton.com> |
| 2 | 10 | ||
| 3 | * indent/js.js: Add local variables. | 11 | * indent/js.js: Add local variables. |
diff --git a/test/indent/js-indent-first-initialiser-dynamic.js b/test/indent/js-indent-init-dynamic.js index 9c705dbeba9..f330c2ce7af 100644 --- a/test/indent/js-indent-first-initialiser-dynamic.js +++ b/test/indent/js-indent-init-dynamic.js | |||
| @@ -17,7 +17,7 @@ var foo = function() { | |||
| 17 | // Local Variables: | 17 | // Local Variables: |
| 18 | // indent-tabs-mode: nil | 18 | // indent-tabs-mode: nil |
| 19 | // js-indent-level: 2 | 19 | // js-indent-level: 2 |
| 20 | // js-indent-first-initialiser: dynamic | 20 | // js-indent-first-initializer: dynamic |
| 21 | // End: | 21 | // End: |
| 22 | 22 | ||
| 23 | // The following test intentionally produces a scan error and should | 23 | // The following test intentionally produces a scan error and should |
diff --git a/test/indent/js-indent-first-initialiser-t.js b/test/indent/js-indent-init-t.js index 2f08527e5ff..bb755420ba7 100644 --- a/test/indent/js-indent-first-initialiser-t.js +++ b/test/indent/js-indent-init-t.js | |||
| @@ -17,5 +17,5 @@ var foo = function() { | |||
| 17 | // Local Variables: | 17 | // Local Variables: |
| 18 | // indent-tabs-mode: nil | 18 | // indent-tabs-mode: nil |
| 19 | // js-indent-level: 2 | 19 | // js-indent-level: 2 |
| 20 | // js-indent-first-initialiser: t | 20 | // js-indent-first-init: t |
| 21 | // End: | 21 | // End: |