diff options
| author | Ken Raeburn | 2002-05-20 08:10:41 +0000 |
|---|---|---|
| committer | Ken Raeburn | 2002-05-20 08:10:41 +0000 |
| commit | 07e9823c693085fb025e90ed4d66538c6dece2b4 (patch) | |
| tree | 1b052127467f11b3d22251ebdf42a9fa8661196a /src | |
| parent | 0b7231c4f3e857740a002ea1bb403e7ae782b354 (diff) | |
| download | emacs-07e9823c693085fb025e90ed4d66538c6dece2b4.tar.gz emacs-07e9823c693085fb025e90ed4d66538c6dece2b4.zip | |
* xselect.c (symbol_to_x_atom, x_get_foreign_selection): Use
SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 66 | ||||
| -rw-r--r-- | src/xselect.c | 6 |
2 files changed, 69 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 961264c0278..c7640fa91bd 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,69 @@ | |||
| 1 | 2002-05-20 Ken Raeburn <raeburn@gnu.org> | ||
| 2 | |||
| 3 | Change symbol structure to contain a lisp object for the symbol | ||
| 4 | name: | ||
| 5 | * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp | ||
| 6 | object field named "xname". | ||
| 7 | (SYMBOL_NAME): New macro. | ||
| 8 | * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and | ||
| 9 | name field. | ||
| 10 | * alloc.c (Fmake_symbol): Set symbol xname field instead of name. | ||
| 11 | (mark_object, gc_sweep): Use symbol xname field and XSTRING | ||
| 12 | instead of name field. | ||
| 13 | * buffer.c (buffer_slot_type_mismatch): Use XSTRING and | ||
| 14 | SYMBOL_NAME instead of XSYMBOL and name field. | ||
| 15 | * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME | ||
| 16 | instead of XSYMBOL and name field. | ||
| 17 | * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING | ||
| 18 | and SYMBOL_NAME instead of XSYMBOL and name field. | ||
| 19 | * coding.c (Fread_coding_system, code_convert_region1) | ||
| 20 | (code_convert_string1, code_convert_string_norecord) | ||
| 21 | (Ffind_operation_coding_system): Use SYMBOL_NAME instead of | ||
| 22 | XSYMBOL and name field. | ||
| 23 | * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding) | ||
| 24 | (Fmake_variable_buffer_local, Fmake_local_variable) | ||
| 25 | (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead | ||
| 26 | of XSYMBOL and name field. | ||
| 27 | * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of | ||
| 28 | XSYMBOL and name field. | ||
| 29 | * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING | ||
| 30 | instead of XSYMBOL and name field. | ||
| 31 | * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of | ||
| 32 | XSYMBOL and name field. | ||
| 33 | * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash): Use | ||
| 34 | SYMBOL_NAME and XSTRING instead of XSYMBOL and name field. | ||
| 35 | * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING | ||
| 36 | instead of XSYMBOL and name field. | ||
| 37 | * keyboard.c (echo_char, record_char, parse_modifiers_uncached) | ||
| 38 | (parse_modifiers, apply_modifiers, Fevent_convert_list) | ||
| 39 | (parse_solitary_modifier, Fexecute_extended_command): Use | ||
| 40 | SYMBOL_NAME and XSTRING instead of XSYMBOL and name field. | ||
| 41 | * keymap.c (silly_event_symbol_error, Fsingle_key_description) | ||
| 42 | (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead | ||
| 43 | of XSYMBOL and name field. | ||
| 44 | (describe_command, describe_translation): Use SYMBOL_NAME and | ||
| 45 | assignment instead of XSYMBOL and name field and XSETSTRING. | ||
| 46 | * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING | ||
| 47 | instead of XSYMBOL and name field. | ||
| 48 | (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and | ||
| 49 | name field and XSETSTRING. | ||
| 50 | * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead | ||
| 51 | of XSYMBOL and name field. | ||
| 52 | * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and | ||
| 53 | assignment instead of XSYMBOL and name field and XSETSTRING. | ||
| 54 | * print.c (print_error_message, print_object): Use SYMBOL_NAME and | ||
| 55 | XSTRING instead of XSYMBOL and name field. | ||
| 56 | * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME | ||
| 57 | and XSTRING instead of XSYMBOL and name field. | ||
| 58 | * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME | ||
| 59 | and XSTRING instead of XSYMBOL and name field. | ||
| 60 | * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and | ||
| 61 | XSTRING instead of XSYMBOL and name field. | ||
| 62 | * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead | ||
| 63 | of XSYMBOL and name field. | ||
| 64 | * xselect.c (symbol_to_x_atom, x_get_foreign_selection): Use | ||
| 65 | SYMBOL_NAME and XSTRING instead of XSYMBOL and name field. | ||
| 66 | |||
| 1 | 2002-05-19 Ken Raeburn <raeburn@gnu.org> | 67 | 2002-05-19 Ken Raeburn <raeburn@gnu.org> |
| 2 | 68 | ||
| 3 | * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR | 69 | * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR |
diff --git a/src/xselect.c b/src/xselect.c index c95cc211c1d..a92943c5381 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -200,9 +200,9 @@ symbol_to_x_atom (dpyinfo, display, sym) | |||
| 200 | #endif | 200 | #endif |
| 201 | if (!SYMBOLP (sym)) abort (); | 201 | if (!SYMBOLP (sym)) abort (); |
| 202 | 202 | ||
| 203 | TRACE1 (" XInternAtom %s", (char *) XSYMBOL (sym)->name->data); | 203 | TRACE1 (" XInternAtom %s", (char *) XSTRING (SYMBOL_NAME (sym))->data); |
| 204 | BLOCK_INPUT; | 204 | BLOCK_INPUT; |
| 205 | val = XInternAtom (display, (char *) XSYMBOL (sym)->name->data, False); | 205 | val = XInternAtom (display, (char *) XSTRING (SYMBOL_NAME (sym))->data, False); |
| 206 | UNBLOCK_INPUT; | 206 | UNBLOCK_INPUT; |
| 207 | return val; | 207 | return val; |
| 208 | } | 208 | } |
| @@ -1272,7 +1272,7 @@ x_get_foreign_selection (selection_symbol, target_type) | |||
| 1272 | if (NILP (XCAR (reading_selection_reply))) | 1272 | if (NILP (XCAR (reading_selection_reply))) |
| 1273 | error ("Timed out waiting for reply from selection owner"); | 1273 | error ("Timed out waiting for reply from selection owner"); |
| 1274 | if (EQ (XCAR (reading_selection_reply), Qlambda)) | 1274 | if (EQ (XCAR (reading_selection_reply), Qlambda)) |
| 1275 | error ("No `%s' selection", XSYMBOL (selection_symbol)->name->data); | 1275 | error ("No `%s' selection", XSTRING (SYMBOL_NAME (selection_symbol))->data); |
| 1276 | 1276 | ||
| 1277 | /* Otherwise, the selection is waiting for us on the requested property. */ | 1277 | /* Otherwise, the selection is waiting for us on the requested property. */ |
| 1278 | return | 1278 | return |