comparison src/xselect.c @ 12531:b36aa014cee4

(x_clear_frame_selections): Delete duplicate code.
author Karl Heuer <kwzh@gnu.org>
date Mon, 17 Jul 1995 22:14:00 +0000
parents 4f4034f45cbf
children e640f6afb190
comparison
equal deleted inserted replaced
12530:c2b2449231c2 12531:b36aa014cee4
815 815
816 XSETFRAME (frame, f); 816 XSETFRAME (frame, f);
817 817
818 /* Otherwise, we're really honest and truly being told to drop it. 818 /* Otherwise, we're really honest and truly being told to drop it.
819 Don't use Fdelq as that may QUIT;. */ 819 Don't use Fdelq as that may QUIT;. */
820
821 while (!NILP (Vselection_alist)
822 && EQ (frame, Fcar (Fcdr (Fcdr (Fcdr (Fcar (Vselection_alist)))))))
823 {
824 /* Let random Lisp code notice that the selection has been stolen. */
825 Lisp_Object hooks, selection_symbol;
826
827 hooks = Vx_lost_selection_hooks;
828 selection_symbol = Fcar (Vselection_alist);
829
830 if (!EQ (hooks, Qunbound))
831 {
832 for (; CONSP (hooks); hooks = Fcdr (hooks))
833 call1 (Fcar (hooks), selection_symbol);
834 redisplay_preserve_echo_area ();
835 }
836
837 Vselection_alist = Fcdr (Vselection_alist);
838 }
839 820
840 for (rest = Vselection_alist; !NILP (rest); rest = Fcdr (rest)) 821 for (rest = Vselection_alist; !NILP (rest); rest = Fcdr (rest))
841 if (EQ (frame, Fcar (Fcdr (Fcdr (Fcdr (Fcar (XCONS (rest)->cdr))))))) 822 if (EQ (frame, Fcar (Fcdr (Fcdr (Fcdr (Fcar (XCONS (rest)->cdr)))))))
842 { 823 {
843 /* Let random Lisp code notice that the selection has been stolen. */ 824 /* Let random Lisp code notice that the selection has been stolen. */