This is a partial backport from master: it only includes the changes below.
* lib/mini-gmp.c (gmp_assert_nocarry): Avoid many Clang
- unused-variable warnings when building with optimisation.
+ unused-variable warnings when building with optimization.
* lib/verify.h (_GL_HAVE__STATIC_ASSERT): Modify condition for using
_Static_assert to cope with older Apple builds of Clang exposing
misleading compiler version numbers. See discussion starting at
2022-03-06 Lars Ingebrigtsen <larsi@gnus.org>
- Restore documented Emacs 27.2 behaviour of browse-url-of-dired-file
+ Restore documented Emacs 27.2 behavior of browse-url-of-dired-file
* lisp/net/browse-url.el (browse-url-of-dired-file): Restore the
- documented behaviour -- open a web browser instead of passing to
+ documented behavior -- open a web browser instead of passing to
the various handlers.
2022-03-06 Kyle Meyer <kyle@kyleam.com>
This fixes bug #52796.
* lisp/progmodes/cc-engine.el (c-update-brace-stack): Handle a "*" like a
- semicolon, cancelling the expectation of a brace.
+ semicolon, canceling the expectation of a brace.
* lisp/progmodes/cc-langs.el (c-brace-stack-thing-key): Add a "*" into the
sets of significant characters.
2021-12-01 Alan Mackenzie <acm@muc.de>
- CC Mode: Recognise "struct foo {" as introducing a type declaration
+ CC Mode: Recognize "struct foo {" as introducing a type declaration
This fixes bug #52157.
2021-11-29 Andreas Schwab <schwab@linux-m68k.org>
- Avoid undefined behaviour when copying part of structure
+ Avoid undefined behavior when copying part of structure
* src/dispnew.c (copy_row_except_pointers): Don't use address of
subobject as starting point.
Fix previous `newline' patch
* lisp/simple.el (newline): Signal an error earlier to avoid
- peculiar behaviour after getting a backtrace (bug#50900).
+ peculiar behavior after getting a backtrace (bug#50900).
2021-09-30 Lars Ingebrigtsen <larsi@gnus.org>
Make `newline' check the argument earlier
* lisp/simple.el (newline): Signal an error earlier to avoid
- peculiar behaviour after getting a backtrace (bug#50900).
+ peculiar behavior after getting a backtrace (bug#50900).
2021-09-30 akater <nuclearspace@gmail.com>
etc/themes/modus-vivendi-theme.el: Bump file version.
* etc/themes/modus-themes.el (modus-themes-operandi-colors)
- (modus-themes-vivendi-colors): Recalibrate some colour values and add
+ (modus-themes-vivendi-colors): Recalibrate some color values and add
a few new ones.
(modus-themes-slanted-constructs): Remove obsolete user option.
Superseded by the alias 'modus-themes-italic-constructs'.
Fix byte-compiler crash for legal dynamic-binding code
- This should really be taken care of by a syntax normalisation step in
+ This should really be taken care of by a syntax normalization step in
the frontend, but there is no such step for non-lexbind code yet.
* lisp/emacs-lisp/byte-opt.el (byte-optimize-letX): Tolerate bindingsa
- without initialising expressions.
+ without initializing expressions.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases):
Add test cases.
This reverts commit 7e395a59b025c7f4be49294ad806addf5b1a25c9.
- The behaviour change isn't good for the majority of tar files.
+ The behavior change isn't good for the majority of tar files.
2021-09-21 Lars Ingebrigtsen <larsi@gnus.org>
2021-09-21 Lars Ingebrigtsen <larsi@gnus.org>
- Restore some of the previous behaviour in whitespace-display-window
+ Restore some of the previous behavior in whitespace-display-window
* lisp/whitespace.el (whitespace-display-window): Emulate previous
- behaviour (bug#50716). Code from martin rudalics <rudalics@gmx.at>.
+ behavior (bug#50716). Code from martin rudalics <rudalics@gmx.at>.
2021-09-21 Lars Ingebrigtsen <larsi@gnus.org>
Add docstring for 'electric-pair-p-s-i-f' and minor refactor
- Extract the "open newline between pairs behaviour" into its own
+ Extract the "open newline between pairs behavior" into its own
function, electric-pair-open-newline-between-pairs-psif.
* lisp/elec-pair.el (electric-pair-post-self-insert-function): Add
2021-09-20 Philip Kaludercic <philipk@posteo.net>
- Fix dolist-with-progress-reporter behaviour
+ Fix dolist-with-progress-reporter behavior
* lisp/subr.el (dolist-with-progress-reporter): Use the length of
list argument as maximal value the reporter with reach.
2021-09-19 Mattias Engdegård <mattiase@acm.org>
- Initialise unread buffer
+ Initialize unread buffer
The reader has an extra 1-char unread buffer that was incorrectly
- initialised to 0, which means that the first character read would
+ initialized to 0, which means that the first character read would
always be NUL. As this is often the code that looks for the
lexical-binding cookie, the first loaded source module would be
treated as dynamically bound. During bootstrapping this is loadup.el
and so its local variables got dumped into the global environment.
- * src/lread.c (unread_char): Initialise to empty.
- (Fload): Initialise here too just in case.
+ * src/lread.c (unread_char): Initialize to empty.
+ (Fload): Initialize here too just in case.
2021-09-19 Stefan Kangas <stefan@marxist.se>
Replace uses of a variable aliasing another variable with that aliased
variable, to allow for variable removal when possible. This also
- enables opportunities for other optimisations. Example:
+ enables opportunities for other optimizations. Example:
(let ((y x)) (f y)) => (f x)
- The optimisation is only performed if both aliased and aliasing
+ The optimization is only performed if both aliased and aliasing
variables are lexically bound. Shadowing bindings are α-renamed when
necessary for correctness. Example:
* lisp/emacs-lisp/byte-opt.el (byte-optimize--aliased-vars): New.
(byte-optimize-form-code-walker): Cancel aliasing upon mutation.
(byte-optimize--rename-var-body, byte-optimize--rename-var): New.
- (byte-optimize-let-form): Add the optimisation.
+ (byte-optimize-let-form): Add the optimization.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases):
Add relevant test cases.
2021-09-06 Mattias Engdegård <mattiase@acm.org>
- Normalise nested `progn` forms in byte-code optimiser
+ Normalize nested `progn` forms in byte-code optimizer
* lisp/emacs-lisp/byte-opt.el (byte-optimize-body): Flatten body.
This simplifies the source tree and reduces the number of different
- cases that other optimisations need to take into account.
+ cases that other optimizations need to take into account.
2021-09-06 Mattias Engdegård <mattiase@acm.org>
- More robust optimisation of `ignore`
+ More robust optimization of `ignore`
- Treat `ignore` as any other function during source-level optimisation,
- to avoid having its warning-suppression effects cancelled by repeated
+ Treat `ignore` as any other function during source-level optimization,
+ to avoid having its warning-suppression effects canceled by repeated
passes. Instead, define a custom code generation function.
* lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker):
Don't treat `ignore' specially here.
(side-effect-free-fns): Don't mark `ignore` as side-effect-free
- or error-free (although it is), since that would allow the optimiser
+ or error-free (although it is), since that would allow the optimizer
to elide calls.
* lisp/emacs-lisp/bytecomp.el (ignore, byte-compile-ignore):
Define and register a code-gen function.
2021-09-06 Mattias Engdegård <mattiase@acm.org>
- Optimise `member` and `assoc` (etc) with constant empty list
+ Optimize `member` and `assoc` (etc) with constant empty list
* lisp/emacs-lisp/byte-opt.el
(byte-optimize-assq): New.
This reverts commit c8e3347ec01a9ed6dc8d88c2dbbb3a08497e8eb2.
- Jim Porter's paperwork isn't finalised yet.
+ Jim Porter's paperwork isn't finalized yet.
2021-08-26 Lars Ingebrigtsen <larsi@gnus.org>
The current method of propagating constants through setq was unsound
because it relied on each setq form only being traversed at most once
- during optimisation, which isn't necessarily true in general; it could
+ during optimization, which isn't necessarily true in general; it could
be made to miscompile code in rare cases.
Since it was only used in limited circumstances, disabling this
- optimisation doesn't cost us much.
+ optimization doesn't cost us much.
* lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker):
Don't update the known value when traversing `setq`.
2021-08-03 Phil Sainty <psainty@orcon.net.nz>
- Make `global-so-long-mode' handle unrecognised file types
+ Make `global-so-long-mode' handle unrecognized file types
* lisp/so-long.el (so-long-target-modes): Add `fundamental-mode'
Ensure in cconv that let-bindings have the normal form (VAR EXPR)
where VAR is a valid variable name, so that we don't need to keep
- re-checking this all the time in the optimiser.
+ re-checking this all the time in the optimizer.
* lisp/emacs-lisp/byte-opt.el
(byte-optimize-enable-variable-constprop)
(byte-optimize-warn-eliminated-variable): Remove; these were mainly
used for debugging.
* lisp/emacs-lisp/byte-opt.el (byte-optimize-let-form):
- Assume normalised let-bindings (with lexical-binding).
+ Assume normalized let-bindings (with lexical-binding).
Stop using the variables removed above.
- * lisp/emacs-lisp/cconv.el (cconv-convert): Ensure normalised
+ * lisp/emacs-lisp/cconv.el (cconv-convert): Ensure normalized
let-bindings. Malformed bindings are dropped after warning.
remove byte-optimize-warn-eliminated-variable
2021-07-30 Mattias Engdegård <mattiase@acm.org>
- Optimise let and let* whose body is constant or the last variable
+ Optimize let and let* whose body is constant or the last variable
Simplify (let ((X1 E1) ... (Xn En)) Xn)
=> (progn E1 ... En)
=> (let* ((X1 E1) ... (Xn-1 En-1)) En)
and similarly the case where the body is a constant, extending a
- previous optimisation that only applied to the constant nil.
+ previous optimization that only applied to the constant nil.
This reduces the number of bound variables, shortens the code, and
- enables further optimisations.
+ enables further optimizations.
* lisp/emacs-lisp/byte-opt.el (byte-optimize-letX): Rewrite using
`pcase` and add the aforementioned transformations.
2021-07-30 Mattias Engdegård <mattiase@acm.org>
- Move warnings about bad let-bindings from source optimiser to cconv
+ Move warnings about bad let-bindings from source optimizer to cconv
* lisp/emacs-lisp/byte-opt.el (byte-optimize-let-form): Move warnings...
* lisp/emacs-lisp/cconv.el (cconv-convert): ...here, which is an
2021-07-30 Mattias Engdegård <mattiase@acm.org>
- Optimise prog1 better
+ Optimize prog1 better
Rewrite (prog1 CONST FORMS...) => (progn FORMS... CONST)
where CONST is a compile-time constant, because putting the value last
2021-07-30 Mattias Engdegård <mattiase@acm.org>
- Elide lexical variables in for-effect context in source optimiser
+ Elide lexical variables in for-effect context in source optimizer
* lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker):
Remove for-effect uses of lexical variables. We previously relied on
- this being done by the lapcode peephole optimiser but at source level
- it enables more optimisation opportunities.
+ this being done by the lapcode peephole optimizer but at source level
+ it enables more optimization opportunities.
Keywords are elided for the same reason.
2021-07-30 Mattias Engdegård <mattiase@acm.org>
- Single source optimiser entry point
+ Single source optimizer entry point
- Make the optimiser aware of lexical arguments. Otherwise we cannot
+ Make the optimizer aware of lexical arguments. Otherwise we cannot
know for sure whether a variable is lexical or dynamic during
traversal.
- * lisp/emacs-lisp/byte-opt.el (byte-optimize-one-form): New optimiser
+ * lisp/emacs-lisp/byte-opt.el (byte-optimize-one-form): New optimizer
entry point, replacing the recursive byte-optimize-form.
* lisp/emacs-lisp/bytecomp.el (byte-optimize-one-form): Autoload.
(byte-compile-keep-pending, byte-compile-top-level):
`term-char-mode' doc string clarification
- * lisp/term.el (term-char-mode): Document behaviour (bug#49186).
+ * lisp/term.el (term-char-mode): Document behavior (bug#49186).
2021-07-22 Dmitry Gutov <dgutov@yandex.ru>
2021-07-21 Mattias Engdegård <mattiase@acm.org>
- Fix mistake in `quote` optimiser
+ Fix mistake in `quote` optimizer
Found by Pip Cet.
* lisp/emacs-lisp/byte-opt.el (byte-optimize-quote): Fix mistake that
- made this optimiser ineffective at removing quoting of nil, t, and
+ made this optimizer ineffective at removing quoting of nil, t, and
keywords. The only obvious consequence is that we no longer need...
- (byte-optimize-form): ...a 'nil => nil normalising step here; remove.
+ (byte-optimize-form): ...a 'nil => nil normalizing step here; remove.
(byte-optimize-form-code-walker): Make the compiler warn about (quote).
2021-07-20 Juri Linkov <juri@linkov.net>
Strength-reduce (eq X nil) to (not X)
- * lisp/emacs-lisp/byte-opt.el (byte-optimize-eq): New optimisation,
+ * lisp/emacs-lisp/byte-opt.el (byte-optimize-eq): New optimization,
which results in better test and branch code generation where it
applies.
(Full support for packages or face groups): Include new items.
- (Notes on individual packages): Add notes on Avy hints, the colour of
+ (Notes on individual packages): Add notes on Avy hints, the color of
days in 'M-x calendar', and underlines in 'compilation-mode' buffers.
(What is the best setup for legibility?): Remove single word.
* etc/emacs-mail.desktop:
* etc/emacsclient.desktop: Automatically try to
reuse an existing frame, open a new frame, or start a new Emacs
- daemon. Add actions for specific behaviours (bug#49195).
+ daemon. Add actions for specific behaviors (bug#49195).
2021-06-30 Peter Oliver <git@mavit.org.uk>
2021-06-03 Mattias Engdegård <mattiase@acm.org>
- Optimise (cons X nil) to (list X)
+ Optimize (cons X nil) to (list X)
* lisp/emacs-lisp/byte-opt.el (byte-optimize-cons): New function.
When used with Fido, completions scroll like a typical dropdown
widget.
- If the dropdown behaviour is desired for Icomplete (instead of
+ If the dropdown behavior is desired for Icomplete (instead of
rotation), icomplete-scroll can be adjusted separately by the user.
* etc/NEWS (icomplete-vertical-mode): Reword.
Don't propagate lexical variables into inlined functions
- Functions compiled when inlined (thus from inside the optimiser)
+ Functions compiled when inlined (thus from inside the optimizer)
mustn't retain the lexical environment of the caller or there will be
tears. See discussion at
https://lists.gnu.org/archive/html/emacs-devel/2021-05/msg01227.html .
2021-05-25 Miha Rihtaršič <miha@kamnitnik.top>
- Try to not prioritise reading from lower file descriptors
+ Try to not prioritize reading from lower file descriptors
* src/process.c (wait_reading_process_output): When looping through
fds, continue from where we left off.
2021-05-04 Lars Ingebrigtsen <larsi@gnus.org>
- Fix inconsistent behaviour in find-file-noselect when using nowarn
+ Fix inconsistent behavior in find-file-noselect when using nowarn
* lisp/files.el (after-find-file): Behave the same in when
warning/not warning (bug#47850). This fixes this test case:
2021-05-03 Alan Third <alan@idiocy.org>
martin rudalics <rudalics@gmx.at>
- Fix incorrect resizing behaviour on macOS (bug#48157, bug#48162)
+ Fix incorrect resizing behavior on macOS (bug#48157, bug#48162)
* src/nsterm.m ([EmacsView viewDidResize:]): The drawing buffer can be
resized independently of Emacs's idea of the frame size.
2021-04-09 Mattias Engdegård <mattiase@acm.org>
- Fix condition-case optimiser bug
+ Fix condition-case optimizer bug
* lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker): Don't
- perform incorrect optimisations when a condition-case variable shadows
+ perform incorrect optimizations when a condition-case variable shadows
another lexical variable.
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-tests--test-cases):
New test case.
Self-TCO in `condition-case` error handlers
- * lisp/emacs-lisp/cl-macs.el (cl--self-tco): Recognise
+ * lisp/emacs-lisp/cl-macs.el (cl--self-tco): Recognize
`condition-case` handlers as being in the tail position.
* test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs--labels):
Extend test.
2021-04-05 Stefan Kangas <stefan@marxist.se>
- Remove local uniquify functions in favour of seq-uniq
+ Remove local uniquify functions in favor of seq-uniq
* lisp/emacs-lisp/seq.el (seq-uniq): Add autoload cookie.
* lisp/pcomplete.el: (pcomplete-uniquify-list): Use seq-uniq.
Obsolete local list functions in shadowfile.el
- * lisp/shadowfile.el (shadow-union): Make obsolete in favour of
+ * lisp/shadowfile.el (shadow-union): Make obsolete in favor of
cl-union. Update callers.
(shadow-find): Make into obsolete function alias for seq-find.
Update callers.
2021-03-18 Mattias Engdegård <mattiase@acm.org>
- Optimise tail calls in `and` and `or` forms in `cl-labels` functions
+ Optimize tail calls in `and` and `or` forms in `cl-labels` functions
* lisp/emacs-lisp/cl-macs.el (cl--self-tco): Handle `and` and `or`.
* test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs--labels):
2021-03-18 Lars Ingebrigtsen <larsi@gnus.org>
- Recognise "Verify password" as a password prompt
+ Recognize "Verify password" as a password prompt
* lisp/comint.el (comint-password-prompt-regexp): Also react to
"Verify password" (output by "zip -e") (bug#47209).
* lisp/emacs-lisp/rx.el (rx): Add (pred stringp) to avoid type errors,
and replace the `pred` clause for the actual match with something that
- works with pcase-let(*) without being optimised away.
+ works with pcase-let(*) without being optimized away.
* test/lisp/emacs-lisp/rx-tests.el (rx-pcase): Add test cases.
2021-02-26 Stefan Kangas <stefan@marxist.se>
test/lisp/calendar/icalendar-resources/import-rrule-yearly.diary-iso:
*
test/lisp/calendar/icalendar-tests.el (icalendar-convert-anniversary-to-ical):
- Match new diary-anniversary/yearly-rrule behaviour.
+ Match new diary-anniversary/yearly-rrule behavior.
* lisp/calendar/icalendar.el (icalendar--datestring-to-isodate): Add
year-shift option. (icalendar--convert-anniversary-to-ical): Shift
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Keep
`minor-modes' updated.
* src/buffer.c (bset_minor_modes, Fmake_indirect_buffer)
- (reset_buffer, init_buffer_once): Initialise `minor-modes'.
+ (reset_buffer, init_buffer_once): Initialize `minor-modes'.
(syms_of_buffer): Add `minor-modes' as a new permanently-local
variable.
2021-02-12 Mattias Engdegård <mattiase@acm.org>
- Avoid traversing dead `if` branches in bytecode optimiser
+ Avoid traversing dead `if` branches in bytecode optimizer
There is no point in traversing conditional branches that are
- statically known never to be executed. This saves some optimisation
+ statically known never to be executed. This saves some optimization
effort, but more importantly prevents variable assignments and
references in those branches from blocking effective constant
propagation.
assignments.
* lisp/emacs-lisp/byte-opt.el (byte-optimize-form):
- Rewrite the (tail) recursion into an explicit loop. Normalise a
+ Rewrite the (tail) recursion into an explicit loop. Normalize a
return value of (quote nil) to nil, for easier subsequent
- optimisations.
+ optimizations.
* lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker): Don't
traverse dead `if` branches. Use unconditional traversion context
when possible.
Make texinfmt-version variable obsolete
* lisp/textmodes/texinfmt.el (texinfmt-version): Make variable and
- command obsolete in favour of 'emacs-version'.
+ command obsolete in favor of 'emacs-version'.
(texinfo-format-region, texinfo-format-buffer-1): Use
'emacs-version' instead of above obsolete variable.
(let ((x (+ 2 3))) (f x)) => (f 5)
This reduces code size, eliminates stack operations, and enables
- further optimisations. The implementation is conservative, and is
+ further optimizations. The implementation is conservative, and is
strongly curtailed by the presence of variable mutation, conditions
and loops.
2021-01-31 Alan Mackenzie <acm@muc.de>
- Minimise the time Vminibuffer_list is in an inconsistent state (src/minibuf.c)
+ Minimize the time Vminibuffer_list is in an inconsistent state (src/minibuf.c)
src/minibuf.c (get_minibuffer): Move the XSETCAR which writes the new
minibuffer into Vminibuffer_list to immediately after the MB's creation, so
* lisp/emacs-lisp/checkdoc.el (checkdoc-ispell-init): Always send
the Lisp words to the process (bug#6221). This allows an existing
- ispell process to be correctly initialised.
+ ispell process to be correctly initialized.
2021-01-20 Juri Linkov <juri@linkov.net>
Parse square root sign in embedded Calc mode
- * lisp/calc/calc-lang.el (math-read-big-rec): Recognise √ since it may
+ * lisp/calc/calc-lang.el (math-read-big-rec): Recognize √ since it may
be used in Big mode.
2021-01-19 Mattias Engdegård <mattiase@acm.org>
* lisp/textmodes/paragraphs.el (mark-paragraph): Revert
eb090f65ceb0ae8a90829e911694348583135ba5 (bug#45318). This restores
- the behaviour from Emacs 27 -- further work is needed on this patch.
+ the behavior from Emacs 27 -- further work is needed on this patch.
2021-01-07 Michael Albinus <michael.albinus@gmx.de>
c-laomib-loop. Insert code which calls c-laomib-loop minimally, with the help
of the new cache.
- * lisp/progmodes/cc-mode.el (c-basic-common-init): Initialise the new cach
+ * lisp/progmodes/cc-mode.el (c-basic-common-init): Initialize the new cach
(at mode start).
(c-before-change): Invalidate the new cache.
(c-fl-decl-start): Add an extra check (> (point) bod-lim) to prevent looping.
2020-12-14 Alan Mackenzie <acm@muc.de>
- Optimise c-font-lock-<>-arglists, particularly for buffers with few <..> pairs
+ Optimize c-font-lock-<>-arglists, particularly for buffers with few <..> pairs
* lisp/progmodes/cc-fonts.el (c-font-lock-<>-arglists): In place of a regexp
search for a complicated and slow regexp, search simply for "<" outside of
2020-12-14 Alan Mackenzie <acm@muc.de>
- Optimise c-parse-state for large buffers with few (if any) braces.
+ Optimize c-parse-state for large buffers with few (if any) braces.
* lisp/progmodes/cc-engine.el (c-get-fallback-scan-pos): Search a maximum of
50,000 characters back for the two BODs. Return nil if we dont' find them.
* test/src/casefiddle-tests.el (casefiddle-tests-char-casing):
(upcase ?ß) now returns ?ẞ (U+7838), partly for technical reasons but
- the previous behaviour was arbitrary and arguably less useful.
+ the previous behavior was arbitrary and arguably less useful.
Correct upcasing of ß is normally SS, which is what Fupcase returns if
given a string, or (for special purposes) ẞ.
exactly what the output looks like (see
https://github.com/JetBrains/kotlin/commit/\
ffe8ae3840d7b9bdc82170c8181031f05ced68bd) and there is no reason to
- risk mismatches or expensive backtracking (bug#18109). Recognise
+ risk mismatches or expensive backtracking (bug#18109). Recognize
'info' level messages. Convert to rx.
2020-12-09 Lars Ingebrigtsen <larsi@gnus.org>
2020-12-09 Mattias Engdegård <mattiase@acm.org>
- Recognise ß properly as a lower-case letter (bug#11309)
+ Recognize ß properly as a lower-case letter (bug#11309)
ß was incorrectly treated as a caseless character and thus not matched
by the regexp [[:lower:]] (or, in case-folding mode, [[:upper:]]).
Remove keyboard anachronisms from tutorial
* etc/tutorials/TUTORIAL: Don't keep referring to EDIT as if it were a
- common name for the Meta key; since a few decades back it's labelled
+ common name for the Meta key; since a few decades back it's labeled
Alt (or Option or ⌥ but those keys usually also have 'alt' engraved on
them). Similarly, CTL is practically extinct and not worth
mentioning.
2020-11-19 Mattias Engdegård <mattiase@acm.org>
- More string-search optimisations
+ More string-search optimizations
All-ASCII strings cannot have substrings with non-ASCII characters in
them; use this fact to avoid searching entirely.
2020-11-09 Harald Jörg <haj@posteo.de>
- cperl-mode: Indentation of ')' follows customisation
+ cperl-mode: Indentation of ')' follows customization
* lisp/progmodes/cperl-mode.el (cperl-style-alist): Add
cperl-close-paren-offset to the settings for PBP style.
* lisp/emacs-lisp/easy-mmode.el (easy-mmode--arg-docstring):
Only document the values we want to support, not the ones we
actually support.
- (define-minor-mode): Partially revert to previous behaviour.
+ (define-minor-mode): Partially revert to previous behavior.
2020-11-01 Stefan Kangas <stefan@marxist.se>
Since a supplied test function can do anything, assoc is not
side-effect-free (bug#44018). However, with only two arguments it is
- pure and should be optimised accordingly.
+ pure and should be optimized accordingly.
* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Remove 'assoc'.
(byte-optimize-assoc): Constant-propagate through 2-arg assoc calls.
Remove unused function in gdb-mi.el
* lisp/progmodes/gdb-mi.el (gdb-var-evaluate-expression-handler):
- Remove. (It was left behind in an old code reorganisation.)
+ Remove. (It was left behind in an old code reorganization.)
2020-10-27 Lars Ingebrigtsen <larsi@gnus.org>
(shortdoc-section): Remove colors.
(shortdoc-separator): New face.
(shortdoc-display-group, shortdoc--display-function): Don't use
- background colours, because that makes things harder to read.
+ background colors, because that makes things harder to read.
Separate with a horizontal line instead.
2020-10-26 Andrea Corallo <akrl@sdf.org>
* lisp/emacs-lisp/eldoc.el:
(eldoc-echo-area-prefer-doc-buffer): Rename from
eldoc-echo-area-prefer-doc-buffer
- (eldoc-display-in-echo-area): Rework to honour
+ (eldoc-display-in-echo-area): Rework to honor
eldoc-echo-area-prefer-doc-buffer.
2020-10-24 João Távora <joaotavora@gmail.com>
mixal-mode: add missed instructions
- Synchronises with latest released GNU MDK 1.2.11
+ Synchronizes with latest released GNU MDK 1.2.11
* lisp/progmodes/mixal-mode.el (mixal-operation-codes-alist):
Add missed instructions: SLB,SRB,JAE,JAO,JXE,JXO.
(No mixed fonts): Remove references to MELPA.
(How do the themes look like)
(Enable and load, Load automatically)
- (Configure options prior to loading, Customisation Options)
+ (Configure options prior to loading, Customization Options)
(No mixed fonts, Command prompts, Mode line, Completion UIs)
(Fringes, Line highlighting, Matching parentheses, Diffs)
(Org mode blocks, Heading styles, Tweak colors (DIY))
Sanitize ical data in gnus-icalendar-event-from-ical
* lisp/gnus/gnus-icalendar.el (gnus-icalendar-event-from-ical):
- Sanitise the data before passing it on to the constructor. This
+ Sanitize the data before passing it on to the constructor. This
avoids backtraces on icals with extra, unknown slots (bug#43057).
2020-10-16 Basil L. Contovounesios <contovob@tcd.ie>
2020-10-16 Lars Ingebrigtsen <larsi@gnus.org>
- Restore vc-revision-other-window buffer-changing behaviour
+ Restore vc-revision-other-window buffer-changing behavior
* lisp/vc/vc.el (vc-revision-other-window): This function used to
change the current buffer, but this was changed in the previous
Add more numeric shortdocs
* lisp/emacs-lisp/shortdoc.el (shortdoc-section)
- (shortdoc-example): Lighten up colours on light backgrounds.
+ (shortdoc-example): Lighten up colors on light backgrounds.
2020-10-11 Lars Ingebrigtsen <larsi@gnus.org>
- Tweak shortdoc colours on light backgrounds
+ Tweak shortdoc colors on light backgrounds
* lisp/emacs-lisp/shortdoc.el (shortdoc-section)
- (shortdoc-example): Lighten up colours on light backgrounds.
+ (shortdoc-example): Lighten up colors on light backgrounds.
2020-10-11 Lars Ingebrigtsen <larsi@gnus.org>
2020-09-30 Lars Ingebrigtsen <larsi@gnus.org>
- Fix isearch-group-* colours on low-colour displays
+ Fix isearch-group-* colors on low-colour displays
* lisp/isearch.el (isearch-group-1): On low-colour displays, just
- use the normal isearch colour (bug#43702).
+ use the normal isearch color (bug#43702).
(isearch-group-2 etc): Ditto.
2020-09-30 Lars Ingebrigtsen <larsi@gnus.org>
2020-09-29 Lars Ingebrigtsen <larsi@gnus.org>
- Fix emacsclient -c foo.txt behaviour with many frames
+ Fix emacsclient -c foo.txt behavior with many frames
* lisp/server.el (server-execute): Pass in whether we opened a new
frame or not (bug#43645).
(server-switch-buffer): Use this to switch to the requested buffer
in the new frame if we have "emacsclient -c foo.txt", and retain
- the old behaviour if it's "emacsclient foo.txt".
+ the old behavior if it's "emacsclient foo.txt".
2020-09-29 Lars Ingebrigtsen <larsi@gnus.org>
2020-09-27 Mattias Engdegård <mattiase@acm.org>
- Minor string-search optimisations (bug#43598)
+ Minor string-search optimizations (bug#43598)
* src/fns.c (Fstring_search): Perform cheap all-ASCII checks before more
expensive ones. Use a faster loop when searching for non-ASCII
Speed up shr-insert slightly
- * lisp/net/shr.el (shr-insert): Speed up regularising spaces --
+ * lisp/net/shr.el (shr-insert): Speed up regularizing spaces --
the vast majority of the spaces are already OK, so transforming
" " to " " just takes time.
2020-09-11 Mattias Engdegård <mattiase@acm.org>
- Calc: regularise test names
+ Calc: regularize test names
* test/lisp/calc/calc-tests.el (calc-remove-units, calc-extract-units)
(calc-convert-units, calc-bug-23889, calc-trig, calc-format-radix)
2020-09-08 João Távora <joaotavora@gmail.com>
- Change icomplete-show-matches-on-no-input behaviour for Icomplete only
+ Change icomplete-show-matches-on-no-input behavior for Icomplete only
(Bug#19032), bug#43120
2020-09-07 João Távora <joaotavora@gmail.com>
- Better explain behaviour of icomplete--sorted-completions
+ Better explain behavior of icomplete--sorted-completions
* lisp/icomplete.el (icomplete--sorted-completions): Overhaul comment
2020-08-30 Lars Ingebrigtsen <larsi@gnus.org>
- Tweak background colours in shr when there's indentation
+ Tweak background colors in shr when there's indentation
- * lisp/net/shr.el (shr-fill-line): Get the background colour right
+ * lisp/net/shr.el (shr-fill-line): Get the background color right
for the indentation, too.
2020-08-30 Mauro Aranda <maurooaranda@gmail.com>
2020-08-25 Lars Ingebrigtsen <larsi@gnus.org>
- Extend background colours in shr
+ Extend background colors in shr
* lisp/net/shr.el (shr-colorize-region): Extend backgrounds to the
end (bug#43031). This avoid ragged edges to the right when, for
* lisp/simple.el (read-extended-command): Allow doing interactive
searches over the completions (bug#12490). This restores the
- behaviour from Emacs 23 that was lost in Emacs 24.
+ behavior from Emacs 23 that was lost in Emacs 24.
2020-08-19 Grégoire Jadi <gregoire.jadi@univ-nantes.fr>
2020-08-19 Tino Calancha <tino.calancha@gmail.com>
- Make thingatpt recognise files names with @ in them
+ Make thingatpt recognize files names with @ in them
* lisp/thingatpt.el (thing-at-point-file-name-chars): Add @
(Bug#24606).
Tweak how whitespace-mode marks the end of the buffer
* lisp/whitespace.el (whitespace-missing-newline-at-eof): Change
- the colours to not be as angry.
+ the colors to not be as angry.
(whitespace-color-on): Don't mark the end of the buffer if point
is there.
2020-07-25 Mattias Engdegård <mattiase@acm.org>
- Optimise 3-arg +, - and *
+ Optimize 3-arg +, - and *
Turn (+ a b c) into (+ (+ a b) c), and do the same for - and *.
The 2-arg operations have their own bytecode which results in a 1.5×
- speed-up. Furthermore, the transform enables other optimisations; for
+ speed-up. Furthermore, the transform enables other optimizations; for
example, (+ a 1 b) -> (+ (1+ a) b).
* lisp/emacs-lisp/byte-opt.el (byte-optimize-plus, byte-optimize-minus)
2020-07-17 Lars Ingebrigtsen <larsi@gnus.org>
- Fix NOT-CURRENT behaviour in text-property-search-backward
+ Fix NOT-CURRENT behavior in text-property-search-backward
* lisp/emacs-lisp/text-property-search.el
- (text-property-search-backward): Fix inconsistent behaviour of
+ (text-property-search-backward): Fix inconsistent behavior of
S-TAB in eww (and other callers that use the NOT-CURRENT
- behaviour) when there are adjacent elements
+ behavior) when there are adjacent elements
(bug#39239).
2020-07-17 Xu Chunyang <xuchunyang56@gmail.com>
(eldoc-documentation-compose, eldoc-documentation-default): Handle
non-nil, non-string values of elements of
eldoc-documentation-functions. Use eldoc--handle-multiline.
- (eldoc-print-current-symbol-info): Honour non-nil, non-string
+ (eldoc-print-current-symbol-info): Honor non-nil, non-string
values returned by eldoc-documentation-callback.
(eldoc--make-callback): Now also a function.
(eldoc-documentation-default, eldoc-documentation-compose): Tweak docstring.
2020-07-07 Mattias Engdegård <mattiase@acm.org>
- Optimise assoc and rassoc with symbol key to assq and rassq
+ Optimize assoc and rassoc with symbol key to assq and rassq
This is the same transformation made for member to memq.
2020-07-06 Mattias Engdegård <mattiase@acm.org>
- Simplify byte-code optimisation of pure functions
+ Simplify byte-code optimization of pure functions
- Most pure functions need no explicit optimisation; we can do away with
+ Most pure functions need no explicit optimization; we can do away with
almost all uses of byte-optimize-predicate (now renamed to
byte-optimize-constant-args, since it is not just for predicates).
Also remove some superfluous arity warnings.
CC Mode: optimize for repeated simple operations.
- Do this by recognising that unterminated strings in a buffer are typically
+ Do this by recognizing that unterminated strings in a buffer are typically
going to be few and close together. Also optimize code for C++ attributes.
* lisp/progmodes/cc-defs.el (c-previous-single-property-change): New macro.
* lisp/gnus/gnus-cloud.el (gnus-cloud-download-data): Return the
result of calling `gnus-cloud-update-all' when UPDATE is t, as per the
- documented behaviour. (Bug#40280)
+ documented behavior. (Bug#40280)
2020-06-23 Andrea Corallo <akrl@sdf.org>
* lisp/progmodes/project.el (project-shell): Improve docstring to
include information about an implementation detail.
- * lisp/progmodes/project.el (project-eshell): Modelled after
+ * lisp/progmodes/project.el (project-eshell): Modeled after
'project-shell', change default behavior such that we don't create too
many eshell buffers by default. Use universal argument to create
subsequent buffers.
2020-06-10 Mattias Engdegård <mattiase@acm.org>
- Improved light/dark colour predicate (bug#41544)
+ Improved light/dark color predicate (bug#41544)
- Add a predicate, color-dark-p, for deciding whether a colour is more
+ Add a predicate, color-dark-p, for deciding whether a color is more
readable with black or white as contrast. It has experimentally been
shown to be more accurate and robust than the various methods
currently employed.
- The new predicate compares the relative luminance of the colour to an
+ The new predicate compares the relative luminance of the color to an
empirically determined cut-off value, and it seems to get it right in
almost all cases, with no value leading to outright bad results.
2020-06-08 Mattias Engdegård <mattiase@acm.org>
- More robust NS hex colour string parsing
+ More robust NS hex color string parsing
Invalid arguments to color-values, such as "#abcdefg" or "#1234", or
valid ones like "#111222333", should not yield nonsense values.
* src/nsterm.m (ns_get_color):
Only accept "#RGB" strings with 1-4 digits per components, equal number
- of digits each, and no trailing characters. Parse 12-bit colours
+ of digits each, and no trailing characters. Parse 12-bit colors
correctly.
2020-06-08 Michael Albinus <michael.albinus@gmx.de>
Make color-distance symmetric and more accurate
* src/xfaces.c (color_distance): Don't throw away the low 8 bits of
- the colours, and make the function symmetric (bug41544)
+ the colors, and make the function symmetric (bug41544)
(Fcolor_distance): Add caution about this not being a true metric.
* test/src/xfaces-tests.el: New file.
* lisp/international/ucs-normalize.el
(ucs-normalize-hfs-nfd-post-read-conversion)
(ucs-normalize-hfs-nfd-pre-write-conversion):
- Use save-match-data to avoid match data clobber in normalisation.
+ Use save-match-data to avoid match data clobber in normalization.
* test/lisp/international/ucs-normalize-tests.el
(ucs-normalize-save-match-data): New test.
2020-05-14 Mattias Engdegård <mattiase@acm.org>
- Fix customisation of mouse-drag-and-drop-region (bug#41251)
+ Fix customization of mouse-drag-and-drop-region (bug#41251)
Reported by David Ponce.
cc-mode: extend regexp used by ‘c-or-c++-mode’
* lisp/progmodes/cc-mode.el (c-or-c++-mode--regexp): Expand the regexp to
- match some more C++-only constructs and recognise a few more standard
+ match some more C++-only constructs and recognize a few more standard
C++ header files. Also make sure identifiers start with non-digit.
(c-or-c++-mode): Add ‘(interactive)’ declaration.
* test/lisp/progmodes/cc-mode-tests.el (c-or-c++-mode): Add test case
- for the newly recognised constructs.
+ for the newly recognized constructs.
2020-05-09 Michal Nazarewicz <mina86@mina86.com>
* src/nsterm.m (ns_parent_window_rect): New function.
(NS_PARENT_WINDOW_LEFT_POS):
(NS_PARENT_WINDOW_TOP_POS): Move to nsterm.m and simplify.
- (ns_set_offset): Fix strange behaviours when using negative values.
+ (ns_set_offset): Fix strange behaviors when using negative values.
(ns_set_window_size):
(ns_set_undecorated):
([EmacsView windowDidResize:]):
2020-04-16 Mattias Engdegård <mattiase@acm.org>
- Regularise some file-matching regexps
+ Regularize some file-matching regexps
* admin/authors.el (authors-obsolete-files-regexps)
(authors-renamed-files-regexps): Replace ^ and $ with \` and \'.
* lisp/progmodes/cl-font-lock.el: Fix header and make it a minor mode
- Change copyright to FSF and licence to GPLv3+.
+ Change copyright to FSF and license to GPLv3+.
Tweak Commentary (the code doesn't seem to provide the lambda
prettification mentioned).
Avoid expensive recoding for ASCII identity cases (bug#40407)
- Optimise for the common case of encoding or decoding an ASCII-only
+ Optimize for the common case of encoding or decoding an ASCII-only
string using an ASCII-compatible coding, for file names in particular.
* src/coding.c (string_ascii_p): New function.
2020-04-03 Ashish SHUKLA <ashish.is@lostca.se>
- configure.ac: switch to POSIX sh behaviour
+ configure.ac: switch to POSIX sh behavior
2020-04-03 Federico Tedin <federicotedin@gmail.com>
(ns_dumpglyphs_stretch): Remove unused variable.
(ns_term_init):
([EmacsWindow setAppearance]): Only compile on macOS.
- (ns_mouse_position): Make sure f is initialised on GNUstep.
+ (ns_mouse_position): Make sure f is initialized on GNUstep.
* src/emacs.c (main): Move allocation of autorelease pool to before
first use.
2019-11-17 Prepend "unsigned" to MINI_GMP_LIMB_TYPE
2019-11-17 Enable testing with different limb sizes (types)
2019-11-20 Use already defined constants
- 2019-11-09 Avoid undefined behaviour with small limb sizes
+ 2019-11-09 Avoid undefined behavior with small limb sizes
2020-01-26 Paul Eggert <eggert@cs.ucla.edu>
2019-12-26 Mattias Engdegård <mattiase@acm.org>
- Optimise 'while' bodies for effect
+ Optimize 'while' bodies for effect
* lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker):
Treat all expressions in the body of 'while' as for-effect,
* lisp/progmodes/compile.el (compilation-parse-errors):
When 'omake' is enabled, allow error messages to be indented by 0 or 6
spaces instead of any number of spaces, to avoid pathological
- behaviour.
+ behavior.
(compilation-error-regexp-alist-alist): Anchor the 'omake' pattern to
bol for performance. Repair the 'ruby-Test::Unit' pattern, which
relied on the previously over-generous 'omake' hack.
Speed up 'maven' compilation error message regexp
- Anchor the regexp at line-start to prevent quadratic behaviour when
+ Anchor the regexp at line-start to prevent quadratic behavior when
it doesn't match (bug#39595). It's unclear whether the type tag, like
[ERROR], is always present; we keep it optional just in case.
Calc: fix interval entry (bug#39040)
- * lisp/calc/calc.el (calcDigit-start): Initialise calc-prev-char to
+ * lisp/calc/calc.el (calcDigit-start): Initialize calc-prev-char to
something more reasonable, so that non-algebraic entry of intervals
whose start is a single digit, like (1..10), works properly.
Reported by Michel Schinz.
flymake: fix typo in variable binding (bug#38752)
- This mistake was found by an experimental elisp optimiser.
+ This mistake was found by an experimental elisp optimizer.
* lisp/progmodes/flymake-proc.el (flymake-proc-stop-all-syntax-checks):
Add missing brackets.
Improve sorting of flex completion style with non-nil minibuffer-default
- This affects the behaviour of flex completion when there is a default
+ This affects the behavior of flex completion when there is a default
completion and the user hasn't entered any input pattern to flex-match
against. It is most visible when icomplete-mode or fido-mode are
being used in conjunctio.
* lisp/emacs-lisp/regexp-opt.el (regexp-opt):
* doc/lispref/searching.texi (Regexp Functions):
Be more specific about how the KEEP-ORDER argument actually works.
- If nil, the regexp guarantees a longest match; this is the behaviour
+ If nil, the regexp guarantees a longest match; this is the behavior
that many callers implicitly rely on.
2019-12-18 Michael Albinus <michael.albinus@gmx.de>
Handle FC_CHARCELL in xftfont_open
* src/xftfont.c (xftfont_open): FC_CHARCELL is apparently an alias
- for FC_DUAL used in some east Asian fonts (bug#35079). Modelled
+ for FC_DUAL used in some east Asian fonts (bug#35079). Modeled
after a patch suggested by Kenichi Handa.
2019-11-17 Eli Zaretskii <eliz@gnu.org>
When using this option and editing input, some transient situations
may arise that lead to file-name shadowing, but that shouldn't
- necessarily lead to auto-delete behaviour, which will be surprising.
+ necessarily lead to auto-delete behavior, which will be surprising.
In '/foo/x/bar', if the user deletes the 'x', shadowing occurs, but
probably shouldn't. So, somewhat like ido-mode, only auto-tidy
Add extra bindings to fido-mode.
* lisp/icomplete.el (icomplete-fido-mode-map) : Add arrows and other
- bindings to reproduce ido behaviour.
+ bindings to reproduce ido behavior.
2019-11-09 Glenn Morris <rgm@gnu.org>
2019-10-23 Lars Ingebrigtsen <larsi@gnus.org>
- Make Gnus recognise "git am" diffs in all groups
+ Make Gnus recognize "git am" diffs in all groups
- * lisp/gnus/mm-uu.el (mm-uu-diff-groups-regexp): Recognise diffs
+ * lisp/gnus/mm-uu.el (mm-uu-diff-groups-regexp): Recognize diffs
in all groups (bug#32730).
2019-10-22 Stefan Kangas <stefankangas@gmail.com>
2019-10-09 Lars Ingebrigtsen <larsi@gnus.org>
- Fix possible initialisation error in shell-mode-map
+ Fix possible initialization error in shell-mode-map
* lisp/shell.el (shell-mode-map): Comint is the parent mode, so
there's no need to explicitly make it a parent map here (bug#25187).
2019-10-06 Lars Ingebrigtsen <larsi@gnus.org>
- Fix the colours on Motif horizontal scroll bars
+ Fix the colors on Motif horizontal scroll bars
* src/xterm.c (x_create_horizontal_toolkit_scroll_bar): Use the
- same foreground/background colours as the vertical scroll bar
+ same foreground/background colors as the vertical scroll bar
(bug#37359).
2019-10-06 Lars Ingebrigtsen <larsi@gnus.org>
C++ Mode: Fontify correctly declarators with identifier preceded by &
- The problem was bar in the following being spuriously recognised as a
+ The problem was bar in the following being spuriously recognized as a
function, and foo as a type, as though the & were a *: Foo foo (&bar);.
* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): New variable
2019-09-29 Lars Ingebrigtsen <larsi@gnus.org>
- Allow customising pdf-to-text parameters
+ Allow customizing pdf-to-text parameters
- * lisp/doc-view.el (doc-view-pdf->txt): Allow customising the
+ * lisp/doc-view.el (doc-view-pdf->txt): Allow customizing the
parameters (bug#8519).
(doc-view-pdftotext-program-args): New variable.
2019-09-14 Lars Ingebrigtsen <larsi@gnus.org>
- Add default foreground colours to SVG images
+ Add default foreground colors to SVG images
- * lisp/net/shr.el (svg--wrap-svg): Add a default foreground colour
+ * lisp/net/shr.el (svg--wrap-svg): Add a default foreground color
to SVG images (bug#37159). This helps with images like the ones
in https://en.wikipedia.org/wiki/Banach_fixed-point_theorem that
- specify no foreground or background colours.
+ specify no foreground or background colors.
(shr-parse-image-data): Use it.
2019-09-14 Lars Ingebrigtsen <larsi@gnus.org>
* lisp/epa-file.el (epa-file--replace-text): Gingerly replace the
text in the buffer to preserve as many markers as possible
- (bug#34720). This emulates the behaviour of Finsert_file_contents
+ (bug#34720). This emulates the behavior of Finsert_file_contents
more accurately.
(epa-file-decode-and-insert): Remove compat code.
(epa-file-insert-file-contents): Use the new function.
Repair change to compilation-context-lines (bug#36832)
* lisp/progmodes/compile.el (compilation-set-window):
- Restore proper behaviour when compilation-context-lines is nil,
+ Restore proper behavior when compilation-context-lines is nil,
which is the default.
2019-09-04 Michael Albinus <michael.albinus@gmx.de>
2019-08-29 Lars Ingebrigtsen <larsi@gnus.org>
- Tweak shr background colour handling
+ Tweak shr background color handling
* lisp/net/shr.el (shr-fill-line): Extend the background to the
end of the line when folding lines.
* lisp/progmodes/cc-engine.el (c-beginning-of-statement-1): Check for
operators which cannot start a statement, which may follow a closing brace.
- Don't recognise an end of statement in such a case.
+ Don't recognize an end of statement in such a case.
* lisp/progmodes/cc-langs.el (c-operator-re, c-bin-tern-operators)
(c-unary-operators, c-non-after-{}-operators, c-non-after-{}-ops-re): New lang
2019-08-04 Lars Ingebrigtsen <larsi@gnus.org>
- Capitalise a couple of node names
+ Capitalize a couple of node names
- * doc/lispref/functions.texi (Advising Functions): Capitalise node
+ * doc/lispref/functions.texi (Advising Functions): Capitalize node
names (bug#17717).
- (Advice Combinators, Porting Old Advice): Capitalise.
+ (Advice Combinators, Porting Old Advice): Capitalize.
2019-08-04 Michael Heerdegen <michael_heerdegen@web.de>
2019-08-02 Lars Ingebrigtsen <larsi@gnus.org>
- Make Info-find-file ensure that Info is initialised
+ Make Info-find-file ensure that Info is initialized
- * lisp/info.el (Info-find-file): Ensure that Info is initialised,
+ * lisp/info.el (Info-find-file): Ensure that Info is initialized,
because libraries call that function (bug#19880).
2019-08-02 Lars Ingebrigtsen <larsi@gnus.org>
This fixes bug #36801.
* lisp/progmodes/cc-langs.el (c-pre-lambda-tokens-re): Use c-make-keywords-re
- rather than regexp-opt to make an optimised regexp out of a list of tokens.
+ rather than regexp-opt to make an optimized regexp out of a list of tokens.
2019-08-02 Lars Ingebrigtsen <larsi@gnus.org>
Document batch-byte-compile directory behavior
* lisp/emacs-lisp/bytecomp.el (batch-byte-compile): Document the
- behaviour with directories (bug#20867).
+ behavior with directories (bug#20867).
2019-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
2019-07-25 Lars Ingebrigtsen <larsi@gnus.org>
- Tweak the behaviour of thing-at-point--end-of-sexp
+ Tweak the behavior of thing-at-point--end-of-sexp
* lisp/thingatpt.el (thing-at-point--end-of-sexp): Don't return
nil when called with point between two parentheses (bug#29499).
Make `C-u w' in the Gnus Summary buffer open externally
- * doc/misc/gnus.texi (Article Commands): Document new behaviour.
+ * doc/misc/gnus.texi (Article Commands): Document new behavior.
* lisp/gnus/gnus-sum.el (gnus-shorten-url): New function.
(gnus-summary-browse-url): Change function to make `C-u' use the
2019-07-14 Lars Ingebrigtsen <larsi@gnus.org>
- Tweak background colour handling in shr
+ Tweak background color handling in shr
- * lisp/net/shr.el (shr-fill-line): Keep the background colour on
+ * lisp/net/shr.el (shr-fill-line): Keep the background color on
the newline and the indentation.
2019-07-14 Lars Ingebrigtsen <larsi@gnus.org>
* lisp/epg.el (epg-start-encrypt)
* lisp/gnus/mml-sec.el (mml-secure-epg-encrypt): When
'mml-secure-openpgp-sign-with-sender' is non-nil message sender's
- email address (in addition to its old behaviour) will also be used
+ email address (in addition to its old behavior) will also be used
to set gpg's "--sender email@domain" option.
2019-07-12 Paul Eggert <eggert@cs.ucla.edu>
Support program switches in 'comint-run' command
* etc/NEWS:
- * doc/emacs/misc.texi: Describe new behaviour (bug#33037).
+ * doc/emacs/misc.texi: Describe new behavior (bug#33037).
* lisp/comint.el (comint-run): Add optional SWITCHES argument.
With prefix argument C-u, prompt for SWITCHES.
2019-07-04 Mattias Engdegård <mattiase@acm.org>
- Optimise more inputs to `regexp-opt' (bug#36444)
+ Optimize more inputs to `regexp-opt' (bug#36444)
Use a more precise test to determine whether the input to `regexp-opt'
- is safe to optimise when KEEP-ORDER is non-nil, permitting more inputs
- to be optimised than before. For example, ("good" "goal" "go") is now
+ is safe to optimize when KEEP-ORDER is non-nil, permitting more inputs
+ to be optimized than before. For example, ("good" "goal" "go") is now
accepted.
* lisp/emacs-lisp/regexp-opt.el (regexp-opt):
2019-06-27 Lars Ingebrigtsen <larsi@gnus.org>
- Mention the new emacsclient -a/--eval behaviour
+ Mention the new emacsclient -a/--eval behavior
2019-06-27 Lars Ingebrigtsen <larsi@gnus.org>
`replace-regexp-in-string' omits the first START characters of the
input string in its return value. This is a clear bug, but fixing it
- probably causes more trouble; document the behaviour instead (bug#36372).
+ probably causes more trouble; document the behavior instead (bug#36372).
* doc/lispref/searching.texi (Search and Replace)
* lisp/subr.el (replace-regexp-in-string):
- Document current behaviour.
+ Document current behavior.
2019-06-26 Stefan Monnier <monnier@iro.umontreal.ca>
* lisp/view.el (view-search): Jump to the next/prev occurrence of
the search, even if it's displayed in the buffer (bug#18131).
- This seems more logical than the previous (undocumented) behaviour.
+ This seems more logical than the previous (undocumented) behavior.
2019-06-25 Paul Eggert <eggert@cs.ucla.edu>
(goto-address-uri-schemes): Ditto.
(goto-address-url-regexp): Use them to compose the final regexp.
- * lisp/net/goto-addr.el: The URI schemes to be recognised by
+ * lisp/net/goto-addr.el: The URI schemes to be recognized by
`goto-address-mode' were not regexp-quoted (Bug#23343).
2019-06-25 Tino Calancha <f92capac@gmail.com>
Make ls-lisp--dired ape dired-noselect more closely
- * lisp/ls-lisp.el (ls-lisp--dired): Emulate the behaviour of
+ * lisp/ls-lisp.el (ls-lisp--dired): Emulate the behavior of
non-ls-lisp.el dired better by defaulting to default-directory as
dired-noselect does (bug#35390).
(global-auto-revert-mode): Don't use
`after-set-visited-file-name-hook' here.
(auto-revert-set-visited-file-name): Rename from
- `auto-revert--global-set-visited-file-name' and generalise.
+ `auto-revert--global-set-visited-file-name' and generalize.
* test/lisp/autorevert-tests.el (auto-revert-test06-write-file): New.
2019-06-11 Michael Albinus <michael.albinus@gmx.de>
2019-05-05 Mattias Engdegård <mattiase@acm.org>
- Reorganise (auto-)revert nodes in the manual
+ Reorganize (auto-)revert nodes in the manual
Put all information about auto-revert into a section of its own, and
- organise the text in a more logical way. Previously it was mainly
+ organize the text in a more logical way. Previously it was mainly
described in the section about reverting (bug#35418).
* doc/emacs/files.texi (Files): Adjust menu.
* lisp/progmodes/cc-engine.el (c-looking-at-or-maybe-in-bracelist): On
detection of such a ref-qualifier, set braceassignp to nil. When this
variable has a nil value, return nil as the value of the function. On
- encountering a } when scanning backwards, recognise this as the end of a
+ encountering a } when scanning backwards, recognize this as the end of a
previous construct and stop the scan.
2019-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
* doc/lispref/searching.texi (Regular Expression Functions):
* etc/NEWS:
- Document the new behaviour.
+ Document the new behavior.
* lisp/emacs-lisp/regexp-opt.el (regexp-opt):
Return a never-match regexp for empty inputs.
xref-find-definitions or xref-find-definitions-other-window how to
choose a window for the *xref* buffer or how to find windows for
displaying the results after choosing a candidate. This patch makes
- that task easier, but keeps the current behaviour intact.
+ that task easier, but keeps the current behavior intact.
* lisp/progmodes/xref.el (xref--show-pos-in-buf): Simplify.
image-mode: Make parameters buffer-local
Image parameters were treated as image specific, but because they
- actually were global variables, their behaviour transferred to new
+ actually were global variables, their behavior transferred to new
images.
* lisp/image-mode.el (image-transform-resize, image-transform-scale)
(image-transform-rotation): Declare with defvar-local. (Bug#33990)
To resolve this confusion, never cycle with C-M-i in icomplete:
non-ambiguous cycling can be achieved with C-. and C-,
- The former behaviour can still be restored with:
+ The former behavior can still be restored with:
(define-key icomplete-minibuffer-map (kbd "C-M-i") 'minibuffer-force-complete)
really reindented. Rewrite comment.
(electric-layout-allow-duplicate-newlines): New variable.
(electric-layout-post-self-insert-function-1): Rewrite comments.
- Honours electric-layout-allow-duplicate-newlines. Don't reindent
+ Honors electric-layout-allow-duplicate-newlines. Don't reindent
previous line because racecar.
* test/lisp/electric-tests.el: New test.
Remove tests of electric-pair-mode and CC-based modes
- The behaviour previously observed in cc-mode-based-modes (and every
+ The behavior previously observed in cc-mode-based-modes (and every
other major-mode) when electric-pair-mode or electric-layout-mode is
turned on may no longer be observed: this because CC-mode goes around
the generic implementation of electric-pair-mode.
2019-01-10 Alan Third <alan@idiocy.org>
- Fix drag and drop behaviour on NS (bug#30929)
+ Fix drag and drop behavior on NS (bug#30929)
* doc/emacs/macos.texi (Mac / GNUstep Events): Describe the new drag
- and drop behaviour.
+ and drop behavior.
* lisp/term/ns-win.el (ns-drag-n-drop): Handle the new event format.
(ns-drag-n-drop-other-frame):
(ns-drag-n-drop-as-text):
2018-09-09 mktime: simplify in prep for glibc merge
2018-09-07 intprops: minor clarification of code
2018-09-06 stddef: Override max_align_t on NetBSD 8.0/x86
- 2018-09-06 fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku
+ 2018-09-06 fcntl: Fix F_DUPFD_CLOEXEC behavior on Haiku
2018-09-06 strtoll, strtoull: Rely on limits-h module
2018-09-06 limits-h: Provide numerical limits macros
2018-09-06 fcntl: Don't access nonexistent optional argument
2018-08-09 João Távora <joaotavora@gmail.com>
- Synchronous JSONRPC requests can be cancelled on user input
+ Synchronous JSONRPC requests can be canceled on user input
This allows building more responsive interfaces, such as a snappier
completion backend.
Tweak previous gnutls change for efficiency
- * src/gnutls.c (Fgnutls_peer_status): Minor optimisation to avoid
+ * src/gnutls.c (Fgnutls_peer_status): Minor optimization to avoid
computing the topmost certificate twice.
2018-06-24 Lars Ingebrigtsen <larsi@gnus.org>
* lisp/window.el (scroll-other-window-down):
Move to src/window.c as Fscroll_other_window_down.
- * src/window.c (scroll_command): Generalise for arbitrary windows.
+ * src/window.c (scroll_command): Generalize for arbitrary windows.
(Fscroll_up, Fscroll_down): Use scroll_command with selected_window.
(Fscroll_other_window, Fscroll_other_window_down):
Rewrite in terms of scroll_command.
326a296 ; * etc/NEWS: Mention 'display-buffer-in-major-side-window' c...
3bdc9a1 Fix flyspell-auto-correct-previous-word broken by recent change
a539eb5 * test/src/lread-tests.el (lread-test-bug-31186): New test.
- 3fa472b Fix undefined behaviour while looking for lexical-binding fil...
+ 3fa472b Fix undefined behavior while looking for lexical-binding fil...
4341aac Minor wording improvement in "Bookmarks"
Conflicts:
* lisp/gnus/gnus-group.el (gnus-update-group-mark-positions):
Rewrite a call to string-to-multibyte that didn't even work.
After the rewrite it gives the correct result and should allow
- people to customise Gnus group process mark positions (but that's
+ people to customize Gnus group process mark positions (but that's
a pretty obscure feature).
2018-04-14 Lars Ingebrigtsen <larsi@gnus.org>
From the discussion on the ding mailing list, I said:
- I think the colours should be reverted back to what they were before the
+ I think the colors should be reverted back to what they were before the
change. Normal text should be white on black (if you have a dark
- background), and colours should be used to emphasise or de-emphasise
+ background), and colors should be used to emphasize or de-emphasize
certain text. Following that principle, normal Gnus groups should be
white, not ... er... what are they now? Teal?
and numeric conversion in function in order to parse -signal and
-SIGNALNAME correctly.
* doc/misc/eshell.texi (kill): Update docs to reflect new function
- behaviour.
- * etc/NEWS: Mention new eshell/kill behaviour.
+ behavior.
+ * etc/NEWS: Mention new eshell/kill behavior.
2018-03-25 Noam Postavsky <npostavs@gmail.com>
2018-01-16 Alan Mackenzie <acm@muc.de>
- C++ Mode: Fontify correctly uniform initialisation with inner parentheses.
+ C++ Mode: Fontify correctly uniform initialization with inner parentheses.
E.g.: someStruct x ( (nullptr != y) ? 3 : 4 )
Also fontify declarations of function pointers correctly.
413978727c Simplify Flymake user documentation
6ff18c3995 * etc/NEWS: Mention the new version of Org.
b78332c3c6 Don't use (format "%s" ...) for string copying (Bug#28774)
- 078fb7f6df Make frame-list-z-order on NS match Windows behaviour (bug...
+ 078fb7f6df Make frame-list-z-order on NS match Windows behavior (bug...
# Conflicts:
# etc/NEWS
* lisp/progmodes/flymake-proc.el
(flymake-proc--diagnostics-for-pattern): Rewrite (using cl-loop) to
- honour more sophisticated flymake-proc-diagnostic-type-pred.
+ honor more sophisticated flymake-proc-diagnostic-type-pred.
(flymake-warning-re): Is now an obsolete alias for
flymake-proc-diagnostic-type-pred.
(flymake-proc-diagnostic-type-pred): Rename and augment from
titlecase_char_table member. It’s set to the ‘titlecase’ Unicode
property table if capitalization has been requested.
(case_character): Make use of the titlecase_char_table to title-case
- initial characters when capitalising.
+ initial characters when capitalizing.
* test/src/casefiddle-tests.el (casefiddle-tests--characters,
casefiddle-tests-casing): Update test cases which are now passing.
* lisp/net/tramp.el (tramp-completion-mode): Fix docstring.
(tramp-completion-mode-p): Optional parameter VEC. Replace
- check for `last-input-event' by analysing VEC argument.
+ check for `last-input-event' by analyzing VEC argument.
(tramp-error-with-buffer, tramp-file-name-handler)
(tramp-connectable-p, tramp-handle-file-name-as-directory):
* lisp/net/tramp-sh.el (tramp-maybe-open-connection): Use it.