aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-01-19 15:32:42 -0800
committerPaul Eggert2011-01-19 15:32:42 -0800
commite1ef0dac0866570df62f96fb004de896f6e82397 (patch)
treeab6dfedfb3c1ce0532dde71c45ddf370fb9f44b8 /src
parenta2e3ac996870b1a5de299a47cb0ee08fbbac028b (diff)
downloademacs-e1ef0dac0866570df62f96fb004de896f6e82397.tar.gz
emacs-e1ef0dac0866570df62f96fb004de896f6e82397.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog8
-rw-r--r--src/globals.h17
-rw-r--r--src/xselect.c15
3 files changed, 22 insertions, 18 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 79cc893eaae..735b6e4789e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12011-01-19 Paul Eggert <eggert@cs.ucla.edu>
2
3 Fix X11 compilation failure.
4 * globals.h (struct emacs_globals): Document f_Vselection_alist.
5 * xselect.c (Vselection_alist): Remove declaration, moving its
6 documentation to globals.h. This fixes a compilation failure
7 induced by the earlier change to globals.h today.
8
12011-01-19 Jan Djärv <jan.h.d@swipnet.se> 92011-01-19 Jan Djärv <jan.h.d@swipnet.se>
2 10
3 * unexmacosx.c: Include config.h before unistd.h (Bug#7859). 11 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
diff --git a/src/globals.h b/src/globals.h
index f8563c4d939..8f4749054e9 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -1701,7 +1701,7 @@ struct emacs_globals
1701 f_ns_input_line; 1701 f_ns_input_line;
1702 Lisp_Object f_ns_input_color, f_ns_input_text, f_ns_working_text; 1702 Lisp_Object f_ns_input_color, f_ns_input_text, f_ns_working_text;
1703 Lisp_Object f_ns_input_spi_name, f_ns_input_spi_arg; 1703 Lisp_Object f_ns_input_spi_name, f_ns_input_spi_arg;
1704 1704
1705 /* Specifies which emacs modifier should be generated when NS receives 1705 /* Specifies which emacs modifier should be generated when NS receives
1706 the Alternate modifier. May be Qnone or any of the modifier lisp symbols. 1706 the Alternate modifier. May be Qnone or any of the modifier lisp symbols.
1707 */ 1707 */
@@ -1751,6 +1751,19 @@ struct emacs_globals
1751 1751
1752 Lisp_Object f_Vns_sent_selection_hooks; 1752 Lisp_Object f_Vns_sent_selection_hooks;
1753 Lisp_Object f_Vns_lost_selection_hooks; 1753 Lisp_Object f_Vns_lost_selection_hooks;
1754
1755 /* This is an association list whose elements are of the form
1756 ( SELECTION-NAME SELECTION-VALUE SELECTION-TIMESTAMP FRAME)
1757 SELECTION-NAME is a lisp symbol, whose name is the name of an X Atom.
1758 SELECTION-VALUE is the value that emacs owns for that selection.
1759 It may be any kind of Lisp object.
1760 SELECTION-TIMESTAMP is the time at which emacs began owning this
1761 selection, as a cons of two 16-bit numbers (making a 32 bit time.)
1762 FRAME is the frame for which we made the selection.
1763 If there is an entry in this alist, then it can be assumed that Emacs owns
1764 that selection.
1765 The only (eq) parts of this list that are visible from Lisp are the
1766 selection-values. */
1754 Lisp_Object f_Vselection_alist; 1767 Lisp_Object f_Vselection_alist;
1755 1768
1756 Lisp_Object f_Vns_reg_to_script; 1769 Lisp_Object f_Vns_reg_to_script;
@@ -2882,5 +2895,3 @@ extern struct emacs_globals globals;
2882 globals.f_Vselection_alist 2895 globals.f_Vselection_alist
2883#define Vns_reg_to_script \ 2896#define Vns_reg_to_script \
2884 globals.f_Vns_reg_to_script 2897 globals.f_Vns_reg_to_script
2885
2886
diff --git a/src/xselect.c b/src/xselect.c
index aec216db13e..0f57677a302 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -127,20 +127,6 @@ static Lisp_Object Qforeign_selection;
127/* Defined in keyboard.c. */ 127/* Defined in keyboard.c. */
128extern unsigned long last_event_timestamp; 128extern unsigned long last_event_timestamp;
129 129
130/* This is an association list whose elements are of the form
131 ( SELECTION-NAME SELECTION-VALUE SELECTION-TIMESTAMP FRAME)
132 SELECTION-NAME is a lisp symbol, whose name is the name of an X Atom.
133 SELECTION-VALUE is the value that emacs owns for that selection.
134 It may be any kind of Lisp object.
135 SELECTION-TIMESTAMP is the time at which emacs began owning this selection,
136 as a cons of two 16-bit numbers (making a 32 bit time.)
137 FRAME is the frame for which we made the selection.
138 If there is an entry in this alist, then it can be assumed that Emacs owns
139 that selection.
140 The only (eq) parts of this list that are visible from Lisp are the
141 selection-values. */
142static Lisp_Object Vselection_alist;
143
144 130
145 131
146/* Define a queue to save up SELECTION_REQUEST_EVENT events for later 132/* Define a queue to save up SELECTION_REQUEST_EVENT events for later
@@ -2700,4 +2686,3 @@ A value of 0 means wait as long as necessary. This is initialized from the
2700 Qforeign_selection = intern_c_string ("foreign-selection"); 2686 Qforeign_selection = intern_c_string ("foreign-selection");
2701 staticpro (&Qforeign_selection); 2687 staticpro (&Qforeign_selection);
2702} 2688}
2703