diff options
| author | Richard M. Stallman | 1998-04-18 22:14:32 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-04-18 22:14:32 +0000 |
| commit | 22e00739084d74140df2ee5eb97c4bdf51e9e08a (patch) | |
| tree | 0ba048d0687828b996f525b0a42c81e60791a0f3 /src | |
| parent | daa02ea5db4c8e5518fec72473b643910077de1e (diff) | |
| download | emacs-22e00739084d74140df2ee5eb97c4bdf51e9e08a.tar.gz emacs-22e00739084d74140df2ee5eb97c4bdf51e9e08a.zip | |
(Fx_get_cut_buffer_internal): If FORMAT is 0, cut buffer is empty.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xselect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xselect.c b/src/xselect.c index bf4fcb6d992..15a4c283b8b 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -2094,7 +2094,8 @@ DEFUN ("x-get-cut-buffer-internal", Fx_get_cut_buffer_internal, | |||
| 2094 | 2094 | ||
| 2095 | x_get_window_property (display, window, buffer_atom, &data, &bytes, | 2095 | x_get_window_property (display, window, buffer_atom, &data, &bytes, |
| 2096 | &type, &format, &size, 0); | 2096 | &type, &format, &size, 0); |
| 2097 | if (!data) return Qnil; | 2097 | if (!data || !format) |
| 2098 | return Qnil; | ||
| 2098 | 2099 | ||
| 2099 | if (format != 8 || type != XA_STRING) | 2100 | if (format != 8 || type != XA_STRING) |
| 2100 | Fsignal (Qerror, | 2101 | Fsignal (Qerror, |