aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Albinus2024-07-16 10:11:45 +0200
committerMichael Albinus2024-07-16 10:11:45 +0200
commitfd8bdedde9655f04c03eb04af09f73ee77600f53 (patch)
treefb969d4f31ea1fbc598c718ef52617c747ad330d /src
parent7d8ff5a56c52ed8917d9f45f2b113cfd3de7d497 (diff)
parent970409916e0dff9cd4d542f16f7d570149bdeeb1 (diff)
downloademacs-fd8bdedde9655f04c03eb04af09f73ee77600f53.tar.gz
emacs-fd8bdedde9655f04c03eb04af09f73ee77600f53.zip
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'src')
-rw-r--r--src/cygw32.c4
-rw-r--r--src/fns.c2
-rw-r--r--src/keyboard.c2
-rw-r--r--src/keymap.c2
-rw-r--r--src/pgtkfns.c32
-rw-r--r--src/pgtkterm.c2
-rw-r--r--src/process.c4
-rw-r--r--src/w32.c2
-rw-r--r--src/w32fns.c2
-rw-r--r--src/window.c2
-rw-r--r--src/xfns.c12
11 files changed, 33 insertions, 33 deletions
diff --git a/src/cygw32.c b/src/cygw32.c
index 7658e9a24a0..8415e0eab8e 100644
--- a/src/cygw32.c
+++ b/src/cygw32.c
@@ -37,7 +37,7 @@ chdir_to_default_directory (void)
37 int old_cwd_fd = emacs_open (".", O_RDONLY | O_DIRECTORY, 0); 37 int old_cwd_fd = emacs_open (".", O_RDONLY | O_DIRECTORY, 0);
38 38
39 if (old_cwd_fd == -1) 39 if (old_cwd_fd == -1)
40 error ("could not open current directory: %s", strerror (errno)); 40 error ("Could not open current directory: %s", strerror (errno));
41 41
42 record_unwind_protect_int (fchdir_unwind, old_cwd_fd); 42 record_unwind_protect_int (fchdir_unwind, old_cwd_fd);
43 43
@@ -47,7 +47,7 @@ chdir_to_default_directory (void)
47 new_cwd = build_string ("/"); 47 new_cwd = build_string ("/");
48 48
49 if (chdir (SSDATA (ENCODE_FILE (new_cwd)))) 49 if (chdir (SSDATA (ENCODE_FILE (new_cwd))))
50 error ("could not chdir: %s", strerror (errno)); 50 error ("Could not chdir: %s", strerror (errno));
51} 51}
52 52
53static Lisp_Object 53static Lisp_Object
diff --git a/src/fns.c b/src/fns.c
index 6ccdfbcd070..f623ff96c25 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -6320,7 +6320,7 @@ secure_hash (Lisp_Object algorithm, Lisp_Object object, Lisp_Object start,
6320 const char *input = extract_data_from_object (spec, &start_byte, &end_byte); 6320 const char *input = extract_data_from_object (spec, &start_byte, &end_byte);
6321 6321
6322 if (input == NULL) 6322 if (input == NULL)
6323 error ("secure_hash: failed to extract data from object, aborting!"); 6323 error ("secure_hash: Failed to extract data from object, aborting!");
6324 6324
6325 if (EQ (algorithm, Qmd5)) 6325 if (EQ (algorithm, Qmd5))
6326 { 6326 {
diff --git a/src/keyboard.c b/src/keyboard.c
index 40276b4157c..6c33d08c265 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -7714,7 +7714,7 @@ This function potentially generates an artificial switch-frame event. */)
7714 if (!EQ (CAR_SAFE (event), Qfocus_in) || 7714 if (!EQ (CAR_SAFE (event), Qfocus_in) ||
7715 !CONSP (XCDR (event)) || 7715 !CONSP (XCDR (event)) ||
7716 !FRAMEP ((frame = XCAR (XCDR (event))))) 7716 !FRAMEP ((frame = XCAR (XCDR (event)))))
7717 error ("invalid focus-in event"); 7717 error ("Invalid focus-in event");
7718 7718
7719 /* Conceptually, the concept of window manager focus on a particular 7719 /* Conceptually, the concept of window manager focus on a particular
7720 frame and the Emacs selected frame shouldn't be related, but for 7720 frame and the Emacs selected frame shouldn't be related, but for
diff --git a/src/keymap.c b/src/keymap.c
index 0f50d804dff..f2a7e4006c3 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -749,7 +749,7 @@ store_in_keymap (Lisp_Object keymap, register Lisp_Object idx,
749 def = Fcons (XCAR (def), XCDR (def)); 749 def = Fcons (XCAR (def), XCDR (def));
750 750
751 if (!CONSP (keymap) || !EQ (XCAR (keymap), Qkeymap)) 751 if (!CONSP (keymap) || !EQ (XCAR (keymap), Qkeymap))
752 error ("attempt to define a key in a non-keymap"); 752 error ("Attempt to define a key in a non-keymap");
753 753
754 /* If idx is a cons, and the car part is a character, idx must be of 754 /* If idx is a cons, and the car part is a character, idx must be of
755 the form (FROM-CHAR . TO-CHAR). */ 755 the form (FROM-CHAR . TO-CHAR). */
diff --git a/src/pgtkfns.c b/src/pgtkfns.c
index 49467988cae..b8e65f4c052 100644
--- a/src/pgtkfns.c
+++ b/src/pgtkfns.c
@@ -71,7 +71,7 @@ pgtk_get_monitor_scale_factor (const char *model)
71 else if (FLOATP (cdr)) 71 else if (FLOATP (cdr))
72 return XFLOAT_DATA (cdr); 72 return XFLOAT_DATA (cdr);
73 else 73 else
74 error ("unknown type of scale-factor"); 74 error ("Unknown type of scale-factor");
75} 75}
76 76
77struct pgtk_display_info * 77struct pgtk_display_info *
@@ -826,7 +826,7 @@ pgtk_set_scroll_bar_foreground (struct frame *f, Lisp_Object new_value,
826 Emacs_Color rgb; 826 Emacs_Color rgb;
827 827
828 if (!pgtk_parse_color (f, SSDATA (new_value), &rgb)) 828 if (!pgtk_parse_color (f, SSDATA (new_value), &rgb))
829 error ("Unknown color."); 829 error ("Unknown color");
830 830
831 char css[64]; 831 char css[64];
832 sprintf (css, "scrollbar slider { background-color: #%06x; }", 832 sprintf (css, "scrollbar slider { background-color: #%06x; }",
@@ -836,7 +836,7 @@ pgtk_set_scroll_bar_foreground (struct frame *f, Lisp_Object new_value,
836 836
837 } 837 }
838 else 838 else
839 error ("Invalid scroll-bar-foreground."); 839 error ("Invalid scroll-bar-foreground");
840} 840}
841 841
842static void 842static void
@@ -856,7 +856,7 @@ pgtk_set_scroll_bar_background (struct frame *f, Lisp_Object new_value,
856 Emacs_Color rgb; 856 Emacs_Color rgb;
857 857
858 if (!pgtk_parse_color (f, SSDATA (new_value), &rgb)) 858 if (!pgtk_parse_color (f, SSDATA (new_value), &rgb))
859 error ("Unknown color."); 859 error ("Unknown color");
860 860
861 /* On pgtk, this frame parameter should be ignored, and honor 861 /* On pgtk, this frame parameter should be ignored, and honor
862 gtk theme. (It honors the GTK theme if not explicitly set, so 862 gtk theme. (It honors the GTK theme if not explicitly set, so
@@ -869,7 +869,7 @@ pgtk_set_scroll_bar_background (struct frame *f, Lisp_Object new_value,
869 869
870 } 870 }
871 else 871 else
872 error ("Invalid scroll-bar-background."); 872 error ("Invalid scroll-bar-background");
873} 873}
874 874
875 875
@@ -904,7 +904,7 @@ unless TYPE is `png'. */)
904 904
905 XSETFRAME (frame, f); 905 XSETFRAME (frame, f);
906 if (!FRAME_VISIBLE_P (f)) 906 if (!FRAME_VISIBLE_P (f))
907 error ("Frames to be exported must be visible."); 907 error ("Frames to be exported must be visible");
908 tmp = Fcons (frame, tmp); 908 tmp = Fcons (frame, tmp);
909 } 909 }
910 frames = Fnreverse (tmp); 910 frames = Fnreverse (tmp);
@@ -918,7 +918,7 @@ unless TYPE is `png'. */)
918 if (EQ (type, Qpng)) 918 if (EQ (type, Qpng))
919 { 919 {
920 if (!NILP (XCDR (frames))) 920 if (!NILP (XCDR (frames)))
921 error ("PNG export cannot handle multiple frames."); 921 error ("PNG export cannot handle multiple frames");
922 surface_type = CAIRO_SURFACE_TYPE_IMAGE; 922 surface_type = CAIRO_SURFACE_TYPE_IMAGE;
923 } 923 }
924 else 924 else
@@ -933,7 +933,7 @@ unless TYPE is `png'. */)
933 { 933 {
934 /* For now, we stick to SVG 1.1. */ 934 /* For now, we stick to SVG 1.1. */
935 if (!NILP (XCDR (frames))) 935 if (!NILP (XCDR (frames)))
936 error ("SVG export cannot handle multiple frames."); 936 error ("SVG export cannot handle multiple frames");
937 surface_type = CAIRO_SURFACE_TYPE_SVG; 937 surface_type = CAIRO_SURFACE_TYPE_SVG;
938 } 938 }
939 else 939 else
@@ -1153,15 +1153,15 @@ scale factor. */)
1153 if (FIXNUMP (scale_factor)) 1153 if (FIXNUMP (scale_factor))
1154 { 1154 {
1155 if (XFIXNUM (scale_factor) <= 0) 1155 if (XFIXNUM (scale_factor) <= 0)
1156 error ("scale factor must be > 0."); 1156 error ("Scale factor must be > 0");
1157 } 1157 }
1158 else if (FLOATP (scale_factor)) 1158 else if (FLOATP (scale_factor))
1159 { 1159 {
1160 if (XFLOAT_DATA (scale_factor) <= 0.0) 1160 if (XFLOAT_DATA (scale_factor) <= 0.0)
1161 error ("scale factor must be > 0."); 1161 error ("Scale factor must be > 0");
1162 } 1162 }
1163 else 1163 else
1164 error ("unknown type of scale-factor"); 1164 error ("Unknown type of scale-factor");
1165 } 1165 }
1166 1166
1167 Lisp_Object tem = Fassoc (monitor_model, monitor_scale_factor_alist, Qnil); 1167 Lisp_Object tem = Fassoc (monitor_model, monitor_scale_factor_alist, Qnil);
@@ -1907,7 +1907,7 @@ pgtk_get_defaults_value (const char *key)
1907 char skey[(RESOURCE_KEY_MAX_LEN + 1) * 2]; 1907 char skey[(RESOURCE_KEY_MAX_LEN + 1) * 2];
1908 1908
1909 if (strlen (key) >= RESOURCE_KEY_MAX_LEN) 1909 if (strlen (key) >= RESOURCE_KEY_MAX_LEN)
1910 error ("resource key too long."); 1910 error ("Resource key too long");
1911 1911
1912 GSettings *gs = parse_resource_key (key, skey); 1912 GSettings *gs = parse_resource_key (key, skey);
1913 if (gs == NULL) 1913 if (gs == NULL)
@@ -1937,11 +1937,11 @@ pgtk_set_defaults_value (const char *key, const char *value)
1937 char skey[(RESOURCE_KEY_MAX_LEN + 1) * 2]; 1937 char skey[(RESOURCE_KEY_MAX_LEN + 1) * 2];
1938 1938
1939 if (strlen (key) >= RESOURCE_KEY_MAX_LEN) 1939 if (strlen (key) >= RESOURCE_KEY_MAX_LEN)
1940 error ("resource key too long."); 1940 error ("Resource key too long");
1941 1941
1942 GSettings *gs = parse_resource_key (key, skey); 1942 GSettings *gs = parse_resource_key (key, skey);
1943 if (gs == NULL) 1943 if (gs == NULL)
1944 error ("unknown resource key."); 1944 error ("Unknown resource key");
1945 1945
1946 if (value != NULL) 1946 if (value != NULL)
1947 { 1947 {
@@ -1971,7 +1971,7 @@ pgtk_get_defaults_value (const char *key)
1971static void 1971static void
1972pgtk_set_defaults_value (const char *key, const char *value) 1972pgtk_set_defaults_value (const char *key, const char *value)
1973{ 1973{
1974 error ("gsettings not supported."); 1974 error ("gsettings not supported");
1975} 1975}
1976 1976
1977#endif 1977#endif
@@ -3659,7 +3659,7 @@ visible. */)
3659 3659
3660 XSETFRAME (frame, f); 3660 XSETFRAME (frame, f);
3661 if (!FRAME_VISIBLE_P (f)) 3661 if (!FRAME_VISIBLE_P (f))
3662 error ("Frames to be printed must be visible."); 3662 error ("Frames to be printed must be visible");
3663 tmp = Fcons (frame, tmp); 3663 tmp = Fcons (frame, tmp);
3664 } 3664 }
3665 frames = Fnreverse (tmp); 3665 frames = Fnreverse (tmp);
diff --git a/src/pgtkterm.c b/src/pgtkterm.c
index 839bfdce988..079945126e0 100644
--- a/src/pgtkterm.c
+++ b/src/pgtkterm.c
@@ -928,7 +928,7 @@ pgtk_set_parent_frame (struct frame *f, Lisp_Object new_value,
928 if (p != NULL) 928 if (p != NULL)
929 { 929 {
930 if (FRAME_DISPLAY_INFO (f) != FRAME_DISPLAY_INFO (p)) 930 if (FRAME_DISPLAY_INFO (f) != FRAME_DISPLAY_INFO (p))
931 error ("Cross display reparent."); 931 error ("Cross display reparent");
932 } 932 }
933 933
934 GtkWidget *fixed = FRAME_GTK_WIDGET (f); 934 GtkWidget *fixed = FRAME_GTK_WIDGET (f);
diff --git a/src/process.c b/src/process.c
index 0167ceff7e0..93178eb241f 100644
--- a/src/process.c
+++ b/src/process.c
@@ -4471,7 +4471,7 @@ network_interface_info (Lisp_Object ifname)
4471 CHECK_STRING (ifname); 4471 CHECK_STRING (ifname);
4472 4472
4473 if (sizeof rq.ifr_name <= SBYTES (ifname)) 4473 if (sizeof rq.ifr_name <= SBYTES (ifname))
4474 error ("interface name too long"); 4474 error ("Interface name too long");
4475 lispstpcpy (rq.ifr_name, ifname); 4475 lispstpcpy (rq.ifr_name, ifname);
4476 4476
4477 s = socket (AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0); 4477 s = socket (AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0);
@@ -6853,7 +6853,7 @@ send_process (Lisp_Object proc, const char *buf, ptrdiff_t len,
6853 pset_status (p, list2 (Qexit, make_fixnum (256))); 6853 pset_status (p, list2 (Qexit, make_fixnum (256)));
6854 p->tick = ++process_tick; 6854 p->tick = ++process_tick;
6855 deactivate_process (proc); 6855 deactivate_process (proc);
6856 error ("process %s no longer connected to pipe; closed it", 6856 error ("Process %s no longer connected to pipe; closed it",
6857 SDATA (p->name)); 6857 SDATA (p->name));
6858 } 6858 }
6859 else 6859 else
diff --git a/src/w32.c b/src/w32.c
index 6dcbbbcc61b..31ffa301c2f 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -10221,7 +10221,7 @@ w32_read_registry (HKEY rootkey, Lisp_Object lkey, Lisp_Object lname)
10221 retval = Fnreverse (val); 10221 retval = Fnreverse (val);
10222 break; 10222 break;
10223 default: 10223 default:
10224 error ("unsupported registry data type: %d", (int)vtype); 10224 error ("Unsupported registry data type: %d", (int)vtype);
10225 } 10225 }
10226 10226
10227 xfree (pvalue); 10227 xfree (pvalue);
diff --git a/src/w32fns.c b/src/w32fns.c
index e5798fdd84f..cd89745e9fa 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -10583,7 +10583,7 @@ to be converted to forward slashes by the caller. */)
10583 else if (EQ (root, QHKCC)) 10583 else if (EQ (root, QHKCC))
10584 rootkey = HKEY_CURRENT_CONFIG; 10584 rootkey = HKEY_CURRENT_CONFIG;
10585 else if (!NILP (root)) 10585 else if (!NILP (root))
10586 error ("unknown root key: %s", SDATA (SYMBOL_NAME (root))); 10586 error ("Unknown root key: %s", SDATA (SYMBOL_NAME (root)));
10587 10587
10588 Lisp_Object val = w32_read_registry (rootkey, key, name); 10588 Lisp_Object val = w32_read_registry (rootkey, key, name);
10589 if (NILP (val) && NILP (root)) 10589 if (NILP (val) && NILP (root))
diff --git a/src/window.c b/src/window.c
index ff28bac5306..4bb36b6733a 100644
--- a/src/window.c
+++ b/src/window.c
@@ -6711,7 +6711,7 @@ and redisplay normally--don't erase and redraw the frame. */)
6711 https://lists.gnu.org/r/emacs-devel/2014-06/msg00053.html, 6711 https://lists.gnu.org/r/emacs-devel/2014-06/msg00053.html,
6712 https://lists.gnu.org/r/emacs-devel/2014-06/msg00094.html. */ 6712 https://lists.gnu.org/r/emacs-devel/2014-06/msg00094.html. */
6713 if (buf != current_buffer) 6713 if (buf != current_buffer)
6714 error ("`recenter'ing a window that does not display current-buffer."); 6714 error ("`recenter'ing a window that does not display current-buffer");
6715 6715
6716 /* If redisplay is suppressed due to an error, try again. */ 6716 /* If redisplay is suppressed due to an error, try again. */
6717 buf->display_error_modiff = 0; 6717 buf->display_error_modiff = 0;
diff --git a/src/xfns.c b/src/xfns.c
index 9bc2f794849..917b82ff8da 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -1406,9 +1406,9 @@ x_set_mouse_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
1406 if (cursor_data.error_cursor >= 0) 1406 if (cursor_data.error_cursor >= 0)
1407 bad_cursor_name = mouse_cursor_types[cursor_data.error_cursor].name; 1407 bad_cursor_name = mouse_cursor_types[cursor_data.error_cursor].name;
1408 if (bad_cursor_name) 1408 if (bad_cursor_name)
1409 error ("bad %s pointer cursor: %s", bad_cursor_name, xmessage); 1409 error ("Bad %s pointer cursor: %s", bad_cursor_name, xmessage);
1410 else 1410 else
1411 error ("can't set cursor shape: %s", xmessage); 1411 error ("Can't set cursor shape: %s", xmessage);
1412 } 1412 }
1413 1413
1414 x_uncatch_errors_after_check (); 1414 x_uncatch_errors_after_check ();
@@ -9854,7 +9854,7 @@ unless TYPE is `png'. */)
9854 9854
9855 XSETFRAME (frame, f); 9855 XSETFRAME (frame, f);
9856 if (!FRAME_VISIBLE_P (f)) 9856 if (!FRAME_VISIBLE_P (f))
9857 error ("Frames to be exported must be visible."); 9857 error ("Frames to be exported must be visible");
9858 tmp = Fcons (frame, tmp); 9858 tmp = Fcons (frame, tmp);
9859 } 9859 }
9860 frames = Fnreverse (tmp); 9860 frames = Fnreverse (tmp);
@@ -9868,7 +9868,7 @@ unless TYPE is `png'. */)
9868 if (EQ (type, Qpng)) 9868 if (EQ (type, Qpng))
9869 { 9869 {
9870 if (!NILP (XCDR (frames))) 9870 if (!NILP (XCDR (frames)))
9871 error ("PNG export cannot handle multiple frames."); 9871 error ("PNG export cannot handle multiple frames");
9872 surface_type = CAIRO_SURFACE_TYPE_IMAGE; 9872 surface_type = CAIRO_SURFACE_TYPE_IMAGE;
9873 } 9873 }
9874 else 9874 else
@@ -9883,7 +9883,7 @@ unless TYPE is `png'. */)
9883 { 9883 {
9884 /* For now, we stick to SVG 1.1. */ 9884 /* For now, we stick to SVG 1.1. */
9885 if (!NILP (XCDR (frames))) 9885 if (!NILP (XCDR (frames)))
9886 error ("SVG export cannot handle multiple frames."); 9886 error ("SVG export cannot handle multiple frames");
9887 surface_type = CAIRO_SURFACE_TYPE_SVG; 9887 surface_type = CAIRO_SURFACE_TYPE_SVG;
9888 } 9888 }
9889 else 9889 else
@@ -9957,7 +9957,7 @@ Note: Text drawn with the `x' font backend is shown with hollow boxes. */)
9957 9957
9958 XSETFRAME (frame, f); 9958 XSETFRAME (frame, f);
9959 if (!FRAME_VISIBLE_P (f)) 9959 if (!FRAME_VISIBLE_P (f))
9960 error ("Frames to be printed must be visible."); 9960 error ("Frames to be printed must be visible");
9961 tmp = Fcons (frame, tmp); 9961 tmp = Fcons (frame, tmp);
9962 } 9962 }
9963 frames = Fnreverse (tmp); 9963 frames = Fnreverse (tmp);