diff options
| author | Chong Yidong | 2011-05-22 17:57:43 -0400 |
|---|---|---|
| committer | Chong Yidong | 2011-05-22 17:57:43 -0400 |
| commit | abb71cf449e531096ef6be36f571f521c44cb80d (patch) | |
| tree | ce743862a2eb2bba388eb62f1fe94b13cfe691d8 /src | |
| parent | 3f7390b223e8f55faab66259515eed073ebf0f9b (diff) | |
| download | emacs-abb71cf449e531096ef6be36f571f521c44cb80d.tar.gz emacs-abb71cf449e531096ef6be36f571f521c44cb80d.zip | |
Remove var mistakenly introduced in 2011-05-22T19:46:47Z!cyd@stupidchicken.com.
* src/xselect.c (syms_of_xselect): Remove unused symbol SAVE_TARGETS.
(Fx_get_selection_internal): Minor cleanup.
(Fx_own_selection_internal): Rename arguments for consistency with
select.el.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/xselect.c | 31 |
2 files changed, 19 insertions, 19 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b6b0556bb23..e324b8ef071 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2011-05-22 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * xselect.c (syms_of_xselect): Remove unused symbol SAVE_TARGETS. | ||
| 4 | (Fx_get_selection_internal): Minor cleanup. | ||
| 5 | (Fx_own_selection_internal): Rename arguments for consistency with | ||
| 6 | select.el. | ||
| 7 | |||
| 1 | 2011-05-22 Paul Eggert <eggert@cs.ucla.edu> | 8 | 2011-05-22 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 9 | ||
| 3 | * xselect.c (QSAVE_TARGETS): New static var, to fix build failure. | 10 | * xselect.c (QSAVE_TARGETS): New static var, to fix build failure. |
diff --git a/src/xselect.c b/src/xselect.c index 3fb7077995a..c4e9fbf9ff7 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -103,7 +103,7 @@ static Lisp_Object clean_local_selection_data (Lisp_Object); | |||
| 103 | 103 | ||
| 104 | static Lisp_Object QSECONDARY, QSTRING, QINTEGER, QCLIPBOARD, QTIMESTAMP, | 104 | static Lisp_Object QSECONDARY, QSTRING, QINTEGER, QCLIPBOARD, QTIMESTAMP, |
| 105 | QTEXT, QDELETE, QMULTIPLE, QINCR, QEMACS_TMP, QTARGETS, QATOM, QNULL, | 105 | QTEXT, QDELETE, QMULTIPLE, QINCR, QEMACS_TMP, QTARGETS, QATOM, QNULL, |
| 106 | QATOM_PAIR, QSAVE_TARGETS; | 106 | QATOM_PAIR; |
| 107 | 107 | ||
| 108 | static Lisp_Object QCOMPOUND_TEXT; /* This is a type of selection. */ | 108 | static Lisp_Object QCOMPOUND_TEXT; /* This is a type of selection. */ |
| 109 | static Lisp_Object QUTF8_STRING; /* This is a type of selection. */ | 109 | static Lisp_Object QUTF8_STRING; /* This is a type of selection. */ |
| @@ -1996,18 +1996,18 @@ x_handle_selection_notify (XSelectionEvent *event) | |||
| 1996 | 1996 | ||
| 1997 | DEFUN ("x-own-selection-internal", Fx_own_selection_internal, | 1997 | DEFUN ("x-own-selection-internal", Fx_own_selection_internal, |
| 1998 | Sx_own_selection_internal, 2, 2, 0, | 1998 | Sx_own_selection_internal, 2, 2, 0, |
| 1999 | doc: /* Assert an X selection of the given TYPE with the given VALUE. | 1999 | doc: /* Assert an X selection of type SELECTION and value VALUE. |
| 2000 | TYPE is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'. | 2000 | SELECTION is a symbol, typically `PRIMARY', `SECONDARY', or `CLIPBOARD'. |
| 2001 | \(Those are literal upper-case symbol names, since that's what X expects.) | 2001 | \(Those are literal upper-case symbol names, since that's what X expects.) |
| 2002 | VALUE is typically a string, or a cons of two markers, but may be | 2002 | VALUE is typically a string, or a cons of two markers, but may be |
| 2003 | anything that the functions on `selection-converter-alist' know about. */) | 2003 | anything that the functions on `selection-converter-alist' know about. */) |
| 2004 | (Lisp_Object selection_name, Lisp_Object selection_value) | 2004 | (Lisp_Object selection, Lisp_Object value) |
| 2005 | { | 2005 | { |
| 2006 | check_x (); | 2006 | check_x (); |
| 2007 | CHECK_SYMBOL (selection_name); | 2007 | CHECK_SYMBOL (selection); |
| 2008 | if (NILP (selection_value)) error ("SELECTION-VALUE may not be nil"); | 2008 | if (NILP (value)) error ("VALUE may not be nil"); |
| 2009 | x_own_selection (selection_name, selection_value); | 2009 | x_own_selection (selection, value); |
| 2010 | return selection_value; | 2010 | return value; |
| 2011 | } | 2011 | } |
| 2012 | 2012 | ||
| 2013 | 2013 | ||
| @@ -2046,22 +2046,16 @@ selections. If omitted, defaults to the time for the last event. */) | |||
| 2046 | val = x_get_local_selection (selection_symbol, target_type, 1); | 2046 | val = x_get_local_selection (selection_symbol, target_type, 1); |
| 2047 | 2047 | ||
| 2048 | if (NILP (val)) | 2048 | if (NILP (val)) |
| 2049 | { | 2049 | RETURN_UNGCPRO (x_get_foreign_selection (selection_symbol, |
| 2050 | val = x_get_foreign_selection (selection_symbol, target_type, time_stamp); | 2050 | target_type, time_stamp)); |
| 2051 | goto DONE; | ||
| 2052 | } | ||
| 2053 | 2051 | ||
| 2054 | if (CONSP (val) | 2052 | if (CONSP (val) && SYMBOLP (XCAR (val))) |
| 2055 | && SYMBOLP (XCAR (val))) | ||
| 2056 | { | 2053 | { |
| 2057 | val = XCDR (val); | 2054 | val = XCDR (val); |
| 2058 | if (CONSP (val) && NILP (XCDR (val))) | 2055 | if (CONSP (val) && NILP (XCDR (val))) |
| 2059 | val = XCAR (val); | 2056 | val = XCAR (val); |
| 2060 | } | 2057 | } |
| 2061 | val = clean_local_selection_data (val); | 2058 | RETURN_UNGCPRO (clean_local_selection_data (val)); |
| 2062 | DONE: | ||
| 2063 | UNGCPRO; | ||
| 2064 | return val; | ||
| 2065 | } | 2059 | } |
| 2066 | 2060 | ||
| 2067 | DEFUN ("x-disown-selection-internal", Fx_disown_selection_internal, | 2061 | DEFUN ("x-disown-selection-internal", Fx_disown_selection_internal, |
| @@ -2656,7 +2650,6 @@ A value of 0 means wait as long as necessary. This is initialized from the | |||
| 2656 | DEFSYM (QTARGETS, "TARGETS"); | 2650 | DEFSYM (QTARGETS, "TARGETS"); |
| 2657 | DEFSYM (QATOM, "ATOM"); | 2651 | DEFSYM (QATOM, "ATOM"); |
| 2658 | DEFSYM (QATOM_PAIR, "ATOM_PAIR"); | 2652 | DEFSYM (QATOM_PAIR, "ATOM_PAIR"); |
| 2659 | DEFSYM (QSAVE_TARGETS, "SAVE_TARGETS"); | ||
| 2660 | DEFSYM (QNULL, "NULL"); | 2653 | DEFSYM (QNULL, "NULL"); |
| 2661 | DEFSYM (Qcompound_text_with_extensions, "compound-text-with-extensions"); | 2654 | DEFSYM (Qcompound_text_with_extensions, "compound-text-with-extensions"); |
| 2662 | DEFSYM (Qforeign_selection, "foreign-selection"); | 2655 | DEFSYM (Qforeign_selection, "foreign-selection"); |