From fa056b08ee30e3716413c7baf80df0b42cec95c3 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Mon, 12 Sep 2005 10:26:15 +0000 Subject: [PATCH] (Ftranslate_region_internal): Reload `tt' after signal_after_change that may have GC'ed. (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix. --- src/editfns.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/editfns.c b/src/editfns.c index a05d2396448..e67e56d2efa 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -2857,6 +2857,8 @@ It returns the number of characters changed. */) { if (tt) { + /* Reload as signal_after_change in last iteration may GC. */ + tt = SDATA (table); if (string_multibyte) { str = tt + string_char_to_byte (table, oc); @@ -3118,8 +3120,9 @@ The message also goes into the `*Messages*' buffer. The first argument is a format control string, and the rest are data to be formatted under control of the string. See `format' for details. -If the first argument is nil, the function clears any existing message; -this lets the minibuffer contents show. See also `current-message'. +If the first argument is nil or the empty string, the function clears +any existing message; this lets the minibuffer contents show. See +also `current-message'. usage: (message STRING &rest ARGS) */) (nargs, args) @@ -3148,8 +3151,8 @@ If a dialog box is not available, use the echo area. The first argument is a format control string, and the rest are data to be formatted under control of the string. See `format' for details. -If the first argument is nil, clear any existing message; let the -minibuffer contents show. +If the first argument is nil or the empty string, clear any existing +message; let the minibuffer contents show. usage: (message-box STRING &rest ARGS) */) (nargs, args) @@ -3210,8 +3213,8 @@ Otherwise, use the echo area. The first argument is a format control string, and the rest are data to be formatted under control of the string. See `format' for details. -If the first argument is nil, clear any existing message; let the -minibuffer contents show. +If the first argument is nil or the empty string, clear any existing +message; let the minibuffer contents show. usage: (message-or-box STRING &rest ARGS) */) (nargs, args) -- 2.39.2