aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChong Yidong2011-05-22 15:39:54 -0400
committerChong Yidong2011-05-22 15:39:54 -0400
commitf3d4e0a47d33eb0c7061784b5705a9145740cd69 (patch)
tree0759e5c97d733f67a39f47212cdc1ee502e720fa /src
parentf0fb8059468647825797cd3bd7f6e1ec8b38fd20 (diff)
downloademacs-f3d4e0a47d33eb0c7061784b5705a9145740cd69.tar.gz
emacs-f3d4e0a47d33eb0c7061784b5705a9145740cd69.zip
* src/xselect.c (syms_of_xselect): Include character.h; use DEFSYM.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/xselect.c52
2 files changed, 24 insertions, 32 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index bcc79800aaf..06e3641b95f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12011-05-22 Chong Yidong <cyd@stupidchicken.com>
2
3 * xselect.c (syms_of_xselect): Include character.h; use DEFSYM.
4
12011-05-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 52011-05-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2 6
3 * dispnew.c (scrolling_window): Don't exclude the case that the 7 * dispnew.c (scrolling_window): Don't exclude the case that the
diff --git a/src/xselect.c b/src/xselect.c
index 3ddd4c54b49..c0b1fd4658f 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -38,6 +38,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
38#include "process.h" 38#include "process.h"
39#include "termhooks.h" 39#include "termhooks.h"
40#include "keyboard.h" 40#include "keyboard.h"
41#include "character.h"
41 42
42#include <X11/Xproto.h> 43#include <X11/Xproto.h>
43 44
@@ -400,17 +401,6 @@ x_get_local_selection (Lisp_Object selection_symbol, Lisp_Object target_type, in
400 handler_fn = Qnil; 401 handler_fn = Qnil;
401 value = XCAR (XCDR (XCDR (local_value))); 402 value = XCAR (XCDR (XCDR (local_value)));
402 } 403 }
403#if 0
404 else if (EQ (target_type, QDELETE))
405 {
406 handler_fn = Qnil;
407 Fx_disown_selection_internal
408 (selection_symbol,
409 XCAR (XCDR (XCDR (local_value))));
410 value = QNULL;
411 }
412#endif
413
414#if 0 /* #### MULTIPLE doesn't work yet */ 404#if 0 /* #### MULTIPLE doesn't work yet */
415 else if (CONSP (target_type) 405 else if (CONSP (target_type)
416 && XCAR (target_type) == QMULTIPLE) 406 && XCAR (target_type) == QMULTIPLE)
@@ -2651,25 +2641,23 @@ A value of 0 means wait as long as necessary. This is initialized from the
2651 x_selection_timeout = 0; 2641 x_selection_timeout = 0;
2652 2642
2653 /* QPRIMARY is defined in keyboard.c. */ 2643 /* QPRIMARY is defined in keyboard.c. */
2654 QSECONDARY = intern_c_string ("SECONDARY"); staticpro (&QSECONDARY); 2644 DEFSYM (QSECONDARY, "SECONDARY");
2655 QSTRING = intern_c_string ("STRING"); staticpro (&QSTRING); 2645 DEFSYM (QSTRING, "STRING");
2656 QINTEGER = intern_c_string ("INTEGER"); staticpro (&QINTEGER); 2646 DEFSYM (QINTEGER, "INTEGER");
2657 QCLIPBOARD = intern_c_string ("CLIPBOARD"); staticpro (&QCLIPBOARD); 2647 DEFSYM (QCLIPBOARD, "CLIPBOARD");
2658 QTIMESTAMP = intern_c_string ("TIMESTAMP"); staticpro (&QTIMESTAMP); 2648 DEFSYM (QTIMESTAMP, "TIMESTAMP");
2659 QTEXT = intern_c_string ("TEXT"); staticpro (&QTEXT); 2649 DEFSYM (QTEXT, "TEXT");
2660 QCOMPOUND_TEXT = intern_c_string ("COMPOUND_TEXT"); staticpro (&QCOMPOUND_TEXT); 2650 DEFSYM (QCOMPOUND_TEXT, "COMPOUND_TEXT");
2661 QUTF8_STRING = intern_c_string ("UTF8_STRING"); staticpro (&QUTF8_STRING); 2651 DEFSYM (QUTF8_STRING, "UTF8_STRING");
2662 QDELETE = intern_c_string ("DELETE"); staticpro (&QDELETE); 2652 DEFSYM (QDELETE, "DELETE");
2663 QMULTIPLE = intern_c_string ("MULTIPLE"); staticpro (&QMULTIPLE); 2653 DEFSYM (QMULTIPLE, "MULTIPLE");
2664 QINCR = intern_c_string ("INCR"); staticpro (&QINCR); 2654 DEFSYM (QINCR, "INCR");
2665 QEMACS_TMP = intern_c_string ("_EMACS_TMP_"); staticpro (&QEMACS_TMP); 2655 DEFSYM (QEMACS_TMP, "_EMACS_TMP_");
2666 QTARGETS = intern_c_string ("TARGETS"); staticpro (&QTARGETS); 2656 DEFSYM (QTARGETS, "TARGETS");
2667 QATOM = intern_c_string ("ATOM"); staticpro (&QATOM); 2657 DEFSYM (QATOM, "ATOM");
2668 QATOM_PAIR = intern_c_string ("ATOM_PAIR"); staticpro (&QATOM_PAIR); 2658 DEFSYM (QATOM_PAIR, "ATOM_PAIR");
2669 QNULL = intern_c_string ("NULL"); staticpro (&QNULL); 2659 DEFSYM (QSAVE_TARGETS, "SAVE_TARGETS");
2670 Qcompound_text_with_extensions = intern_c_string ("compound-text-with-extensions"); 2660 DEFSYM (QNULL, "NULL");
2671 staticpro (&Qcompound_text_with_extensions); 2661 DEFSYM (Qcompound_text_with_extensions, "compound-text-with-extensions");
2672 2662 DEFSYM (Qforeign_selection, "foreign-selection");
2673 Qforeign_selection = intern_c_string ("foreign-selection");
2674 staticpro (&Qforeign_selection);
2675} 2663}