* src/cygw32.c (chdir_to_default_directory):
* src/fns.c (secure_hash):
* src/keyboard.c (Finternal_handle_focus_in):
* src/keymap.c (store_in_keymap):
* src/pgtkfns.c (pgtk_set_scroll_bar_foreground)
(pgtk_set_scroll_bar_background, Fx_export_frames)
(Fpgtk_set_monitor_scale_factor, pgtk_get_defaults_value)
(pgtk_set_defaults_value, Fpgtk_print_frames_dialog)
(pgtk_get_monitor_scale_factor):
* src/pgtkterm.c (pgtk_set_parent_frame):
* src/process.c (network_interface_info, send_process):
* src/w32.c (w32_read_registry):
* src/w32fns.c (Fw32_read_registry):
* src/window.c (Frecenter):
* src/xfns.c (Fx_export_frames, Fx_print_frames_dialog)
(x_set_mouse_color): Make 'error' message strings follow our guidelines.
More specifically, they should not end in a period, and normally also be
capitalized. See '(elisp) Programming Tips'.
(cherry picked from commit
970409916e0dff9cd4d542f16f7d570149bdeeb1)
int old_cwd_fd = emacs_open (".", O_RDONLY | O_DIRECTORY, 0);
if (old_cwd_fd == -1)
- error ("could not open current directory: %s", strerror (errno));
+ error ("Could not open current directory: %s", strerror (errno));
record_unwind_protect_int (fchdir_unwind, old_cwd_fd);
new_cwd = build_string ("/");
if (chdir (SSDATA (ENCODE_FILE (new_cwd))))
- error ("could not chdir: %s", strerror (errno));
+ error ("Could not chdir: %s", strerror (errno));
}
static Lisp_Object
const char *input = extract_data_from_object (spec, &start_byte, &end_byte);
if (input == NULL)
- error ("secure_hash: failed to extract data from object, aborting!");
+ error ("secure_hash: Failed to extract data from object, aborting!");
if (EQ (algorithm, Qmd5))
{
if (!EQ (CAR_SAFE (event), Qfocus_in) ||
!CONSP (XCDR (event)) ||
!FRAMEP ((frame = XCAR (XCDR (event)))))
- error ("invalid focus-in event");
+ error ("Invalid focus-in event");
/* Conceptually, the concept of window manager focus on a particular
frame and the Emacs selected frame shouldn't be related, but for
def = Fcons (XCAR (def), XCDR (def));
if (!CONSP (keymap) || !EQ (XCAR (keymap), Qkeymap))
- error ("attempt to define a key in a non-keymap");
+ error ("Attempt to define a key in a non-keymap");
/* If idx is a cons, and the car part is a character, idx must be of
the form (FROM-CHAR . TO-CHAR). */
else if (FLOATP (cdr))
return XFLOAT_DATA (cdr);
else
- error ("unknown type of scale-factor");
+ error ("Unknown type of scale-factor");
}
struct pgtk_display_info *
Emacs_Color rgb;
if (!pgtk_parse_color (f, SSDATA (new_value), &rgb))
- error ("Unknown color.");
+ error ("Unknown color");
char css[64];
sprintf (css, "scrollbar slider { background-color: #%06x; }",
}
else
- error ("Invalid scroll-bar-foreground.");
+ error ("Invalid scroll-bar-foreground");
}
static void
Emacs_Color rgb;
if (!pgtk_parse_color (f, SSDATA (new_value), &rgb))
- error ("Unknown color.");
+ error ("Unknown color");
/* On pgtk, this frame parameter should be ignored, and honor
gtk theme. (It honors the GTK theme if not explicitly set, so
}
else
- error ("Invalid scroll-bar-background.");
+ error ("Invalid scroll-bar-background");
}
\f
XSETFRAME (frame, f);
if (!FRAME_VISIBLE_P (f))
- error ("Frames to be exported must be visible.");
+ error ("Frames to be exported must be visible");
tmp = Fcons (frame, tmp);
}
frames = Fnreverse (tmp);
if (EQ (type, Qpng))
{
if (!NILP (XCDR (frames)))
- error ("PNG export cannot handle multiple frames.");
+ error ("PNG export cannot handle multiple frames");
surface_type = CAIRO_SURFACE_TYPE_IMAGE;
}
else
{
/* For now, we stick to SVG 1.1. */
if (!NILP (XCDR (frames)))
- error ("SVG export cannot handle multiple frames.");
+ error ("SVG export cannot handle multiple frames");
surface_type = CAIRO_SURFACE_TYPE_SVG;
}
else
if (FIXNUMP (scale_factor))
{
if (XFIXNUM (scale_factor) <= 0)
- error ("scale factor must be > 0.");
+ error ("Scale factor must be > 0");
}
else if (FLOATP (scale_factor))
{
if (XFLOAT_DATA (scale_factor) <= 0.0)
- error ("scale factor must be > 0.");
+ error ("Scale factor must be > 0");
}
else
- error ("unknown type of scale-factor");
+ error ("Unknown type of scale-factor");
}
Lisp_Object tem = Fassoc (monitor_model, monitor_scale_factor_alist, Qnil);
char skey[(RESOURCE_KEY_MAX_LEN + 1) * 2];
if (strlen (key) >= RESOURCE_KEY_MAX_LEN)
- error ("resource key too long.");
+ error ("Resource key too long");
GSettings *gs = parse_resource_key (key, skey);
if (gs == NULL)
char skey[(RESOURCE_KEY_MAX_LEN + 1) * 2];
if (strlen (key) >= RESOURCE_KEY_MAX_LEN)
- error ("resource key too long.");
+ error ("Resource key too long");
GSettings *gs = parse_resource_key (key, skey);
if (gs == NULL)
- error ("unknown resource key.");
+ error ("Unknown resource key");
if (value != NULL)
{
static void
pgtk_set_defaults_value (const char *key, const char *value)
{
- error ("gsettings not supported.");
+ error ("gsettings not supported");
}
#endif
XSETFRAME (frame, f);
if (!FRAME_VISIBLE_P (f))
- error ("Frames to be printed must be visible.");
+ error ("Frames to be printed must be visible");
tmp = Fcons (frame, tmp);
}
frames = Fnreverse (tmp);
if (p != NULL)
{
if (FRAME_DISPLAY_INFO (f) != FRAME_DISPLAY_INFO (p))
- error ("Cross display reparent.");
+ error ("Cross display reparent");
}
GtkWidget *fixed = FRAME_GTK_WIDGET (f);
CHECK_STRING (ifname);
if (sizeof rq.ifr_name <= SBYTES (ifname))
- error ("interface name too long");
+ error ("Interface name too long");
lispstpcpy (rq.ifr_name, ifname);
s = socket (AF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0);
pset_status (p, list2 (Qexit, make_fixnum (256)));
p->tick = ++process_tick;
deactivate_process (proc);
- error ("process %s no longer connected to pipe; closed it",
+ error ("Process %s no longer connected to pipe; closed it",
SDATA (p->name));
}
else
retval = Fnreverse (val);
break;
default:
- error ("unsupported registry data type: %d", (int)vtype);
+ error ("Unsupported registry data type: %d", (int)vtype);
}
xfree (pvalue);
else if (EQ (root, QHKCC))
rootkey = HKEY_CURRENT_CONFIG;
else if (!NILP (root))
- error ("unknown root key: %s", SDATA (SYMBOL_NAME (root)));
+ error ("Unknown root key: %s", SDATA (SYMBOL_NAME (root)));
Lisp_Object val = w32_read_registry (rootkey, key, name);
if (NILP (val) && NILP (root))
https://lists.gnu.org/r/emacs-devel/2014-06/msg00053.html,
https://lists.gnu.org/r/emacs-devel/2014-06/msg00094.html. */
if (buf != current_buffer)
- error ("`recenter'ing a window that does not display current-buffer.");
+ error ("`recenter'ing a window that does not display current-buffer");
/* If redisplay is suppressed due to an error, try again. */
buf->display_error_modiff = 0;
if (cursor_data.error_cursor >= 0)
bad_cursor_name = mouse_cursor_types[cursor_data.error_cursor].name;
if (bad_cursor_name)
- error ("bad %s pointer cursor: %s", bad_cursor_name, xmessage);
+ error ("Bad %s pointer cursor: %s", bad_cursor_name, xmessage);
else
- error ("can't set cursor shape: %s", xmessage);
+ error ("Can't set cursor shape: %s", xmessage);
}
x_uncatch_errors_after_check ();
XSETFRAME (frame, f);
if (!FRAME_VISIBLE_P (f))
- error ("Frames to be exported must be visible.");
+ error ("Frames to be exported must be visible");
tmp = Fcons (frame, tmp);
}
frames = Fnreverse (tmp);
if (EQ (type, Qpng))
{
if (!NILP (XCDR (frames)))
- error ("PNG export cannot handle multiple frames.");
+ error ("PNG export cannot handle multiple frames");
surface_type = CAIRO_SURFACE_TYPE_IMAGE;
}
else
{
/* For now, we stick to SVG 1.1. */
if (!NILP (XCDR (frames)))
- error ("SVG export cannot handle multiple frames.");
+ error ("SVG export cannot handle multiple frames");
surface_type = CAIRO_SURFACE_TYPE_SVG;
}
else
XSETFRAME (frame, f);
if (!FRAME_VISIBLE_P (f))
- error ("Frames to be printed must be visible.");
+ error ("Frames to be printed must be visible");
tmp = Fcons (frame, tmp);
}
frames = Fnreverse (tmp);