changeset 65455:51d3a3f03a8a

(Ftranslate_region_internal): Reload `tt' after signal_after_change that may have GC'ed. (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
author Kim F. Storm <storm@cua.dk>
date Mon, 12 Sep 2005 10:26:15 +0000
parents 619498265e53
children d9638b932900
files src/editfns.c
diffstat 1 files changed, 9 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/editfns.c	Mon Sep 12 10:22:53 2005 +0000
+++ b/src/editfns.c	Mon Sep 12 10:26:15 2005 +0000
@@ -2857,6 +2857,8 @@
 	{
 	  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 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 @@
 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 @@
 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)