aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2025-12-26 10:20:45 -0800
committerPaul Eggert2025-12-26 10:22:12 -0800
commit481ad70d5cb5ef68a456152a6bab88e27f9bd319 (patch)
tree0759d09b23efb6b0b7bdf2be23412a58de8ecd68 /src
parent5b461a49305ac5db329f28f719c6f9aa0aafd2cc (diff)
downloademacs-481ad70d5cb5ef68a456152a6bab88e27f9bd319.tar.gz
emacs-481ad70d5cb5ef68a456152a6bab88e27f9bd319.zip
December 2025 spelling fixes
Some of the fixes are to continue to use American rather than British spelling. * doc/misc/modus-themes.org (my-modus-themes-engraved-faces): Fix misspelled ‘:foreground’s. * etc/themes/modus-themes.el (modus-themes-faces): Fix misspelled ‘modus-themes-bold’. * lisp/emacs-lisp/rx.el (rx--normalize-char-pattern): Rename from rx--normalise-char-pattern. (rx--optimize-or-args): Rename from rx--optimise-or-args. * lisp/frame.el (frame--special-parameters): Fix misspelled "right-divider-width". * lisp/net/tramp.el (tramp-fingerprint-prompt-regexp): Use American spelling “centered”, to match current libfprintf. * lisp/org/org-fold-core.el (org-fold-core--optimize-for-huge-buffers): Rename from org-fold-core--optimise-for-huge-buffers. (org-fold-core-update-optimization): Rename from org-fold-core-update-optimisation, leaving an alias behind. (org-fold-core-remove-optimization): Rename from org-fold-core-remove-optimisation, leaving an alias behind. * lisp/org/org.el (org-advertized-archive-subtree): This alias is now obsolete. * lisp/play/zone.el (zone-ignored-buffers): Fix misspelling of ‘zone--buffer-encrypted-p’. * lisp/progmodes/csharp-mode.el (csharp-ts-mode-faces): Fix misspelling of ‘csharp’ group. * lisp/vc/vc.el (vc-clonable-backends-custom-type): Rename from vc-cloneable-backends-custom-type, leaving an alias behind. * test/lisp/emacs-lisp/bytecomp-tests.el: (bytecomp-tests--warn-arity-non-compiled-callee): Rename from bytecomp-tests--warn-arity-noncompiled-callee. (bytecomp-test-defface-spec): Reword a deliberate misspelling of “default” that is so common I don’t want it to pollute the spelling dictionary. * test/lisp/emacs-lisp/package-vc-tests.el: (package-vc-tests-preserve-artifacts): Rename from package-vc-tests-preserve-artifacts. * test/lisp/eshell/em-prompt-tests.el: (em-prompt-test/forward-backward-paragraph-1): Reword a deliberate misspelling of “goodbye” that is so common I don’t want it to pollute the spelling dictionary.
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c2
-rw-r--r--src/editfns.c4
-rw-r--r--src/frame.c2
-rw-r--r--src/lread.c2
-rw-r--r--src/nsterm.m4
-rw-r--r--src/print.c2
-rw-r--r--src/regex-emacs.c2
-rw-r--r--src/treesit.c16
-rw-r--r--src/treesit.h2
-rw-r--r--src/w32fns.c2
-rw-r--r--src/window.c2
-rw-r--r--src/xdisp.c6
12 files changed, 23 insertions, 23 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 4ec6e22ea46..d7833fe999c 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -3271,7 +3271,7 @@ DEFUN ("redraw-display", Fredraw_display, Sredraw_display, 0, 0, "",
3271 3271
3272 Let a "root" frame be a frame that has no parent frame. Such root 3272 Let a "root" frame be a frame that has no parent frame. Such root
3273 frames are required to be the size of the terminal screen. The 3273 frames are required to be the size of the terminal screen. The
3274 current glyph matrix of a root frame of a termimnal represents what 3274 current glyph matrix of a root frame of a terminal represents what
3275 is on the screen. The desired matrix of a root frame represents 3275 is on the screen. The desired matrix of a root frame represents
3276 what should be one the screen. 3276 what should be one the screen.
3277 3277
diff --git a/src/editfns.c b/src/editfns.c
index eb7d77ade55..4b13c6da90a 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -1932,7 +1932,7 @@ DEFUN ("replace-region-contents", Freplace_region_contents,
1932 (get-buffer (read-buffer-to-switch \"Source buffer: \")))", 1932 (get-buffer (read-buffer-to-switch \"Source buffer: \")))",
1933 doc: /* Replace the region between BEG and END with that of SOURCE. 1933 doc: /* Replace the region between BEG and END with that of SOURCE.
1934SOURCE can be a buffer, a string, or a vector [SBUF SBEG SEND] 1934SOURCE can be a buffer, a string, or a vector [SBUF SBEG SEND]
1935denoting the subtring SBEG..SEND of buffer SBUF. 1935denoting the substring SBEG..SEND of buffer SBUF.
1936 1936
1937If optional argument INHERIT is non-nil, the inserted text will inherit 1937If optional argument INHERIT is non-nil, the inserted text will inherit
1938properties from adjoining text. 1938properties from adjoining text.
@@ -1953,7 +1953,7 @@ for comparing the buffers. If it takes longer than MAX-SECS, the
1953function falls back to a plain `delete-region' and 1953function falls back to a plain `delete-region' and
1954`insert-buffer-substring'. (Note that the checks are not performed 1954`insert-buffer-substring'. (Note that the checks are not performed
1955too evenly over time, so in some cases it may run a bit longer than 1955too evenly over time, so in some cases it may run a bit longer than
1956allowed). In partricular, passing zero as the value of MAX-SECS 1956allowed). In particular, passing zero as the value of MAX-SECS
1957disables the comparison step, so this function immediately falls 1957disables the comparison step, so this function immediately falls
1958back to a plain delete/insert method. 1958back to a plain delete/insert method.
1959 1959
diff --git a/src/frame.c b/src/frame.c
index 398352e9daf..1594578c06d 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -1986,7 +1986,7 @@ do_switch_frame (Lisp_Object frame, int track, int for_deletion, Lisp_Object nor
1986 the one you're actually typing in. */ 1986 the one you're actually typing in. */
1987 1987
1988 /* FIXME/tty: I don't understand this. (The comment above is from 1988 /* FIXME/tty: I don't understand this. (The comment above is from
1989 Jim BLandy 1993 BTW, and the frame_ancestor_p from 2017.) 1989 Jim Blandy 1993 BTW, and the frame_ancestor_p from 2017.)
1990 1990
1991 Setting the last event frame to nil leads to switch-frame events 1991 Setting the last event frame to nil leads to switch-frame events
1992 being generated even if they normally wouldn't be because the frame 1992 being generated even if they normally wouldn't be because the frame
diff --git a/src/lread.c b/src/lread.c
index 9c4da863363..41aae928255 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -2207,7 +2207,7 @@ readevalloop (Lisp_Object readcharfun,
2207 2207
2208 specbind (Qstandard_input, readcharfun); 2208 specbind (Qstandard_input, readcharfun);
2209 2209
2210 /* In an .elc file, all shorthand expansion has alreay taken place, so 2210 /* In an .elc file, all shorthand expansion has already taken place, so
2211 make sure we disable any read-symbol-shorthands set higher up in 2211 make sure we disable any read-symbol-shorthands set higher up in
2212 the stack of recursive 'load'. */ 2212 the stack of recursive 'load'. */
2213 if (STRINGP (sourcename) && suffix_p (sourcename, ".elc")) 2213 if (STRINGP (sourcename) && suffix_p (sourcename, ".elc"))
diff --git a/src/nsterm.m b/src/nsterm.m
index 6eb1e88a182..9468832b6d5 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -3957,7 +3957,7 @@ ns_maybe_dumpglyphs_background (struct glyph_string *s, char force_p)
3957 struct ns_display_info *dpyinfo = FRAME_DISPLAY_INFO (s->f); 3957 struct ns_display_info *dpyinfo = FRAME_DISPLAY_INFO (s->f);
3958#ifdef NS_IMPL_COCOA 3958#ifdef NS_IMPL_COCOA
3959 /* On cocoa emacs the stipple is stored as a mask CGImage. 3959 /* On cocoa emacs the stipple is stored as a mask CGImage.
3960 First we want to clear the background with the bg colour */ 3960 First we want to clear the background with the bg color. */
3961 [[NSColor colorWithUnsignedLong:face->background] set]; 3961 [[NSColor colorWithUnsignedLong:face->background] set];
3962 r = NSMakeRect (s->x, s->y + box_line_width, 3962 r = NSMakeRect (s->x, s->y + box_line_width,
3963 s->background_width, 3963 s->background_width,
@@ -3978,7 +3978,7 @@ ns_maybe_dumpglyphs_background (struct glyph_string *s, char force_p)
3978 CGContextClipToRect (context, r); 3978 CGContextClipToRect (context, r);
3979 CGContextScaleCTM (context, 1, -1); 3979 CGContextScaleCTM (context, 1, -1);
3980 3980
3981 /* Stamp the foreground colour using the stipple mask */ 3981 /* Stamp the foreground color using the stipple mask */
3982 [[NSColor colorWithUnsignedLong:face->foreground] set]; 3982 [[NSColor colorWithUnsignedLong:face->foreground] set];
3983 CGRect imageSize = CGRectMake (0, 0, CGImageGetWidth (mask), 3983 CGRect imageSize = CGRectMake (0, 0, CGImageGetWidth (mask),
3984 CGImageGetHeight (mask)); 3984 CGImageGetHeight (mask));
diff --git a/src/print.c b/src/print.c
index 6d0033c21f1..55a8f7361c7 100644
--- a/src/print.c
+++ b/src/print.c
@@ -1130,7 +1130,7 @@ print_error_message (Lisp_Object data, Lisp_Object stream, const char *context,
1130 we throw any information away. */ 1130 we throw any information away. */
1131 && !NILP (XCAR (tail)) && NILP (XCDR (tail))) 1131 && !NILP (XCAR (tail)) && NILP (XCDR (tail)))
1132 { 1132 {
1133 /* Prevent message3 from outputting a newline aftere "user-error:". */ 1133 /* Prevent message3 from outputting a newline after "user-error:". */
1134 reset_message_log_need_newline (); 1134 reset_message_log_need_newline ();
1135 message3 (XCAR (tail)); 1135 message3 (XCAR (tail));
1136 return; 1136 return;
diff --git a/src/regex-emacs.c b/src/regex-emacs.c
index d3017f46751..1fc45a9e20d 100644
--- a/src/regex-emacs.c
+++ b/src/regex-emacs.c
@@ -3751,7 +3751,7 @@ skip_one_char (re_char *p)
3751 C is character to test (possibly after translations) and CORIG is original 3751 C is character to test (possibly after translations) and CORIG is original
3752 character (i.e. without any translations). UNIBYTE denotes whether c is 3752 character (i.e. without any translations). UNIBYTE denotes whether c is
3753 unibyte or multibyte character. 3753 unibyte or multibyte character.
3754 CANON_TABLE is the canonicalisation table for case folding or Qnil. */ 3754 CANON_TABLE is the canonicalization table for case folding or Qnil. */
3755static bool 3755static bool
3756execute_charset (re_char **pp, int c, int corig, bool unibyte, 3756execute_charset (re_char **pp, int c, int corig, bool unibyte,
3757 Lisp_Object canon_table) 3757 Lisp_Object canon_table)
diff --git a/src/treesit.c b/src/treesit.c
index 3d63ad67157..5049c62b06d 100644
--- a/src/treesit.c
+++ b/src/treesit.c
@@ -446,7 +446,7 @@ init_treesit_functions (void)
446 tracking/non-tracking, it stays that way, regardless of later changes 446 tracking/non-tracking, it stays that way, regardless of later changes
447 to treesit-languages-require-line-column-tracking. 447 to treesit-languages-require-line-column-tracking.
448 448
449 To make calculating line/column positons fast, we store linecol 449 To make calculating line/column positions fast, we store linecol
450 caches for begv, point, and zv in the buffer 450 caches for begv, point, and zv in the buffer
451 (buf->ts_linecol_cache_xxx); and in the parser object, we store 451 (buf->ts_linecol_cache_xxx); and in the parser object, we store
452 linecol cache for visible beg/end of that parser. 452 linecol cache for visible beg/end of that parser.
@@ -1072,7 +1072,7 @@ treesit_linecol_of_pos (ptrdiff_t target_bytepos,
1072 1072
1073 /* When we finished searching for newlines between CACHE and 1073 /* When we finished searching for newlines between CACHE and
1074 TARGET_POS, BYTE_POS_2 is at TARGET_POS, and BYTE_POS_1 is at the 1074 TARGET_POS, BYTE_POS_2 is at TARGET_POS, and BYTE_POS_1 is at the
1075 previous newline. If TARGET_POS happends to be on a newline, 1075 previous newline. If TARGET_POS happens to be on a newline,
1076 BYTE_POS_1 will be on that position. BYTE_POS_1 is used for 1076 BYTE_POS_1 will be on that position. BYTE_POS_1 is used for
1077 calculating the column. (If CACHE and TARGET_POS are in the same 1077 calculating the column. (If CACHE and TARGET_POS are in the same
1078 line, BYTE_POS_1 is unset and we don't use it.) */ 1078 line, BYTE_POS_1 is unset and we don't use it.) */
@@ -1245,7 +1245,7 @@ treesit_tree_edit_1 (TSTree *tree, ptrdiff_t start_byte,
1245} 1245}
1246 1246
1247/* Given a position at POS_LINECOL, and the linecol of a buffer change 1247/* Given a position at POS_LINECOL, and the linecol of a buffer change
1248 (START_LINECOL, OLD_END_LINECOL, and NEW_END_LINCOL), compute the new 1248 (START_LINECOL, OLD_END_LINECOL, and NEW_END_LINECOL), compute the new
1249 linecol for that position, then scan from this now valid linecol to 1249 linecol for that position, then scan from this now valid linecol to
1250 TARGET_BYTEPOS and return the linecol at TARGET_BYTEPOS. 1250 TARGET_BYTEPOS and return the linecol at TARGET_BYTEPOS.
1251 1251
@@ -1276,7 +1276,7 @@ compute_new_linecol_by_change (struct ts_linecol pos_linecol,
1276 { 1276 {
1277 new_linecol = pos_linecol; 1277 new_linecol = pos_linecol;
1278 } 1278 }
1279 /* 2. When old_end (oe) is before pos, the differnce between pos and 1279 /* 2. When old_end (oe) is before pos, the difference between pos and
1280 pos' is the difference between old_end and new_end (ne). 1280 pos' is the difference between old_end and new_end (ne).
1281 1281
1282 | | | | | | 1282 | | | | | |
@@ -2197,7 +2197,7 @@ treesit_ensure_query_compiled (Lisp_Object query, Lisp_Object *signal_symbol,
2197 return treesit_query; 2197 return treesit_query;
2198} 2198}
2199 2199
2200/* Bsically treesit_ensure_query_compiled but can signal. */ 2200/* Basically treesit_ensure_query_compiled but can signal. */
2201static 2201static
2202void treesit_ensure_query_compiled_signal (Lisp_Object lisp_query) 2202void treesit_ensure_query_compiled_signal (Lisp_Object lisp_query)
2203{ 2203{
@@ -4507,7 +4507,7 @@ treesit_traverse_match_predicate (TSTreeCursor *cursor, Lisp_Object pred,
4507 if (STRINGP (pred)) 4507 if (STRINGP (pred))
4508 { 4508 {
4509 const char *type = ts_node_type (node); 4509 const char *type = ts_node_type (node);
4510 /* ts_node_type returning NULL means something unexpected happend 4510 /* ts_node_type returning NULL means something unexpected happened
4511 in tree-sitter, in this case the only reasonable thing is to 4511 in tree-sitter, in this case the only reasonable thing is to
4512 not match anything. */ 4512 not match anything. */
4513 if (type == NULL) return false; 4513 if (type == NULL) return false;
@@ -4564,8 +4564,8 @@ treesit_traverse_match_predicate (TSTreeCursor *cursor, Lisp_Object pred,
4564 /* A bit of code duplication here, but should be fine. */ 4564 /* A bit of code duplication here, but should be fine. */
4565 const char *type = ts_node_type (node); 4565 const char *type = ts_node_type (node);
4566 /* ts_node_type returning NULL means something unexpected 4566 /* ts_node_type returning NULL means something unexpected
4567 happend in tree-sitter, in this case the only reasonable 4567 happened in tree-sitter. In this case the only reasonable
4568 thing is to not match anything */ 4568 thing is to not match anything. */
4569 if (type == NULL) return false; 4569 if (type == NULL) return false;
4570 if (!(fast_c_string_match (car, type, strlen (type)) >= 0)) 4570 if (!(fast_c_string_match (car, type, strlen (type)) >= 0))
4571 return false; 4571 return false;
diff --git a/src/treesit.h b/src/treesit.h
index e317e15a9f8..cd4d6932d7f 100644
--- a/src/treesit.h
+++ b/src/treesit.h
@@ -66,7 +66,7 @@ struct Lisp_TS_Parser
66 Lisp_Object last_set_ranges; 66 Lisp_Object last_set_ranges;
67 /* Parsers for embedded code blocks will have a non-zero embed level. 67 /* Parsers for embedded code blocks will have a non-zero embed level.
68 The primary parser has level 0, and each additional layer of parser 68 The primary parser has level 0, and each additional layer of parser
69 embedding increments the leve by 1. The embed level can be either 69 embedding increments the level by 1. The embed level can be either
70 a non-negative integer or nil. Every parser created by 70 a non-negative integer or nil. Every parser created by
71 'treesit-parser-create' starts with a nil level. If the value is 71 'treesit-parser-create' starts with a nil level. If the value is
72 nil, that means the range functions (treesit-update-ranges and 72 nil, that means the range functions (treesit-update-ranges and
diff --git a/src/w32fns.c b/src/w32fns.c
index 88c7a07e0e5..158de459fea 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -4277,7 +4277,7 @@ deliver_wm_chars (int do_translate, HWND hwnd, UINT msg, UINT wParam,
4277 event. 4277 event.
4278 4278
4279 However, for layouts which deliver different characters for AltGr-x 4279 However, for layouts which deliver different characters for AltGr-x
4280 and lCtrl-lAlt-x, this scheme makes the latter character unaccessible 4280 and lCtrl-lAlt-x, this scheme makes the latter character inaccessible
4281 in Emacs. While it is easy to access functionality of [C-M-x] in 4281 in Emacs. While it is easy to access functionality of [C-M-x] in
4282 Emacs by other means (for example, by the `controlify' prefix, or 4282 Emacs by other means (for example, by the `controlify' prefix, or
4283 using lCtrl-rCtrl-x, or rCtrl-rAlt-x [in this order]), missing 4283 using lCtrl-rCtrl-x, or rCtrl-rAlt-x [in this order]), missing
diff --git a/src/window.c b/src/window.c
index 1d9104cc779..d90a5e86805 100644
--- a/src/window.c
+++ b/src/window.c
@@ -5450,7 +5450,7 @@ set correctly. See the code of `split-window' for how this is done. */)
5450 REFER end up as the sole children of PARENT which replaces 5450 REFER end up as the sole children of PARENT which replaces
5451 WINDOW in the window tree. As a special case, if REFER's cdr 5451 WINDOW in the window tree. As a special case, if REFER's cdr
5452 is t, reuse REFER's car's old parent as new parent provided it 5452 is t, reuse REFER's car's old parent as new parent provided it
5453 is a deleted fromer parent window. */ 5453 is a deleted former parent window. */
5454 parent = Fcdr (refer); 5454 parent = Fcdr (refer);
5455 refer = Fcar (refer); 5455 refer = Fcar (refer);
5456 r = decode_any_window (refer); 5456 r = decode_any_window (refer);
diff --git a/src/xdisp.c b/src/xdisp.c
index 06d5481acd3..9208e13e7de 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -14219,7 +14219,7 @@ prepare_menu_bars (void)
14219 14219
14220 W, if set, denotes the window that should be considered as selected. 14220 W, if set, denotes the window that should be considered as selected.
14221 For a tty child frame using F as surrogate menu bar frame, this 14221 For a tty child frame using F as surrogate menu bar frame, this
14222 specifes the child frame's selected window and its buffer shall be 14222 specifies the child frame's selected window and its buffer shall be
14223 used for updating the menu bar of the root frame instead of the 14223 used for updating the menu bar of the root frame instead of the
14224 buffer of the root frame's selected window. */ 14224 buffer of the root frame's selected window. */
14225 14225
@@ -24770,7 +24770,7 @@ push_prefix_prop (struct it *it, Lisp_Object prop, int from_buffer)
24770{ 24770{
24771 struct text_pos pos = 24771 struct text_pos pos =
24772 STRINGP (it->string) ? it->current.string_pos : it->current.pos; 24772 STRINGP (it->string) ? it->current.string_pos : it->current.pos;
24773 bool phoney_display_string = 24773 bool phony_display_string =
24774 from_buffer && STRINGP (it->string) && it->string_from_display_prop_p; 24774 from_buffer && STRINGP (it->string) && it->string_from_display_prop_p;
24775 24775
24776 eassert (it->method == GET_FROM_BUFFER 24776 eassert (it->method == GET_FROM_BUFFER
@@ -24794,7 +24794,7 @@ push_prefix_prop (struct it *it, Lisp_Object prop, int from_buffer)
24794 string that follows iterator position). If we don't do that, any 24794 string that follows iterator position). If we don't do that, any
24795 display properties on the prefix string will be ignored. The call 24795 display properties on the prefix string will be ignored. The call
24796 to pop_it when we are done with the prefix will restore the flag. */ 24796 to pop_it when we are done with the prefix will restore the flag. */
24797 if (phoney_display_string) 24797 if (phony_display_string)
24798 it->string_from_display_prop_p = false; 24798 it->string_from_display_prop_p = false;
24799 24799
24800 if (STRINGP (prop)) 24800 if (STRINGP (prop))