# HG changeset patch # User Paul Eggert # Date 1295479962 28800 # Node ID 4d90cea362a318d5a6e8158964a32136993907be # Parent f279fb6c0f323dcdf4fd42c674c790b19344c8ef Fix X11 compilation failure. * globals.h (struct emacs_globals): Document f_Vselection_alist. * xselect.c (Vselection_alist): Remove declaration, moving its documentation to globals.h. This fixes a compilation failure induced by the earlier change to globals.h today. diff -r f279fb6c0f32 -r 4d90cea362a3 src/ChangeLog --- a/src/ChangeLog Wed Jan 19 22:35:53 2011 +0000 +++ b/src/ChangeLog Wed Jan 19 15:32:42 2011 -0800 @@ -1,3 +1,11 @@ +2011-01-19 Paul Eggert + + Fix X11 compilation failure. + * globals.h (struct emacs_globals): Document f_Vselection_alist. + * xselect.c (Vselection_alist): Remove declaration, moving its + documentation to globals.h. This fixes a compilation failure + induced by the earlier change to globals.h today. + 2011-01-19 Jan Djärv * unexmacosx.c: Include config.h before unistd.h (Bug#7859). diff -r f279fb6c0f32 -r 4d90cea362a3 src/globals.h --- a/src/globals.h Wed Jan 19 22:35:53 2011 +0000 +++ b/src/globals.h Wed Jan 19 15:32:42 2011 -0800 @@ -1701,7 +1701,7 @@ f_ns_input_line; Lisp_Object f_ns_input_color, f_ns_input_text, f_ns_working_text; Lisp_Object f_ns_input_spi_name, f_ns_input_spi_arg; - + /* Specifies which emacs modifier should be generated when NS receives the Alternate modifier. May be Qnone or any of the modifier lisp symbols. */ @@ -1751,6 +1751,19 @@ Lisp_Object f_Vns_sent_selection_hooks; Lisp_Object f_Vns_lost_selection_hooks; + + /* This is an association list whose elements are of the form + ( SELECTION-NAME SELECTION-VALUE SELECTION-TIMESTAMP FRAME) + SELECTION-NAME is a lisp symbol, whose name is the name of an X Atom. + SELECTION-VALUE is the value that emacs owns for that selection. + It may be any kind of Lisp object. + SELECTION-TIMESTAMP is the time at which emacs began owning this + selection, as a cons of two 16-bit numbers (making a 32 bit time.) + FRAME is the frame for which we made the selection. + If there is an entry in this alist, then it can be assumed that Emacs owns + that selection. + The only (eq) parts of this list that are visible from Lisp are the + selection-values. */ Lisp_Object f_Vselection_alist; Lisp_Object f_Vns_reg_to_script; @@ -2882,5 +2895,3 @@ globals.f_Vselection_alist #define Vns_reg_to_script \ globals.f_Vns_reg_to_script - - diff -r f279fb6c0f32 -r 4d90cea362a3 src/xselect.c --- a/src/xselect.c Wed Jan 19 22:35:53 2011 +0000 +++ b/src/xselect.c Wed Jan 19 15:32:42 2011 -0800 @@ -127,20 +127,6 @@ /* Defined in keyboard.c. */ extern unsigned long last_event_timestamp; -/* This is an association list whose elements are of the form - ( SELECTION-NAME SELECTION-VALUE SELECTION-TIMESTAMP FRAME) - SELECTION-NAME is a lisp symbol, whose name is the name of an X Atom. - SELECTION-VALUE is the value that emacs owns for that selection. - It may be any kind of Lisp object. - SELECTION-TIMESTAMP is the time at which emacs began owning this selection, - as a cons of two 16-bit numbers (making a 32 bit time.) - FRAME is the frame for which we made the selection. - If there is an entry in this alist, then it can be assumed that Emacs owns - that selection. - The only (eq) parts of this list that are visible from Lisp are the - selection-values. */ -static Lisp_Object Vselection_alist; - /* Define a queue to save up SELECTION_REQUEST_EVENT events for later @@ -2700,4 +2686,3 @@ Qforeign_selection = intern_c_string ("foreign-selection"); staticpro (&Qforeign_selection); } -