home *** CD-ROM | disk | FTP | other *** search
- I didn't have time to test the beta for 19.6 (I was only given a week,
- which is too short a time for testing PD software at our site - I need
- at least 2 weeks notice to have a reasonable chance of installing and
- trying a new release of anything:-). Anyway, that's why I'm posting
- this - it is the diffs I used to make 19.6 on our system (your mileage
- may vary, etc. etc.). I hope that Jaimie will include at least some
- of them in the next release and perhaps more comment notes also (for
- the changes not included:-).
-
- The last diff, for file event-Xt.c, is a hack to provide proper
- support for the keypad on AIX. Note that you have to define two
- values in config.h (which are included in the diffs here). If other
- people have servers that don't convert keysyms well for numlock, then
- you might want to look at this change also (I provided the #defines so
- the action could be turned on or off easily).
-
- Of special note are the changes to s-aix3-2.h (for HAVE_TIMEVAL and
- the index/rindex stuff) and to config.h for the compile switch (thanks
- to a previous poster who built the image -O -Q; that provides an image
- that is smaller 14Meg to 5Meg and seems to run faster). I don't have
- xpm installed (yet, I plan to once the header file moves to
- /usr/local/include/X11). Also, a Sun-ism crept back into the Makefile
- in etc - you shouldn't do -Bstatic there! (Note: you'll see that I
- built those tools -O -Q also).
-
- I hope this helps people out. Have fun! - Bob
- =====>8 Cut here and enjoy? 8<=====
- *** /misc/lucid/lemacs-19.6/etc/Makefile-dist Wed Apr 14 10:50:05 1993
- --- /misc/lucid/lemacs-19.6/etc/Makefile Wed Apr 14 10:50:08 1993
- ***************
- *** 6,12 ****
-
- # make sure executables are linked statically.
- # add -DUSG for SysV movemail and timer
- ! CFLAGS= -g -Bstatic
- # For Xenix. Needed for movemail
- # LOADLIBES= -lx
-
- --- 6,12 ----
-
- # make sure executables are linked statically.
- # add -DUSG for SysV movemail and timer
- ! CFLAGS= -O -Q
- # For Xenix. Needed for movemail
- # LOADLIBES= -lx
-
- *** /misc/lucid/lemacs-19.6/src/s/s-aix3-2.h-dist Tue Apr 13 12:03:12 1993
- --- /misc/lucid/lemacs-19.6/src/s/s-aix3-2.h Tue Apr 13 17:05:06 1993
- ***************
- *** 20,29 ****
- --- 20,46 ----
- #ifndef __S_AIX3_2_H
- #define __S_AIX3_2_H 1
-
- + #ifdef index
- + #undef index
- + #endif
- +
- + #ifdef rindex
- + #undef rindex
- + #endif
- +
- #include "s-aix3-1.h"
-
- #define NEED_REALPATH
- #define HAVE_SETPRIORITY
- + #define NEED_TIME_H
- +
- + #ifdef index
- + #undef index
- + #endif
- +
- + #ifdef rindex
- + #undef rindex
- + #endif
-
- #pragma alloca
-
- *** /misc/lucid/lemacs-19.6/src/config.h-dist Thu Apr 1 15:13:00 1993
- --- /misc/lucid/lemacs-19.6/src/config.h Tue Apr 13 17:03:20 1993
- ***************
- *** 34,40 ****
- This has to come before include the m- file.
- */
-
- ! #define USE_GCC
- /* #define USE_LCC */
-
- /* Include here a s- file that describes the system type you are using.
- --- 34,40 ----
- This has to come before include the m- file.
- */
-
- ! /* #define USE_GCC */
- /* #define USE_LCC */
-
- /* Include here a s- file that describes the system type you are using.
- ***************
- *** 42,48 ****
- the s- files to use for them. See s-template.h for documentation on
- writing s- files.
- */
- ! #include "s/s-sunos4shr.h"
-
- /* Include here a m- file that describes the machine and system you use.
- See the file ../etc/MACHINES for a list of machines and the names of
- --- 42,48 ----
- the s- files to use for them. See s-template.h for documentation on
- writing s- files.
- */
- ! #include "s/s-aix3-2.h"
-
- /* Include here a m- file that describes the machine and system you use.
- See the file ../etc/MACHINES for a list of machines and the names of
- ***************
- *** 49,55 ****
- the m- files to use for them. See m-template.h for info on what m-
- files should define.
- */
- ! #include "m/m-sparc.h"
-
- /* Load in the conversion definitions if this system
- needs them and the source file being compiled has not
- --- 49,55 ----
- the m- files to use for them. See m-template.h for info on what m-
- files should define.
- */
- ! #include "m/m-ibmrs6000.h"
-
- /* Load in the conversion definitions if this system
- needs them and the source file being compiled has not
- ***************
- *** 72,79 ****
- #endif
-
- /* Define HAVE_XPM if you have the `xpm' library and want emacs to use it. */
- ! #define HAVE_XPM
-
- /* Define `subprocesses' if you want to have code for asynchronous
- subprocesses (as used in M-x compile and M-x shell). These do not
- work for some USG systems yet; for the ones where they work, the
- --- 72,85 ----
- #endif
-
- /* Define HAVE_XPM if you have the `xpm' library and want emacs to use it. */
- ! /* #define HAVE_XPM */
-
- + /*
- + Define numlock behavior if default is not good. */
- +
- + #define SPECIAL_NUM_LOCK_BEHAVIOR
- + #define NUM_LOCK_MODIFIER Mod5Mask
- +
- /* Define `subprocesses' if you want to have code for asynchronous
- subprocesses (as used in M-x compile and M-x shell). These do not
- work for some USG systems yet; for the ones where they work, the
- ***************
- *** 129,138 ****
- --- 135,146 ----
- If you have trouble with _malloc being multiply-defined, or if you're
- on a NeXT (or possibly MACH in general) comment out the next four lines.
- */
- + /*
- #ifdef SYSTEM_MALLOC
- #undef SYSTEM_MALLOC
- #endif
- #define GNU_MALLOC
- + */
-
- /* The SunOS 4.1 version of localtime() allocates 8 bytes and writes to 9,
- which causes predictably bad problems unless you use the SunOS version
- ***************
- *** 197,203 ****
-
- See the comments in lwlib/Imakefile for more info.
- */
- ! /* #define LWLIB_USES_MOTIF */
- /* #define LWLIB_USES_OLIT */
-
- /* Energize requires Motif. */
- --- 205,211 ----
-
- See the comments in lwlib/Imakefile for more info.
- */
- ! #define LWLIB_USES_MOTIF
- /* #define LWLIB_USES_OLIT */
-
- /* Energize requires Motif. */
- ***************
- *** 214,220 ****
- X libraries aren't in a place that your loader can find on its own,
- you might want to add "-L/..." or something similar. */
-
- ! /* #define LD_SWITCH_SITE -L/x11r4/usr.`arch`/lib */
-
- /* Define C_SWITCH_SITE to contain any special flags your compiler may
- need. For instance, if you've defined HAVE_X_WINDOWS above and your
- --- 222,228 ----
- X libraries aren't in a place that your loader can find on its own,
- you might want to add "-L/..." or something similar. */
-
- ! #define LD_SWITCH_SITE -L/usr/local/lib
-
- /* Define C_SWITCH_SITE to contain any special flags your compiler may
- need. For instance, if you've defined HAVE_X_WINDOWS above and your
- ***************
- *** 221,227 ****
- X include files aren't in a place that your compiler can find on its
- own, you might want to add "-I/..." or something similar. */
-
- ! /* #define C_SWITCH_SITE -I/x11r4/usr/include */
-
- #ifdef USE_GCC
- /* Depending on how GCC is installed, you may need to add the gcc library
- --- 229,235 ----
- X include files aren't in a place that your compiler can find on its
- own, you might want to add "-I/..." or something similar. */
-
- ! /* #define C_SWITCH_SITE -O -Q */
-
- #ifdef USE_GCC
- /* Depending on how GCC is installed, you may need to add the gcc library
- ***************
- *** 241,246 ****
- --- 249,256 ----
- # undef C_OPTIMIZE_SWITCH
- # define C_OPTIMIZE_SWITCH -O4 -Oi -G
- #endif
- +
- + #define C_OPTIMIZE_SWITCH -O -Q
-
- /* If you are using SunOS 4.1.1 and X11r5, then you need this patch.
- There is a stupid bug in the SunOS libc.a: two functions which X11r5
- *** /misc/lucid/lemacs-19.6/src/event-Xt.c-dist Tue Apr 13 11:58:41 1993
- --- /misc/lucid/lemacs-19.6/src/event-Xt.c Tue Apr 13 12:01:36 1993
- ***************
- *** 40,45 ****
- --- 40,49 ----
- static void describe_event ();
- void emacs_Xt_focus_event_handler ();
-
- + #ifdef SPECIAL_NUM_LOCK_BEHAVIOR
- + static void ConvertNumLockKeys ( );
- + #endif
- +
- /* The timestamp of the last button or key event used by emacs itself.
- This is used for asserting selections and input focus. */
- Time mouse_timestamp;
- ***************
- *** 376,381 ****
- --- 380,464 ----
-
- static XComposeStatus *x_compose_status;
-
- + #ifdef SPECIAL_NUM_LOCK_BEHAVIOR
- + static void ConvertNumLockKeys ( KeySym *keysym, XKeyEvent *xKey )
- + {
- + if ( ( xKey->state & NUM_LOCK_MODIFIER ) == NUM_LOCK_MODIFIER ) /* Num Lock is on in here. */
- + {
- + switch ( *keysym ) /* Now, only change keypad keys. */
- + {
- + /*******************************************************************/
- + /* Here we convert keypad keysyms to numeric keysyms. */
- + /*******************************************************************/
- + case XK_KP_0:
- + {
- + *keysym = XK_0;
- + break;
- + }
- +
- + case XK_KP_1:
- + {
- + *keysym = XK_1;
- + break;
- + }
- + case XK_KP_2:
- + {
- + *keysym = XK_2;
- + break;
- + }
- +
- + case XK_KP_3:
- + {
- + *keysym = XK_3;
- + break;
- + }
- +
- + case XK_KP_4:
- + {
- + *keysym = XK_4;
- + break;
- + }
- +
- + case XK_KP_5:
- + {
- + *keysym = XK_5;
- + break;
- + }
- +
- + case XK_KP_6:
- + {
- + *keysym = XK_6;
- + break;
- + }
- +
- + case XK_KP_7:
- + {
- + *keysym = XK_7;
- + break;
- + }
- +
- + case XK_KP_8:
- + {
- + *keysym = XK_8;
- + break;
- + }
- +
- + case XK_KP_9:
- + {
- + *keysym = XK_9;
- + break;
- + }
- +
- + case XK_KP_Decimal:
- + {
- + *keysym = XK_period;
- + break;
- + }
- + }
- + }
- + }
- + #endif
- +
- static Lisp_Object
- x_to_emacs_keysym (event, simple_p)
- XEvent *event;
- ***************
- *** 388,393 ****
- --- 471,480 ----
- XLookupString (&event->xkey, 0, 0, &keysym, x_compose_status);
- UNBLOCK_INPUT;
-
- + #ifdef SPECIAL_NUM_LOCK_BEHAVIOR
- + ConvertNumLockKeys ( &keysym, &event->xkey );
- + #endif
- +
- if (keysym >= XK_exclam && keysym <= XK_asciitilde)
- /* We must assume that the X keysym numbers for the ASCII graphic
- characters are the same as their ASCII codes. */
- =====>8 Cut here and enjoy? 8<=====
- --
- ===============================================================================
- The opinions expressed above are those of Bob Hays and not SPSS, Inc.
- bobhays@spss.com Phone: (312) 329-3529 | "I do not remember the anal probe"
- Fax: (312) 329-3657 | - Passion Fish
-
-