Mercurial > emacs
comparison src/xselect.c @ 74145:8eceefbbcde7
Space/tab mixup.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Fri, 24 Nov 2006 10:31:26 +0000 |
parents | 05ce1bcd673e |
children | 3d45362f1d38 c71725faff1a f1d13e615070 |
comparison
equal
deleted
inserted
replaced
74144:b302d34b7eae | 74145:8eceefbbcde7 |
---|---|
833 | 833 |
834 if (had_errors) | 834 if (had_errors) |
835 break; | 835 break; |
836 | 836 |
837 /* Now wait for the requester to ack this chunk by deleting the | 837 /* Now wait for the requester to ack this chunk by deleting the |
838 property. This can run random lisp code or signal. */ | 838 property. This can run random lisp code or signal. */ |
839 TRACE1 ("Waiting for increment ACK (deletion of %s)", | 839 TRACE1 ("Waiting for increment ACK (deletion of %s)", |
840 XGetAtomName (display, reply.property)); | 840 XGetAtomName (display, reply.property)); |
841 wait_for_property_change (wait_object); | 841 wait_for_property_change (wait_object); |
842 } | 842 } |
843 | 843 |
2708 UNBLOCK_INPUT; | 2708 UNBLOCK_INPUT; |
2709 } | 2709 } |
2710 else | 2710 else |
2711 error ("ATOM must be a symbol or a string"); | 2711 error ("ATOM must be a symbol or a string"); |
2712 | 2712 |
2713 for (i = 0; i < dpyinfo->x_dnd_atoms_length; ++i) | 2713 for (i = 0; i < dpyinfo->x_dnd_atoms_length; ++i) |
2714 if (dpyinfo->x_dnd_atoms[i] == x_atom) | 2714 if (dpyinfo->x_dnd_atoms[i] == x_atom) |
2715 return Qnil; | 2715 return Qnil; |
2716 | 2716 |
2717 if (dpyinfo->x_dnd_atoms_length == dpyinfo->x_dnd_atoms_size) | 2717 if (dpyinfo->x_dnd_atoms_length == dpyinfo->x_dnd_atoms_size) |
2718 { | 2718 { |
2719 dpyinfo->x_dnd_atoms_size *= 2; | 2719 dpyinfo->x_dnd_atoms_size *= 2; |
2720 dpyinfo->x_dnd_atoms = xrealloc (dpyinfo->x_dnd_atoms, | 2720 dpyinfo->x_dnd_atoms = xrealloc (dpyinfo->x_dnd_atoms, |
2721 sizeof (*dpyinfo->x_dnd_atoms) | 2721 sizeof (*dpyinfo->x_dnd_atoms) |
2722 * dpyinfo->x_dnd_atoms_size); | 2722 * dpyinfo->x_dnd_atoms_size); |
2742 int x, y; | 2742 int x, y; |
2743 unsigned char *data = (unsigned char *) event->data.b; | 2743 unsigned char *data = (unsigned char *) event->data.b; |
2744 int idata[5]; | 2744 int idata[5]; |
2745 size_t i; | 2745 size_t i; |
2746 | 2746 |
2747 for (i = 0; i < dpyinfo->x_dnd_atoms_length; ++i) | 2747 for (i = 0; i < dpyinfo->x_dnd_atoms_length; ++i) |
2748 if (dpyinfo->x_dnd_atoms[i] == event->message_type) break; | 2748 if (dpyinfo->x_dnd_atoms[i] == event->message_type) break; |
2749 | 2749 |
2750 if (i == dpyinfo->x_dnd_atoms_length) return 0; | 2750 if (i == dpyinfo->x_dnd_atoms_length) return 0; |
2751 | 2751 |
2752 XSETFRAME (frame, f); | 2752 XSETFRAME (frame, f); |