aboutsummaryrefslogtreecommitdiffstats
path: root/src/macselect.c
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2006-05-10 08:24:09 +0000
committerYAMAMOTO Mitsuharu2006-05-10 08:24:09 +0000
commitc2e93c8242f6fcbe10e87a9a7da6171058e7fab0 (patch)
treed0e4324b4e5ee146ab82449d4ce153c1300268bb /src/macselect.c
parent976b059fda53a4deaa54ff64ac9e98d80c1622b4 (diff)
downloademacs-c2e93c8242f6fcbe10e87a9a7da6171058e7fab0.tar.gz
emacs-c2e93c8242f6fcbe10e87a9a7da6171058e7fab0.zip
(Vmac_service_selection) [MAC_OSX]: Rename from
Vmac_services_selection. All uses changed. (mac_store_service_event): Rename from mac_store_services_event in extern and calls.
Diffstat (limited to 'src/macselect.c')
-rw-r--r--src/macselect.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/macselect.c b/src/macselect.c
index dd96102e19b..1b6a1a46cc3 100644
--- a/src/macselect.c
+++ b/src/macselect.c
@@ -101,7 +101,7 @@ static Lisp_Object Qmac_scrap_name, Qmac_ostype;
101 101
102#ifdef MAC_OSX 102#ifdef MAC_OSX
103/* Selection name for communication via Services menu. */ 103/* Selection name for communication via Services menu. */
104static Lisp_Object Vmac_services_selection; 104static Lisp_Object Vmac_service_selection;
105#endif 105#endif
106 106
107/* Get a reference to the scrap corresponding to the symbol SYM. The 107/* Get a reference to the scrap corresponding to the symbol SYM. The
@@ -1349,7 +1349,7 @@ init_service_handler ()
1349 GetEventTypeCount (specs), specs, NULL, NULL); 1349 GetEventTypeCount (specs), specs, NULL, NULL);
1350} 1350}
1351 1351
1352extern OSStatus mac_store_services_event P_ ((EventRef)); 1352extern OSStatus mac_store_service_event P_ ((EventRef));
1353 1353
1354static OSStatus 1354static OSStatus
1355copy_scrap_flavor_data (from_scrap, to_scrap, flavor_type) 1355copy_scrap_flavor_data (from_scrap, to_scrap, flavor_type)
@@ -1406,12 +1406,12 @@ mac_handle_service_event (call_ref, event, data)
1406 Lisp_Object rest; 1406 Lisp_Object rest;
1407 ScrapFlavorType flavor_type; 1407 ScrapFlavorType flavor_type;
1408 1408
1409 /* Check if Vmac_services_selection is a valid selection that has a 1409 /* Check if Vmac_service_selection is a valid selection that has a
1410 corresponding scrap. */ 1410 corresponding scrap. */
1411 if (!SYMBOLP (Vmac_services_selection)) 1411 if (!SYMBOLP (Vmac_service_selection))
1412 err = eventNotHandledErr; 1412 err = eventNotHandledErr;
1413 else 1413 else
1414 err = get_scrap_from_symbol (Vmac_services_selection, 0, &cur_scrap); 1414 err = get_scrap_from_symbol (Vmac_service_selection, 0, &cur_scrap);
1415 if (!(err == noErr && cur_scrap)) 1415 if (!(err == noErr && cur_scrap))
1416 return eventNotHandledErr; 1416 return eventNotHandledErr;
1417 1417
@@ -1448,7 +1448,7 @@ mac_handle_service_event (call_ref, event, data)
1448 if (err != noErr) 1448 if (err != noErr)
1449 break; 1449 break;
1450 1450
1451 if (NILP (Fx_selection_owner_p (Vmac_services_selection))) 1451 if (NILP (Fx_selection_owner_p (Vmac_service_selection)))
1452 break; 1452 break;
1453 else 1453 else
1454 goto copy_all_flavors; 1454 goto copy_all_flavors;
@@ -1458,7 +1458,7 @@ mac_handle_service_event (call_ref, event, data)
1458 typeScrapRef, NULL, 1458 typeScrapRef, NULL,
1459 sizeof (ScrapRef), NULL, &specific_scrap); 1459 sizeof (ScrapRef), NULL, &specific_scrap);
1460 if (err != noErr 1460 if (err != noErr
1461 || NILP (Fx_selection_owner_p (Vmac_services_selection))) 1461 || NILP (Fx_selection_owner_p (Vmac_service_selection)))
1462 { 1462 {
1463 err = eventNotHandledErr; 1463 err = eventNotHandledErr;
1464 break; 1464 break;
@@ -1533,7 +1533,7 @@ mac_handle_service_event (call_ref, event, data)
1533 if (!data_exists_p) 1533 if (!data_exists_p)
1534 err = eventNotHandledErr; 1534 err = eventNotHandledErr;
1535 else 1535 else
1536 err = mac_store_services_event (event); 1536 err = mac_store_service_event (event);
1537 } 1537 }
1538 break; 1538 break;
1539 } 1539 }
@@ -1611,9 +1611,9 @@ The types are chosen in the order they appear in the list. */);
1611#endif 1611#endif
1612 1612
1613#ifdef MAC_OSX 1613#ifdef MAC_OSX
1614 DEFVAR_LISP ("mac-services-selection", &Vmac_services_selection, 1614 DEFVAR_LISP ("mac-service-selection", &Vmac_service_selection,
1615 doc: /* Selection name for communication via Services menu. */); 1615 doc: /* Selection name for communication via Services menu. */);
1616 Vmac_services_selection = intern ("PRIMARY"); 1616 Vmac_service_selection = intern ("PRIMARY");
1617#endif 1617#endif
1618 1618
1619 QPRIMARY = intern ("PRIMARY"); staticpro (&QPRIMARY); 1619 QPRIMARY = intern ("PRIMARY"); staticpro (&QPRIMARY);