home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / languages / elisp / packages / MouseAndMenuEmacs / x11fns-patch < prev    next >
Encoding:
Text File  |  1990-05-31  |  2.1 KB  |  72 lines

  1. 24a25,28
  2. > /* Hacked x-get-mouse-event to report Meta in 2-bit rather than 8-bit, so */
  3. > /* it behaves the same as x-proc-mouse-event (I hope). */
  4. > /* Russell Ritchie, Mon Jun 19 12:23:57 1989.*/
  5. 76a81,82
  6. > extern unsigned long mous;
  7. > extern unsigned long curs;
  8. 343a350,364
  9. >   char     *useback;
  10. >   /* USEBACK is the background color, but on monochrome screens
  11. >      changed if necessary not to match the mouse.  */
  12. >   useback = back_color;
  13. >   if (!XXisColor && !strcmp (mous_color, back_color))
  14. >     {
  15. >       if (strcmp (back_color, "white"))
  16. >     useback = "white";
  17. >       else
  18. >     useback = "black";
  19. >     }
  20. 346c367
  21. <       && XParseColor (XXdisplay, XXColorMap, back_color, &backc))
  22. ---
  23. >       && XParseColor (XXdisplay, XXColorMap, useback, &backc))
  24. 443a465,474
  25. > DEFUN ("x-set-baud", Fx_set_baud, Sx_set_baud, 1, 1, "nBaud Rate: ",
  26. >        "Sets the apparent baud rate to influence the refresh algorithm")
  27. >     (new_baud_rate)
  28. > {
  29. >     CHECK_NUMBER (new_baud_rate, 1);
  30. >     check_xterm ();
  31. >     baud_rate = XINT (new_baud_rate);
  32. >     return (Qnil);
  33. > }
  34. 562,563c593,594
  35. < /*        XSET (tempx, Lisp_Int, event.xbutton.x+XXxoffset);
  36. <         XSET (tempy, Lisp_Int, event.xbutton.y+XXyoffset);*/
  37. ---
  38. >         XSET (tempx, Lisp_Int, event.xbutton.x_root);
  39. >         XSET (tempy, Lisp_Int, event.xbutton.y_root);
  40. 583c614,615
  41. < otherwise, wait for an event.")
  42. ---
  43. > otherwise, wait for an event.\n\
  44. > Report Meta in 2 bit (rather than 8 bit) like x-proc-mouse-event does.")
  45. 607a640,645
  46. >         /* Report meta in 2 bit, not in 8 bit.  */
  47. >         if (key_mask & 0x80) 
  48. >           { 
  49. >             key_mask |= 0x20; 
  50. >             key_mask &= ~0x80; 
  51. >           } 
  52. 620,622c658,662
  53. < /*        XSET (tempx, Lisp_Int, event.xbutton.x+XXxoffset);
  54. <         XSET (tempy, Lisp_Int, event.xbutton.y+XXyoffset);*/
  55. <         Vx_mouse_abs_pos = Fcond (tempx, Fcons (tempy, Qnil));
  56. ---
  57. >         XSET (tempx, Lisp_Int, event.xbutton.x_root);
  58. >         XSET (tempy, Lisp_Int, event.xbutton.y_root);
  59. >         Vx_mouse_abs_pos = Fcons (tempx, Fcons (tempy, Qnil));
  60. >         /* Fcond => Fcons, assumed to be a typo, */
  61. >         /* Russell Ritchie, Tue Jun 13 15:42:03 1989 */
  62. 846a887
  63. >   Vx_mouse_abs_pos = Qnil;
  64. 878a920
  65. >   defsubr (&Sx_set_baud);
  66.