diff options
| author | Stefan Monnier | 2007-10-17 23:43:52 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-10-17 23:43:52 +0000 |
| commit | 99784d6399c1f49ca5d98a3156a7c3262b5e7ee9 (patch) | |
| tree | c7439e93bed59b50df298601b04e55ac90d68892 /src/macselect.c | |
| parent | b5307e9c2bd6222f9af6a6792ae69f3bb45fdf45 (diff) | |
| download | emacs-99784d6399c1f49ca5d98a3156a7c3262b5e7ee9.tar.gz emacs-99784d6399c1f49ca5d98a3156a7c3262b5e7ee9.zip | |
* xselect.c (x_own_selection, x_handle_selection_clear)
(x_clear_frame_selections):
* w32menu.c (list_of_panes, list_of_items):
* w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
* textprop.c (validate_plist, interval_has_all_properties)
(interval_has_some_properties, interval_has_some_properties_list)
(add_properties, text_property_list):
* process.c (Fget_buffer_process, list_processes_1, status_notify):
* minibuf.c (Fassoc_string):
* macselect.c (x_own_selection, x_clear_frame_selections)
(Fx_disown_selection_internal):
* keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
Diffstat (limited to 'src/macselect.c')
| -rw-r--r-- | src/macselect.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/macselect.c b/src/macselect.c index 9515a5774ec..f8038effd8b 100644 --- a/src/macselect.c +++ b/src/macselect.c | |||
| @@ -487,7 +487,7 @@ x_own_selection (selection_name, selection_value) | |||
| 487 | if (!NILP (prev_value)) | 487 | if (!NILP (prev_value)) |
| 488 | { | 488 | { |
| 489 | Lisp_Object rest; /* we know it's not the CAR, so it's easy. */ | 489 | Lisp_Object rest; /* we know it's not the CAR, so it's easy. */ |
| 490 | for (rest = Vselection_alist; !NILP (rest); rest = Fcdr (rest)) | 490 | for (rest = Vselection_alist; CONSP (rest); rest = XCDR (rest)) |
| 491 | if (EQ (prev_value, Fcar (XCDR (rest)))) | 491 | if (EQ (prev_value, Fcar (XCDR (rest)))) |
| 492 | { | 492 | { |
| 493 | XSETCDR (rest, Fcdr (XCDR (rest))); | 493 | XSETCDR (rest, Fcdr (XCDR (rest))); |
| @@ -619,7 +619,7 @@ x_clear_frame_selections (f) | |||
| 619 | } | 619 | } |
| 620 | 620 | ||
| 621 | /* Delete elements after the beginning of Vselection_alist. */ | 621 | /* Delete elements after the beginning of Vselection_alist. */ |
| 622 | for (rest = Vselection_alist; !NILP (rest); rest = Fcdr (rest)) | 622 | for (rest = Vselection_alist; CONSP (rest); rest = XCDR (rest)) |
| 623 | if (EQ (frame, Fcar (Fcdr (Fcdr (Fcdr (Fcar (XCDR (rest)))))))) | 623 | if (EQ (frame, Fcar (Fcdr (Fcdr (Fcdr (Fcar (XCDR (rest)))))))) |
| 624 | { | 624 | { |
| 625 | /* Let random Lisp code notice that the selection has been stolen. */ | 625 | /* Let random Lisp code notice that the selection has been stolen. */ |
| @@ -762,7 +762,7 @@ Disowning it means there is no such selection. */) | |||
| 762 | else | 762 | else |
| 763 | { | 763 | { |
| 764 | Lisp_Object rest; | 764 | Lisp_Object rest; |
| 765 | for (rest = Vselection_alist; !NILP (rest); rest = Fcdr (rest)) | 765 | for (rest = Vselection_alist; CONSP (rest); rest = XCDR (rest)) |
| 766 | if (EQ (local_selection_data, Fcar (XCDR (rest)))) | 766 | if (EQ (local_selection_data, Fcar (XCDR (rest)))) |
| 767 | { | 767 | { |
| 768 | XSETCDR (rest, Fcdr (XCDR (rest))); | 768 | XSETCDR (rest, Fcdr (XCDR (rest))); |