From 2d7117fe05f034bf2ab796b639041504c4216ac5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Mon, 18 Feb 2008 08:08:32 +0000 Subject: [PATCH] (Fx_show_tip): Set string to " " if empty. --- src/ChangeLog | 4 ++++ src/xfns.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 25dd28a3ea5..8f89ffede5f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-02-18 Jan Dj$(Q)Z(Brv + + * xfns.c (Fx_show_tip): Set string to " " if empty. + 2008-02-17 Dan Nicolaescu * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive diff --git a/src/xfns.c b/src/xfns.c index 0261f1b7f71..9c2afbf6736 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -5317,6 +5317,9 @@ Text larger than the specified size is clipped. */) GCPRO4 (string, parms, frame, timeout); CHECK_STRING (string); + if (SCHARS (string) == 0) + string = make_unibyte_string (" ", 1); + f = check_x_frame (frame); if (NILP (timeout)) timeout = make_number (5); -- 2.39.2