aboutsummaryrefslogtreecommitdiffstats
path: root/mac/src
diff options
context:
space:
mode:
authorAndrew Choi2000-10-23 17:49:59 +0000
committerAndrew Choi2000-10-23 17:49:59 +0000
commit8f47302e255501c0e6d341ba3a57611e6d0e5834 (patch)
tree526e2ee90ff68a1e38c9a5c411d17f065897f65f /mac/src
parentfa2c768f76b45b207e38d3fde7fb424f23293e1f (diff)
downloademacs-8f47302e255501c0e6d341ba3a57611e6d0e5834.tar.gz
emacs-8f47302e255501c0e6d341ba3a57611e6d0e5834.zip
Andrew Choi <akochoi@i-cable.com>
* international/mule-conf.el (mac-roman-lower, mac-roman-upper): New charsets. * term/mac-win.el: Remove definitions of mac-roman-lower and mac-roman-upper, require dired, and define instead of set mac-ready-for-drag-n-drop to avoid compilation error. * src/macterm.c (XTread_socket): check whether Lisp variable mac-ready-for-drag-n-drop is bound rather than non-nil value.
Diffstat (limited to 'mac/src')
-rw-r--r--mac/src/macterm.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/mac/src/macterm.c b/mac/src/macterm.c
index 194af28b91d..a23cf354b21 100644
--- a/mac/src/macterm.c
+++ b/mac/src/macterm.c
@@ -11123,7 +11123,7 @@ int current_mac_keyboard_text_encoding = kTextEncodingMacRoman;
11123 11123
11124/* Set in term/mac-win.el to indicate that event loop can now generate 11124/* Set in term/mac-win.el to indicate that event loop can now generate
11125 drag and drop events. */ 11125 drag and drop events. */
11126Lisp_Object Vmac_ready_for_drag_n_drop; 11126Lisp_Object Qmac_ready_for_drag_n_drop;
11127 11127
11128Lisp_Object drag_and_drop_file_list; 11128Lisp_Object drag_and_drop_file_list;
11129 11129
@@ -11769,7 +11769,7 @@ XTread_socket (int sd, struct input_event *bufp, int numchars, int expected)
11769 bufp->arg = Qnil; 11769 bufp->arg = Qnil;
11770 11770
11771 event_mask = everyEvent; 11771 event_mask = everyEvent;
11772 if (NILP (Vmac_ready_for_drag_n_drop)) 11772 if (NILP (Fboundp (Qmac_ready_for_drag_n_drop)))
11773 event_mask -= highLevelEventMask; 11773 event_mask -= highLevelEventMask;
11774 11774
11775 if (WaitNextEvent (event_mask, &er, (expected ? app_sleep_time : 0L), NULL)) 11775 if (WaitNextEvent (event_mask, &er, (expected ? app_sleep_time : 0L), NULL))
@@ -12038,7 +12038,7 @@ XTread_socket (int sd, struct input_event *bufp, int numchars, int expected)
12038 12038
12039 case kHighLevelEvent: 12039 case kHighLevelEvent:
12040 drag_and_drop_file_list = Qnil; 12040 drag_and_drop_file_list = Qnil;
12041 12041
12042 AEProcessAppleEvent(&er); 12042 AEProcessAppleEvent(&er);
12043 12043
12044 /* Build a drag_n_drop type event as is done in 12044 /* Build a drag_n_drop type event as is done in
@@ -12392,6 +12392,9 @@ syms_of_macterm ()
12392 staticpro (&last_mouse_press_frame); 12392 staticpro (&last_mouse_press_frame);
12393 last_mouse_press_frame = Qnil; 12393 last_mouse_press_frame = Qnil;
12394 12394
12395 Qmac_ready_for_drag_n_drop = intern ("mac-ready-for-drag-n-drop");
12396 staticpro (&Qmac_ready_for_drag_n_drop);
12397
12395 help_echo = Qnil; 12398 help_echo = Qnil;
12396 staticpro (&help_echo); 12399 staticpro (&help_echo);
12397 help_echo_object = Qnil; 12400 help_echo_object = Qnil;
@@ -12424,11 +12427,6 @@ wide as that tab on the display.");
12424Otherwise the option key is used."); 12427Otherwise the option key is used.");
12425 Vmac_command_key_is_meta = Qt; 12428 Vmac_command_key_is_meta = Qt;
12426 12429
12427 DEFVAR_LISP ("mac-ready-for-drag-n-drop", &Vmac_ready_for_drag_n_drop,
12428 "Non-nil indicates that the Mac event loop can now generate drag and\n\
12429drop events. Set in term/mac-win.el.");
12430 Vmac_ready_for_drag_n_drop = Qnil;
12431
12432 DEFVAR_INT ("mac-keyboard-text-encoding", &mac_keyboard_text_encoding, 12430 DEFVAR_INT ("mac-keyboard-text-encoding", &mac_keyboard_text_encoding,
12433 "One of the Text Encoding Base constant values defined in the\n\ 12431 "One of the Text Encoding Base constant values defined in the\n\
12434Basic Text Constants section of Inside Macintosh - Text Encoding\n\ 12432Basic Text Constants section of Inside Macintosh - Text Encoding\n\