diff options
| author | Eli Zaretskii | 2001-06-15 11:31:11 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-06-15 11:31:11 +0000 |
| commit | 0ae833485ba366bd68782f9f17e2c62e18a53455 (patch) | |
| tree | fe8dbedde96d900aad3e698813d11c749c7a60c3 /src | |
| parent | 17a37d874c348fe64da02f639c8efaaa721e99d4 (diff) | |
| download | emacs-0ae833485ba366bd68782f9f17e2c62e18a53455.tar.gz emacs-0ae833485ba366bd68782f9f17e2c62e18a53455.zip | |
(Fmessage_box): If the frame is not under a window
system, output the message in the echo area.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/editfns.c | 14 |
2 files changed, 12 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 7ebea9bff45..7575dca29d3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2001-06-15 Eli Zaretskii <eliz@is.elta.co.il> | ||
| 2 | |||
| 3 | * editfns.c (Fmessage_box): If the frame is not under a window | ||
| 4 | system, output the message in the echo area. | ||
| 5 | |||
| 1 | 2001-06-14 Richard M. Stallman <rms@gnu.org> | 6 | 2001-06-14 Richard M. Stallman <rms@gnu.org> |
| 2 | 7 | ||
| 3 | * xdisp.c (try_window_id): When EOB is visible, don't treat | 8 | * xdisp.c (try_window_id): When EOB is visible, don't treat |
diff --git a/src/editfns.c b/src/editfns.c index 37f0162458d..7efa75383ce 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -38,6 +38,7 @@ Boston, MA 02111-1307, USA. */ | |||
| 38 | #include "buffer.h" | 38 | #include "buffer.h" |
| 39 | #include "charset.h" | 39 | #include "charset.h" |
| 40 | #include "coding.h" | 40 | #include "coding.h" |
| 41 | #include "frame.h" | ||
| 41 | #include "window.h" | 42 | #include "window.h" |
| 42 | 43 | ||
| 43 | #include "systime.h" | 44 | #include "systime.h" |
| @@ -2915,16 +2916,12 @@ use `save-excursion' outermost:\n\ | |||
| 2915 | return unbind_to (count, val); | 2916 | return unbind_to (count, val); |
| 2916 | } | 2917 | } |
| 2917 | 2918 | ||
| 2918 | #ifndef HAVE_MENUS | 2919 | /* Buffer for the most recent text displayed by Fmessage_box. */ |
| 2919 | |||
| 2920 | /* Buffer for the most recent text displayed by Fmessage. */ | ||
| 2921 | static char *message_text; | 2920 | static char *message_text; |
| 2922 | 2921 | ||
| 2923 | /* Allocated length of that buffer. */ | 2922 | /* Allocated length of that buffer. */ |
| 2924 | static int message_length; | 2923 | static int message_length; |
| 2925 | 2924 | ||
| 2926 | #endif /* not HAVE_MENUS */ | ||
| 2927 | |||
| 2928 | DEFUN ("message", Fmessage, Smessage, 1, MANY, 0, | 2925 | DEFUN ("message", Fmessage, Smessage, 1, MANY, 0, |
| 2929 | "Print a one-line message at the bottom of the screen.\n\ | 2926 | "Print a one-line message at the bottom of the screen.\n\ |
| 2930 | The first argument is a format control string, and the rest are data\n\ | 2927 | The first argument is a format control string, and the rest are data\n\ |
| @@ -2972,6 +2969,10 @@ minibuffer contents show.") | |||
| 2972 | register Lisp_Object val; | 2969 | register Lisp_Object val; |
| 2973 | val = Fformat (nargs, args); | 2970 | val = Fformat (nargs, args); |
| 2974 | #ifdef HAVE_MENUS | 2971 | #ifdef HAVE_MENUS |
| 2972 | /* The MS-DOS frames support popup menus even though they are | ||
| 2973 | not FRAME_WINDOW_P. */ | ||
| 2974 | if (FRAME_WINDOW_P (XFRAME (selected_frame)) | ||
| 2975 | || FRAME_MSDOS_P (XFRAME (selected_frame))) | ||
| 2975 | { | 2976 | { |
| 2976 | Lisp_Object pane, menu, obj; | 2977 | Lisp_Object pane, menu, obj; |
| 2977 | struct gcpro gcpro1; | 2978 | struct gcpro gcpro1; |
| @@ -2982,7 +2983,7 @@ minibuffer contents show.") | |||
| 2982 | UNGCPRO; | 2983 | UNGCPRO; |
| 2983 | return val; | 2984 | return val; |
| 2984 | } | 2985 | } |
| 2985 | #else /* not HAVE_MENUS */ | 2986 | #endif /* HAVE_MENUS */ |
| 2986 | /* Copy the data so that it won't move when we GC. */ | 2987 | /* Copy the data so that it won't move when we GC. */ |
| 2987 | if (! message_text) | 2988 | if (! message_text) |
| 2988 | { | 2989 | { |
| @@ -2998,7 +2999,6 @@ minibuffer contents show.") | |||
| 2998 | message2 (message_text, STRING_BYTES (XSTRING (val)), | 2999 | message2 (message_text, STRING_BYTES (XSTRING (val)), |
| 2999 | STRING_MULTIBYTE (val)); | 3000 | STRING_MULTIBYTE (val)); |
| 3000 | return val; | 3001 | return val; |
| 3001 | #endif /* not HAVE_MENUS */ | ||
| 3002 | } | 3002 | } |
| 3003 | } | 3003 | } |
| 3004 | #ifdef HAVE_MENUS | 3004 | #ifdef HAVE_MENUS |