From: tomo Date: Tue, 13 Aug 2002 07:16:22 +0000 (+0000) Subject: XEmacs 21.2.46 "Urania". X-Git-Tag: r21-2-46~1 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3062d425fac0473eb5aa2efc0bb002f6ce0cb028;p=chise%2Fxemacs-chise.git XEmacs 21.2.46 "Urania". --- diff --git a/CHANGES-beta b/CHANGES-beta index a762b32..1fc567c 100644 --- a/CHANGES-beta +++ b/CHANGES-beta @@ -1,3 +1,6 @@ +to 21.2.46 "Urania" +-- GTK code has been merged as an experimental display type -- William Perry + to 21.2.45 "Thelxepeia" -- lib-src Makefile fixes -- Martin Buchholz -- startup path fixes -- Michael Sperber diff --git a/ChangeLog b/ChangeLog index 82e43d8..dc557f1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,52 @@ +2001-03-21 Martin Buchholz + + * XEmacs 21.2.46 "Urania" is released. + +2001-03-19 Andy Piper + + * configure.in: default rel-alloc to off under cygwin + +2001-03-15 Stephen J. Turnbull + + * ChangeLog: Fix CVS commit breakage from GTK merge, log GTK merge. + + * CHANGES-beta: + * configure.in: + Fix gratuitous whitespace changes from GTK merge. + + * configure.usage: Untabify --with-{gtk,gnome}. + +2001-03-15 Stephen J. Turnbull + + * etc/OXYMORONS: New file of 21.4 codenames. + +2001-03-12 Andy Piper + + * configure.in: only pick up mingw directory. + +2001-03-02 Ben Wing + + * info\dir: Update to 21.4; clean up descriptions of manuals; + replace misnomer "Local Packages" with more correct "Other + Documentation". + +2001-03-02 Ben Wing + + * etc\README: sample.emacs -> sample.init.el. + +2001-03-09 William M. Perry + + * CHANGES-beta: + * configure.in: + * configure.usage: + The Great GTK Merge. + +2001-02-23 Andy Piper + + * configure.usage (--with-netinstall): add docs. + + * configure.in: with_netinstall is a new option. Default to off. + 2001-02-23 Martin Buchholz * XEmacs 21.2.45 "Thelxepeia" is released. diff --git a/configure b/configure index 2a4d54f..20d67e3 100755 --- a/configure +++ b/configure @@ -182,7 +182,7 @@ done ac_ext=c xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' -xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' +xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' ac_cpp='$CPP '"$xe_cppflags" ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' @@ -230,6 +230,7 @@ package_path='' etcdir='${datadir}/${instvardir}/etc' archlibdir='${datadir}/${instvardir}/${configuration}' docdir='${archlibdir}' +with_netinstall="no" with_prefix='yes' with_site_lisp='no' with_site_modules='yes' @@ -247,6 +248,8 @@ rel_alloc='default' with_system_malloc='default' with_dlmalloc='default' native_sound_lib='' +with_gtk='no' +with_gnome='no' use_assertions="yes" with_toolbars="" with_tty="" @@ -306,6 +309,8 @@ while test $# != 0; do with_site_modules | \ with_x | \ with_x11 | \ + with_gtk | \ + with_gnome | \ with_msw | \ with_gcc | \ dynamic | \ @@ -345,6 +350,7 @@ while test $# != 0; do with_hesiod | \ with_dnet | \ with_infodock | \ + with_netinstall | \ external_widget | \ verbose | \ extra_verbose | \ @@ -650,7 +656,7 @@ EOF } ;; datadir ) - { test "$extra_verbose" = "yes" && cat << \EOF + { test "$extra_verbose" = "yes" && cat << \EOF Defining INFODIR_USER_DEFINED EOF cat >> confdefs.h <<\EOF @@ -658,7 +664,7 @@ cat >> confdefs.h <<\EOF EOF } - { test "$extra_verbose" = "yes" && cat << \EOF + { test "$extra_verbose" = "yes" && cat << \EOF Defining LISPDIR_USER_DEFINED EOF cat >> confdefs.h <<\EOF @@ -666,7 +672,7 @@ cat >> confdefs.h <<\EOF EOF } - { test "$extra_verbose" = "yes" && cat << \EOF + { test "$extra_verbose" = "yes" && cat << \EOF Defining MODULEDIR_USER_DEFINED EOF cat >> confdefs.h <<\EOF @@ -731,10 +737,11 @@ EOF a | at | ath | athe | athen | athena ) val=athena ;; n | no | non | none ) val=no ;; y | ye | yes ) val=yes ;; - m | ms | msw ) val=msw ;; + g | gt | gtk ) val=gtk ;; + m | ms | msw ) val=msw ;; * ) (echo "$progname: Usage error:" echo " " "The \`--$optname' option must have one of these values: - \`lucid', \`motif', \`athena', \`yes', or \`no'." + \`gtk\', \`lucid', \`motif', \`athena', \`yes', or \`no'." echo " Use \`$progname --help' to show usage.") >&2 && exit 1 ;; esac eval "$opt=\"$val\"" @@ -836,7 +843,7 @@ echo " Use \`$progname --help' to show usage.") >&2 && exit 1 fi echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 -echo "configure:840: checking whether ln -s works" >&5 +echo "configure:847: checking whether ln -s works" >&5 rm -f conftestdata if ln -s X conftestdata 2>/dev/null @@ -1101,7 +1108,7 @@ EOF echo $ac_n "checking "host system type"""... $ac_c" 1>&6 -echo "configure:1105: checking "host system type"" >&5 +echo "configure:1112: checking "host system type"" >&5 internal_configuration=`echo $configuration | sed 's/-\(workshop\)//'` canonical=`${CONFIG_SHELL-/bin/sh} $srcdir/config.sub "$internal_configuration"` configuration=`echo "$configuration" | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'` @@ -1615,7 +1622,7 @@ xe_save_CFLAGS="$CFLAGS" # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1619: checking for $ac_word" >&5 +echo "configure:1626: checking for $ac_word" >&5 if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. @@ -1642,7 +1649,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1646: checking for $ac_word" >&5 +echo "configure:1653: checking for $ac_word" >&5 if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. @@ -1690,7 +1697,7 @@ fi # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1694: checking for $ac_word" >&5 +echo "configure:1701: checking for $ac_word" >&5 if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. @@ -1719,12 +1726,12 @@ fi fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:1723: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:1730: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' -xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' +xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' ac_cpp='$CPP '"$xe_cppflags" ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' @@ -1732,12 +1739,12 @@ cross_compiling=no cat > conftest.$ac_ext << EOF -#line 1736 "configure" +#line 1743 "configure" #include "confdefs.h" main(){return(0);} EOF -if { (eval echo configure:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -1754,7 +1761,7 @@ rm -fr conftest* ac_ext=c xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' -xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' +xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' ac_cpp='$CPP '"$xe_cppflags" ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' @@ -1765,19 +1772,19 @@ if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:1769: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:1776: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:1774: checking whether we are using GNU C" >&5 +echo "configure:1781: checking whether we are using GNU C" >&5 cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -1795,7 +1802,7 @@ ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:1799: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:1806: checking whether ${CC-cc} accepts -g" >&5 echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then @@ -1828,7 +1835,7 @@ if test "$with_gcc" = "no" -a "$GCC" = "yes"; then # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1832: checking for $ac_word" >&5 +echo "configure:1839: checking for $ac_word" >&5 if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. @@ -1855,7 +1862,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1859: checking for $ac_word" >&5 +echo "configure:1866: checking for $ac_word" >&5 if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. @@ -1903,7 +1910,7 @@ fi # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1907: checking for $ac_word" >&5 +echo "configure:1914: checking for $ac_word" >&5 if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. @@ -1932,12 +1939,12 @@ fi fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:1936: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:1943: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' -xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' +xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' ac_cpp='$CPP '"$xe_cppflags" ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' @@ -1945,12 +1952,12 @@ cross_compiling=no cat > conftest.$ac_ext << EOF -#line 1949 "configure" +#line 1956 "configure" #include "confdefs.h" main(){return(0);} EOF -if { (eval echo configure:1954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:1961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -1967,7 +1974,7 @@ rm -fr conftest* ac_ext=c xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' -xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' +xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' ac_cpp='$CPP '"$xe_cppflags" ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' @@ -1978,19 +1985,19 @@ if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:1982: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:1989: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:1987: checking whether we are using GNU C" >&5 +echo "configure:1994: checking whether we are using GNU C" >&5 cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -2008,7 +2015,7 @@ ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:2012: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:2019: checking whether ${CC-cc} accepts -g" >&5 echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then @@ -2041,7 +2048,7 @@ elif test "$with_gcc" = "yes" -a "$GCC" != "yes" ; then # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2045: checking for $ac_word" >&5 +echo "configure:2052: checking for $ac_word" >&5 if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. @@ -2068,7 +2075,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2072: checking for $ac_word" >&5 +echo "configure:2079: checking for $ac_word" >&5 if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. @@ -2116,7 +2123,7 @@ fi # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2120: checking for $ac_word" >&5 +echo "configure:2127: checking for $ac_word" >&5 if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. @@ -2145,12 +2152,12 @@ fi fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:2149: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:2156: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' -xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' +xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' ac_cpp='$CPP '"$xe_cppflags" ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' @@ -2158,12 +2165,12 @@ cross_compiling=no cat > conftest.$ac_ext << EOF -#line 2162 "configure" +#line 2169 "configure" #include "confdefs.h" main(){return(0);} EOF -if { (eval echo configure:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -2180,7 +2187,7 @@ rm -fr conftest* ac_ext=c xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' -xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' +xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' ac_cpp='$CPP '"$xe_cppflags" ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' @@ -2191,19 +2198,19 @@ if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:2195: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:2202: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:2200: checking whether we are using GNU C" >&5 +echo "configure:2207: checking whether we are using GNU C" >&5 cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -2221,7 +2228,7 @@ ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:2225: checking whether ${CC-cc} accepts -g" >&5 +echo "configure:2232: checking whether ${CC-cc} accepts -g" >&5 echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then @@ -2258,7 +2265,7 @@ test -n "$CPP" -a -d "$CPP" && CPP= test -n "$NON_GNU_CPP" -a "$GCC" != "yes" -a -z "$CPP" && CPP="$NON_GNU_CPP" echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:2262: checking how to run the C preprocessor" >&5 +echo "configure:2269: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -2271,13 +2278,13 @@ if test -z "$CPP"; then # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -2288,13 +2295,13 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -2305,13 +2312,13 @@ else rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : @@ -2337,9 +2344,9 @@ echo "$ac_t""$CPP" 1>&6 echo $ac_n "checking for AIX""... $ac_c" 1>&6 -echo "configure:2341: checking for AIX" >&5 +echo "configure:2348: checking for AIX" >&5 cat > conftest.$ac_ext <&6 -echo "configure:2370: checking for GNU libc" >&5 +echo "configure:2377: checking for GNU libc" >&5 cat > conftest.$ac_ext < int main() { @@ -2380,7 +2387,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:2384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* have_glibc=yes else @@ -2457,7 +2464,7 @@ EOF esac cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 +if { (eval echo configure:2482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 then : else @@ -2691,7 +2698,7 @@ case "$opsys" in mingw* | cygwin*) cygwin_include=`eval "gcc -print-file-name=libc.a"` ; cygwin_include=`eval "dirname $cygwin_include"` ; cygwin_include="-I$cygwin_include/../include" ; - extra_includes="$cygwin_include/mingw32 $cygwin_include/mingw $cygwin_include" ; + extra_includes="$cygwin_include/mingw $cygwin_include" ; case "$opsys" in mingw*) c_switch_system="$c_switch_system $extra_includes" && if test "$extra_verbose" = "yes"; then echo " Appending \"$extra_includes\" to \$c_switch_system"; fi ;; esac @@ -2705,17 +2712,17 @@ test "$__DECC" = "yes" && c_switch_site="$c_switch_site -std1" && if test "$ext if test "$__USLC__" = yes; then echo $ac_n "checking for whether the -Kalloca compiler flag is needed""... $ac_c" 1>&6 -echo "configure:2709: checking for whether the -Kalloca compiler flag is needed" >&5 +echo "configure:2716: checking for whether the -Kalloca compiler flag is needed" >&5 need_kalloca=no cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* : else @@ -2726,14 +2733,14 @@ else xe_save_c_switch_system="$c_switch_system" c_switch_system="$c_switch_system -Kalloca" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* need_kalloca=yes else @@ -2767,7 +2774,7 @@ fi if test "$GCC" = "yes"; then echo $ac_n "checking for buggy gcc versions""... $ac_c" 1>&6 -echo "configure:2771: checking for buggy gcc versions" >&5 +echo "configure:2778: checking for buggy gcc versions" >&5 GCC_VERSION=`$CC --version` case `uname -s`:`uname -m`:$GCC_VERSION in *:sun4*:2.8.1|*:sun4*:egcs-2.90.*) @@ -2890,7 +2897,7 @@ test "$pdump" = "yes" && extra_objs="$extra_objs dumper.o" && if test "$extra_v fi echo $ac_n "checking for dynodump""... $ac_c" 1>&6 -echo "configure:2894: checking for dynodump" >&5 +echo "configure:2901: checking for dynodump" >&5 if test "$unexec" != "unexsol2.o"; then echo "$ac_t""no" 1>&6 else @@ -2928,12 +2935,12 @@ if test "$unexec" = "unexaix.o"; then done echo $ac_n "checking for terminateAndUnload in -lC""... $ac_c" 1>&6 -echo "configure:2932: checking for terminateAndUnload in -lC" >&5 +echo "configure:2939: checking for terminateAndUnload in -lC" >&5 ac_lib_var=`echo C'_'terminateAndUnload | sed 'y%./+-%__p_%'` xe_check_libs=" -lC " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -3052,7 +3059,7 @@ fi if test "$add_runtime_path" = "yes"; then echo $ac_n "checking "for runtime libraries flag"""... $ac_c" 1>&6 -echo "configure:3056: checking "for runtime libraries flag"" >&5 +echo "configure:3063: checking "for runtime libraries flag"" >&5 case "$opsys" in sol2 ) dash_r="-R" ;; decosf* | linux* | irix*) dash_r="-rpath " ;; @@ -3074,14 +3081,14 @@ if test "$GCC" = "yes"; then done fi cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* dash_r="$try_dash_r" else @@ -3182,10 +3189,10 @@ else fi after_morecore_hook_exists=yes echo $ac_n "checking for malloc_set_state""... $ac_c" 1>&6 -echo "configure:3186: checking for malloc_set_state" >&5 +echo "configure:3193: checking for malloc_set_state" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_malloc_set_state=yes" else @@ -3228,16 +3235,16 @@ doug_lea_malloc=no fi echo $ac_n "checking whether __after_morecore_hook exists""... $ac_c" 1>&6 -echo "configure:3232: checking whether __after_morecore_hook exists" >&5 +echo "configure:3239: checking whether __after_morecore_hook exists" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "$ac_t""yes" 1>&6 else @@ -3293,7 +3300,7 @@ fi # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3297: checking for $ac_word" >&5 +echo "configure:3304: checking for $ac_word" >&5 if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. @@ -3348,7 +3355,7 @@ ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:3352: checking for a BSD compatible install" >&5 +echo "configure:3359: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" @@ -3402,7 +3409,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3406: checking for $ac_word" >&5 +echo "configure:3413: checking for $ac_word" >&5 if test -n "$YACC"; then ac_cv_prog_YACC="$YACC" # Let the user override the test. @@ -3434,15 +3441,15 @@ for ac_hdr in a.out.h elf.h cygwin/version.h fcntl.h inttypes.h libg do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:3438: checking for $ac_hdr" >&5 +echo "configure:3445: checking for $ac_hdr" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3472,10 +3479,10 @@ fi done echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 -echo "configure:3476: checking for sys/wait.h that is POSIX.1 compatible" >&5 +echo "configure:3483: checking for sys/wait.h that is POSIX.1 compatible" >&5 cat > conftest.$ac_ext < #include @@ -3491,7 +3498,7 @@ wait (&s); s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; ; return 0; } EOF -if { (eval echo configure:3495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_sys_wait_h=yes else @@ -3515,10 +3522,10 @@ EOF fi echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 -echo "configure:3519: checking for ANSI C header files" >&5 +echo "configure:3526: checking for ANSI C header files" >&5 cat > conftest.$ac_ext < #include @@ -3526,7 +3533,7 @@ cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -3543,7 +3550,7 @@ rm -f conftest* if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -3561,7 +3568,7 @@ fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat > conftest.$ac_ext < EOF @@ -3579,7 +3586,7 @@ fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. cat > conftest.$ac_ext < #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') @@ -3590,7 +3597,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); exit (0); } EOF -if { (eval echo configure:3594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 +if { (eval echo configure:3601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 then : else @@ -3616,10 +3623,10 @@ EOF fi echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 -echo "configure:3620: checking whether time.h and sys/time.h may both be included" >&5 +echo "configure:3627: checking whether time.h and sys/time.h may both be included" >&5 cat > conftest.$ac_ext < #include @@ -3628,7 +3635,7 @@ int main() { struct tm *tp; ; return 0; } EOF -if { (eval echo configure:3632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_header_time=yes else @@ -3652,10 +3659,10 @@ EOF fi echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6 -echo "configure:3656: checking for sys_siglist declaration in signal.h or unistd.h" >&5 +echo "configure:3663: checking for sys_siglist declaration in signal.h or unistd.h" >&5 cat > conftest.$ac_ext < #include @@ -3667,7 +3674,7 @@ int main() { char *msg = *(sys_siglist + 1); ; return 0; } EOF -if { (eval echo configure:3671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_decl_sys_siglist=yes else @@ -3693,9 +3700,9 @@ fi echo $ac_n "checking for utime""... $ac_c" 1>&6 -echo "configure:3697: checking for utime" >&5 +echo "configure:3704: checking for utime" >&5 cat > conftest.$ac_ext < #include @@ -3703,7 +3710,7 @@ int main() { struct utimbuf x; x.actime = x.modtime = 0; utime ("/", &x); ; return 0; } EOF -if { (eval echo configure:3707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 { test "$extra_verbose" = "yes" && cat << \EOF @@ -3722,10 +3729,10 @@ else for ac_func in utimes do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:3726: checking for $ac_func" >&5 +echo "configure:3733: checking for $ac_func" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:3759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -3780,10 +3787,10 @@ rm -f conftest* echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 -echo "configure:3784: checking return type of signal handlers" >&5 +echo "configure:3791: checking return type of signal handlers" >&5 cat > conftest.$ac_ext < #include @@ -3800,7 +3807,7 @@ int main() { int i; ; return 0; } EOF -if { (eval echo configure:3804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:3811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_type_signal=void else @@ -3822,10 +3829,10 @@ EOF echo $ac_n "checking for size_t""... $ac_c" 1>&6 -echo "configure:3826: checking for size_t" >&5 +echo "configure:3833: checking for size_t" >&5 cat > conftest.$ac_ext < #if STDC_HEADERS @@ -3856,10 +3863,10 @@ EOF fi echo $ac_n "checking for pid_t""... $ac_c" 1>&6 -echo "configure:3860: checking for pid_t" >&5 +echo "configure:3867: checking for pid_t" >&5 cat > conftest.$ac_ext < #if STDC_HEADERS @@ -3890,10 +3897,10 @@ EOF fi echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 -echo "configure:3894: checking for uid_t in sys/types.h" >&5 +echo "configure:3901: checking for uid_t in sys/types.h" >&5 cat > conftest.$ac_ext < EOF @@ -3929,10 +3936,10 @@ EOF fi echo $ac_n "checking for mode_t""... $ac_c" 1>&6 -echo "configure:3933: checking for mode_t" >&5 +echo "configure:3940: checking for mode_t" >&5 cat > conftest.$ac_ext < #if STDC_HEADERS @@ -3963,10 +3970,10 @@ EOF fi echo $ac_n "checking for off_t""... $ac_c" 1>&6 -echo "configure:3967: checking for off_t" >&5 +echo "configure:3974: checking for off_t" >&5 cat > conftest.$ac_ext < #if STDC_HEADERS @@ -3997,10 +4004,10 @@ EOF fi echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 -echo "configure:4001: checking for ssize_t" >&5 +echo "configure:4008: checking for ssize_t" >&5 cat > conftest.$ac_ext < #if STDC_HEADERS @@ -4032,9 +4039,9 @@ fi echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 -echo "configure:4036: checking for socklen_t" >&5 +echo "configure:4043: checking for socklen_t" >&5 cat > conftest.$ac_ext < socklen_t x; @@ -4043,7 +4050,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:4047: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 else @@ -4052,7 +4059,7 @@ else rm -rf conftest* cat > conftest.$ac_ext < int accept (int, struct sockaddr *, size_t *); @@ -4061,7 +4068,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:4065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""size_t" 1>&6 @@ -4093,9 +4100,9 @@ fi rm -f conftest* echo $ac_n "checking for struct timeval""... $ac_c" 1>&6 -echo "configure:4097: checking for struct timeval" >&5 +echo "configure:4104: checking for struct timeval" >&5 cat > conftest.$ac_ext < @@ -4111,7 +4118,7 @@ int main() { static struct timeval x; x.tv_sec = x.tv_usec; ; return 0; } EOF -if { (eval echo configure:4115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 HAVE_TIMEVAL=yes @@ -4133,10 +4140,10 @@ fi rm -f conftest* echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 -echo "configure:4137: checking whether struct tm is in sys/time.h or time.h" >&5 +echo "configure:4144: checking whether struct tm is in sys/time.h or time.h" >&5 cat > conftest.$ac_ext < #include @@ -4144,7 +4151,7 @@ int main() { struct tm *tp; tp->tm_sec; ; return 0; } EOF -if { (eval echo configure:4148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_tm=time.h else @@ -4168,10 +4175,10 @@ EOF fi echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6 -echo "configure:4172: checking for tm_zone in struct tm" >&5 +echo "configure:4179: checking for tm_zone in struct tm" >&5 cat > conftest.$ac_ext < #include <$ac_cv_struct_tm> @@ -4179,7 +4186,7 @@ int main() { struct tm tm; tm.tm_zone; ; return 0; } EOF -if { (eval echo configure:4183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_struct_tm_zone=yes else @@ -4202,10 +4209,10 @@ EOF else echo $ac_n "checking for tzname""... $ac_c" 1>&6 -echo "configure:4206: checking for tzname" >&5 +echo "configure:4213: checking for tzname" >&5 cat > conftest.$ac_ext < #ifndef tzname /* For SGI. */ @@ -4215,7 +4222,7 @@ int main() { atoi(*tzname); ; return 0; } EOF -if { (eval echo configure:4219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_var_tzname=yes else @@ -4241,10 +4248,10 @@ fi echo $ac_n "checking for working const""... $ac_c" 1>&6 -echo "configure:4245: checking for working const" >&5 +echo "configure:4252: checking for working const" >&5 cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_const=yes else @@ -4318,7 +4325,7 @@ fi echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 -echo "configure:4322: checking whether ${MAKE-make} sets \${MAKE}" >&5 +echo "configure:4329: checking whether ${MAKE-make} sets \${MAKE}" >&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` cat > conftestmake <<\EOF @@ -4343,12 +4350,12 @@ fi echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 -echo "configure:4347: checking whether byte ordering is bigendian" >&5 +echo "configure:4354: checking whether byte ordering is bigendian" >&5 ac_cv_c_bigendian=unknown # See if sys/param.h defines the BYTE_ORDER macro. cat > conftest.$ac_ext < #include @@ -4359,11 +4366,11 @@ int main() { #endif ; return 0; } EOF -if { (eval echo configure:4363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* # It does; now see whether it defined to BIG_ENDIAN or not. cat > conftest.$ac_ext < #include @@ -4374,7 +4381,7 @@ int main() { #endif ; return 0; } EOF -if { (eval echo configure:4378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_bigendian=yes else @@ -4391,7 +4398,7 @@ fi rm -f conftest* if test $ac_cv_c_bigendian = unknown; then cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 +if { (eval echo configure:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 then ac_cv_c_bigendian=no else @@ -4431,10 +4438,10 @@ fi echo $ac_n "checking size of short""... $ac_c" 1>&6 -echo "configure:4435: checking size of short" >&5 +echo "configure:4442: checking size of short" >&5 cat > conftest.$ac_ext < main() @@ -4445,7 +4452,7 @@ main() exit(0); } EOF -if { (eval echo configure:4449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 +if { (eval echo configure:4456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 then ac_cv_sizeof_short=`cat conftestval` else @@ -4473,10 +4480,10 @@ if test "$ac_cv_sizeof_short" = 0; then exit 1 fi echo $ac_n "checking size of int""... $ac_c" 1>&6 -echo "configure:4477: checking size of int" >&5 +echo "configure:4484: checking size of int" >&5 cat > conftest.$ac_ext < main() @@ -4487,7 +4494,7 @@ main() exit(0); } EOF -if { (eval echo configure:4491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 +if { (eval echo configure:4498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 then ac_cv_sizeof_int=`cat conftestval` else @@ -4509,10 +4516,10 @@ EOF echo $ac_n "checking size of long""... $ac_c" 1>&6 -echo "configure:4513: checking size of long" >&5 +echo "configure:4520: checking size of long" >&5 cat > conftest.$ac_ext < main() @@ -4523,7 +4530,7 @@ main() exit(0); } EOF -if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 +if { (eval echo configure:4534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 then ac_cv_sizeof_long=`cat conftestval` else @@ -4545,10 +4552,10 @@ EOF echo $ac_n "checking size of long long""... $ac_c" 1>&6 -echo "configure:4549: checking size of long long" >&5 +echo "configure:4556: checking size of long long" >&5 cat > conftest.$ac_ext < main() @@ -4559,7 +4566,7 @@ main() exit(0); } EOF -if { (eval echo configure:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 +if { (eval echo configure:4570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 then ac_cv_sizeof_long_long=`cat conftestval` else @@ -4581,10 +4588,10 @@ EOF echo $ac_n "checking size of void *""... $ac_c" 1>&6 -echo "configure:4585: checking size of void *" >&5 +echo "configure:4592: checking size of void *" >&5 cat > conftest.$ac_ext < main() @@ -4595,7 +4602,7 @@ main() exit(0); } EOF -if { (eval echo configure:4599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 +if { (eval echo configure:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 then ac_cv_sizeof_void_p=`cat conftestval` else @@ -4618,7 +4625,7 @@ EOF echo $ac_n "checking for long file names""... $ac_c" 1>&6 -echo "configure:4622: checking for long file names" >&5 +echo "configure:4629: checking for long file names" >&5 ac_cv_sys_long_file_names=yes # Test for long file names in all the places we know might matter: @@ -4664,10 +4671,10 @@ fi echo $ac_n "checking for sin""... $ac_c" 1>&6 -echo "configure:4668: checking for sin" >&5 +echo "configure:4675: checking for sin" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_sin=yes" else @@ -4708,12 +4715,12 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6 -echo "configure:4712: checking for sin in -lm" >&5 +echo "configure:4719: checking for sin in -lm" >&5 ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'` xe_check_libs=" -lm " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4768,14 +4775,14 @@ EOF cat > conftest.$ac_ext < int main() { return atanh(1.0) + asinh(1.0) + acosh(1.0); ; return 0; } EOF -if { (eval echo configure:4779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* { test "$extra_verbose" = "yes" && cat << \EOF Defining HAVE_INVERSE_HYPERBOLIC @@ -4792,14 +4799,14 @@ fi rm -f conftest* echo "checking type of mail spool file locking" 1>&6 -echo "configure:4796: checking type of mail spool file locking" >&5 +echo "configure:4803: checking type of mail spool file locking" >&5 for ac_func in lockf flock do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4800: checking for $ac_func" >&5 +echo "configure:4807: checking for $ac_func" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -4904,12 +4911,12 @@ test "$mail_locking" = "locking" -a "$ac_cv_func_locking" != "yes" && \ case "$opsys" in decosf*) echo $ac_n "checking for cma_open in -lpthreads""... $ac_c" 1>&6 -echo "configure:4908: checking for cma_open in -lpthreads" >&5 +echo "configure:4915: checking for cma_open in -lpthreads" >&5 ac_lib_var=`echo pthreads'_'cma_open | sed 'y%./+-%__p_%'` xe_check_libs=" -lpthreads " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4956,7 +4963,7 @@ fi esac echo $ac_n "checking whether the -xildoff compiler flag is required""... $ac_c" 1>&6 -echo "configure:4960: checking whether the -xildoff compiler flag is required" >&5 +echo "configure:4967: checking whether the -xildoff compiler flag is required" >&5 if ${CC-cc} '-###' -xildon no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then if ${CC-cc} '-###' -xildoff no_such_file.c 2>&1 | grep '^[^ ]*/ild ' > /dev/null ; then echo "$ac_t""no" 1>&6; @@ -4968,7 +4975,7 @@ fi if test "$opsys" = "sol2"; then if test "$os_release" -ge 56; then echo $ac_n "checking for \"-z ignore\" linker flag""... $ac_c" 1>&6 -echo "configure:4972: checking for \"-z ignore\" linker flag" >&5 +echo "configure:4979: checking for \"-z ignore\" linker flag" >&5 case "`ld -h 2>&1`" in *-z\ ignore\|record* ) echo "$ac_t""yes" 1>&6 ld_switch_site="-z ignore $ld_switch_site" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-z ignore\" to \$ld_switch_site"; fi ;; @@ -4979,7 +4986,427 @@ fi echo "checking "for specified window system"" 1>&6 -echo "configure:4983: checking "for specified window system"" >&5 +echo "configure:4990: checking "for specified window system"" >&5 + + +GNOME_CONFIG=no +GTK_CONFIG=no + +if test "$with_gnome" != "no"; then + echo $ac_n "checking for GNOME configuration script""... $ac_c" 1>&6 +echo "configure:4998: checking for GNOME configuration script" >&5 + for possible in gnome-config + do + possible_version=`${possible} --version 2> /dev/null` + if test "x${possible_version}" != "x"; then + GNOME_CONFIG="${possible}" + with_gnome=yes + with_gtk=yes + break + fi + done + echo "$ac_t""${GNOME_CONFIG}" 1>&6 +fi + +if test "${GNOME_CONFIG}" != "no"; then + GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui` + GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui` + { test "$extra_verbose" = "yes" && cat << \EOF + Defining HAVE_GNOME +EOF +cat >> confdefs.h <<\EOF +#define HAVE_GNOME 1 +EOF +} + + libs_gtk="$libs_gtk ${GNOME_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_LIBS}\" to \$libs_gtk"; fi + c_switch_gtk="$c_switch_gtk ${GNOME_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GNOME_CFLAGS}\" to \$c_switch_gtk"; fi +fi + +if test "$with_gtk" != "no";then + echo $ac_n "checking for GTK configuration script""... $ac_c" 1>&6 +echo "configure:5029: checking for GTK configuration script" >&5 + for possible in gtk12-config gtk14-config gtk-config + do + possible_version=`${possible} --version 2> /dev/null` + if test "x${possible_version}" != "x"; then + GTK_CONFIG="${possible}" + fi + case "${possible_version}" in + 1.0.*) echo "configure: warning: GTK 1.2 is required, please upgrade your version of GTK." 1>&2; with_gtk=no;; + 1.3.*) echo "configure: warning: GTK 1.3 is not supported right now" 1>&2; with_gtk=no;; + 1.2.*) + with_gtk=yes + break + ;; + *) echo "configure: warning: Found unsupported version of GTK: $possible_version" 1>&2;; + esac + done + echo "$ac_t""${GTK_CONFIG}" 1>&6 +fi + +if test "${GTK_CONFIG}" != "no"; then + echo $ac_n "checking gtk version""... $ac_c" 1>&6 +echo "configure:5051: checking gtk version" >&5 + GTK_VERSION=`${GTK_CONFIG} --version` + echo "$ac_t""${GTK_VERSION}" 1>&6 + + echo $ac_n "checking gtk libs""... $ac_c" 1>&6 +echo "configure:5056: checking gtk libs" >&5 + GTK_LIBS=`${GTK_CONFIG} --libs` + libs_gtk="$libs_gtk ${GTK_LIBS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_LIBS}\" to \$libs_gtk"; fi + echo "$ac_t""${GTK_LIBS}" 1>&6 + + echo $ac_n "checking gtk cflags""... $ac_c" 1>&6 +echo "configure:5062: checking gtk cflags" >&5 + GTK_CFLAGS=`${GTK_CONFIG} --cflags` + c_switch_gtk="$c_switch_gtk ${GTK_CFLAGS}" && if test "$extra_verbose" = "yes"; then echo " Appending \"${GTK_CFLAGS}\" to \$c_switch_gtk"; fi + echo "$ac_t""${GTK_CFLAGS}" 1>&6 + + +echo $ac_n "checking for main in -lgdk_imlib""... $ac_c" 1>&6 +echo "configure:5069: checking for main in -lgdk_imlib" >&5 +ac_lib_var=`echo gdk_imlib'_'main | sed 'y%./+-%__p_%'` + +xe_check_libs=" -lgdk_imlib " +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +xe_check_libs="" + +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then + echo "$ac_t""yes" 1>&6 + libs_gtk="-lgdk_imlib $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lgdk_imlib\" to \$libs_gtk"; fi +else + echo "$ac_t""no" 1>&6 +fi + + + +echo $ac_n "checking for Imlib_init in -lImlib""... $ac_c" 1>&6 +echo "configure:5103: checking for Imlib_init in -lImlib" >&5 +ac_lib_var=`echo Imlib'_'Imlib_init | sed 'y%./+-%__p_%'` + +xe_check_libs=" -lImlib " +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +xe_check_libs="" + +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then + echo "$ac_t""yes" 1>&6 + libs_gtk="$libs_gtk -lImlib" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lImlib\" to \$libs_gtk"; fi +else + echo "$ac_t""no" 1>&6 +fi + + + for ac_func in gdk_imlib_init +do +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 +echo "configure:5142: checking for $ac_func" >&5 + +cat > conftest.$ac_ext < +/* Override any gcc2 internal prototype to avoid an error. */ +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char $ac_func(); + +int main() { + +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_$ac_func) || defined (__stub___$ac_func) +choke me +#else +$ac_func(); +#endif + +; return 0; } +EOF +if { (eval echo configure:5168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_func_$ac_func=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_func_$ac_func=no" +fi +rm -f conftest* + +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` + { test "$extra_verbose" = "yes" && cat << EOF + Defining $ac_tr_func +EOF +cat >> confdefs.h <&6 +fi +done + + + { test "$extra_verbose" = "yes" && cat << \EOF + Defining HAVE_XPM +EOF +cat >> confdefs.h <<\EOF +#define HAVE_XPM 1 +EOF +} + + { test "$extra_verbose" = "yes" && cat << \EOF + Defining HAVE_GTK +EOF +cat >> confdefs.h <<\EOF +#define HAVE_GTK 1 +EOF +} + + + + window_system=gtk + with_gtk=yes + with_x11=no + + test "${with_scrollbars}" != "no" && with_scrollbars=gtk + test "${with_toolbars}" != no && with_toolbars=gtk + test "${with_menubars}" != "no" && with_menubars=gtk + test "${with_dialogs}" != "no" && with_dialogs=gtk + test "${with_widgets}" != "no" && with_widgets=gtk + + extra_objs="$extra_objs console-gtk.o device-gtk.o event-gtk.o frame-gtk.o" && if test "$extra_verbose" = "yes"; then + echo " xemacs will be linked with \"console-gtk.o device-gtk.o event-gtk.o frame-gtk.o\"" + fi + extra_objs="$extra_objs objects-gtk.o redisplay-gtk.o glyphs-gtk.o" && if test "$extra_verbose" = "yes"; then + echo " xemacs will be linked with \"objects-gtk.o redisplay-gtk.o glyphs-gtk.o\"" + fi + extra_objs="$extra_objs select-gtk.o gccache-gtk.o" && if test "$extra_verbose" = "yes"; then + echo " xemacs will be linked with \"select-gtk.o gccache-gtk.o\"" + fi + extra_objs="$extra_objs gtk-xemacs.o ui-gtk.o" && if test "$extra_verbose" = "yes"; then + echo " xemacs will be linked with \"gtk-xemacs.o ui-gtk.o\"" + fi + + OLD_CFLAGS="${CFLAGS}" + OLD_LDFLAGS="${LDFLAGS}" + CFLAGS="${GTK_CFLAGS} ${CFLAGS}" + LDFLAGS="${LDFLAGS} ${GTK_LIBS}" + for ac_hdr in glade/glade.h glade.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 +echo "configure:5245: checking for $ac_hdr" >&5 + +cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:5253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` + { test "$extra_verbose" = "yes" && cat << EOF + Defining $ac_tr_hdr +EOF +cat >> confdefs.h <&6 +fi +done + + +echo $ac_n "checking for main in -lxml""... $ac_c" 1>&6 +echo "configure:5284: checking for main in -lxml" >&5 +ac_lib_var=`echo xml'_'main | sed 'y%./+-%__p_%'` + +xe_check_libs=" -lxml " +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +xe_check_libs="" + +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then + echo "$ac_t""yes" 1>&6 + libs_gtk="-lxml $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lxml\" to \$libs_gtk"; fi +else + echo "$ac_t""no" 1>&6 +fi + + + +echo $ac_n "checking for main in -lglade""... $ac_c" 1>&6 +echo "configure:5318: checking for main in -lglade" >&5 +ac_lib_var=`echo glade'_'main | sed 'y%./+-%__p_%'` + +xe_check_libs=" -lglade " +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +xe_check_libs="" + +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then + echo "$ac_t""yes" 1>&6 + libs_gtk="-lglade $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade\" to \$libs_gtk"; fi +else + echo "$ac_t""no" 1>&6 +fi + + + +echo $ac_n "checking for main in -lglade-gnome""... $ac_c" 1>&6 +echo "configure:5352: checking for main in -lglade-gnome" >&5 +ac_lib_var=`echo glade-gnome'_'main | sed 'y%./+-%__p_%'` + +xe_check_libs=" -lglade-gnome " +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +xe_check_libs="" + +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then + echo "$ac_t""yes" 1>&6 + libs_gtk="-lglade-gnome $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lglade-gnome\" to \$libs_gtk"; fi +else + echo "$ac_t""no" 1>&6 +fi + + + cat > conftest.$ac_ext < +EOF +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | + egrep "char \*txtdomain;" >/dev/null 2>&1; then + rm -rf conftest* + echo "$ac_t""yes" 1>&6 + { test "$extra_verbose" = "yes" && cat << \EOF + Defining LIBGLADE_XML_TXTDOMAIN = 1 +EOF +cat >> confdefs.h <<\EOF +#define LIBGLADE_XML_TXTDOMAIN 1 +EOF +} + +else + rm -rf conftest* + echo "$ac_t""no" 1>&6 +fi +rm -f conftest* + + CFLAGS="${OLD_CFLAGS}" + LDFLAGS="${OLD_LDFLAGS}" +fi + if test "$with_x11" != "no"; then test "$x_includes $x_libraries" != "NONE NONE" && \ @@ -5012,7 +5439,7 @@ if test "$with_x11" != "no"; then # Uses ac_ vars as temps to allow command line to override cache and checks. # --without-x overrides everything else, but does not touch the cache. echo $ac_n "checking for X""... $ac_c" 1>&6 -echo "configure:5016: checking for X" >&5 +echo "configure:5443: checking for X" >&5 # Check whether --with-x or --without-x was given. if test "${with_x+set}" = set; then @@ -5072,12 +5499,12 @@ if test "$ac_x_includes" = NO; then # First, try using that file with no special directory specified. cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:5508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -5146,14 +5573,14 @@ if test "$ac_x_libraries" = NO; then ac_save_LIBS="$LIBS" LIBS="-l$x_direct_test_library $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* LIBS="$ac_save_LIBS" # We can link X programs with no special library path. @@ -5262,17 +5689,17 @@ else case "`(uname -sr) 2>/dev/null`" in "SunOS 5"*) echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 -echo "configure:5266: checking whether -R must be followed by a space" >&5 +echo "configure:5693: checking whether -R must be followed by a space" >&5 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_R_nospace=yes else @@ -5288,14 +5715,14 @@ rm -f conftest* else LIBS="$ac_xsave_LIBS -R $x_libraries" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_R_space=yes else @@ -5331,12 +5758,12 @@ ac_cv_lib_dnet_dnet_ntoa=no else echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 -echo "configure:5335: checking for dnet_ntoa in -ldnet" >&5 +echo "configure:5762: checking for dnet_ntoa in -ldnet" >&5 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` xe_check_libs=" -ldnet " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5371,12 +5798,12 @@ fi if test $ac_cv_lib_dnet_dnet_ntoa = no; then echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 -echo "configure:5375: checking for dnet_ntoa in -ldnet_stub" >&5 +echo "configure:5802: checking for dnet_ntoa in -ldnet_stub" >&5 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` xe_check_libs=" -ldnet_stub " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5416,10 +5843,10 @@ fi # The nsl library prevents programs from opening the X display # on Irix 5.2, according to dickey@clark.net. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 -echo "configure:5420: checking for gethostbyname" >&5 +echo "configure:5847: checking for gethostbyname" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_gethostbyname=yes" else @@ -5463,12 +5890,12 @@ fi if test $ac_cv_func_gethostbyname = no; then echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 -echo "configure:5467: checking for gethostbyname in -lnsl" >&5 +echo "configure:5894: checking for gethostbyname in -lnsl" >&5 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` xe_check_libs=" -lnsl " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5509,10 +5936,10 @@ fi # -lsocket must be given before -lnsl if both are needed. # We assume that if connect needs -lnsl, so does gethostbyname. echo $ac_n "checking for connect""... $ac_c" 1>&6 -echo "configure:5513: checking for connect" >&5 +echo "configure:5940: checking for connect" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:5966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_connect=yes" else @@ -5558,12 +5985,12 @@ fi xe_msg_checking="for connect in -lsocket" test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 -echo "configure:5562: checking "$xe_msg_checking"" >&5 +echo "configure:5989: checking "$xe_msg_checking"" >&5 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` xe_check_libs=" -lsocket $X_EXTRA_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5598,10 +6025,10 @@ fi # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. echo $ac_n "checking for remove""... $ac_c" 1>&6 -echo "configure:5602: checking for remove" >&5 +echo "configure:6029: checking for remove" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_remove=yes" else @@ -5645,12 +6072,12 @@ fi if test $ac_cv_func_remove = no; then echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 -echo "configure:5649: checking for remove in -lposix" >&5 +echo "configure:6076: checking for remove in -lposix" >&5 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` xe_check_libs=" -lposix " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5685,10 +6112,10 @@ fi # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. echo $ac_n "checking for shmat""... $ac_c" 1>&6 -echo "configure:5689: checking for shmat" >&5 +echo "configure:6116: checking for shmat" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_shmat=yes" else @@ -5732,12 +6159,12 @@ fi if test $ac_cv_func_shmat = no; then echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 -echo "configure:5736: checking for shmat in -lipc" >&5 +echo "configure:6163: checking for shmat in -lipc" >&5 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` xe_check_libs=" -lipc " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5784,12 +6211,12 @@ fi xe_msg_checking="for IceConnectionNumber in -lICE" test -n "$X_EXTRA_LIBS" && xe_msg_checking="$xe_msg_checking using extra libs $X_EXTRA_LIBS" echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 -echo "configure:5788: checking "$xe_msg_checking"" >&5 +echo "configure:6215: checking "$xe_msg_checking"" >&5 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` xe_check_libs=" -lICE $X_EXTRA_LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -5830,10 +6257,6 @@ fi fi fi -case "$with_x11" in - yes ) window_system=x11 HAVE_X_WINDOWS=yes ;; - no ) window_system=none HAVE_X_WINDOWS=no ;; -esac if test "$with_x11" = "yes"; then { test "$extra_verbose" = "yes" && cat << \EOF @@ -5971,7 +6394,7 @@ EOF echo "checking for X defines extracted by xmkmf" 1>&6 -echo "configure:5975: checking for X defines extracted by xmkmf" >&5 +echo "configure:6398: checking for X defines extracted by xmkmf" >&5 rm -fr conftestdir if mkdir conftestdir; then cd conftestdir @@ -6018,15 +6441,15 @@ EOF ac_safe=`echo "X11/Intrinsic.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for X11/Intrinsic.h""... $ac_c" 1>&6 -echo "configure:6022: checking for X11/Intrinsic.h" >&5 +echo "configure:6445: checking for X11/Intrinsic.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:6453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -6050,12 +6473,12 @@ fi echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 -echo "configure:6054: checking for XOpenDisplay in -lX11" >&5 +echo "configure:6477: checking for XOpenDisplay in -lX11" >&5 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` xe_check_libs=" -lX11 " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6091,12 +6514,12 @@ fi xe_msg_checking="for XGetFontProperty in -lX11" test -n "-b i486-linuxaout" && xe_msg_checking="$xe_msg_checking using extra libs -b i486-linuxaout" echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 -echo "configure:6095: checking "$xe_msg_checking"" >&5 +echo "configure:6518: checking "$xe_msg_checking"" >&5 ac_lib_var=`echo X11'_'XGetFontProperty | sed 'y%./+-%__p_%'` xe_check_libs=" -lX11 -b i486-linuxaout" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6134,12 +6557,12 @@ fi echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6 -echo "configure:6138: checking for XShapeSelectInput in -lXext" >&5 +echo "configure:6561: checking for XShapeSelectInput in -lXext" >&5 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'` xe_check_libs=" -lXext " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6173,12 +6596,12 @@ fi echo $ac_n "checking for XtOpenDisplay in -lXt""... $ac_c" 1>&6 -echo "configure:6177: checking for XtOpenDisplay in -lXt" >&5 +echo "configure:6600: checking for XtOpenDisplay in -lXt" >&5 ac_lib_var=`echo Xt'_'XtOpenDisplay | sed 'y%./+-%__p_%'` xe_check_libs=" -lXt " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6212,14 +6635,14 @@ fi echo $ac_n "checking the version of X11 being used""... $ac_c" 1>&6 -echo "configure:6216: checking the version of X11 being used" >&5 +echo "configure:6639: checking the version of X11 being used" >&5 cat > conftest.$ac_ext < int main(int c, char *v[]) { return c>1 ? XlibSpecificationRelease : 0; } EOF -if { (eval echo configure:6223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 +if { (eval echo configure:6646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 then ./conftest foobar; x11_release=$? else @@ -6250,10 +6673,10 @@ EOF for ac_func in XConvertCase do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6254: checking for $ac_func" >&5 +echo "configure:6677: checking for $ac_func" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -6308,15 +6731,15 @@ done do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:6312: checking for $ac_hdr" >&5 +echo "configure:6735: checking for $ac_hdr" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:6743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -6349,10 +6772,10 @@ done for ac_func in XRegisterIMInstantiateCallback do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:6353: checking for $ac_func" >&5 +echo "configure:6776: checking for $ac_func" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -6403,9 +6826,9 @@ fi done echo $ac_n "checking for standard XRegisterIMInstantiateCallback prototype""... $ac_c" 1>&6 -echo "configure:6407: checking for standard XRegisterIMInstantiateCallback prototype" >&5 +echo "configure:6830: checking for standard XRegisterIMInstantiateCallback prototype" >&5 cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:6844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 else @@ -6438,12 +6861,12 @@ rm -f conftest* test -z "$with_xmu" && { echo $ac_n "checking for XmuReadBitmapDataFromFile in -lXmu""... $ac_c" 1>&6 -echo "configure:6442: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 +echo "configure:6865: checking for XmuReadBitmapDataFromFile in -lXmu" >&5 ac_lib_var=`echo Xmu'_'XmuReadBitmapDataFromFile | sed 'y%./+-%__p_%'` xe_check_libs=" -lXmu " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6493,19 +6916,19 @@ EOF echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6 -echo "configure:6497: checking for main in -lXbsd" >&5 +echo "configure:6920: checking for main in -lXbsd" >&5 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'` xe_check_libs=" -lXbsd " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6542,22 +6965,22 @@ fi fi if test "$with_msw" != "no"; then echo "checking for MS-Windows" 1>&6 -echo "configure:6546: checking for MS-Windows" >&5 +echo "configure:6969: checking for MS-Windows" >&5 echo $ac_n "checking for main in -lgdi32""... $ac_c" 1>&6 -echo "configure:6549: checking for main in -lgdi32" >&5 +echo "configure:6972: checking for main in -lgdi32" >&5 ac_lib_var=`echo gdi32'_'main | sed 'y%./+-%__p_%'` xe_check_libs=" -lgdi32 " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:6984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6587,9 +7010,11 @@ EOF } - MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi - SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi - INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi + if test "$with_netinstall" = "yes"; then + MAKE_SUBDIR="$MAKE_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$MAKE_SUBDIR"; fi + SRC_SUBDIR_DEPS="$SRC_SUBDIR_DEPS netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$SRC_SUBDIR_DEPS"; fi + INSTALL_ARCH_DEP_SUBDIR="$INSTALL_ARCH_DEP_SUBDIR netinstall" && if test "$extra_verbose" = "yes"; then echo " Appending \"netinstall\" to \$INSTALL_ARCH_DEP_SUBDIR"; fi + fi install_pp="$blddir/lib-src/installexe.sh" libs_system="$libs_system -lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool" && if test "$extra_verbose" = "yes"; then echo " Appending \"-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool\" to \$libs_system"; fi @@ -6628,12 +7053,12 @@ EOF fi fi cat > conftest.$ac_ext < int main() { return (open("/dev/windows", O_RDONLY, 0) > 0)? 0 : 1; } EOF -if { (eval echo configure:6637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 +if { (eval echo configure:7062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 then { test "$extra_verbose" = "yes" && cat << \EOF Defining HAVE_MSG_SELECT @@ -6697,15 +7122,15 @@ fi if test "$with_x11" = "yes"; then ac_safe=`echo "X11/extensions/shape.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6 -echo "configure:6701: checking for X11/extensions/shape.h" >&5 +echo "configure:7126: checking for X11/extensions/shape.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:7134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -6743,6 +7168,11 @@ bitmapdir= case "$window_system" in x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;; msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;; + gtk ) + HAVE_X_WINDOWS=no + test "$with_gnome" = "yes" && echo " Using GNOME." + test "$with_gnome" = "no" && echo " Using GTK." + ;; none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;; esac @@ -6752,7 +7182,7 @@ case "$x_libraries" in *X11R4* ) esac echo "checking for WM_COMMAND option" 1>&6 -echo "configure:6756: checking for WM_COMMAND option" >&5; +echo "configure:7186: checking for WM_COMMAND option" >&5; if test "$with_wmcommand" != "no"; then { test "$extra_verbose" = "yes" && cat << \EOF Defining HAVE_WMCOMMAND @@ -6767,15 +7197,15 @@ fi test -z "$with_xauth" && test "$window_system" = "none" && with_xauth=no test -z "$with_xauth" && { ac_safe=`echo "X11/Xauth.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for X11/Xauth.h""... $ac_c" 1>&6 -echo "configure:6771: checking for X11/Xauth.h" >&5 +echo "configure:7201: checking for X11/Xauth.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:7209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -6798,12 +7228,12 @@ fi } test -z "$with_xauth" && { echo $ac_n "checking for XauGetAuthByAddr in -lXau""... $ac_c" 1>&6 -echo "configure:6802: checking for XauGetAuthByAddr in -lXau" >&5 +echo "configure:7232: checking for XauGetAuthByAddr in -lXau" >&5 ac_lib_var=`echo Xau'_'XauGetAuthByAddr | sed 'y%./+-%__p_%'` xe_check_libs=" -lXau " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6847,7 +7277,7 @@ EOF T="" -for W in $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done +for W in $GTK_LIBS $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done libs_xauth="$T" fi @@ -6859,15 +7289,15 @@ if test "$with_tooltalk" != "no" ; then for dir in "" "Tt/" "desktop/" ; do ac_safe=`echo "${dir}tt_c.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for ${dir}tt_c.h""... $ac_c" 1>&6 -echo "configure:6863: checking for ${dir}tt_c.h" >&5 +echo "configure:7293: checking for ${dir}tt_c.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:7301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -6903,12 +7333,12 @@ if test "$with_tooltalk" != "no" ; then xe_msg_checking="for tt_message_create in -ltt" test -n "$extra_libs" && xe_msg_checking="$xe_msg_checking using extra libs $extra_libs" echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 -echo "configure:6907: checking "$xe_msg_checking"" >&5 +echo "configure:7337: checking "$xe_msg_checking"" >&5 ac_lib_var=`echo tt'_'tt_message_create | sed 'y%./+-%__p_%'` xe_check_libs=" -ltt $extra_libs" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -6976,15 +7406,15 @@ fi test -z "$with_cde" && { ac_safe=`echo "Dt/Dt.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for Dt/Dt.h""... $ac_c" 1>&6 -echo "configure:6980: checking for Dt/Dt.h" >&5 +echo "configure:7410: checking for Dt/Dt.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:6988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:7418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -7007,12 +7437,12 @@ fi } test -z "$with_cde" && { echo $ac_n "checking for DtDndDragStart in -lDtSvc""... $ac_c" 1>&6 -echo "configure:7011: checking for DtDndDragStart in -lDtSvc" >&5 +echo "configure:7441: checking for DtDndDragStart in -lDtSvc" >&5 ac_lib_var=`echo DtSvc'_'DtDndDragStart | sed 'y%./+-%__p_%'` xe_check_libs=" -lDtSvc " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7090,10 +7520,13 @@ EOF dnd_objs="$dnd_objs offix.o" && if test "$extra_verbose" = "yes"; then echo " Appending \"offix.o\" to \$dnd_objs"; fi dragndrop_proto="$dragndrop_proto OffiX" && if test "$extra_verbose" = "yes"; then echo " Appending \"OffiX\" to \$dragndrop_proto"; fi fi +if test "$with_gtk" = "yes"; then + dragndrop_proto="$dragndrop_proto GTK" && if test "$extra_verbose" = "yes"; then echo " Appending \"GTK\" to \$dragndrop_proto"; fi +fi if test "$with_dragndrop" != "no" ; then echo $ac_n "checking if drag and drop API is needed""... $ac_c" 1>&6 -echo "configure:7097: checking if drag and drop API is needed" >&5 +echo "configure:7530: checking if drag and drop API is needed" >&5 if test -n "$dragndrop_proto" ; then with_dragndrop=yes echo "$ac_t""yes (${dragndrop_proto} )" 1>&6 @@ -7113,18 +7546,18 @@ EOF fi echo "checking for LDAP" 1>&6 -echo "configure:7117: checking for LDAP" >&5 +echo "configure:7550: checking for LDAP" >&5 test -z "$with_ldap" && { ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for ldap.h""... $ac_c" 1>&6 -echo "configure:7120: checking for ldap.h" >&5 +echo "configure:7553: checking for ldap.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:7128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:7561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -7147,15 +7580,15 @@ fi } test -z "$with_ldap" && { ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for lber.h""... $ac_c" 1>&6 -echo "configure:7151: checking for lber.h" >&5 +echo "configure:7584: checking for lber.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:7159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:7592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -7179,12 +7612,12 @@ fi if test "$with_ldap" != "no"; then echo $ac_n "checking for ldap_search in -lldap""... $ac_c" 1>&6 -echo "configure:7183: checking for ldap_search in -lldap" >&5 +echo "configure:7616: checking for ldap_search in -lldap" >&5 ac_lib_var=`echo ldap'_'ldap_search | sed 'y%./+-%__p_%'` xe_check_libs=" -lldap " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7220,12 +7653,12 @@ fi xe_msg_checking="for ldap_open in -lldap" test -n "-llber" && xe_msg_checking="$xe_msg_checking using extra libs -llber" echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 -echo "configure:7224: checking "$xe_msg_checking"" >&5 +echo "configure:7657: checking "$xe_msg_checking"" >&5 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` xe_check_libs=" -lldap -llber" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7261,12 +7694,12 @@ fi xe_msg_checking="for ldap_open in -lldap" test -n "-llber -lkrb" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb" echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 -echo "configure:7265: checking "$xe_msg_checking"" >&5 +echo "configure:7698: checking "$xe_msg_checking"" >&5 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` xe_check_libs=" -lldap -llber -lkrb" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7302,12 +7735,12 @@ fi xe_msg_checking="for ldap_open in -lldap" test -n "-llber -lkrb -ldes" && xe_msg_checking="$xe_msg_checking using extra libs -llber -lkrb -ldes" echo $ac_n "checking "$xe_msg_checking"""... $ac_c" 1>&6 -echo "configure:7306: checking "$xe_msg_checking"" >&5 +echo "configure:7739: checking "$xe_msg_checking"" >&5 ac_lib_var=`echo ldap'_'ldap_open | sed 'y%./+-%__p_%'` xe_check_libs=" -lldap -llber -lkrb -ldes" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7369,10 +7802,10 @@ EOF for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:7373: checking for $ac_func" >&5 +echo "configure:7806: checking for $ac_func" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -7426,20 +7859,20 @@ fi if test "$with_postgresql" != "no"; then echo "checking for PostgreSQL" 1>&6 -echo "configure:7430: checking for PostgreSQL" >&5 +echo "configure:7863: checking for PostgreSQL" >&5 for header_dir in "" "pgsql/" "postgresql/"; do ac_safe=`echo "${header_dir}libpq-fe.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for ${header_dir}libpq-fe.h""... $ac_c" 1>&6 -echo "configure:7435: checking for ${header_dir}libpq-fe.h" >&5 +echo "configure:7868: checking for ${header_dir}libpq-fe.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:7443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:7876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -7463,12 +7896,12 @@ fi test -n "$libpq_fe_h_file" && { echo $ac_n "checking for PQconnectdb in -lpq""... $ac_c" 1>&6 -echo "configure:7467: checking for PQconnectdb in -lpq" >&5 +echo "configure:7900: checking for PQconnectdb in -lpq" >&5 ac_lib_var=`echo pq'_'PQconnectdb | sed 'y%./+-%__p_%'` xe_check_libs=" -lpq " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7512,12 +7945,12 @@ EOF echo $ac_n "checking for PQconnectStart in -lpq""... $ac_c" 1>&6 -echo "configure:7516: checking for PQconnectStart in -lpq" >&5 +echo "configure:7949: checking for PQconnectStart in -lpq" >&5 ac_lib_var=`echo pq'_'PQconnectStart | sed 'y%./+-%__p_%'` xe_check_libs=" -lpq " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:7965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7576,15 +8009,15 @@ fi if test "$window_system" != "none"; then echo "checking for graphics libraries" 1>&6 -echo "configure:7580: checking for graphics libraries" >&5 +echo "configure:8013: checking for graphics libraries" >&5 xpm_problem="" if test -z "$with_xpm"; then echo $ac_n "checking for Xpm - no older than 3.4f""... $ac_c" 1>&6 -echo "configure:7585: checking for Xpm - no older than 3.4f" >&5 +echo "configure:8018: checking for Xpm - no older than 3.4f" >&5 xe_check_libs=-lXpm cat > conftest.$ac_ext < @@ -7593,7 +8026,7 @@ echo "configure:7585: checking for Xpm - no older than 3.4f" >&5 XpmIncludeVersion != XpmLibraryVersion() ? 1 : XpmIncludeVersion < 30406 ? 2 : 0 ;} EOF -if { (eval echo configure:7597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 +if { (eval echo configure:8030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 then ./conftest dummy_arg; xpm_status=$?; if test "$xpm_status" = "0"; then @@ -7635,17 +8068,17 @@ EOF libs_x="-lXpm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXpm\" to \$libs_x"; fi echo $ac_n "checking for \"FOR_MSW\" xpm""... $ac_c" 1>&6 -echo "configure:7639: checking for \"FOR_MSW\" xpm" >&5 +echo "configure:8072: checking for \"FOR_MSW\" xpm" >&5 xe_check_libs=-lXpm cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* xpm_for_msw=no else @@ -7671,15 +8104,15 @@ EOF test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for compface.h""... $ac_c" 1>&6 -echo "configure:7675: checking for compface.h" >&5 +echo "configure:8108: checking for compface.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:7683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -7702,12 +8135,12 @@ fi } test -z "$with_xface" && { echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 -echo "configure:7706: checking for UnGenFace in -lcompface" >&5 +echo "configure:8139: checking for UnGenFace in -lcompface" >&5 ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` xe_check_libs=" -lcompface " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7770,12 +8203,12 @@ EOF if test "$with_png $with_tiff" != "no no"; then echo $ac_n "checking for inflate in -lc""... $ac_c" 1>&6 -echo "configure:7774: checking for inflate in -lc" >&5 +echo "configure:8207: checking for inflate in -lc" >&5 ac_lib_var=`echo c'_'inflate | sed 'y%./+-%__p_%'` xe_check_libs=" -lc " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7805,12 +8238,12 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for inflate in -lz""... $ac_c" 1>&6 -echo "configure:7809: checking for inflate in -lz" >&5 +echo "configure:8242: checking for inflate in -lz" >&5 ac_lib_var=`echo z'_'inflate | sed 'y%./+-%__p_%'` xe_check_libs=" -lz " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7840,12 +8273,12 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for inflate in -lgz""... $ac_c" 1>&6 -echo "configure:7844: checking for inflate in -lgz" >&5 +echo "configure:8277: checking for inflate in -lgz" >&5 ac_lib_var=`echo gz'_'inflate | sed 'y%./+-%__p_%'` xe_check_libs=" -lgz " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7886,15 +8319,15 @@ fi test -z "$with_jpeg" && { ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 -echo "configure:7890: checking for jpeglib.h" >&5 +echo "configure:8323: checking for jpeglib.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:7898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -7917,12 +8350,12 @@ fi } test -z "$with_jpeg" && { echo $ac_n "checking for jpeg_destroy_decompress in -ljpeg""... $ac_c" 1>&6 -echo "configure:7921: checking for jpeg_destroy_decompress in -ljpeg" >&5 +echo "configure:8354: checking for jpeg_destroy_decompress in -ljpeg" >&5 ac_lib_var=`echo jpeg'_'jpeg_destroy_decompress | sed 'y%./+-%__p_%'` xe_check_libs=" -ljpeg " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -7969,10 +8402,10 @@ EOF png_problem="" test -z "$with_png" && { echo $ac_n "checking for pow""... $ac_c" 1>&6 -echo "configure:7973: checking for pow" >&5 +echo "configure:8406: checking for pow" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_pow=yes" else @@ -8016,15 +8449,15 @@ fi } test -z "$with_png" && { ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for png.h""... $ac_c" 1>&6 -echo "configure:8020: checking for png.h" >&5 +echo "configure:8453: checking for png.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8047,12 +8480,12 @@ fi } test -z "$with_png" && { echo $ac_n "checking for png_read_image in -lpng""... $ac_c" 1>&6 -echo "configure:8051: checking for png_read_image in -lpng" >&5 +echo "configure:8484: checking for png_read_image in -lpng" >&5 ac_lib_var=`echo png'_'png_read_image | sed 'y%./+-%__p_%'` xe_check_libs=" -lpng " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8086,10 +8519,10 @@ fi } if test -z "$with_png"; then echo $ac_n "checking for workable png version information""... $ac_c" 1>&6 -echo "configure:8090: checking for workable png version information" >&5 +echo "configure:8523: checking for workable png version information" >&5 xe_check_libs="-lpng -lz" cat > conftest.$ac_ext < int main(int c, char **v) { @@ -8097,7 +8530,7 @@ echo "configure:8090: checking for workable png version information" >&5 if (strcmp(png_libpng_ver, PNG_LIBPNG_VER_STRING) != 0) return 1; return (PNG_LIBPNG_VER < 10002) ? 2 : 0 ;} EOF -if { (eval echo configure:8101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 +if { (eval echo configure:8534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 then ./conftest dummy_arg; png_status=$?; if test "$png_status" = "0"; then @@ -8140,15 +8573,15 @@ EOF test -z "$with_tiff" && { ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 -echo "configure:8144: checking for tiffio.h" >&5 +echo "configure:8577: checking for tiffio.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8171,12 +8604,12 @@ fi } test -z "$with_tiff" && { echo $ac_n "checking for TIFFClientOpen in -ltiff""... $ac_c" 1>&6 -echo "configure:8175: checking for TIFFClientOpen in -ltiff" >&5 +echo "configure:8608: checking for TIFFClientOpen in -ltiff" >&5 ac_lib_var=`echo tiff'_'TIFFClientOpen | sed 'y%./+-%__p_%'` xe_check_libs=" -ltiff " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8223,13 +8656,100 @@ EOF fi +if test "$with_gtk" = "yes"; then + test -z "$with_xface" && { ac_safe=`echo "compface.h" | sed 'y%./+-%__p_%'` +echo $ac_n "checking for compface.h""... $ac_c" 1>&6 +echo "configure:8663: checking for compface.h" >&5 + +cat > conftest.$ac_ext < +EOF +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" +{ (eval echo configure:8671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` +if test -z "$ac_err"; then + rm -rf conftest* + eval "ac_cv_header_$ac_safe=yes" +else + echo "$ac_err" >&5 + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest* +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +with_xface=no +fi + } + test -z "$with_xface" && { +echo $ac_n "checking for UnGenFace in -lcompface""... $ac_c" 1>&6 +echo "configure:8694: checking for UnGenFace in -lcompface" >&5 +ac_lib_var=`echo compface'_'UnGenFace | sed 'y%./+-%__p_%'` + +xe_check_libs=" -lcompface " +cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=yes" +else + echo "configure: failed program was:" >&5 + cat conftest.$ac_ext >&5 + rm -rf conftest* + eval "ac_cv_lib_$ac_lib_var=no" +fi +rm -f conftest* +xe_check_libs="" + +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then + echo "$ac_t""yes" 1>&6 + : +else + echo "$ac_t""no" 1>&6 +with_xface=no +fi + + } + test -z "$with_xface" && with_xface=yes + if test "$with_xface" = "yes"; then + { test "$extra_verbose" = "yes" && cat << \EOF + Defining HAVE_XFACE +EOF +cat >> confdefs.h <<\EOF +#define HAVE_XFACE 1 +EOF +} + + libs_gtk="-lcompface $libs_gtk" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lcompface\" to \$libs_gtk"; fi + fi +fi + + + if test "$with_x11" = "yes"; then echo "checking for X11 graphics libraries" 1>&6 -echo "configure:8230: checking for X11 graphics libraries" >&5 +echo "configure:8750: checking for X11 graphics libraries" >&5 echo "checking for the Athena widgets" 1>&6 -echo "configure:8233: checking for the Athena widgets" >&5 +echo "configure:8753: checking for the Athena widgets" >&5 case "$with_athena" in "xaw" | "") athena_variant=Xaw athena_3d=no ;; @@ -8243,12 +8763,12 @@ echo "configure:8233: checking for the Athena widgets" >&5 if test "$athena_3d" = "no"; then echo $ac_n "checking for XawScrollbarSetThumb in -l$athena_variant""... $ac_c" 1>&6 -echo "configure:8247: checking for XawScrollbarSetThumb in -l$athena_variant" >&5 +echo "configure:8767: checking for XawScrollbarSetThumb in -l$athena_variant" >&5 ac_lib_var=`echo $athena_variant'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` xe_check_libs=" -l$athena_variant " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8275,12 +8795,12 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then echo "$ac_t""yes" 1>&6 echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 -echo "configure:8279: checking for threeDClassRec in -l$athena_variant" >&5 +echo "configure:8799: checking for threeDClassRec in -l$athena_variant" >&5 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` xe_check_libs=" -l$athena_variant " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8322,12 +8842,12 @@ fi else echo $ac_n "checking for threeDClassRec in -l$athena_variant""... $ac_c" 1>&6 -echo "configure:8326: checking for threeDClassRec in -l$athena_variant" >&5 +echo "configure:8846: checking for threeDClassRec in -l$athena_variant" >&5 ac_lib_var=`echo $athena_variant'_'threeDClassRec | sed 'y%./+-%__p_%'` xe_check_libs=" -l$athena_variant " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8356,12 +8876,12 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then else echo "$ac_t""no" 1>&6 echo $ac_n "checking for threeDClassRec in -lXaw""... $ac_c" 1>&6 -echo "configure:8360: checking for threeDClassRec in -lXaw" >&5 +echo "configure:8880: checking for threeDClassRec in -lXaw" >&5 ac_lib_var=`echo Xaw'_'threeDClassRec | sed 'y%./+-%__p_%'` xe_check_libs=" -lXaw " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:8896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8403,15 +8923,15 @@ fi if test "$athena_3d" = "no"; then ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 -echo "configure:8407: checking for X11/Xaw/ThreeD.h" >&5 +echo "configure:8927: checking for X11/Xaw/ThreeD.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8431,15 +8951,15 @@ else echo "$ac_t""no" 1>&6 ac_safe=`echo "X11/Xaw/XawInit.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for X11/Xaw/XawInit.h""... $ac_c" 1>&6 -echo "configure:8435: checking for X11/Xaw/XawInit.h" >&5 +echo "configure:8955: checking for X11/Xaw/XawInit.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8465,15 +8985,15 @@ fi else ac_safe=`echo "X11/$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for X11/$athena_variant/XawInit.h""... $ac_c" 1>&6 -echo "configure:8469: checking for X11/$athena_variant/XawInit.h" >&5 +echo "configure:8989: checking for X11/$athena_variant/XawInit.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:8997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8490,15 +9010,15 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_safe=`echo "X11/$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for X11/$athena_variant/ThreeD.h""... $ac_c" 1>&6 -echo "configure:8494: checking for X11/$athena_variant/ThreeD.h" >&5 +echo "configure:9014: checking for X11/$athena_variant/ThreeD.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:9022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8526,15 +9046,15 @@ fi if test -z "$athena_h_path"; then ac_safe=`echo "$athena_variant/XawInit.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $athena_variant/XawInit.h""... $ac_c" 1>&6 -echo "configure:8530: checking for $athena_variant/XawInit.h" >&5 +echo "configure:9050: checking for $athena_variant/XawInit.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:9058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8551,15 +9071,15 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_safe=`echo "$athena_variant/ThreeD.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $athena_variant/ThreeD.h""... $ac_c" 1>&6 -echo "configure:8555: checking for $athena_variant/ThreeD.h" >&5 +echo "configure:9075: checking for $athena_variant/ThreeD.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:9083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8588,15 +9108,15 @@ fi if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then ac_safe=`echo "X11/Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for X11/Xaw3d/XawInit.h""... $ac_c" 1>&6 -echo "configure:8592: checking for X11/Xaw3d/XawInit.h" >&5 +echo "configure:9112: checking for X11/Xaw3d/XawInit.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:9120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8613,15 +9133,15 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_safe=`echo "X11/Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for X11/Xaw3d/ThreeD.h""... $ac_c" 1>&6 -echo "configure:8617: checking for X11/Xaw3d/ThreeD.h" >&5 +echo "configure:9137: checking for X11/Xaw3d/ThreeD.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:9145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8653,15 +9173,15 @@ fi if test -z "$athena_h_path" -a "$athena_variant" != "Xaw3d"; then ac_safe=`echo "Xaw3d/XawInit.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for Xaw3d/XawInit.h""... $ac_c" 1>&6 -echo "configure:8657: checking for Xaw3d/XawInit.h" >&5 +echo "configure:9177: checking for Xaw3d/XawInit.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:9185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8678,15 +9198,15 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_safe=`echo "Xaw3d/ThreeD.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for Xaw3d/ThreeD.h""... $ac_c" 1>&6 -echo "configure:8682: checking for Xaw3d/ThreeD.h" >&5 +echo "configure:9202: checking for Xaw3d/ThreeD.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8690: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:9210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8718,15 +9238,15 @@ fi if test -z "$athena_h_path"; then ac_safe=`echo "X11/Xaw/ThreeD.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for X11/Xaw/ThreeD.h""... $ac_c" 1>&6 -echo "configure:8722: checking for X11/Xaw/ThreeD.h" >&5 +echo "configure:9242: checking for X11/Xaw/ThreeD.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:9250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8761,15 +9281,15 @@ fi ac_safe=`echo "Xm/Xm.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for Xm/Xm.h""... $ac_c" 1>&6 -echo "configure:8765: checking for Xm/Xm.h" >&5 +echo "configure:9285: checking for Xm/Xm.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:8773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:9293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -8786,12 +9306,12 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 echo $ac_n "checking for XmStringFree in -lXm""... $ac_c" 1>&6 -echo "configure:8790: checking for XmStringFree in -lXm" >&5 +echo "configure:9310: checking for XmStringFree in -lXm" >&5 ac_lib_var=`echo Xm'_'XmStringFree | sed 'y%./+-%__p_%'` xe_check_libs=" -lXm " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:9326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -8831,9 +9351,9 @@ fi if test "$have_motif" = "yes"; then echo $ac_n "checking for Lesstif""... $ac_c" 1>&6 -echo "configure:8835: checking for Lesstif" >&5 +echo "configure:9355: checking for Lesstif" >&5 cat > conftest.$ac_ext < #ifdef LESSTIF_VERSION @@ -9200,6 +9720,24 @@ test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar.o" && if echo " xemacs will be linked with \"toolbar.o\"" fi +if test "$with_gtk" = "yes"; then + test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-gtk.o" && if test "$extra_verbose" = "yes"; then + echo " xemacs will be linked with \"menubar-gtk.o\"" + fi + test "$with_scrollbars" != "no" && extra_objs="$extra_objs scrollbar-gtk.o" && if test "$extra_verbose" = "yes"; then + echo " xemacs will be linked with \"scrollbar-gtk.o\"" + fi + test "$with_dialogs" != "no" && extra_objs="$extra_objs dialog-gtk.o" && if test "$extra_verbose" = "yes"; then + echo " xemacs will be linked with \"dialog-gtk.o\"" + fi + test "$with_toolbars" != "no" && extra_objs="$extra_objs toolbar-gtk.o" && if test "$extra_verbose" = "yes"; then + echo " xemacs will be linked with \"toolbar-gtk.o\"" + fi + test "$all_widgets" != "no no no no no" && extra_objs="$extra_objs gui-gtk.o" && if test "$extra_verbose" = "yes"; then + echo " xemacs will be linked with \"gui-gtk.o\"" + fi +fi + if test "$with_x11" = "yes"; then test "$with_menubars" != "no" && extra_objs="$extra_objs menubar-x.o" && if test "$extra_verbose" = "yes"; then echo " xemacs will be linked with \"menubar-x.o\"" @@ -9239,7 +9777,7 @@ fi if test "$with_mule" = "yes" ; then echo "checking for Mule-related features" 1>&6 -echo "configure:9243: checking for Mule-related features" >&5 +echo "configure:9781: checking for Mule-related features" >&5 { test "$extra_verbose" = "yes" && cat << \EOF Defining MULE EOF @@ -9264,15 +9802,15 @@ EOF do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:9268: checking for $ac_hdr" >&5 +echo "configure:9806: checking for $ac_hdr" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:9276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:9814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -9303,12 +9841,12 @@ done echo $ac_n "checking for strerror in -lintl""... $ac_c" 1>&6 -echo "configure:9307: checking for strerror in -lintl" >&5 +echo "configure:9845: checking for strerror in -lintl" >&5 ac_lib_var=`echo intl'_'strerror | sed 'y%./+-%__p_%'` xe_check_libs=" -lintl " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:9861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -9352,18 +9890,18 @@ fi echo "checking for Mule input methods" 1>&6 -echo "configure:9356: checking for Mule input methods" >&5 +echo "configure:9894: checking for Mule input methods" >&5 case "$with_xim" in "" | "yes" ) echo "checking for XIM" 1>&6 -echo "configure:9359: checking for XIM" >&5 +echo "configure:9897: checking for XIM" >&5 echo $ac_n "checking for XOpenIM in -lX11""... $ac_c" 1>&6 -echo "configure:9362: checking for XOpenIM in -lX11" >&5 +echo "configure:9900: checking for XOpenIM in -lX11" >&5 ac_lib_var=`echo X11'_'XOpenIM | sed 'y%./+-%__p_%'` xe_check_libs=" -lX11 " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:9916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -9398,12 +9936,12 @@ fi if test "$have_motif $have_lesstif" = "yes no"; then echo $ac_n "checking for XmImMbLookupString in -lXm""... $ac_c" 1>&6 -echo "configure:9402: checking for XmImMbLookupString in -lXm" >&5 +echo "configure:9940: checking for XmImMbLookupString in -lXm" >&5 ac_lib_var=`echo Xm'_'XmImMbLookupString | sed 'y%./+-%__p_%'` xe_check_libs=" -lXm " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:9956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -9479,15 +10017,15 @@ EOF if test "$with_xfs" = "yes" ; then echo "checking for XFontSet" 1>&6 -echo "configure:9483: checking for XFontSet" >&5 +echo "configure:10021: checking for XFontSet" >&5 echo $ac_n "checking for XmbDrawString in -lX11""... $ac_c" 1>&6 -echo "configure:9486: checking for XmbDrawString in -lX11" >&5 +echo "configure:10024: checking for XmbDrawString in -lX11" >&5 ac_lib_var=`echo X11'_'XmbDrawString | sed 'y%./+-%__p_%'` xe_check_libs=" -lX11 " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -9538,15 +10076,15 @@ EOF test "$with_wnn6" = "yes" && with_wnn=yes # wnn6 implies wnn support test -z "$with_wnn" && { ac_safe=`echo "wnn/jllib.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for wnn/jllib.h""... $ac_c" 1>&6 -echo "configure:9542: checking for wnn/jllib.h" >&5 +echo "configure:10080: checking for wnn/jllib.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:9550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:10088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -9569,15 +10107,15 @@ fi } test -z "$with_wnn" && { ac_safe=`echo "wnn/commonhd.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for wnn/commonhd.h""... $ac_c" 1>&6 -echo "configure:9573: checking for wnn/commonhd.h" >&5 +echo "configure:10111: checking for wnn/commonhd.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:9581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:10119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -9602,10 +10140,10 @@ fi for ac_func in crypt do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:9606: checking for $ac_func" >&5 +echo "configure:10144: checking for $ac_func" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -9657,12 +10195,12 @@ done test "$ac_cv_func_crypt" != "yes" && { echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6 -echo "configure:9661: checking for crypt in -lcrypt" >&5 +echo "configure:10199: checking for crypt in -lcrypt" >&5 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'` xe_check_libs=" -lcrypt " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -9708,12 +10246,12 @@ fi if test -z "$with_wnn" -o "$with_wnn" = "yes"; then echo $ac_n "checking for jl_dic_list_e in -lwnn""... $ac_c" 1>&6 -echo "configure:9712: checking for jl_dic_list_e in -lwnn" >&5 +echo "configure:10250: checking for jl_dic_list_e in -lwnn" >&5 ac_lib_var=`echo wnn'_'jl_dic_list_e | sed 'y%./+-%__p_%'` xe_check_libs=" -lwnn " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -9742,12 +10280,12 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then else echo "$ac_t""no" 1>&6 echo $ac_n "checking for jl_dic_list_e in -lwnn4""... $ac_c" 1>&6 -echo "configure:9746: checking for jl_dic_list_e in -lwnn4" >&5 +echo "configure:10284: checking for jl_dic_list_e in -lwnn4" >&5 ac_lib_var=`echo wnn4'_'jl_dic_list_e | sed 'y%./+-%__p_%'` xe_check_libs=" -lwnn4 " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -9776,12 +10314,12 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then else echo "$ac_t""no" 1>&6 echo $ac_n "checking for jl_dic_list_e in -lwnn6""... $ac_c" 1>&6 -echo "configure:9780: checking for jl_dic_list_e in -lwnn6" >&5 +echo "configure:10318: checking for jl_dic_list_e in -lwnn6" >&5 ac_lib_var=`echo wnn6'_'jl_dic_list_e | sed 'y%./+-%__p_%'` xe_check_libs=" -lwnn6 " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -9810,12 +10348,12 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then else echo "$ac_t""no" 1>&6 echo $ac_n "checking for dic_list_e in -lwnn6_fromsrc""... $ac_c" 1>&6 -echo "configure:9814: checking for dic_list_e in -lwnn6_fromsrc" >&5 +echo "configure:10352: checking for dic_list_e in -lwnn6_fromsrc" >&5 ac_lib_var=`echo wnn6_fromsrc'_'dic_list_e | sed 'y%./+-%__p_%'` xe_check_libs=" -lwnn6_fromsrc " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -9874,12 +10412,12 @@ EOF if test "$with_wnn6" != "no"; then echo $ac_n "checking for jl_fi_dic_list in -l$libwnn""... $ac_c" 1>&6 -echo "configure:9878: checking for jl_fi_dic_list in -l$libwnn" >&5 +echo "configure:10416: checking for jl_fi_dic_list in -l$libwnn" >&5 ac_lib_var=`echo $libwnn'_'jl_fi_dic_list | sed 'y%./+-%__p_%'` xe_check_libs=" -l$libwnn " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -9925,15 +10463,15 @@ EOF if test "$with_canna" != "no"; then ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 -echo "configure:9929: checking for canna/jrkanji.h" >&5 +echo "configure:10467: checking for canna/jrkanji.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:9937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:10475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -9960,15 +10498,15 @@ fi c_switch_site="$c_switch_site -I/usr/local/canna/include" ac_safe=`echo "canna/jrkanji.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for canna/jrkanji.h""... $ac_c" 1>&6 -echo "configure:9964: checking for canna/jrkanji.h" >&5 +echo "configure:10502: checking for canna/jrkanji.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:9972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:10510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -9996,15 +10534,15 @@ fi test -z "$with_canna" && { ac_safe=`echo "canna/RK.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for canna/RK.h""... $ac_c" 1>&6 -echo "configure:10000: checking for canna/RK.h" >&5 +echo "configure:10538: checking for canna/RK.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:10008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:10546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -10027,12 +10565,12 @@ fi } test -z "$with_canna" && { echo $ac_n "checking for RkBgnBun in -lRKC""... $ac_c" 1>&6 -echo "configure:10031: checking for RkBgnBun in -lRKC" >&5 +echo "configure:10569: checking for RkBgnBun in -lRKC" >&5 ac_lib_var=`echo RKC'_'RkBgnBun | sed 'y%./+-%__p_%'` xe_check_libs=" -lRKC " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -10066,12 +10604,12 @@ fi } test -z "$with_canna" && { echo $ac_n "checking for jrKanjiControl in -lcanna""... $ac_c" 1>&6 -echo "configure:10070: checking for jrKanjiControl in -lcanna" >&5 +echo "configure:10608: checking for jrKanjiControl in -lcanna" >&5 ac_lib_var=`echo canna'_'jrKanjiControl | sed 'y%./+-%__p_%'` xe_check_libs=" -lcanna " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -10131,12 +10669,12 @@ if test "$need_motif" = "yes" ; then libs_x="-lXm $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-lXm\" to \$libs_x"; fi echo $ac_n "checking for layout_object_getvalue in -li18n""... $ac_c" 1>&6 -echo "configure:10135: checking for layout_object_getvalue in -li18n" >&5 +echo "configure:10673: checking for layout_object_getvalue in -li18n" >&5 ac_lib_var=`echo i18n'_'layout_object_getvalue | sed 'y%./+-%__p_%'` xe_check_libs=" -li18n " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -10233,10 +10771,10 @@ fi for ac_func in cbrt closedir dup2 eaccess fmod fpathconf frexp ftime getaddrinfo gethostname getnameinfo getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask snprintf stpcpy strerror tzset ulimit usleep waitpid vsnprintf fsync ftruncate umask do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10237: checking for $ac_func" >&5 +echo "configure:10775: checking for $ac_func" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -10291,10 +10829,10 @@ done for ac_func in getpt _getpty grantpt unlockpt ptsname killpg tcgetpgrp do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10295: checking for $ac_func" >&5 +echo "configure:10833: checking for $ac_func" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -10346,10 +10884,10 @@ done echo $ac_n "checking for openpty""... $ac_c" 1>&6 -echo "configure:10350: checking for openpty" >&5 +echo "configure:10888: checking for openpty" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_openpty=yes" else @@ -10391,12 +10929,12 @@ else echo $ac_n "checking for openpty in -lutil""... $ac_c" 1>&6 -echo "configure:10395: checking for openpty in -lutil" >&5 +echo "configure:10933: checking for openpty in -lutil" >&5 ac_lib_var=`echo util'_'openpty | sed 'y%./+-%__p_%'` xe_check_libs=" -lutil " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:10949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -10442,15 +10980,15 @@ EOF do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:10446: checking for $ac_hdr" >&5 +echo "configure:10984: checking for $ac_hdr" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:10454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:10992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -10486,15 +11024,15 @@ for ac_hdr in stropts.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:10490: checking for $ac_hdr" >&5 +echo "configure:11028: checking for $ac_hdr" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:10498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:11036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -10527,10 +11065,10 @@ if test "$ac_cv_header_stropts_h" = "yes"; then for ac_func in isastream do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10531: checking for $ac_func" >&5 +echo "configure:11069: checking for $ac_func" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:11095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -10584,15 +11122,15 @@ done do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:10588: checking for $ac_hdr" >&5 +echo "configure:11126: checking for $ac_hdr" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:10596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:11134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -10629,10 +11167,10 @@ extra_objs="$extra_objs realpath.o" && if test "$extra_verbose" = "yes"; then for ac_func in getloadavg do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:10633: checking for $ac_func" >&5 +echo "configure:11171: checking for $ac_func" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:11197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -10688,15 +11226,15 @@ if test "$ac_cv_func_getloadavg" = "yes"; then do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:10692: checking for $ac_hdr" >&5 +echo "configure:11230: checking for $ac_hdr" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:10700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:11238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -10732,12 +11270,12 @@ else echo $ac_n "checking for kstat_open in -lkstat""... $ac_c" 1>&6 -echo "configure:10736: checking for kstat_open in -lkstat" >&5 +echo "configure:11274: checking for kstat_open in -lkstat" >&5 ac_lib_var=`echo kstat'_'kstat_open | sed 'y%./+-%__p_%'` xe_check_libs=" -lkstat " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:11290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -10783,15 +11321,15 @@ fi do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 -echo "configure:10787: checking for $ac_hdr" >&5 +echo "configure:11325: checking for $ac_hdr" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:10795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:11333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -10823,12 +11361,12 @@ done echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6 -echo "configure:10827: checking for kvm_read in -lkvm" >&5 +echo "configure:11365: checking for kvm_read in -lkvm" >&5 ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'` xe_check_libs=" -lkvm " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:11381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -10873,16 +11411,16 @@ fi fi echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 -echo "configure:10877: checking whether netdb declares h_errno" >&5 +echo "configure:11415: checking whether netdb declares h_errno" >&5 cat > conftest.$ac_ext < int main() { return h_errno; ; return 0; } EOF -if { (eval echo configure:10886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:11424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "$ac_t""yes" 1>&6 { test "$extra_verbose" = "yes" && cat << \EOF @@ -10902,16 +11440,16 @@ fi rm -f conftest* echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6 -echo "configure:10906: checking for sigsetjmp" >&5 +echo "configure:11444: checking for sigsetjmp" >&5 cat > conftest.$ac_ext < int main() { sigjmp_buf bar; sigsetjmp (bar, 0); ; return 0; } EOF -if { (eval echo configure:10915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:11453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* echo "$ac_t""yes" 1>&6 { test "$extra_verbose" = "yes" && cat << \EOF @@ -10931,11 +11469,11 @@ fi rm -f conftest* echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 -echo "configure:10935: checking whether localtime caches TZ" >&5 +echo "configure:11473: checking whether localtime caches TZ" >&5 if test "$ac_cv_func_tzset" = "yes"; then cat > conftest.$ac_ext < #if STDC_HEADERS @@ -10970,7 +11508,7 @@ main() exit (0); } EOF -if { (eval echo configure:10974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 +if { (eval echo configure:11512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 then emacs_cv_localtime_cache=no else @@ -11000,9 +11538,9 @@ fi if test "$HAVE_TIMEVAL" = "yes"; then echo $ac_n "checking whether gettimeofday accepts one or two arguments""... $ac_c" 1>&6 -echo "configure:11004: checking whether gettimeofday accepts one or two arguments" >&5 +echo "configure:11542: checking whether gettimeofday accepts one or two arguments" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:11565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "$ac_t""two" 1>&6 else @@ -11045,19 +11583,19 @@ fi echo $ac_n "checking for inline""... $ac_c" 1>&6 -echo "configure:11049: checking for inline" >&5 +echo "configure:11587: checking for inline" >&5 ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:11599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_inline=$ac_kw; break else @@ -11098,17 +11636,17 @@ if test "$__DECC" != "yes"; then # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 -echo "configure:11102: checking for working alloca.h" >&5 +echo "configure:11640: checking for working alloca.h" >&5 cat > conftest.$ac_ext < int main() { char *p = alloca(2 * sizeof(int)); ; return 0; } EOF -if { (eval echo configure:11112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:11650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_header_alloca_h=yes else @@ -11132,10 +11670,10 @@ EOF fi echo $ac_n "checking for alloca""... $ac_c" 1>&6 -echo "configure:11136: checking for alloca" >&5 +echo "configure:11674: checking for alloca" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:11705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_func_alloca_works=yes else @@ -11202,10 +11740,10 @@ EOF echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 -echo "configure:11206: checking whether alloca needs Cray hooks" >&5 +echo "configure:11744: checking whether alloca needs Cray hooks" >&5 cat > conftest.$ac_ext <&6 if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:11233: checking for $ac_func" >&5 +echo "configure:11771: checking for $ac_func" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:11797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -11285,10 +11823,10 @@ done fi echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 -echo "configure:11289: checking stack direction for C alloca" >&5 +echo "configure:11827: checking stack direction for C alloca" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 +if { (eval echo configure:11849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 then ac_cv_c_stack_direction=1 else @@ -11337,15 +11875,15 @@ fi ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 -echo "configure:11341: checking for vfork.h" >&5 +echo "configure:11879: checking for vfork.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:11349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:11887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -11373,10 +11911,10 @@ else fi echo $ac_n "checking for working vfork""... $ac_c" 1>&6 -echo "configure:11377: checking for working vfork" >&5 +echo "configure:11915: checking for working vfork" >&5 cat > conftest.$ac_ext < @@ -11471,7 +12009,7 @@ main() { } } EOF -if { (eval echo configure:11475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 +if { (eval echo configure:12013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 then ac_cv_func_vfork_works=yes else @@ -11497,10 +12035,10 @@ fi echo $ac_n "checking for working strcoll""... $ac_c" 1>&6 -echo "configure:11501: checking for working strcoll" >&5 +echo "configure:12039: checking for working strcoll" >&5 cat > conftest.$ac_ext < main () @@ -11510,7 +12048,7 @@ main () strcoll ("123", "456") >= 0); } EOF -if { (eval echo configure:11514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 +if { (eval echo configure:12052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 then ac_cv_func_strcoll_works=yes else @@ -11538,10 +12076,10 @@ fi for ac_func in getpgrp do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:11542: checking for $ac_func" >&5 +echo "configure:12080: checking for $ac_func" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:12106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -11592,10 +12130,10 @@ fi done echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6 -echo "configure:11596: checking whether getpgrp takes no argument" >&5 +echo "configure:12134: checking whether getpgrp takes no argument" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 +if { (eval echo configure:12192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 then ac_cv_func_getpgrp_void=yes else @@ -11677,10 +12215,10 @@ fi echo $ac_n "checking for working mmap""... $ac_c" 1>&6 -echo "configure:11681: checking for working mmap" >&5 +echo "configure:12219: checking for working mmap" >&5 case "$opsys" in ultrix* ) have_mmap=no ;; *) cat > conftest.$ac_ext < #include @@ -11713,7 +12251,7 @@ int main (int argc, char *argv[]) return 1; } EOF -if { (eval echo configure:11717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 +if { (eval echo configure:12255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 then have_mmap=yes else @@ -11735,13 +12273,16 @@ EOF } +case "$opsys" in cygwin*) + test "$rel_alloc" = "default" && rel_alloc=no ;; +esac test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no if test "$rel_alloc $have_mmap" = "default yes"; then if test "$doug_lea_malloc" = "yes"; then echo $ac_n "checking for M_MMAP_THRESHOLD""... $ac_c" 1>&6 -echo "configure:11743: checking for M_MMAP_THRESHOLD" >&5 +echo "configure:12284: checking for M_MMAP_THRESHOLD" >&5 cat > conftest.$ac_ext < int main() { @@ -11753,7 +12294,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:11757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:12298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* rel_alloc=no; echo "$ac_t""yes" 1>&6; else @@ -11778,15 +12319,15 @@ EOF ac_safe=`echo "termios.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for termios.h""... $ac_c" 1>&6 -echo "configure:11782: checking for termios.h" >&5 +echo "configure:12323: checking for termios.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:11790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:12331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -11829,15 +12370,15 @@ else echo "$ac_t""no" 1>&6 ac_safe=`echo "termio.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for termio.h""... $ac_c" 1>&6 -echo "configure:11833: checking for termio.h" >&5 +echo "configure:12374: checking for termio.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:11841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:12382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -11869,10 +12410,10 @@ fi echo $ac_n "checking for socket""... $ac_c" 1>&6 -echo "configure:11873: checking for socket" >&5 +echo "configure:12414: checking for socket" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:12440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_socket=yes" else @@ -11910,15 +12451,15 @@ if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 -echo "configure:11914: checking for netinet/in.h" >&5 +echo "configure:12455: checking for netinet/in.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:11922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:12463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -11935,15 +12476,15 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 -echo "configure:11939: checking for arpa/inet.h" >&5 +echo "configure:12480: checking for arpa/inet.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:11947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:12488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -11968,9 +12509,9 @@ EOF } echo $ac_n "checking "for sun_len member in struct sockaddr_un"""... $ac_c" 1>&6 -echo "configure:11972: checking "for sun_len member in struct sockaddr_un"" >&5 +echo "configure:12513: checking "for sun_len member in struct sockaddr_un"" >&5 cat > conftest.$ac_ext < @@ -11981,7 +12522,7 @@ int main() { static struct sockaddr_un x; x.sun_len = 1; ; return 0; } EOF -if { (eval echo configure:11985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:12526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF Defining HAVE_SOCKADDR_SUN_LEN @@ -11999,9 +12540,9 @@ else fi rm -f conftest* echo $ac_n "checking "for ip_mreq struct in netinet/in.h"""... $ac_c" 1>&6 -echo "configure:12003: checking "for ip_mreq struct in netinet/in.h"" >&5 +echo "configure:12544: checking "for ip_mreq struct in netinet/in.h"" >&5 cat > conftest.$ac_ext < @@ -12011,7 +12552,7 @@ int main() { static struct ip_mreq x; ; return 0; } EOF -if { (eval echo configure:12015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:12556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* echo "$ac_t""yes" 1>&6; { test "$extra_verbose" = "yes" && cat << \EOF Defining HAVE_MULTICAST @@ -12042,10 +12583,10 @@ fi echo $ac_n "checking for msgget""... $ac_c" 1>&6 -echo "configure:12046: checking for msgget" >&5 +echo "configure:12587: checking for msgget" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:12613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_msgget=yes" else @@ -12083,15 +12624,15 @@ if eval "test \"`echo '$ac_cv_func_'msgget`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_safe=`echo "sys/ipc.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for sys/ipc.h""... $ac_c" 1>&6 -echo "configure:12087: checking for sys/ipc.h" >&5 +echo "configure:12628: checking for sys/ipc.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:12095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:12636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -12108,15 +12649,15 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_safe=`echo "sys/msg.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for sys/msg.h""... $ac_c" 1>&6 -echo "configure:12112: checking for sys/msg.h" >&5 +echo "configure:12653: checking for sys/msg.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:12120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:12661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -12154,15 +12695,15 @@ fi ac_safe=`echo "dirent.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for dirent.h""... $ac_c" 1>&6 -echo "configure:12158: checking for dirent.h" >&5 +echo "configure:12699: checking for dirent.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:12166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:12707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -12189,15 +12730,15 @@ else echo "$ac_t""no" 1>&6 ac_safe=`echo "sys/dir.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for sys/dir.h""... $ac_c" 1>&6 -echo "configure:12193: checking for sys/dir.h" >&5 +echo "configure:12734: checking for sys/dir.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:12201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:12742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -12230,15 +12771,15 @@ fi ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 -echo "configure:12234: checking for nlist.h" >&5 +echo "configure:12775: checking for nlist.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:12242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:12783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -12268,22 +12809,22 @@ fi echo "checking "for sound support"" 1>&6 -echo "configure:12272: checking "for sound support"" >&5 +echo "configure:12813: checking "for sound support"" >&5 test -z "$with_native_sound" -a -n "$native_sound_lib" && with_native_sound=yes if test "$with_native_sound" != "no"; then if test -n "$native_sound_lib"; then ac_safe=`echo "multimedia/audio_device.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for multimedia/audio_device.h""... $ac_c" 1>&6 -echo "configure:12279: checking for multimedia/audio_device.h" >&5 +echo "configure:12820: checking for multimedia/audio_device.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:12287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:12828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -12331,12 +12872,12 @@ fi if test -z "$native_sound_lib"; then echo $ac_n "checking for ALopenport in -laudio""... $ac_c" 1>&6 -echo "configure:12335: checking for ALopenport in -laudio" >&5 +echo "configure:12876: checking for ALopenport in -laudio" >&5 ac_lib_var=`echo audio'_'ALopenport | sed 'y%./+-%__p_%'` xe_check_libs=" -laudio " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:12892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -12378,12 +12919,12 @@ fi if test -z "$native_sound_lib"; then echo $ac_n "checking for AOpenAudio in -lAlib""... $ac_c" 1>&6 -echo "configure:12382: checking for AOpenAudio in -lAlib" >&5 +echo "configure:12923: checking for AOpenAudio in -lAlib" >&5 ac_lib_var=`echo Alib'_'AOpenAudio | sed 'y%./+-%__p_%'` xe_check_libs=" -lAlib " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:12939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -12432,15 +12973,15 @@ fi for dir in "machine" "sys" "linux"; do ac_safe=`echo "${dir}/soundcard.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for ${dir}/soundcard.h""... $ac_c" 1>&6 -echo "configure:12436: checking for ${dir}/soundcard.h" >&5 +echo "configure:12977: checking for ${dir}/soundcard.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:12444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:12985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -12501,15 +13042,15 @@ fi if test "$with_nas_sound" != "no"; then ac_safe=`echo "audio/audiolib.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for audio/audiolib.h""... $ac_c" 1>&6 -echo "configure:12505: checking for audio/audiolib.h" >&5 +echo "configure:13046: checking for audio/audiolib.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:12513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:13054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -12527,12 +13068,12 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo $ac_n "checking for AuOpenServer in -laudio""... $ac_c" 1>&6 -echo "configure:12531: checking for AuOpenServer in -laudio" >&5 +echo "configure:13072: checking for AuOpenServer in -laudio" >&5 ac_lib_var=`echo audio'_'AuOpenServer | sed 'y%./+-%__p_%'` xe_check_libs=" -laudio " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:13088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -12582,7 +13123,7 @@ EOF fi libs_x="-laudio $libs_x" && if test "$extra_verbose" = "yes"; then echo " Prepending \"-laudio\" to \$libs_x"; fi cat > conftest.$ac_ext < EOF @@ -12613,7 +13154,7 @@ if test "$with_esd_sound" != "no"; then # Extract the first word of "esd-config", so it can be a program name with args. set dummy esd-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:12617: checking for $ac_word" >&5 +echo "configure:13158: checking for $ac_word" >&5 if test -n "$have_esd_config"; then ac_cv_prog_have_esd_config="$have_esd_config" # Let the user override the test. @@ -12642,10 +13183,10 @@ fi c_switch_site="$c_switch_site `esd-config --cflags`" && if test "$extra_verbose" = "yes"; then echo " Appending \"`esd-config --cflags`\" to \$c_switch_site"; fi LIBS="`esd-config --libs` $LIBS" && if test "$extra_verbose" = "yes"; then echo " Prepending \"`esd-config --libs`\" to \$LIBS"; fi echo $ac_n "checking for esd_play_stream""... $ac_c" 1>&6 -echo "configure:12646: checking for esd_play_stream" >&5 +echo "configure:13187: checking for esd_play_stream" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:13213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_esd_play_stream=yes" else @@ -12719,7 +13260,7 @@ test -z "$with_tty" && with_tty=yes if test "$with_tty" = "yes" ; then echo "checking for TTY-related features" 1>&6 -echo "configure:12723: checking for TTY-related features" >&5 +echo "configure:13264: checking for TTY-related features" >&5 { test "$extra_verbose" = "yes" && cat << \EOF Defining HAVE_TTY EOF @@ -12735,12 +13276,12 @@ EOF if test -z "$with_ncurses"; then echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 -echo "configure:12739: checking for tgetent in -lncurses" >&5 +echo "configure:13280: checking for tgetent in -lncurses" >&5 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` xe_check_libs=" -lncurses " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:13296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -12784,15 +13325,15 @@ EOF ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 -echo "configure:12788: checking for ncurses/curses.h" >&5 +echo "configure:13329: checking for ncurses/curses.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:12796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:13337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -12814,15 +13355,15 @@ fi ac_safe=`echo "ncurses/term.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for ncurses/term.h""... $ac_c" 1>&6 -echo "configure:12818: checking for ncurses/term.h" >&5 +echo "configure:13359: checking for ncurses/term.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:12826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:13367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -12852,15 +13393,15 @@ fi c_switch_site="$c_switch_site -I/usr/include/ncurses" ac_safe=`echo "ncurses/curses.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for ncurses/curses.h""... $ac_c" 1>&6 -echo "configure:12856: checking for ncurses/curses.h" >&5 +echo "configure:13397: checking for ncurses/curses.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:12864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:13405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -12895,12 +13436,12 @@ fi for lib in curses termlib termcap; do echo $ac_n "checking for tgetent in -l$lib""... $ac_c" 1>&6 -echo "configure:12899: checking for tgetent in -l$lib" >&5 +echo "configure:13440: checking for tgetent in -l$lib" >&5 ac_lib_var=`echo $lib'_'tgetent | sed 'y%./+-%__p_%'` xe_check_libs=" -l$lib " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:13456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -12942,12 +13483,12 @@ fi else echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 -echo "configure:12946: checking for tgetent in -lcurses" >&5 +echo "configure:13487: checking for tgetent in -lcurses" >&5 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` xe_check_libs=" -lcurses " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:13503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -12976,12 +13517,12 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then else echo "$ac_t""no" 1>&6 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 -echo "configure:12980: checking for tgetent in -ltermcap" >&5 +echo "configure:13521: checking for tgetent in -ltermcap" >&5 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` xe_check_libs=" -ltermcap " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:13537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -13040,15 +13581,15 @@ EOF test -z "$with_gpm" && { ac_safe=`echo "gpm.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for gpm.h""... $ac_c" 1>&6 -echo "configure:13044: checking for gpm.h" >&5 +echo "configure:13585: checking for gpm.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:13052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:13593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -13071,12 +13612,12 @@ fi } test -z "$with_gpm" && { echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6 -echo "configure:13075: checking for Gpm_Open in -lgpm" >&5 +echo "configure:13616: checking for Gpm_Open in -lgpm" >&5 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'` xe_check_libs=" -lgpm " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:13632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -13137,20 +13678,20 @@ test "$with_x11" = "yes" -o "$with_tty" = "yes" && extra_objs="$extra_objs event test "$with_database_gdbm $with_database_dbm $with_database_berkdb" \ != "no no no" && echo "checking for database support" 1>&6 -echo "configure:13141: checking for database support" >&5 +echo "configure:13682: checking for database support" >&5 if test "$with_database_gdbm $with_database_dbm" != "no no"; then ac_safe=`echo "ndbm.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for ndbm.h""... $ac_c" 1>&6 -echo "configure:13146: checking for ndbm.h" >&5 +echo "configure:13687: checking for ndbm.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:13154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:13695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -13180,12 +13721,12 @@ fi if test "$with_database_gdbm" != "no"; then echo $ac_n "checking for dbm_open in -lgdbm""... $ac_c" 1>&6 -echo "configure:13184: checking for dbm_open in -lgdbm" >&5 +echo "configure:13725: checking for dbm_open in -lgdbm" >&5 ac_lib_var=`echo gdbm'_'dbm_open | sed 'y%./+-%__p_%'` xe_check_libs=" -lgdbm " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:13741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -13224,10 +13765,10 @@ fi if test "$with_database_dbm" != "no"; then echo $ac_n "checking for dbm_open""... $ac_c" 1>&6 -echo "configure:13228: checking for dbm_open" >&5 +echo "configure:13769: checking for dbm_open" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:13795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_dbm_open=yes" else @@ -13269,12 +13810,12 @@ else echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6 -echo "configure:13273: checking for dbm_open in -ldbm" >&5 +echo "configure:13814: checking for dbm_open in -ldbm" >&5 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'` xe_check_libs=" -ldbm " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:13830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -13326,10 +13867,10 @@ EOF if test "$with_database_berkdb" != "no"; then echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 -echo "configure:13330: checking for Berkeley db.h" >&5 +echo "configure:13871: checking for Berkeley db.h" >&5 for header in "db/db.h" "db.h"; do cat > conftest.$ac_ext < @@ -13351,7 +13892,7 @@ int main() { ; return 0; } EOF -if { (eval echo configure:13355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:13896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* db_h_file="$header"; break else @@ -13367,9 +13908,9 @@ rm -f conftest* if test "$with_database_berkdb" != "no"; then echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 -echo "configure:13371: checking for Berkeley DB version" >&5 +echo "configure:13912: checking for Berkeley DB version" >&5 cat > conftest.$ac_ext < #if DB_VERSION_MAJOR > 1 @@ -13381,7 +13922,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "yes" >/dev/null 2>&1; then rm -rf conftest* cat > conftest.$ac_ext < #if DB_VERSION_MAJOR > 2 @@ -13408,10 +13949,10 @@ fi rm -f conftest* echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 -echo "configure:13412: checking for $dbfunc" >&5 +echo "configure:13953: checking for $dbfunc" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:13979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$dbfunc=yes" else @@ -13453,12 +13994,12 @@ else echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 -echo "configure:13457: checking for $dbfunc in -ldb" >&5 +echo "configure:13998: checking for $dbfunc in -ldb" >&5 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` xe_check_libs=" -ldb " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:14014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -13533,12 +14074,12 @@ fi if test "$with_socks" = "yes"; then echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 -echo "configure:13537: checking for SOCKSinit in -lsocks" >&5 +echo "configure:14078: checking for SOCKSinit in -lsocks" >&5 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` xe_check_libs=" -lsocks " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:14094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -13604,22 +14145,22 @@ fi if test "$with_modules" != "no"; then echo "checking for module support" 1>&6 -echo "configure:13608: checking for module support" >&5 +echo "configure:14149: checking for module support" >&5 if test "$with_msw" = "yes"; then have_dl=yes; else ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 -echo "configure:13615: checking for dlfcn.h" >&5 +echo "configure:14156: checking for dlfcn.h" >&5 cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:13623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:14164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* @@ -13636,16 +14177,16 @@ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 -echo "configure:13640: checking for dlopen in -lc" >&5 +echo "configure:14181: checking for dlopen in -lc" >&5 cat > conftest.$ac_ext < int main() { dlopen ("", 0); ; return 0; } EOF -if { (eval echo configure:13649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:14190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* have_dl=yes else @@ -13654,18 +14195,18 @@ else rm -rf conftest* echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 -echo "configure:13658: checking for dlopen in -ldl" >&5 +echo "configure:14199: checking for dlopen in -ldl" >&5 ac_save_LIBS="$LIBS" LIBS="-ldl $LIBS" cat > conftest.$ac_ext < int main() { dlopen ("", 0); ; return 0; } EOF -if { (eval echo configure:13669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:14210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* have_dl=yes else @@ -13694,12 +14235,12 @@ EOF else echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 -echo "configure:13698: checking for shl_load in -ldld" >&5 +echo "configure:14239: checking for shl_load in -ldld" >&5 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` xe_check_libs=" -ldld " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:14255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -13737,12 +14278,12 @@ else echo "$ac_t""no" 1>&6 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 -echo "configure:13741: checking for dld_init in -ldld" >&5 +echo "configure:14282: checking for dld_init in -ldld" >&5 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` xe_check_libs=" -ldld " cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:14298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -13798,7 +14339,7 @@ xehost=$canonical xealias=$internal_configuration echo "checking how to build dynamic libraries for ${xehost}" 1>&6 -echo "configure:13802: checking how to build dynamic libraries for ${xehost}" >&5 +echo "configure:14343: checking how to build dynamic libraries for ${xehost}" >&5 # Transform *-*-linux* to *-*-linux-gnu*, to support old configure scripts. case "$xehost" in *-*-linux-gnu*) ;; @@ -13826,9 +14367,9 @@ if test "$GCC" = "yes"; then XEGCC=yes else echo $ac_n "checking checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:13830: checking checking whether we are using GNU C" >&5 +echo "configure:14371: checking checking whether we are using GNU C" >&5 cat > conftest.$ac_ext <&6 -echo "configure:13854: checking how to produce PIC code" >&5 +echo "configure:14395: checking how to produce PIC code" >&5 wl= can_build_shared=yes @@ -13951,18 +14492,18 @@ if test -n "$dll_cflags"; then # Check to make sure the dll_cflags actually works. echo $ac_n "checking if PIC flag ${dll_cflags} really works""... $ac_c" 1>&6 -echo "configure:13955: checking if PIC flag ${dll_cflags} really works" >&5 +echo "configure:14496: checking if PIC flag ${dll_cflags} really works" >&5 save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $dll_cflags -DPIC" cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:14507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* # On HP-UX, the stripped-down bundled CC doesn't accept +Z, but also @@ -13993,7 +14534,7 @@ cc_produces_so=no xldf= xcldf= echo $ac_n "checking if C compiler can produce shared libraries""... $ac_c" 1>&6 -echo "configure:13997: checking if C compiler can produce shared libraries" >&5 +echo "configure:14538: checking if C compiler can produce shared libraries" >&5 if test "$XEGCC" = yes; then xcldf="-shared" xldf="-shared" @@ -14044,14 +14585,14 @@ if test -n "$xcldf"; then xe_libs= ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&5' cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:14596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* cc_produces_so=yes else @@ -14076,7 +14617,7 @@ if test -z "$LTLD"; then if test "$XEGCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 -echo "configure:14080: checking for ld used by GCC" >&5 +echo "configure:14621: checking for ld used by GCC" >&5 ac_prog=`($CC -print-prog-name=ld) 2>&5` case "$ac_prog" in # Accept absolute paths. @@ -14101,7 +14642,7 @@ echo "configure:14080: checking for ld used by GCC" >&5 esac else echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 -echo "configure:14105: checking for GNU ld" >&5 +echo "configure:14646: checking for GNU ld" >&5 fi if test -z "$LTLD"; then @@ -14139,7 +14680,7 @@ ld_dynamic_link_flags= # Check to see if it really is or isn't GNU ld. echo $ac_n "checking if the linker is GNU ld""... $ac_c" 1>&6 -echo "configure:14143: checking if the linker is GNU ld" >&5 +echo "configure:14684: checking if the linker is GNU ld" >&5 # I'd rather use --version here, but apparently some GNU ld's only accept -v. if $LTLD -v 2>&1 &5; then xe_gnu_ld=yes @@ -14167,7 +14708,7 @@ else # OK - only NOW do we futz about with ld. # See if the linker supports building shared libraries. echo $ac_n "checking whether the linker supports shared libraries""... $ac_c" 1>&6 -echo "configure:14171: checking whether the linker supports shared libraries" >&5 +echo "configure:14712: checking whether the linker supports shared libraries" >&5 dll_ld=$CC dll_ldflags=$LDFLAGS ld_shlibs=yes @@ -14378,10 +14919,10 @@ EOF for ac_func in dlerror _dlerror do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:14382: checking for $ac_func" >&5 +echo "configure:14923: checking for $ac_func" >&5 cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:14949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -14443,11 +14984,11 @@ done fi cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 +if { (eval echo configure:14992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit $?) 2>&5 then : else @@ -14510,7 +15051,7 @@ c_switch_general="$T" T="" -for W in $c_switch_x_site $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done +for W in $c_switch_x_site $c_switch_gtk $X_CFLAGS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done c_switch_window_system="$T" @@ -14540,7 +15081,7 @@ ld_libs_general="$T" T="" -for W in $X_EXTRA_LIBS $libs_x $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done +for W in $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS; do if test -z "$T"; then T="$W"; else T="$T $W"; fi; done ld_libs_window_system="$T" @@ -15093,6 +15634,7 @@ if test "$need_athena" = "yes"; then echo " - Athena library to link: $athena_lib" fi case "$with_menubars" in + gtk ) echo " Using GTK menubars." ;; lucid ) echo " Using Lucid menubars." ;; motif ) echo " Using Motif menubars." echo " *WARNING* The Motif menubar implementation is currently buggy." @@ -15101,12 +15643,14 @@ case "$with_menubars" in msw ) echo " Using MS-Windows menubars." ;; esac case "$with_scrollbars" in + gtk ) echo " Using GTK scrollbars." ;; lucid ) echo " Using Lucid scrollbars." ;; motif ) echo " Using Motif scrollbars." ;; athena ) echo " Using Athena scrollbars." ;; msw ) echo " Using MS-Windows scrollbars." ;; esac case "$with_dialogs" in + gtk ) echo " Using GTK dialog boxes." ;; motif ) echo " Using Motif dialog boxes." if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher." @@ -15118,6 +15662,7 @@ case "$with_dialogs" in msw ) echo " Using MS-Windows dialog boxes." ;; esac case "$with_widgets" in + gtk ) echo " Using GTK native widgets." ;; motif ) echo " Using Motif native widgets." ;; athena ) echo " Using Athena native widgets." ;; msw ) echo " Using MS-Windows native widgets." ;; @@ -15347,6 +15892,7 @@ s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g s%@INSTALL_DATA@%$INSTALL_DATA%g s%@YACC@%$YACC%g s%@SET_MAKE@%$SET_MAKE%g +s%@GTK_CONFIG@%$GTK_CONFIG%g s%@X_CFLAGS@%$X_CFLAGS%g s%@X_PRE_LIBS@%$X_PRE_LIBS%g s%@X_LIBS@%$X_LIBS%g diff --git a/configure.in b/configure.in index 24cba3d..79a99d9 100644 --- a/configure.in +++ b/configure.in @@ -198,7 +198,7 @@ dnl ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&AC_FD_CC' dnl ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&AC_FD_CC' xe_cppflags='$CPPFLAGS $c_switch_site $c_switch_machine $c_switch_system $c_switch_x_site $X_CFLAGS' xe_ldflags='$LDFLAGS $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_x_site $ld_switch_run' -xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' +xe_libs='$ld_call_shared $xe_check_libs $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS $LIBS $libs_machine $libs_system $libs_standard' ac_cpp='$CPP '"$xe_cppflags" ac_compile='${CC-cc} -c $CFLAGS '"$xe_cppflags"' conftest.$ac_ext 1>&AC_FD_CC' ac_link='${CC-cc} -o conftest $CFLAGS '"$xe_cppflags $xe_ldflags"' conftest.$ac_ext '"$xe_libs"' 1>&AC_FD_CC' @@ -341,6 +341,7 @@ package_path='' etcdir='${datadir}/${instvardir}/etc' archlibdir='${datadir}/${instvardir}/${configuration}' docdir='${archlibdir}' +with_netinstall="no" with_prefix='yes' with_site_lisp='no' with_site_modules='yes' @@ -358,6 +359,10 @@ rel_alloc='default' with_system_malloc='default' with_dlmalloc='default' native_sound_lib='' +dnl These should be set to the empty string when we want gtk / gnome to +dnl be auto-detected instead of manually specified. +with_gtk='no' +with_gnome='no' dnl use_assertions should be 'yes' by default. Too many people in this dnl world have core dumps turned off by default or \"cannot find where the dnl core file went\". At least we should get some useful output ... @@ -454,6 +459,8 @@ while test $# != 0; do with_site_modules | \ with_x | \ with_x11 | \ + with_gtk | \ + with_gnome | \ with_msw | \ with_gcc | \ dynamic | \ @@ -493,6 +500,7 @@ while test $# != 0; do with_hesiod | \ with_dnet | \ with_infodock | \ + with_netinstall | \ external_widget | \ verbose | \ extra_verbose | \ @@ -751,9 +759,9 @@ The default is to autodetect all sound support."]) infopath ) AC_DEFINE(INFOPATH_USER_DEFINED) ;; package_path ) AC_DEFINE(PACKAGE_PATH_USER_DEFINED) ;; datadir ) - AC_DEFINE(INFODIR_USER_DEFINED) - AC_DEFINE(LISPDIR_USER_DEFINED) - AC_DEFINE(MODULEDIR_USER_DEFINED) + AC_DEFINE(INFODIR_USER_DEFINED) + AC_DEFINE(LISPDIR_USER_DEFINED) + AC_DEFINE(MODULEDIR_USER_DEFINED) AC_DEFINE(ETCDIR_USER_DEFINED) AC_DEFINE(DOCDIR_USER_DEFINED) AC_DEFINE(ARCHLIBDIR_USER_DEFINED) ;; @@ -779,9 +787,10 @@ The default is to autodetect all sound support."]) a | at | ath | athe | athen | athena ) val=athena ;; n | no | non | none ) val=no ;; y | ye | yes ) val=yes ;; - m | ms | msw ) val=msw ;; + g | gt | gtk ) val=gtk ;; + m | ms | msw ) val=msw ;; * ) USAGE_ERROR(["The \`--$optname' option must have one of these values: - \`lucid', \`motif', \`athena', \`yes', or \`no'."]) ;; + \`gtk\', \`lucid', \`motif', \`athena', \`yes', or \`no'."]) ;; esac eval "$opt=\"$val\"" ;; @@ -1837,12 +1846,15 @@ test "$extra_verbose" = "yes" && \ ld lib_gcc ld_text_start_addr start_files ordinary_link have_terminfo mail_use_flock mail_use_lockf) && echo "" -dnl Pick up mingw32 include path +dnl Pick up mingw include path +dnl We only cope with headers in mingw, not mingw32: no previous version of +dnl XEmacs supported mingw and cygnus have made this incompatible change +dnl so we just go with the flow. case "$opsys" in mingw* | cygwin*) cygwin_include=`eval "gcc -print-file-name=libc.a"` ; cygwin_include=`eval "dirname $cygwin_include"` ; cygwin_include="-I$cygwin_include/../include" ; - extra_includes="$cygwin_include/mingw32 $cygwin_include/mingw $cygwin_include" ; + extra_includes="$cygwin_include/mingw $cygwin_include" ; case "$opsys" in mingw*) XE_APPEND($extra_includes, c_switch_system) ;; esac @@ -2493,6 +2505,116 @@ dnl ---------------------- AC_CHECKING("for specified window system") +dnl Autodetection of Gdk libraries and includes +dnl ------------------------------------------- +dnl On some systems (FreeBSD springs to mind), they use +dnl versions on the utility routines, so instead of gtk-config +dnl you must use gtk12-config, etc, etc. + +GNOME_CONFIG=no +GTK_CONFIG=no + +if test "$with_gnome" != "no"; then + AC_MSG_CHECKING(for GNOME configuration script) + for possible in gnome-config + do + possible_version=`${possible} --version 2> /dev/null` + if test "x${possible_version}" != "x"; then + GNOME_CONFIG="${possible}" + with_gnome=yes + with_gtk=yes + break + fi + done + AC_MSG_RESULT([${GNOME_CONFIG}]) +fi + +if test "${GNOME_CONFIG}" != "no"; then + GNOME_LIBS=`${GNOME_CONFIG} --libs gnomeui` + GNOME_CFLAGS=`${GNOME_CONFIG} --cflags gnomeui` + AC_DEFINE(HAVE_GNOME) + XE_APPEND(${GNOME_LIBS}, libs_gtk) + XE_APPEND(${GNOME_CFLAGS}, c_switch_gtk) +fi + +if test "$with_gtk" != "no";then + AC_MSG_CHECKING(for GTK configuration script) + for possible in gtk12-config gtk14-config gtk-config + do + possible_version=`${possible} --version 2> /dev/null` + if test "x${possible_version}" != "x"; then + GTK_CONFIG="${possible}" + fi + case "${possible_version}" in + 1.0.*) AC_MSG_WARN([GTK 1.2 is required, please upgrade your version of GTK.]); with_gtk=no;; + 1.3.*) AC_MSG_WARN([GTK 1.3 is not supported right now]); with_gtk=no;; + 1.2.*) + with_gtk=yes + break + ;; + *) AC_MSG_WARN([Found unsupported version of GTK: $possible_version]);; + esac + done + AC_MSG_RESULT([${GTK_CONFIG}]) +fi + +if test "${GTK_CONFIG}" != "no"; then + AC_MSG_CHECKING(gtk version) + GTK_VERSION=`${GTK_CONFIG} --version` + AC_MSG_RESULT(${GTK_VERSION}) + + AC_MSG_CHECKING(gtk libs) + GTK_LIBS=`${GTK_CONFIG} --libs` + XE_APPEND(${GTK_LIBS}, libs_gtk) + AC_MSG_RESULT(${GTK_LIBS}) + + AC_MSG_CHECKING(gtk cflags) + GTK_CFLAGS=`${GTK_CONFIG} --cflags` + XE_APPEND(${GTK_CFLAGS}, c_switch_gtk) + AC_MSG_RESULT(${GTK_CFLAGS}) + + AC_CHECK_LIB(gdk_imlib, main, XE_PREPEND(-lgdk_imlib, libs_gtk)) + AC_CHECK_LIB(Imlib, Imlib_init, XE_APPEND(-lImlib, libs_gtk)) + AC_CHECK_FUNCS(gdk_imlib_init) + + AC_DEFINE(HAVE_XPM) + AC_DEFINE(HAVE_GTK) + AC_SUBST(GTK_CONFIG) + + window_system=gtk + with_gtk=yes + with_x11=no + + test "${with_scrollbars}" != "no" && with_scrollbars=gtk + test "${with_toolbars}" != no && with_toolbars=gtk + test "${with_menubars}" != "no" && with_menubars=gtk + test "${with_dialogs}" != "no" && with_dialogs=gtk + test "${with_widgets}" != "no" && with_widgets=gtk + + XE_ADD_OBJS(console-gtk.o device-gtk.o event-gtk.o frame-gtk.o) + XE_ADD_OBJS(objects-gtk.o redisplay-gtk.o glyphs-gtk.o) + XE_ADD_OBJS(select-gtk.o gccache-gtk.o) + XE_ADD_OBJS(gtk-xemacs.o ui-gtk.o) + + dnl Check for libglade support (it rocks) + OLD_CFLAGS="${CFLAGS}" + OLD_LDFLAGS="${LDFLAGS}" + CFLAGS="${GTK_CFLAGS} ${CFLAGS}" + LDFLAGS="${LDFLAGS} ${GTK_LIBS}" + AC_CHECK_HEADERS(glade/glade.h glade.h) + AC_CHECK_LIB(xml, main, XE_PREPEND(-lxml, libs_gtk)) + AC_CHECK_LIB(glade, main, XE_PREPEND(-lglade, libs_gtk)) + AC_CHECK_LIB(glade-gnome, main, XE_PREPEND(-lglade-gnome, libs_gtk)) + AC_EGREP_HEADER([char \*txtdomain;], [glade/glade-xml.h], + [AC_MSG_RESULT(yes) + AC_DEFINE(LIBGLADE_XML_TXTDOMAIN,1)], + [AC_MSG_RESULT(no)]) + CFLAGS="${OLD_CFLAGS}" + LDFLAGS="${OLD_LDFLAGS}" +fi + +dnl We may eventually prefer gtk/gdk over vanilla X11... + if test "$with_x11" != "no"; then dnl User-specified --x-includes or --x-libraries implies --with-x11. test "$x_includes $x_libraries" != "NONE NONE" && \ @@ -2537,10 +2659,11 @@ if test "$with_x11" != "no"; then fi fi -case "$with_x11" in - yes ) window_system=x11 HAVE_X_WINDOWS=yes ;; - no ) window_system=none HAVE_X_WINDOWS=no ;; -esac +dnl #### wmperry:: !x11 != NONE +dnl case "$with_x11" in +dnl yes ) window_system=x11 HAVE_X_WINDOWS=yes ;; +dnl no ) window_system=none HAVE_X_WINDOWS=no ;; +dnl esac if test "$with_x11" = "yes"; then AC_DEFINE(HAVE_X_WINDOWS) @@ -2696,7 +2819,7 @@ dnl Avoid re-AC_DEFINE-ing xmkmf symbols we've already defined above. #include extern Bool XRegisterIMInstantiateCallback( Display*, struct _XrmHashBucketRec*, char*, char*, XIMProc, XPointer*); -], [], +], [], [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no) AC_DEFINE(XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE)]) @@ -2739,9 +2862,11 @@ if test "$with_msw" != "no"; then AC_DEFINE(HAVE_MS_WINDOWS) dnl The net installer only works with MS-Windows currently - XE_APPEND(netinstall, MAKE_SUBDIR) - XE_APPEND(netinstall, SRC_SUBDIR_DEPS) - XE_APPEND(netinstall, INSTALL_ARCH_DEP_SUBDIR) + if test "$with_netinstall" = "yes"; then + XE_APPEND(netinstall, MAKE_SUBDIR) + XE_APPEND(netinstall, SRC_SUBDIR_DEPS) + XE_APPEND(netinstall, INSTALL_ARCH_DEP_SUBDIR) + fi install_pp="$blddir/lib-src/installexe.sh" XE_APPEND(-lshell32 -lgdi32 -luser32 -lcomdlg32 -lcomctl32 -lwinspool, libs_system) @@ -2833,6 +2958,11 @@ bitmapdir= case "$window_system" in x11 ) HAVE_X_WINDOWS=yes; echo " Using X11." ;; msw ) HAVE_X_WINDOWS=no ; echo " Using MS-Windows." ;; + gtk ) + HAVE_X_WINDOWS=no + test "$with_gnome" = "yes" && echo " Using GNOME." + test "$with_gnome" = "no" && echo " Using GTK." + ;; none ) HAVE_X_WINDOWS=no ; echo " Using no window system." ;; esac @@ -2856,7 +2986,7 @@ test -z "$with_xauth" && { AC_CHECK_LIB(Xau, XauGetAuthByAddr,[:],with_xauth=no) test -z "$with_xauth" && with_xauth=yes if test "$with_xauth" = "yes"; then AC_DEFINE(HAVE_XAUTH) - XE_SPACE(libs_xauth, $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS) + XE_SPACE(libs_xauth, $GTK_LIBS $X_EXTRA_LIBS -lXau $libs_x $X_PRE_LIBS) fi AC_SUBST(libs_xauth) @@ -2938,6 +3068,9 @@ if test "$with_offix" = "yes"; then XE_APPEND(offix.o, dnd_objs) XE_APPEND(OffiX, dragndrop_proto) fi +if test "$with_gtk" = "yes"; then + XE_APPEND(GTK, dragndrop_proto) +fi dnl Autodetect Drag'n'Drop support dnl always included if CDE, Offix, or MSWindows are defined @@ -3158,6 +3291,22 @@ if test "$window_system" != "none"; then fi dnl ---------------------- +dnl GTK-Specific Graphics libraries +dnl ---------------------- + +if test "$with_gtk" = "yes"; then + dnl Autodetect XFACE + test -z "$with_xface" && { AC_CHECK_HEADER(compface.h, ,with_xface=no) } + test -z "$with_xface" && { AC_CHECK_LIB(compface, UnGenFace,[:] ,with_xface=no) } + test -z "$with_xface" && with_xface=yes + if test "$with_xface" = "yes"; then + AC_DEFINE(HAVE_XFACE) + XE_PREPEND(-lcompface, libs_gtk) + fi +fi + + +dnl ---------------------- dnl X-Specific Graphics libraries dnl ---------------------- @@ -3395,6 +3544,14 @@ test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar.o) test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog.o) test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar.o) +if test "$with_gtk" = "yes"; then + test "$with_menubars" != "no" && XE_ADD_OBJS(menubar-gtk.o) + test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar-gtk.o) + test "$with_dialogs" != "no" && XE_ADD_OBJS(dialog-gtk.o) + test "$with_toolbars" != "no" && XE_ADD_OBJS(toolbar-gtk.o) + test "$all_widgets" != "no no no no no" && XE_ADD_OBJS(gui-gtk.o) +fi + if test "$with_x11" = "yes"; then test "$with_menubars" != "no" && XE_ADD_OBJS(menubar-x.o) test "$with_scrollbars" != "no" && XE_ADD_OBJS(scrollbar-x.o) @@ -3753,6 +3910,10 @@ esac AC_MSG_RESULT($have_mmap) test "$have_mmap" = "yes" && AC_DEFINE(HAVE_MMAP) +dnl By default we switch off rel-alloc on cygwin as it generally causes us grief +case "$opsys" in cygwin*) + test "$rel_alloc" = "default" && rel_alloc=no ;; +esac dnl rel_alloc requires either GNU malloc or system malloc with mmap dnl We only turn rel_alloc on by default if mmap is available. test "$GNU_MALLOC" != "yes" -a "$have_mmap" != "yes" && rel_alloc=no @@ -4235,13 +4396,13 @@ dnl Use XE_SPACE instead of plain assignment statements to remove extraneous bla XE_SPACE(CFLAGS, $CFLAGS) XE_SPACE(extra_objs, $extra_objs) XE_SPACE(c_switch_general, -DHAVE_CONFIG_H $c_switch_site $c_switch_machine $c_switch_system) -XE_SPACE(c_switch_window_system, $c_switch_x_site $X_CFLAGS) +XE_SPACE(c_switch_window_system, $c_switch_x_site $c_switch_gtk $X_CFLAGS) XE_SPACE(c_switch_all, $c_switch_general $c_switch_window_system) XE_SPACE(ld_switch_general, $ld_switch_site $ld_switch_machine $ld_switch_system $ld_switch_run) XE_SPACE(ld_switch_window_system, $ld_switch_x_site) XE_SPACE(ld_switch_all, $ld_switch_general $ld_switch_window_system) XE_SPACE(ld_libs_general, $LIBS $libs_machine $libs_system $libs_standard) -XE_SPACE(ld_libs_window_system, $X_EXTRA_LIBS $libs_x $X_PRE_LIBS) +XE_SPACE(ld_libs_window_system, $X_EXTRA_LIBS $libs_x $libs_gtk $X_PRE_LIBS) XE_SPACE(ld_libs_all, $ld_libs_window_system $ld_libs_general) dnl Compute lists of Makefiles and subdirs @@ -4643,6 +4804,7 @@ if test "$need_athena" = "yes"; then echo " - Athena library to link: $athena_lib" fi case "$with_menubars" in + gtk ) echo " Using GTK menubars." ;; lucid ) echo " Using Lucid menubars." ;; motif ) echo " Using Motif menubars." echo " *WARNING* The Motif menubar implementation is currently buggy." @@ -4651,12 +4813,14 @@ case "$with_menubars" in msw ) echo " Using MS-Windows menubars." ;; esac case "$with_scrollbars" in + gtk ) echo " Using GTK scrollbars." ;; lucid ) echo " Using Lucid scrollbars." ;; motif ) echo " Using Motif scrollbars." ;; athena ) echo " Using Athena scrollbars." ;; msw ) echo " Using MS-Windows scrollbars." ;; esac case "$with_dialogs" in + gtk ) echo " Using GTK dialog boxes." ;; motif ) echo " Using Motif dialog boxes." if test "$unexec" = "unexaix.o"; then if test "`uname -v`" = 4 -a "`uname -r`" -ge 3; then echo " *WARNING* The Motif dialog boxes cause problems on AIX 4.3 and higher." @@ -4668,6 +4832,7 @@ case "$with_dialogs" in msw ) echo " Using MS-Windows dialog boxes." ;; esac case "$with_widgets" in + gtk ) echo " Using GTK native widgets." ;; motif ) echo " Using Motif native widgets." ;; athena ) echo " Using Athena native widgets." ;; msw ) echo " Using MS-Windows native widgets." ;; diff --git a/configure.usage b/configure.usage index d7e9f6c..4f95ce2 100644 --- a/configure.usage +++ b/configure.usage @@ -59,6 +59,8 @@ Installation options: Window-system options: +--with-gtk Support GTK on the X Window System. (EXPERIMENTAL) +--with-gnome Support GNOME on the X Window System. (EXPERIMENTAL) --with-x11 (*) Support the X Window System. --x-includes=DIR Search for X header files in DIR. --x-libraries=DIR Search for X libraries in DIR. @@ -166,6 +168,7 @@ Additional features: --with-dnet (*) Compile with support for DECnet. --with-modules Compile in experimental support for dynamically loaded libraries (Dynamic Shared Objects). +--with-netinstall Compile in support for installation over the internet. --with-site-lisp=yes Allow for a site-lisp directory in the XEmacs hierarchy searched before the installation packages. --with-site-modules=no Disable site-modules directory in the XEmacs hierarchy, diff --git a/etc/NEWS b/etc/NEWS index 6bf41ea..268e048 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -245,7 +245,7 @@ is now equivalent to -user-init-file ~/.xemacs/init.el ~/.emacs -user-init-directory ~/.xemacs, whichever init file comes first. -** New variable `mswindows-meta-activates-menu'. +** New variable `mswindows-alt-by-itself-activates-menu'. If you set this variable to nil then pressing and releasing the Alt key under MS-Windows will no longer activate the menubar. The default is t. This is not to be confused with `menu-accelerator-enabled', diff --git a/etc/README b/etc/README index 49c2065..7cc2125 100644 --- a/etc/README +++ b/etc/README @@ -61,7 +61,7 @@ recycle2.xpm Two versions of oversized Recycle cursor refcard.ps.gz Postscript version of XEmacs reference card refcard.tex XEmacs reference card sample.Xdefaults Example ~/.Xdefaults file -sample.emacs Example ~/.emacs file +sample.init.el Example ~/.xemacs/init.el file sink.xbm A Gnu icon sparcworks/ Support files for Sparcworks tests/ Testcases for external widget diff --git a/info/dir b/info/dir index 033bf07..53cebd4 100644 --- a/info/dir +++ b/info/dir @@ -34,28 +34,25 @@ File: dir Node: Top This is the top of the INFO tree * Menu: -XEmacs 21.2 +XEmacs 21.4 =========== -* Info: (info). Documentation browsing system. -* XEmacs:: The extensible user-friendly self-documenting text editor. - This manual is for XEmacs 21.2 -* Lispref:: XEmacs Lisp technical reference. - This manual is for XEmacs 21.2. -* New-Users-Guide:: XEmacs New User's Guide for XEmacs 21.2. -* XEmacs-FAQ:: XEmacs Frequently Asked Questions for 21.2. -* Internals:: Guide to the internals of XEmacs. -* Emodules:: XEmacs dynamic loadable module support. - - -Local Packages: - -* CL:: A Common Lisp compatibility package for Emacs-Lisp. -* Custom:: Customization Library for Emacs -* External-Widget:: Use XEmacs as a text widget inside of another program. -* Standards: (standards). GNU coding standards. -* Term:: A mode to control inferior processes (a comint replacement) -* Termcap:: The termcap library, which enables application programs - to handle all types of character-display terminals. -* Texinfo: (texinfo). The GNU documentation format. -* Widget:: An Emacs Lisp widget library +* XEmacs:: XEmacs User's Manual. +* Lispref:: XEmacs Lisp Reference Manual. +* New-Users-Guide:: Getting Started with XEmacs. +* XEmacs-FAQ:: XEmacs Frequently Asked Questions for 21.4. +* Info:: Guide to Info, the XEmacs online documentation system. +* Internals:: Guide to the internals of XEmacs. + +Other Documentation: + +* CL:: A Common Lisp compatibility package for Emacs-Lisp. +* Custom:: Customization Library for Emacs. +* Emodules:: XEmacs dynamic loadable module support. +* External-Widget:: Use XEmacs as a text widget inside of another program. +* Standards:: GNU coding standards. +* Term:: A mode to control inferior processes (a comint replacement) +* Termcap:: The termcap library, which enables application programs + to handle all types of character-display terminals. +* Texinfo:: The GNU documentation format. +* Widget:: An Emacs Lisp widget library. diff --git a/info/internals.info b/info/internals.info index 0446b0a..c6d99bd 100644 --- a/info/internals.info +++ b/info/internals.info @@ -40,158 +40,160 @@ Foundation instead of in the original English.  Indirect: internals.info-1: 1776 -internals.info-2: 46637 -internals.info-3: 94562 -internals.info-4: 144259 -internals.info-5: 194152 -internals.info-6: 243742 -internals.info-7: 287809 -internals.info-8: 336676 -internals.info-9: 380670 +internals.info-2: 46623 +internals.info-3: 95573 +internals.info-4: 145274 +internals.info-5: 187499 +internals.info-6: 236623 +internals.info-7: 283120 +internals.info-8: 330185 +internals.info-9: 379320  Tag Table: (Indirect) Node: Top1776 -Node: A History of Emacs7040 -Node: Through Version 188565 -Node: Lucid Emacs12013 -Node: GNU Emacs 1915031 -Node: GNU Emacs 2017214 -Node: XEmacs17641 -Node: XEmacs From the Outside20820 -Node: The Lisp Language22587 -Node: XEmacs From the Perspective of Building32130 -Node: XEmacs From the Inside38255 -Node: The XEmacs Object System (Abstractly Speaking)46637 -Node: How Lisp Objects Are Represented in C60723 -Node: Rules When Writing New C Code65400 -Node: General Coding Rules66204 -Node: Writing Lisp Primitives72014 -Node: Adding Global Lisp Variables83183 -Node: Coding for Mule86821 -Node: Character-Related Data Types87800 -Node: Working With Character and Byte Positions90797 -Node: Conversion to and from External Data94562 -Node: General Guidelines for Writing Mule-Aware Code100703 -Node: An Example of Mule-Aware Code103391 -Node: Techniques for XEmacs Developers105372 -Node: A Summary of the Various XEmacs Modules113319 -Node: Low-Level Modules114139 -Node: Basic Lisp Modules121600 -Node: Modules for Standard Editing Operations128194 -Node: Editor-Level Control Flow Modules134082 -Node: Modules for the Basic Displayable Lisp Objects137593 -Node: Modules for other Display-Related Lisp Objects140546 -Node: Modules for the Redisplay Mechanism141887 -Node: Modules for Interfacing with the File System144259 -Node: Modules for Other Aspects of the Lisp Interpreter and Object System147957 -Node: Modules for Interfacing with the Operating System153410 -Node: Modules for Interfacing with X Windows160966 -Node: Modules for Internationalization164449 -Node: Allocation of Objects in XEmacs Lisp167086 -Node: Introduction to Allocation167607 -Node: Garbage Collection171293 -Node: GCPROing172449 -Node: Garbage Collection - Step by Step179453 -Node: Invocation179845 -Node: garbage_collect_1182858 -Node: mark_object192340 -Node: gc_sweep194152 -Node: sweep_lcrecords_1199215 -Node: compact_string_chars200210 -Node: sweep_strings202390 -Node: sweep_bit_vectors_1203355 -Node: Integers and Characters204031 -Node: Allocation from Frob Blocks204783 -Node: lrecords206387 -Node: Low-level allocation218613 -Node: Cons222720 -Node: Vector223446 -Node: Bit Vector224023 -Node: Symbol224516 -Node: Marker224870 -Node: String225425 -Node: Compiled Function229038 -Node: Dumping229207 -Node: Overview231428 -Node: Data descriptions231998 -Node: Dumping phase234003 -Node: Object inventory234406 -Node: Address allocation237342 -Node: The header238731 -Node: Data dumping239176 -Node: Pointers dumping239837 -Node: Reloading phase241227 -Node: Remaining issues242781 -Node: Events and the Event Loop243742 -Node: Introduction to Events244192 -Node: Main Loop246141 -Node: Specifics of the Event Gathering Mechanism249716 -Node: Specifics About the Emacs Event262169 -Node: The Event Stream Callback Routines262424 -Node: Other Event Loop Functions262669 -Node: Converting Events263809 -Node: Dispatching Events; The Command Builder264418 -Node: Evaluation; Stack Frames; Bindings264653 -Node: Evaluation264995 -Node: Dynamic Binding; The specbinding Stack; Unwind-Protects271550 -Node: Simple Special Forms273934 -Node: Catch and Throw274717 -Node: Symbols and Variables277292 -Node: Introduction to Symbols277556 -Node: Obarrays278624 -Node: Symbol Values282157 -Node: Buffers and Textual Representation284445 -Node: Introduction to Buffers285103 -Node: The Text in a Buffer287809 -Node: Buffer Lists294959 -Node: Markers and Extents296910 -Node: Bufbytes and Emchars299175 -Node: The Buffer Object299390 -Node: MULE Character Sets and Encodings302870 -Node: Character Sets303932 -Node: Encodings307417 -Node: Japanese EUC (Extended Unix Code)308484 -Node: JIS7309316 -Node: Internal Mule Encodings310666 -Node: Internal String Encoding312496 -Node: Internal Character Encoding314641 -Node: CCL316365 -Node: The Lisp Reader and Compiler323118 -Node: Lstreams323331 -Node: Creating an Lstream324362 -Node: Lstream Types325589 -Node: Lstream Functions325841 -Node: Lstream Methods329407 -Node: Consoles; Devices; Frames; Windows332549 -Node: Introduction to Consoles; Devices; Frames; Windows332864 -Node: Point335397 -Node: Window Hierarchy336676 -Node: The Window Object341128 -Node: The Redisplay Mechanism344565 -Node: Critical Redisplay Sections345357 -Node: Line Start Cache346344 -Node: Redisplay Piece by Piece349580 -Node: Extents351617 -Node: Introduction to Extents352151 -Node: Extent Ordering353293 -Node: Format of the Extent Info354534 -Node: Zero-Length Extents356421 -Node: Mathematics of Extent Ordering357821 -Node: Extent Fragments362578 -Node: Faces363664 -Node: Glyphs363780 -Node: Specifiers370413 -Node: Menus370542 -Node: Subprocesses372800 -Node: Interface to the X Window System374786 -Node: Lucid Widget Library375067 -Node: Generic Widget Interface376358 -Node: Scrollbars379917 -Node: Menubars380060 -Node: Checkboxes and Radio Buttons380203 -Node: Progress Bars380389 -Node: Tab Controls380549 -Node: Index380670 +Node: A History of Emacs7053 +Node: Through Version 188578 +Node: Lucid Emacs11999 +Node: GNU Emacs 1915017 +Node: GNU Emacs 2017200 +Node: XEmacs17627 +Node: XEmacs From the Outside20806 +Node: The Lisp Language22573 +Node: XEmacs From the Perspective of Building32116 +Node: XEmacs From the Inside38241 +Node: The XEmacs Object System (Abstractly Speaking)46623 +Node: How Lisp Objects Are Represented in C60709 +Node: Rules When Writing New C Code65386 +Node: General Coding Rules66249 +Node: Writing Lisp Primitives72021 +Node: Writing Good Comments83183 +Node: Adding Global Lisp Variables86722 +Node: Proper Use of Unsigned Types90371 +Node: Coding for Mule91621 +Node: Character-Related Data Types92600 +Node: Working With Character and Byte Positions95573 +Node: Conversion to and from External Data99338 +Node: General Guidelines for Writing Mule-Aware Code105479 +Node: An Example of Mule-Aware Code108167 +Node: Techniques for XEmacs Developers110148 +Node: A Summary of the Various XEmacs Modules118095 +Node: Low-Level Modules118915 +Node: Basic Lisp Modules126328 +Node: Modules for Standard Editing Operations132922 +Node: Editor-Level Control Flow Modules138810 +Node: Modules for the Basic Displayable Lisp Objects142321 +Node: Modules for other Display-Related Lisp Objects145274 +Node: Modules for the Redisplay Mechanism146615 +Node: Modules for Interfacing with the File System148987 +Node: Modules for Other Aspects of the Lisp Interpreter and Object System152685 +Node: Modules for Interfacing with the Operating System158138 +Node: Modules for Interfacing with X Windows165694 +Node: Modules for Internationalization169177 +Node: Allocation of Objects in XEmacs Lisp171814 +Node: Introduction to Allocation172335 +Node: Garbage Collection175976 +Node: GCPROing177132 +Node: Garbage Collection - Step by Step184136 +Node: Invocation184528 +Node: garbage_collect_1187499 +Node: mark_object196981 +Node: gc_sweep198793 +Node: sweep_lcrecords_1203856 +Node: compact_string_chars204851 +Node: sweep_strings207031 +Node: sweep_bit_vectors_1207996 +Node: Integers and Characters208672 +Node: Allocation from Frob Blocks209424 +Node: lrecords211028 +Node: Low-level allocation223254 +Node: Cons227361 +Node: Vector228087 +Node: Bit Vector228664 +Node: Symbol229157 +Node: Marker229511 +Node: String230066 +Node: Compiled Function233679 +Node: Dumping233848 +Node: Overview236069 +Node: Data descriptions236623 +Node: Dumping phase238628 +Node: Object inventory239031 +Node: Address allocation241945 +Node: The header243334 +Node: Data dumping243779 +Node: Pointers dumping244440 +Node: Reloading phase245830 +Node: Remaining issues247384 +Node: Events and the Event Loop248345 +Node: Introduction to Events248795 +Node: Main Loop250710 +Node: Specifics of the Event Gathering Mechanism254285 +Node: Specifics About the Emacs Event266738 +Node: The Event Stream Callback Routines266993 +Node: Other Event Loop Functions267238 +Node: Converting Events268378 +Node: Dispatching Events; The Command Builder268987 +Node: Evaluation; Stack Frames; Bindings269222 +Node: Evaluation269564 +Node: Dynamic Binding; The specbinding Stack; Unwind-Protects276076 +Node: Simple Special Forms278460 +Node: Catch and Throw279243 +Node: Symbols and Variables281818 +Node: Introduction to Symbols282082 +Node: Obarrays283120 +Node: Symbol Values286653 +Node: Buffers and Textual Representation288941 +Node: Introduction to Buffers289599 +Node: The Text in a Buffer292262 +Node: Buffer Lists299412 +Node: Markers and Extents301363 +Node: Bufbytes and Emchars303628 +Node: The Buffer Object303843 +Node: MULE Character Sets and Encodings307323 +Node: Character Sets308385 +Node: Encodings311828 +Node: Japanese EUC (Extended Unix Code)312895 +Node: JIS7313709 +Node: Internal Mule Encodings315059 +Node: Internal String Encoding316889 +Node: Internal Character Encoding319002 +Node: CCL320726 +Node: The Lisp Reader and Compiler327479 +Node: Lstreams327692 +Node: Creating an Lstream328723 +Node: Lstream Types329933 +Node: Lstream Functions330185 +Node: Lstream Methods333751 +Node: Consoles; Devices; Frames; Windows336893 +Node: Introduction to Consoles; Devices; Frames; Windows337208 +Node: Point339698 +Node: Window Hierarchy340977 +Node: The Window Object345429 +Node: The Redisplay Mechanism348866 +Node: Critical Redisplay Sections349658 +Node: Line Start Cache350613 +Node: Redisplay Piece by Piece353849 +Node: Extents355886 +Node: Introduction to Extents356420 +Node: Extent Ordering357546 +Node: Format of the Extent Info358787 +Node: Zero-Length Extents360674 +Node: Mathematics of Extent Ordering362074 +Node: Extent Fragments366831 +Node: Faces367917 +Node: Glyphs368033 +Node: Specifiers374666 +Node: Menus374795 +Node: Subprocesses377053 +Node: Interface to the X Window System379039 +Node: Lucid Widget Library379320 +Node: Generic Widget Interface380611 +Node: Scrollbars384170 +Node: Menubars384313 +Node: Checkboxes and Radio Buttons384456 +Node: Progress Bars384642 +Node: Tab Controls384802 +Node: Index384923  End Tag Table diff --git a/info/internals.info-1 b/info/internals.info-1 index 880768a..7f389ec 100644 --- a/info/internals.info-1 +++ b/info/internals.info-1 @@ -40,7 +40,8 @@ Foundation instead of in the original English.  File: internals.info, Node: Top, Next: A History of Emacs, Prev: (dir), Up: (dir) - This Info file contains v1.0 of the XEmacs Internals Manual. + This Info file contains v1.3 of the XEmacs Internals Manual, August +1999. * Menu: @@ -270,7 +271,7 @@ language developed at MIT that underlies Emacs.) * XEmacs:: The continuation of Lucid Emacs.  -File: internals.info, Node: Through Version 18, Next: Lucid Emacs, Prev: A History of Emacs, Up: A History of Emacs +File: internals.info, Node: Through Version 18, Next: Lucid Emacs, Up: A History of Emacs Through Version 18 ================== diff --git a/info/internals.info-2 b/info/internals.info-2 index 0d0f625..805e7ef 100644 --- a/info/internals.info-2 +++ b/info/internals.info-2 @@ -489,12 +489,14 @@ situations, often in code far away from where the actual breakage is. * General Coding Rules:: * Writing Lisp Primitives:: +* Writing Good Comments:: * Adding Global Lisp Variables:: +* Proper Use of Unsigned Types:: * Coding for Mule:: * Techniques for XEmacs Developers::  -File: internals.info, Node: General Coding Rules, Next: Writing Lisp Primitives, Prev: Rules When Writing New C Code, Up: Rules When Writing New C Code +File: internals.info, Node: General Coding Rules, Next: Writing Lisp Primitives, Up: Rules When Writing New C Code General Coding Rules ==================== @@ -605,7 +607,7 @@ macros `EXTERNAL_LIST_LOOP_DELETE_IF' and `LIST_LOOP_DELETE_IF' delete elements from a lisp list satisfying some predicate.  -File: internals.info, Node: Writing Lisp Primitives, Next: Adding Global Lisp Variables, Prev: General Coding Rules, Up: Rules When Writing New C Code +File: internals.info, Node: Writing Lisp Primitives, Next: Writing Good Comments, Prev: General Coding Rules, Up: Rules When Writing New C Code Writing Lisp Primitives ======================= @@ -835,7 +837,70 @@ arguments. They work by calling `Ffuncall'. contains the definitions for important macros and functions.  -File: internals.info, Node: Adding Global Lisp Variables, Next: Coding for Mule, Prev: Writing Lisp Primitives, Up: Rules When Writing New C Code +File: internals.info, Node: Writing Good Comments, Next: Adding Global Lisp Variables, Prev: Writing Lisp Primitives, Up: Rules When Writing New C Code + +Writing Good Comments +===================== + + Comments are a lifeline for programmers trying to understand tricky +code. In general, the less obvious it is what you are doing, the more +you need a comment, and the more detailed it needs to be. You should +always be on guard when you're writing code for stuff that's tricky, and +should constantly be putting yourself in someone else's shoes and asking +if that person could figure out without much difficulty what's going +on. (Assume they are a competent programmer who understands the +essentials of how the XEmacs code is structured but doesn't know much +about the module you're working on or any algorithms you're using.) If +you're not sure whether they would be able to, add a comment. Always +err on the side of more comments, rather than less. + + Generally, when making comments, there is no need to attribute them +with your name or initials. This especially goes for small, +easy-to-understand, non-opinionated ones. Also, comments indicating +where, when, and by whom a file was changed are _strongly_ discouraged, +and in general will be removed as they are discovered. This is exactly +what `ChangeLogs' are there for. However, it can occasionally be +useful to mark exactly where (but not when or by whom) changes are +made, particularly when making small changes to a file imported from +elsewhere. These marks help when later on a newer version of the file +is imported and the changes need to be merged. (If everything were +always kept in CVS, there would be no need for this. But in practice, +this often doesn't happen, or the CVS repository is later on lost or +unavailable to the person doing the update.) + + When putting in an explicit opinion in a comment, you should +_always_ attribute it with your name, and optionally the date. This +also goes for long, complex comments explaining in detail the workings +of something - by putting your name there, you make it possible for +someone who has questions about how that thing works to determine who +wrote the comment so they can write to them. Preferably, use your +actual name and not your initials, unless your initials are generally +recognized (e.g. `jwz'). You can use only your first name if it's +obvious who you are; otherwise, give first and last name. If you're +not a regular contributor, you might consider putting your email +address in - it may be in the ChangeLog, but after awhile ChangeLogs +have a tendency of disappearing or getting muddled. (E.g. your comment +may get copied somewhere else or even into another program, and +tracking down the proper ChangeLog may be very difficult.) + + If you come across an opinion that is not or no longer valid, or you +come across any comment that no longer applies but you want to keep it +around, enclose it in `[[ ' and ` ]]' marks and add a comment +afterwards explaining why the preceding comment is no longer valid. Put +your name on this comment, as explained above. + + Just as comments are a lifeline to programmers, incorrect comments +are death. If you come across an incorrect comment, *immediately* +correct it or flag it as incorrect, as described in the previous +paragraph. Whenever you work on a section of code, _always_ make sure +to update any comments to be correct - or, at the very least, flag them +as incorrect. + + To indicate a "todo" or other problem, use four pound signs - i.e. +`####'. + + +File: internals.info, Node: Adding Global Lisp Variables, Next: Proper Use of Unsigned Types, Prev: Writing Good Comments, Up: Rules When Writing New C Code Adding Global Lisp Variables ============================ @@ -898,7 +963,36 @@ and you will be the one who's unhappy when you can't figure out how your variable got overwritten.  -File: internals.info, Node: Coding for Mule, Next: Techniques for XEmacs Developers, Prev: Adding Global Lisp Variables, Up: Rules When Writing New C Code +File: internals.info, Node: Proper Use of Unsigned Types, Next: Coding for Mule, Prev: Adding Global Lisp Variables, Up: Rules When Writing New C Code + +Proper Use of Unsigned Types +============================ + + Avoid using `unsigned int' and `unsigned long' whenever possible. +Unsigned types are viral - any arithmetic or comparisons involving +mixed signed and unsigned types are automatically converted to +unsigned, which is almost certainly not what you want. Many subtle and +hard-to-find bugs are created by careless use of unsigned types. In +general, you should almost _never_ use an unsigned type to hold a +regular quantity of any sort. The only exceptions are + + 1. When there's a reasonable possibility you will actually need all + 32 or 64 bits to store the quantity. + + 2. When calling existing API's that require unsigned types. In this + case, you should still do all manipulation using signed types, and + do the conversion at the very threshold of the API call. + + 3. In existing code that you don't want to modify because you don't + maintain it. + + 4. In bit-field structures. + + Other reasonable uses of `unsigned int' and `unsigned long' are +representing non-quantities - e.g. bit-oriented flags and such. + + +File: internals.info, Node: Coding for Mule, Next: Techniques for XEmacs Developers, Prev: Proper Use of Unsigned Types, Up: Rules When Writing New C Code Coding for Mule =============== @@ -923,7 +1017,7 @@ of code generalization for future I18N work. * An Example of Mule-Aware Code::  -File: internals.info, Node: Character-Related Data Types, Next: Working With Character and Byte Positions, Prev: Coding for Mule, Up: Coding for Mule +File: internals.info, Node: Character-Related Data Types, Next: Working With Character and Byte Positions, Up: Coding for Mule Character-Related Data Types ---------------------------- @@ -993,102 +1087,3 @@ glance at the declaration can tell the intended use of the variable. is the distance between two `Extbyte's. Extbytes and Extcounts are not all that frequent in XEmacs code. - -File: internals.info, Node: Working With Character and Byte Positions, Next: Conversion to and from External Data, Prev: Character-Related Data Types, Up: Coding for Mule - -Working With Character and Byte Positions ------------------------------------------ - - Now that we have defined the basic character-related types, we can -look at the macros and functions designed for work with them and for -conversion between them. Most of these macros are defined in -`buffer.h', and we don't discuss all of them here, but only the most -important ones. Examining the existing code is the best way to learn -about them. - -`MAX_EMCHAR_LEN' - This preprocessor constant is the maximum number of buffer bytes to - represent an Emacs character in the variable width internal - encoding. It is useful when allocating temporary strings to keep - a known number of characters. For instance: - - { - Charcount cclen; - ... - { - /* Allocate place for CCLEN characters. */ - Bufbyte *buf = (Bufbyte *)alloca (cclen * MAX_EMCHAR_LEN); - ... - - If you followed the previous section, you can guess that, - logically, multiplying a `Charcount' value with `MAX_EMCHAR_LEN' - produces a `Bytecount' value. - - In the current Mule implementation, `MAX_EMCHAR_LEN' equals 4. - Without Mule, it is 1. - -`charptr_emchar' -`set_charptr_emchar' - The `charptr_emchar' macro takes a `Bufbyte' pointer and returns - the `Emchar' stored at that position. If it were a function, its - prototype would be: - - Emchar charptr_emchar (Bufbyte *p); - - `set_charptr_emchar' stores an `Emchar' to the specified byte - position. It returns the number of bytes stored: - - Bytecount set_charptr_emchar (Bufbyte *p, Emchar c); - - It is important to note that `set_charptr_emchar' is safe only for - appending a character at the end of a buffer, not for overwriting a - character in the middle. This is because the width of characters - varies, and `set_charptr_emchar' cannot resize the string if it - writes, say, a two-byte character where a single-byte character - used to reside. - - A typical use of `set_charptr_emchar' can be demonstrated by this - example, which copies characters from buffer BUF to a temporary - string of Bufbytes. - - { - Bufpos pos; - for (pos = beg; pos < end; pos++) - { - Emchar c = BUF_FETCH_CHAR (buf, pos); - p += set_charptr_emchar (buf, c); - } - } - - Note how `set_charptr_emchar' is used to store the `Emchar' and - increment the counter, at the same time. - -`INC_CHARPTR' -`DEC_CHARPTR' - These two macros increment and decrement a `Bufbyte' pointer, - respectively. They will adjust the pointer by the appropriate - number of bytes according to the byte length of the character - stored there. Both macros assume that the memory address is - located at the beginning of a valid character. - - Without Mule support, `INC_CHARPTR (p)' and `DEC_CHARPTR (p)' - simply expand to `p++' and `p--', respectively. - -`bytecount_to_charcount' - Given a pointer to a text string and a length in bytes, return the - equivalent length in characters. - - Charcount bytecount_to_charcount (Bufbyte *p, Bytecount bc); - -`charcount_to_bytecount' - Given a pointer to a text string and a length in characters, - return the equivalent length in bytes. - - Bytecount charcount_to_bytecount (Bufbyte *p, Charcount cc); - -`charptr_n_addr' - Return a pointer to the beginning of the character offset CC (in - characters) from P. - - Bufbyte *charptr_n_addr (Bufbyte *p, Charcount cc); - diff --git a/info/new-users-guide.info b/info/new-users-guide.info index f3d6418..c013101 100644 --- a/info/new-users-guide.info +++ b/info/new-users-guide.info @@ -19,58 +19,58 @@ preserved on all copies.  Indirect: new-users-guide.info-1: 635 -new-users-guide.info-2: 50468 -new-users-guide.info-3: 100033 +new-users-guide.info-2: 50520 +new-users-guide.info-3: 100114  Tag Table: (Indirect) Node: Top635 -Node: Intro4612 -Node: Entering7195 -Node: Enter8709 -Node: Frame9391 -Node: Exiting11060 -Node: Mode Line12260 -Node: Echo Area14407 -Node: Windows and Menus15762 -Node: XEmacs Window16215 -Node: Pull-down Menus19836 -Node: File menu20715 -Node: Edit menu23974 -Node: Options Menu26500 -Node: Buffers Menu31282 -Node: Help menu31668 -Node: Edit32166 -Node: Insert33760 -Node: Cursor Position35088 -Node: Erase37159 -Node: Numeric Argument38313 -Node: Undo39497 -Node: Customization Basics40260 -Node: Customizing key Bindings41489 -Node: Customizing Menus44979 -Node: Help50468 -Node: The Help Menu51156 -Node: Modes56122 -Node: Major Modes57038 -Node: Minor Modes60987 -Node: Files65082 -Node: File Names65804 -Node: Visiting67607 -Node: Saving Files69731 -Node: Other Customizations73110 -Node: Setting Variables75586 -Node: Init File78795 -Node: Select and Move84265 -Node: Selecting Text85219 -Node: Mouse86732 -Node: Region Operation88057 -Node: Moving Text89317 -Node: Accumulating text90557 -Node: Search and Replace92878 -Node: Key Index96744 -Node: Command Index100033 -Node: Variable Index104135 -Node: Concept Index104712 +Node: Intro4613 +Node: Entering7196 +Node: Enter8710 +Node: Frame9392 +Node: Exiting11061 +Node: Mode Line12261 +Node: Echo Area14408 +Node: Windows and Menus15763 +Node: XEmacs Window16216 +Node: Pull-down Menus19837 +Node: File menu20716 +Node: Edit menu23975 +Node: Options Menu26501 +Node: Buffers Menu31286 +Node: Help menu31672 +Node: Edit32170 +Node: Insert33764 +Node: Cursor Position35092 +Node: Erase37163 +Node: Numeric Argument38317 +Node: Undo39501 +Node: Customization Basics40264 +Node: Customizing key Bindings41536 +Node: Customizing Menus45030 +Node: Help50520 +Node: The Help Menu51208 +Node: Modes56174 +Node: Major Modes57090 +Node: Minor Modes61041 +Node: Files65138 +Node: File Names65860 +Node: Visiting67663 +Node: Saving Files69787 +Node: Other Customizations73166 +Node: Setting Variables75650 +Node: Init File78861 +Node: Select and Move84346 +Node: Selecting Text85300 +Node: Mouse86813 +Node: Region Operation88138 +Node: Moving Text89398 +Node: Accumulating text90638 +Node: Search and Replace92959 +Node: Key Index96825 +Node: Command Index100114 +Node: Variable Index104216 +Node: Concept Index104793  End Tag Table diff --git a/info/standards.info b/info/standards.info index 2ad33de..d7b69eb 100644 --- a/info/standards.info +++ b/info/standards.info @@ -6,7 +6,7 @@ START-INFO-DIR-ENTRY END-INFO-DIR-ENTRY GNU Coding Standards Copyright (C) 1992, 1993, 1994, 1995, 1996, -1997, 1998, 1999 Free Software Foundation, Inc. +1997, 1998, 1999, 2000 Free Software Foundation, Inc. Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are @@ -24,62 +24,72 @@ translation approved by the Free Software Foundation.  Indirect: -standards.info-1: 974 -standards.info-2: 48769 -standards.info-3: 97946 +standards.info-1: 980 +standards.info-2: 50916 +standards.info-3: 100599 +standards.info-4: 150168  Tag Table: (Indirect) -Node: Top974 -Node: Preface1565 -Node: Legal Issues2582 -Node: Reading Non-Free Code2948 -Node: Contributions4671 -Node: Design Advice6801 -Node: Compatibility7309 -Node: Using Extensions8820 -Node: ANSI C10322 -Node: Source Language12445 -Node: Program Behavior13938 -Node: Semantics14647 -Node: Libraries18964 -Node: Errors20199 -Node: User Interfaces21975 -Node: Option Table28852 -Node: Memory Usage43662 -Node: Writing C44656 -Node: Formatting45497 -Node: Comments48769 -Node: Syntactic Conventions52067 -Node: Names55005 -Node: System Portability56939 -Node: CPU Portability58536 -Node: System Functions60793 -Node: Internationalization65897 -Node: Mmap69045 -Node: Documentation69750 -Node: GNU Manuals70385 -Node: Manual Structure Details74633 -Node: License for Manuals75966 -Node: NEWS File76550 -Node: Change Logs77226 -Node: Change Log Concepts77943 -Node: Style of Change Logs79798 -Node: Simple Changes81352 -Node: Conditional Changes82543 -Node: Man Pages83920 -Node: Reading other Manuals85539 -Node: Managing Releases86323 -Node: Configuration87078 -Node: Makefile Conventions94018 -Node: Makefile Basics94777 -Node: Utilities in Makefiles97946 -Node: Command Variables100082 -Node: Directory Variables103583 -Node: Standard Targets114461 -Ref: Standard Targets-Footnote-1124900 -Node: Install Command Categories125000 -Node: Releases129573 -Node: References133656 +Node: Top980 +Node: Preface1585 +Node: Legal Issues3105 +Node: Reading Non-Free Code3568 +Node: Contributions5291 +Node: Trademarks7440 +Node: Design Advice8498 +Node: Source Language9004 +Node: Compatibility11011 +Node: Using Extensions12634 +Node: Standard C14205 +Node: Program Behavior16571 +Node: Semantics17489 +Node: Libraries22177 +Node: Errors23417 +Node: User Interfaces25193 +Node: Graphical Interfaces26793 +Node: Command-Line Interfaces27823 +Node: Option Table33308 +Node: Memory Usage48312 +Node: File Usage49332 +Node: Writing C50075 +Node: Formatting50916 +Node: Comments54974 +Node: Syntactic Conventions58272 +Node: Names61679 +Node: System Portability63867 +Node: CPU Portability66247 +Node: System Functions69498 +Node: Internationalization74700 +Node: Mmap77848 +Node: Documentation78553 +Node: GNU Manuals79657 +Node: Doc Strings and Manuals84709 +Node: Manual Structure Details86257 +Node: License for Manuals87670 +Node: Manual Credits88639 +Node: Printed Manuals89027 +Node: NEWS File89708 +Node: Change Logs90380 +Node: Change Log Concepts91129 +Node: Style of Change Logs92984 +Node: Simple Changes95030 +Node: Conditional Changes96265 +Node: Indicating the Part Changed97678 +Node: Man Pages98196 +Node: Reading other Manuals99815 +Node: Managing Releases100599 +Node: Configuration101354 +Node: Makefile Conventions108254 +Node: Makefile Basics109013 +Node: Utilities in Makefiles112178 +Node: Command Variables114314 +Node: Directory Variables117882 +Node: Standard Targets128767 +Ref: Standard Targets-Footnote-1140018 +Node: Install Command Categories140118 +Node: Releases144691 +Node: References148774 +Node: Index150168  End Tag Table diff --git a/info/xemacs-faq.info b/info/xemacs-faq.info index bd41315..96e328c 100644 --- a/info/xemacs-faq.info +++ b/info/xemacs-faq.info @@ -9,260 +9,260 @@ END-INFO-DIR-ENTRY  Indirect: xemacs-faq.info-1: 205 -xemacs-faq.info-2: 49999 -xemacs-faq.info-3: 99617 -xemacs-faq.info-4: 149492 -xemacs-faq.info-5: 199354 +xemacs-faq.info-2: 50095 +xemacs-faq.info-3: 99803 +xemacs-faq.info-4: 149685 +xemacs-faq.info-5: 199368  Tag Table: (Indirect) Node: Top205 -Node: Introduction16704 -Node: Q1.0.120146 -Node: Q1.0.220682 -Node: Q1.0.321227 -Node: Q1.0.421489 -Node: Q1.0.522939 -Node: Q1.0.623628 -Node: Q1.0.724634 -Node: Q1.0.824887 -Node: Q1.0.925102 -Node: Q1.0.1025380 -Node: Q1.0.1125623 -Node: Q1.0.1226010 -Node: Q1.0.1326378 -Node: Q1.0.1426627 -Node: Q1.1.127139 -Node: Q1.1.228181 -Node: Q1.1.328574 -Node: Q1.2.129525 -Node: Q1.2.230581 -Node: Q1.2.331015 -Node: Q1.3.132099 -Node: Q1.3.232750 -Node: Q1.3.333214 -Node: Q1.3.433455 -Node: Q1.3.534228 -Node: Q1.3.636633 -Node: Q1.3.738164 -Node: Q1.4.139099 -Node: Q1.4.239961 -Node: Q1.4.340302 -Node: Q1.4.440721 -Node: Q1.4.542261 -Node: Q1.4.642565 -Node: Installation43558 -Node: Q2.0.146133 -Node: Q2.0.246933 -Node: Q2.0.348701 -Node: Q2.0.449999 -Node: Q2.0.550591 -Node: Q2.0.650939 -Node: Q2.0.751320 -Node: Q2.0.851701 -Node: Q2.0.953278 -Node: Q2.0.1054716 -Node: Q2.0.1155560 -Node: Q2.0.1256501 -Node: Q2.0.1358024 -Node: Q2.0.1458513 -Node: Q2.1.159571 -Node: Q2.1.262313 -Node: Q2.1.363490 -Node: Q2.1.464783 -Node: Q2.1.565582 -Node: Q2.1.665944 -Node: Q2.1.766421 -Node: Q2.1.866774 -Node: Q2.1.968308 -Node: Q2.1.1068730 -Node: Q2.1.1169487 -Node: Q2.1.1270352 -Node: Q2.1.1371307 -Node: Q2.1.1472338 -Node: Q2.1.1573449 -Node: Q2.1.1680481 -Node: Q2.1.1781175 -Node: Q2.1.1881772 -Node: Q2.1.1981899 -Node: Q2.1.2082429 -Node: Q2.1.2182811 -Node: Q2.1.2283004 -Node: Q2.1.2384301 -Node: Q2.1.2484969 -Node: Q2.1.2585441 -Node: Customization86076 -Node: Q3.0.190914 -Node: Q3.0.291620 -Node: Q3.0.392184 -Node: Q3.0.492601 -Node: Q3.0.593434 -Node: Q3.0.694215 -Node: Q3.0.794795 -Node: Q3.0.895459 -Node: Q3.0.996417 -Node: Q3.1.196978 -Node: Q3.1.297715 -Node: Q3.1.398146 -Node: Q3.1.498335 -Node: Q3.1.598524 -Node: Q3.1.698908 -Node: Q3.1.799617 -Node: Q3.1.8101841 -Node: Q3.2.1102383 -Node: Q3.2.2104036 -Node: Q3.2.3104835 -Node: Q3.2.4105437 -Node: Q3.2.5106471 -Node: Q3.2.6106938 -Node: Q3.3.1107863 -Node: Q3.3.2108293 -Node: Q3.3.3108924 -Node: Q3.3.4109305 -Node: Q3.3.5110406 -Node: Q3.4.1111900 -Node: Q3.4.2112543 -Node: Q3.5.1113055 -Node: Q3.5.2114504 -Node: Q3.5.3114922 -Node: Q3.5.4115760 -Node: Q3.5.5116592 -Node: Q3.5.6117732 -Node: Q3.5.7118722 -Node: Q3.5.8120162 -Node: Q3.5.9120909 -Node: Q3.5.10121689 -Node: Q3.5.11122325 -Node: Q3.6.1122878 -Node: Q3.6.2123623 -Node: Q3.6.3124051 -Node: Q3.7.1124551 -Node: Q3.7.2125439 -Node: Q3.7.3126098 -Node: Q3.7.4126520 -Node: Q3.7.5126863 -Node: Q3.7.6127331 -Node: Q3.7.7128046 -Node: Q3.7.8129066 -Node: Q3.8.1129485 -Node: Q3.8.2129945 -Node: Q3.8.3130408 -Node: Q3.8.4131014 -Node: Q3.8.5131733 -Node: Q3.9.1132518 -Node: Q3.9.2133458 -Node: Q3.9.3134056 -Node: Q3.9.4134718 -Node: Q3.10.1135597 -Node: Q3.10.2136415 -Node: Q3.10.3137420 -Node: Q3.10.4138148 -Node: Q3.10.5138531 -Node: Subsystems139583 -Node: Q4.0.1142070 -Node: Q4.0.2142595 -Node: Q4.0.3143153 -Node: Q4.0.4143474 -Node: Q4.0.5143716 -Node: Q4.0.6143947 -Node: Q4.0.7144535 -Node: Q4.0.8144860 -Node: Q4.0.9146087 -Node: Q4.0.10148125 -Node: Q4.0.11148614 -Node: Q4.0.12149492 -Node: Q4.1.1150465 -Node: Q4.1.2150868 -Node: Q4.1.3151195 -Node: Q4.2.1151504 -Node: Q4.2.2152134 -Node: Q4.2.3152374 -Node: Q4.2.4152918 -Node: Q4.3.1153571 -Node: Q4.3.2154155 -Node: Q4.3.3155636 -Node: Q4.3.4155908 -Node: Q4.3.5156585 -Node: Q4.4.1157213 -Node: Q4.4.2158699 -Node: Q4.5.1159903 -Node: Q4.6.1160672 -Node: Q4.7.1165932 -Node: Q4.7.2166887 -Node: Q4.7.3167184 -Node: Q4.7.4167370 -Node: Q4.7.5168254 -Node: Q4.7.6169895 -Node: Miscellaneous170184 -Node: Q5.0.1173597 -Node: Q5.0.2174336 -Node: Q5.0.3175190 -Node: Q5.0.4175892 -Node: Q5.0.5176831 -Node: Q5.0.6178811 -Node: Q5.0.7179468 -Node: Q5.0.8180073 -Node: Q5.0.9180592 -Node: Q5.0.10181106 -Node: Q5.0.11181354 -Node: Q5.0.12181892 -Node: Q5.0.13182809 -Node: Q5.0.14183493 -Node: Q5.0.15184258 -Node: Q5.0.16184555 -Node: Q5.0.17185067 -Node: Q5.0.18185332 -Node: Q5.0.19185526 -Node: Q5.0.20185950 -Node: Q5.1.1186865 -Node: Q5.1.2188934 -Node: Q5.1.3189670 -Node: Q5.1.4193064 -Node: Q5.1.5193599 -Node: Q5.1.6195723 -Node: Q5.1.7197209 -Node: Q5.1.8198802 -Node: Q5.1.9199354 -Node: Q5.1.10200239 -Node: Q5.1.11201370 -Node: Q5.2.1201919 -Node: Q5.2.2202489 -Node: Q5.2.3202906 -Node: Q5.2.4203141 -Node: Q5.3.1204051 -Node: Q5.3.2205272 -Node: Q5.3.3206048 -Node: Q5.3.4206532 -Node: Q5.3.5207199 -Node: Q5.3.6208068 -Node: Q5.3.7208313 -Node: Q5.3.8210503 -Node: Q5.3.9210750 -Node: Q5.3.10211703 -Node: Q5.3.11213787 -Node: Q5.3.12215378 -Node: MS Windows216652 -Node: Q6.0.1218129 -Node: Q6.0.2218876 -Node: Q6.0.3219341 -Node: Q6.0.4219621 -Node: Q6.1.1221900 -Node: Q6.1.2222771 -Node: Q6.1.3223226 -Node: Q6.1.4223508 -Node: Q6.1.5223886 -Node: Q6.1.6224754 -Node: Q6.2.1227060 -Node: Q6.2.2227961 -Node: Q6.2.3228373 -Node: Q6.3.1228662 -Node: Q6.3.2229756 -Node: Q6.3.3232937 -Node: Q6.4.1233206 -Node: Current Events234541 -Node: Q7.0.1235195 -Node: Q7.0.2235834 -Node: Q7.0.3236907 -Node: Q7.0.4237135 +Node: Introduction16756 +Node: Q1.0.120222 +Node: Q1.0.221123 +Node: Q1.0.321668 +Node: Q1.0.421930 +Node: Q1.0.523322 +Node: Q1.0.624011 +Node: Q1.0.725014 +Node: Q1.0.825262 +Node: Q1.0.925477 +Node: Q1.0.1025755 +Node: Q1.0.1125998 +Node: Q1.0.1226385 +Node: Q1.0.1326753 +Node: Q1.0.1427002 +Node: Q1.1.127514 +Node: Q1.1.228556 +Node: Q1.1.328949 +Node: Q1.2.129900 +Node: Q1.2.231056 +Node: Q1.2.331490 +Node: Q1.3.132574 +Node: Q1.3.233225 +Node: Q1.3.333689 +Node: Q1.3.433930 +Node: Q1.3.534703 +Node: Q1.3.637108 +Node: Q1.3.738639 +Node: Q1.4.139574 +Node: Q1.4.241325 +Node: Q1.4.341696 +Node: Q1.4.442115 +Node: Q1.4.543655 +Node: Q1.4.643959 +Node: Installation44952 +Node: Q2.0.147527 +Node: Q2.0.248327 +Node: Q2.0.350095 +Node: Q2.0.451393 +Node: Q2.0.551985 +Node: Q2.0.652333 +Node: Q2.0.752714 +Node: Q2.0.853095 +Node: Q2.0.954672 +Node: Q2.0.1056110 +Node: Q2.0.1156954 +Node: Q2.0.1257895 +Node: Q2.0.1359419 +Node: Q2.0.1459908 +Node: Q2.1.160966 +Node: Q2.1.263687 +Node: Q2.1.364917 +Node: Q2.1.466210 +Node: Q2.1.567009 +Node: Q2.1.667371 +Node: Q2.1.767848 +Node: Q2.1.868201 +Node: Q2.1.969735 +Node: Q2.1.1070176 +Node: Q2.1.1170933 +Node: Q2.1.1271798 +Node: Q2.1.1372753 +Node: Q2.1.1473784 +Node: Q2.1.1574895 +Node: Q2.1.1681845 +Node: Q2.1.1782539 +Node: Q2.1.1883136 +Node: Q2.1.1983263 +Node: Q2.1.2083802 +Node: Q2.1.2184184 +Node: Q2.1.2284377 +Node: Q2.1.2385674 +Node: Q2.1.2486342 +Node: Q2.1.2586814 +Node: Customization87449 +Node: Q3.0.192303 +Node: Q3.0.293099 +Node: Q3.0.393534 +Node: Q3.0.493961 +Node: Q3.0.594794 +Node: Q3.0.695575 +Node: Q3.0.796155 +Node: Q3.0.896738 +Node: Q3.0.997696 +Node: Q3.1.198257 +Node: Q3.1.298994 +Node: Q3.1.399425 +Node: Q3.1.499614 +Node: Q3.1.599803 +Node: Q3.1.6100197 +Node: Q3.1.7100916 +Node: Q3.1.8103140 +Node: Q3.2.1103682 +Node: Q3.2.2105365 +Node: Q3.2.3106164 +Node: Q3.2.4106776 +Node: Q3.2.5107481 +Node: Q3.2.6107948 +Node: Q3.3.1108873 +Node: Q3.3.2109132 +Node: Q3.3.3109795 +Node: Q3.3.4110186 +Node: Q3.3.5110980 +Node: Q3.4.1112461 +Node: Q3.4.2113038 +Node: Q3.5.1113433 +Node: Q3.5.2114882 +Node: Q3.5.3115310 +Node: Q3.5.4116148 +Node: Q3.5.5116750 +Node: Q3.5.6117901 +Node: Q3.5.7118885 +Node: Q3.5.8120289 +Node: Q3.5.9120534 +Node: Q3.5.10121325 +Node: Q3.5.11121961 +Node: Q3.6.1122514 +Node: Q3.6.2123270 +Node: Q3.6.3123709 +Node: Q3.7.1124128 +Node: Q3.7.2125016 +Node: Q3.7.3125675 +Node: Q3.7.4126097 +Node: Q3.7.5126440 +Node: Q3.7.6126908 +Node: Q3.7.7127644 +Node: Q3.7.8128675 +Node: Q3.8.1129094 +Node: Q3.8.2129390 +Node: Q3.8.3129863 +Node: Q3.8.4130490 +Node: Q3.8.5131209 +Node: Q3.9.1131994 +Node: Q3.9.2132793 +Node: Q3.9.3133391 +Node: Q3.9.4134053 +Node: Q3.10.1134766 +Node: Q3.10.2135605 +Node: Q3.10.3136620 +Node: Q3.10.4137358 +Node: Q3.10.5137741 +Node: Subsystems138793 +Node: Q4.0.1141280 +Node: Q4.0.2141805 +Node: Q4.0.3142363 +Node: Q4.0.4142684 +Node: Q4.0.5142926 +Node: Q4.0.6143157 +Node: Q4.0.7143745 +Node: Q4.0.8144070 +Node: Q4.0.9145297 +Node: Q4.0.10147335 +Node: Q4.0.11147824 +Node: Q4.0.12148702 +Node: Q4.1.1149685 +Node: Q4.1.2150088 +Node: Q4.1.3150415 +Node: Q4.2.1150724 +Node: Q4.2.2151354 +Node: Q4.2.3151594 +Node: Q4.2.4152138 +Node: Q4.3.1152791 +Node: Q4.3.2153375 +Node: Q4.3.3154856 +Node: Q4.3.4155128 +Node: Q4.3.5155805 +Node: Q4.4.1156433 +Node: Q4.4.2157919 +Node: Q4.5.1159123 +Node: Q4.6.1159892 +Node: Q4.7.1165152 +Node: Q4.7.2166107 +Node: Q4.7.3166404 +Node: Q4.7.4166590 +Node: Q4.7.5167474 +Node: Q4.7.6169115 +Node: Miscellaneous169404 +Node: Q5.0.1172823 +Node: Q5.0.2173558 +Node: Q5.0.3174422 +Node: Q5.0.4174833 +Node: Q5.0.5176124 +Node: Q5.0.6178114 +Node: Q5.0.7178771 +Node: Q5.0.8179376 +Node: Q5.0.9179905 +Node: Q5.0.10180439 +Node: Q5.0.11180687 +Node: Q5.0.12180936 +Node: Q5.0.13181863 +Node: Q5.0.14182557 +Node: Q5.0.15183322 +Node: Q5.0.16183619 +Node: Q5.0.17184141 +Node: Q5.0.18184461 +Node: Q5.0.19184655 +Node: Q5.0.20185079 +Node: Q5.1.1185994 +Node: Q5.1.2188063 +Node: Q5.1.3188799 +Node: Q5.1.4192193 +Node: Q5.1.5192728 +Node: Q5.1.6194852 +Node: Q5.1.7196338 +Node: Q5.1.8197931 +Node: Q5.1.9198483 +Node: Q5.1.10199368 +Node: Q5.1.11200499 +Node: Q5.2.1201046 +Node: Q5.2.2201637 +Node: Q5.2.3201981 +Node: Q5.2.4202216 +Node: Q5.3.1203126 +Node: Q5.3.2204357 +Node: Q5.3.3204602 +Node: Q5.3.4205086 +Node: Q5.3.5205763 +Node: Q5.3.6206632 +Node: Q5.3.7206877 +Node: Q5.3.8209067 +Node: Q5.3.9209314 +Node: Q5.3.10210267 +Node: Q5.3.11212351 +Node: Q5.3.12213942 +Node: MS Windows215216 +Node: Q6.0.1216712 +Node: Q6.0.2217467 +Node: Q6.0.3217997 +Node: Q6.0.4218264 +Node: Q6.1.1220417 +Node: Q6.1.2221288 +Node: Q6.1.3221743 +Node: Q6.1.4222025 +Node: Q6.1.5222403 +Node: Q6.1.6223283 +Node: Q6.2.1225589 +Node: Q6.2.2226490 +Node: Q6.2.3226902 +Node: Q6.3.1227443 +Node: Q6.3.2228758 +Node: Q6.3.3231939 +Node: Q6.4.1232441 +Node: Current Events233776 +Node: Q7.0.1234430 +Node: Q7.0.2235069 +Node: Q7.0.3236142 +Node: Q7.0.4236370  End Tag Table diff --git a/info/xemacs-faq.info-1 b/info/xemacs-faq.info-1 index 6706c9f..1e6f304 100644 --- a/info/xemacs-faq.info-1 +++ b/info/xemacs-faq.info-1 @@ -76,8 +76,8 @@ Internationalization: * Q1.3.7:: How about Cyrillic Modes? Getting Started: -* Q1.4.1:: What is a `.emacs' and is there a sample one? -* Q1.4.2:: Can I use the same `.emacs' with the other Emacs? +* Q1.4.1:: What is an `init.el' or `.emacs' and is there a sample one? +* Q1.4.2:: Can I use the same `init.el'/`.emacs' with the other Emacs? * Q1.4.3:: Any good XEmacs tutorials around? * Q1.4.4:: May I see an example of a useful XEmacs Lisp function? * Q1.4.5:: And how do I bind it to a key? @@ -150,7 +150,7 @@ X Window System & Resources: * Q3.1.8:: `-iconic' doesn't work. Textual Fonts & Colors: -* Q3.2.1:: How can I set color options from `.emacs'? +* Q3.2.1:: How can I set color options from `init.el'/`.emacs'? * Q3.2.2:: How do I set the text, menu and modeline fonts? * Q3.2.3:: How can I set the colors when highlighting a region? * Q3.2.4:: How can I limit color map usage? @@ -176,7 +176,7 @@ The Keyboard: * Q3.5.5:: Scrolling one line at a time. * Q3.5.6:: How to map Help key alone on Sun type4 keyboard? * Q3.5.7:: How can you type in special characters in XEmacs? -* Q3.5.8:: Why does `(global-set-key [delete-forward] 'delete-char)' complain? +* Q3.5.8:: [This question intentionally left blank] * Q3.5.9:: How do I make the Delete key delete forward? * Q3.5.10:: Can I turn on "sticky" modifier keys? * Q3.5.11:: How do I map the arrow keys? @@ -207,7 +207,7 @@ Scrollbars: * Q3.9.1:: How can I disable the scrollbar? * Q3.9.2:: How can one use resources to change scrollbar colors? * Q3.9.3:: Moving the scrollbar can move the point; can I disable this? -* Q3.9.4:: How can I get automatic horizontal scrolling? +* Q3.9.4:: How can I turn off automatic horizontal scrolling in specific modes? Text Selections: * Q3.10.1:: How can I turn off or change highlighted selections? @@ -272,14 +272,14 @@ The Miscellaneous Stuff * Q5.0.1:: How can I do source code highlighting using font-lock? * Q5.0.2:: I do not like cc-mode. How do I use the old c-mode? * Q5.0.3:: How do I get `More' Syntax Highlighting on by default? -* Q5.0.4:: How can I enable auto-indent? +* Q5.0.4:: How can I enable auto-indent and/or Filladapt? * Q5.0.5:: How can I get XEmacs to come up in text/auto-fill mode by default? * Q5.0.6:: How do I start up a second shell buffer? * Q5.0.7:: Telnet from shell filters too much. * Q5.0.8:: Why does edt emulation not work? * Q5.0.9:: How can I emulate VI and use it as my default mode? * Q5.0.10:: [This question intentionally left blank] -* Q5.0.11:: How do I turn on filladapt for all buffers? +* Q5.0.11:: [This question intentionally left blank] * Q5.0.12:: How do I disable gnuserv from opening a new frame? * Q5.0.13:: How do I start gnuserv so that each subsequent XEmacs is a client? * Q5.0.14:: Strange things are happening in Shell Mode. @@ -311,7 +311,7 @@ Sound: Miscellaneous: * Q5.3.1:: How do you make XEmacs indent CL if-clauses correctly? -* Q5.3.2:: Fontifying hangs when editing a postscript file. +* Q5.3.2:: [This question intentionally left blank] * Q5.3.3:: How can I print WYSIWYG a font-locked buffer? * Q5.3.4:: Getting M-x lpr to work with postscript printer. * Q5.3.5:: How do I specify the paths that XEmacs uses for finding files? @@ -328,8 +328,8 @@ XEmacs on MS Windows General Info: * Q6.0.1:: What is the status of the XEmacs port to Windows? * Q6.0.2:: What flavors of MS Windows are supported? -* Q6.0.3:: Are binary kits available? -* Q6.0.4:: Does XEmacs on MS Windows require an X server to run? +* Q6.0.3:: Are binaries available? +* Q6.0.4:: Can I build XEmacs on MS Windows with support for X or Cygwin? Building XEmacs on MS Windows: * Q6.1.1:: I decided to run with X. Where do I get an X server? @@ -342,7 +342,7 @@ Building XEmacs on MS Windows: Customization and User Interface: * Q6.2.1:: How will the port cope with differences in the Windows user interface? * Q6.2.2:: How do I change fonts in XEmacs on MS Windows? -* Q6.2.3:: Where do I put my `.emacs' file? +* Q6.2.3:: Where do I put my `init.el'/`.emacs' file? Miscellaneous: * Q6.3.1:: Will XEmacs rename all the win32-* symbols to w32-*? @@ -428,8 +428,8 @@ Internationalization: * Q1.3.7:: How about Cyrillic Modes? Getting Started: -* Q1.4.1:: What is a `.emacs' and is there a sample one? -* Q1.4.2:: Can I use the same `.emacs' with the other Emacs? +* Q1.4.1:: What is an `init.el' or `.emacs' and is there a sample one? +* Q1.4.2:: Can I use the same `init.el'/`.emacs' with the other Emacs? * Q1.4.3:: Any good XEmacs tutorials around? * Q1.4.4:: May I see an example of a useful XEmacs Lisp function? * Q1.4.5:: And how do I bind it to a key? @@ -444,12 +444,17 @@ File: xemacs-faq.info, Node: Q1.0.1, Next: Q1.0.2, Prev: Introduction, Up: I Q1.0.1: What is XEmacs? ----------------------- - An alternative to GNU Emacs, originally based on an early alpha -version of FSF's version 19, and has diverged quite a bit since then. -XEmacs was known as Lucid Emacs through version 19.10. Almost all -features of GNU Emacs are supported in XEmacs. The maintainers of -XEmacs actively track changes to GNU Emacs while also working to add -new features. + XEmacs is a highly customizable open source text editor and +application development system. It is protected under the GNU Public +License and related to other versions of Emacs, in particular GNU +Emacs. Its emphasis is on modern graphical user interface support and +an open software development model, similar to Linux. XEmacs has an +active development community numbering in the hundreds, and runs on +Windows 95 and NT, Linux and nearly every other version of Unix in +existence. Support for XEmacs has been supplied by Sun Microsystems, +University of Illinois, Lucid, ETL/Electrotechnical Laboratory, Amdahl +Corporation, BeOpen, and others, as well as the unpaid time of a great +number of individual developers.  File: xemacs-faq.info, Node: Q1.0.2, Next: Q1.0.3, Prev: Q1.0.1, Up: Introduction @@ -493,7 +498,7 @@ consider using it: * The XEmacs maintainers are generally more receptive to suggestions than the GNU Emacs maintainers. - * Many more bundled packages than GNU Emacs + * Many more bundled packages than GNU Emacs. * Binaries are available for many common operating systems. @@ -504,7 +509,7 @@ consider using it: * Better Motif compliance. * Some internationalization support (including full MULE support, if - compiled with it.) + compiled with it). * Variable-width fonts. @@ -526,7 +531,6 @@ consider using it: * Completely compatible (at the C level) with the Xt-based toolkits. - * First production Web Browser supporting Style Sheets.  File: xemacs-faq.info, Node: Q1.0.5, Next: Q1.0.6, Prev: Q1.0.4, Up: Introduction @@ -551,7 +555,7 @@ Q1.0.6: Where can I get help? ----------------------------- Probably the easiest way, if everything is installed, is to use -Info, by pressing `C-h i', or selecting `Manuals->Info' from the Help +Info, by pressing `C-h i', or looking for an Info item on the Help Menu. `M-x apropos' can be used to look for particular commands. For items not found in the manual, try reading this FAQ and reading @@ -574,7 +578,7 @@ File: xemacs-faq.info, Node: Q1.0.7, Next: Q1.0.8, Prev: Q1.0.6, Up: Introdu Q1.0.7: Where are the mailing lists archived? --------------------------------------------- - The archives can be found at `http://www.xemacs.org/Lists/Archive' + The archives can be found at `http://list-archive.xemacs.org'  File: xemacs-faq.info, Node: Q1.0.8, Next: Q1.0.9, Prev: Q1.0.7, Up: Introduction @@ -716,32 +720,36 @@ Q1.2.1: Who wrote XEmacs? ------------------------- XEmacs is the result of the time and effort of many people. The -developers responsible for the 19.16/20.x releases are: +developers responsible for recent releases are: * Martin Buchholz - * Steve Baur + * Steven Turnbull + + * Ben Wing * Hrvoje Niksic - The developers responsible for the 19.14 release are: + The developers responsible for older releases were: + + * Steve Baur * Chuck Thompson - Chuck was Mr. XEmacs from 19.11 through 19.14, and is responsible - for XEmacs becoming a widely distributed program over the Internet. + * Jamie Zawinski - * Ben Wing + * Richard Mlynarik + Steve Baur was the primary maintainer for 19.15 through 21.0. - * Jamie Zawinski + Chuck Thompson and Ben Wing were the maintainers for 19.11 through + 19.14 and heavy code contributors for 19.8 through 19.10. - Jamie Zawinski was Mr. Lucid Emacs from 19.0 through 19.10, the - last release actually named Lucid Emacs. Richard Mlynarik was - crucial to most of those releases. + Jamie Zawinski was the maintainer for 19.0 through 19.10 (the + entire history of Lucid Emacs). Richard Mlynarik was a heavy code + contributor to 19.6 through 19.8. - * Richard Mlynarik Along with many other contributors, partially enumerated in the `About XEmacs' option in the Help menu. @@ -989,28 +997,44 @@ File: xemacs-faq.info, Node: Q1.4.1, Next: Q1.4.2, Prev: Q1.3.7, Up: Introdu 1.4: Getting Started, Backing up & Recovery =========================================== -Q1.4.1: What is a `.emacs' and is there a sample one? ------------------------------------------------------ - - The `.emacs' file is used to customize XEmacs to your tastes. No -two are alike, nor are they expected to be alike, but that's the point. -The XEmacs distribution contains an excellent starter example in the etc -directory called `sample.emacs'. Copy this file from there to your -home directory and rename it `.emacs'. Then edit it to suit. - - Starting with 19.14, you may bring the `sample.emacs' into an XEmacs -buffer by selecting `Help->Sample .emacs' from the menubar. To -determine the location of the `etc' directory type the command `C-h v +Q1.4.1: What is an `init.el' or `.emacs' and is there a sample one? +------------------------------------------------------------------- + + The `init.el' or `.emacs' file is used to customize XEmacs to your +tastes. Starting in 21.4, the preferred location for the init file is +`~/.xemacs/init.el'; in previous versions, it was `~/.emacs'. 21.4 +still accepts the old location, but the first time you run it, it will +ask to migrate your file to the new location. If you answer yes, the +file will be moved, and a "compatibility" `.emacs' file will be placed +in the old location so that you can still run older versions of XEmacs, +and versions of GNU Emacs, which expect the old location. The `.emacs' +file present is just a stub that loads the real file in +`~/.xemacs/init.el'. + + No two init files are alike, nor are they expected to be alike, but +that's the point. The XEmacs distribution contains an excellent starter +example in the `etc/' directory called `sample.init.el' (starting in +21.4) or `sample.emacs' in older versions. Copy this file from there +to `~/.xemacs/init.el' (starting in 21.4) or `~/.emacs' in older +versions, where `~' means your home directory, of course. Then edit it +to suit. + + You may bring the `sample.init.el' or `sample.emacs' file into an +XEmacs buffer from the menubar. (The menu entry for it is always under +the `Help' menu, but its location under that has changed in various +versions. Recently, look under the `Samples' submenu.) To determine +the location of the `etc/' directory type the command `C-h v data-directory '.  File: xemacs-faq.info, Node: Q1.4.2, Next: Q1.4.3, Prev: Q1.4.1, Up: Introduction -Q1.4.2: Can I use the same `.emacs' with the other Emacs? ---------------------------------------------------------- +Q1.4.2: Can I use the same `init.el'/`.emacs' with the other Emacs? +------------------------------------------------------------------- - Yes. The sample `.emacs' included in the XEmacs distribution will -show you how to handle different versions and flavors of Emacs. + Yes. The sample `init.el'/`.emacs' included in the XEmacs +distribution will show you how to handle different versions and flavors +of Emacs.  File: xemacs-faq.info, Node: Q1.4.3, Next: Q1.4.4, Prev: Q1.4.2, Up: Introduction @@ -1212,33 +1236,3 @@ removed from them if you do not use them. or remove them. In either case, `C-h i' (info mode) will no longer work. - -File: xemacs-faq.info, Node: Q2.0.3, Next: Q2.0.4, Prev: Q2.0.2, Up: Installation - -Q2.0.3: Compiling XEmacs with Netaudio. ---------------------------------------- - - What is the best way to compile XEmacs with the netaudio system, -since I have got the netaudio system compiled but installed at a weird -place, I am not root. Also in the READMEs it does not say anything -about compiling with the audioserver? - - You should only need to add some stuff to the configure command line. -To tell it to compile in netaudio support: `--with-sound=both', or -`--with-sound=nas' if you don't want native sound support for some -reason.) To tell it where to find the netaudio includes and libraries: - - --site-libraries=WHATEVER - --site-includes=WHATEVER - - Then (fingers crossed) it should compile and it will use netaudio if -you have a server running corresponding to the X server. The netaudio -server has to be there when XEmacs starts. If the netaudio server goes -away and another is run, XEmacs should cope (fingers crossed, error -handling in netaudio isn't perfect). - - BTW, netaudio has been renamed as it has a name clash with something -else, so if you see references to NAS or Network Audio System, it's the -same thing. It also might be found at -`ftp://ftp.x.org/contrib/audio/nas/'. - diff --git a/info/xemacs-faq.info-2 b/info/xemacs-faq.info-2 index 66252fd..256d1ad 100644 --- a/info/xemacs-faq.info-2 +++ b/info/xemacs-faq.info-2 @@ -7,6 +7,36 @@ START-INFO-DIR-ENTRY END-INFO-DIR-ENTRY  +File: xemacs-faq.info, Node: Q2.0.3, Next: Q2.0.4, Prev: Q2.0.2, Up: Installation + +Q2.0.3: Compiling XEmacs with Netaudio. +--------------------------------------- + + What is the best way to compile XEmacs with the netaudio system, +since I have got the netaudio system compiled but installed at a weird +place, I am not root. Also in the READMEs it does not say anything +about compiling with the audioserver? + + You should only need to add some stuff to the configure command line. +To tell it to compile in netaudio support: `--with-sound=both', or +`--with-sound=nas' if you don't want native sound support for some +reason.) To tell it where to find the netaudio includes and libraries: + + --site-libraries=WHATEVER + --site-includes=WHATEVER + + Then (fingers crossed) it should compile and it will use netaudio if +you have a server running corresponding to the X server. The netaudio +server has to be there when XEmacs starts. If the netaudio server goes +away and another is run, XEmacs should cope (fingers crossed, error +handling in netaudio isn't perfect). + + BTW, netaudio has been renamed as it has a name clash with something +else, so if you see references to NAS or Network Audio System, it's the +same thing. It also might be found at +`ftp://ftp.x.org/contrib/audio/nas/'. + + File: xemacs-faq.info, Node: Q2.0.4, Next: Q2.0.5, Prev: Q2.0.3, Up: Installation Q2.0.4: Problems with Linux and ncurses. @@ -205,7 +235,7 @@ Q2.0.12: Why can't I strip XEmacs? obviously heavily system dependent. And on some systems, it leads to an executable which, although valid, cannot be stripped without damage. If memory serves, this is especially the case for AIX - binaries. On other architecture it might work OK. + binaries. On other architectures it might work OK. The Right Way to strip the emacs binary is to strip temacs prior to dumping xemacs. This will always work, although you can do that @@ -288,8 +318,8 @@ you try to edit those files, you will be informed that a more recent auto-save file exists. You can use `M-x recover-file' to retrieve the auto-saved version of the file. - Starting with 19.14, you may use the command `M-x recover-session' -after a crash to pick up where you left off. + You can use the command `M-x recover-session' after a crash to pick +up where you left off. Now, XEmacs is not perfect, and there may occasionally be times, or particular sequences of actions, that cause it to crash. If you can @@ -359,10 +389,11 @@ backtrace by doing the following: 3. Reproduce the error. - Depending on the version of XEmacs, you may either select Edit->Show -Messages (19.13 and earlier) or Help->Recent Keystrokes/Messages (19.14 -and later) from the menubar to see the most recent messages. This -command is bound to `C-h l' by default. + Depending on the version of XEmacs, you may either select View->Show +Message Log (recent versions), Edit->Show Messages (some earlier +versions) or Help->Recent Keystrokes/Messages (other earlier versions) +from the menubar to see the most recent messages. This command is bound +to `C-h l' by default.  File: xemacs-faq.info, Node: Q2.1.3, Next: Q2.1.4, Prev: Q2.1.2, Up: Installation @@ -505,7 +536,8 @@ Q2.1.9: XEmacs causes my OpenWindows 3.0 server to crash. The OpenWindows 3.0 server is incredibly buggy. Your best bet is to replace it with one from the generic MIT X11 release. You might also -try disabling parts of your `.emacs', like enabling background pixmaps. +try disabling parts of your `init.el'/`.emacs', like those that enable +background pixmaps.  File: xemacs-faq.info, Node: Q2.1.10, Next: Q2.1.11, Prev: Q2.1.9, Up: Installation @@ -786,9 +818,8 @@ debugger. Here are some hints: authors, or to comp.os.linux.development.system). Again, you'll have to use the narrowing-down process described above. - d. If you compiled 19.14 with `--debug' (or by default in later - versions), you will get a Lisp backtrace output when XEmacs - crashes, so you'll have something useful. + d. You will get a Lisp backtrace output when XEmacs crashes, so + you'll have something useful. * If you compile with the newer gcc variants gcc-2.8 or egcs, you @@ -859,8 +890,8 @@ under which it is running. The solution is to add: (set-time-zone-rule "MET") - to your `.emacs' or the `site-start.el' file if you can. Replace -`MET' with your local timezone. + to your `init.el'/`.emacs' or the `site-start.el' file if you can. +Replace `MET' with your local timezone.  File: xemacs-faq.info, Node: Q2.1.20, Next: Q2.1.21, Prev: Q2.1.19, Up: Installation @@ -971,7 +1002,7 @@ section is devoted to Customization and screen settings. * Menu: -Customization---Emacs Lisp and `.emacs': +Customization---Emacs Lisp and `init.el'/`.emacs': * Q3.0.1:: What version of Emacs am I running? * Q3.0.2:: How do I evaluate Elisp expressions? * Q3.0.3:: `(setq tab-width 6)' behaves oddly. @@ -993,7 +1024,7 @@ X Window System & Resources: * Q3.1.8:: `-iconic' doesn't work. Textual Fonts & Colors: -* Q3.2.1:: How can I set color options from `.emacs'? +* Q3.2.1:: How can I set color options from `init.el'/`.emacs'? * Q3.2.2:: How do I set the text, menu and modeline fonts? * Q3.2.3:: How can I set the colors when highlighting a region? * Q3.2.4:: How can I limit color map usage? @@ -1019,7 +1050,7 @@ The Modeline: * Q3.5.5:: Scrolling one line at a time. * Q3.5.6:: How to map Help key alone on Sun type4 keyboard? * Q3.5.7:: How can you type in special characters in XEmacs? -* Q3.5.8:: Why does `(global-set-key [delete-forward] 'delete-char)' complain? +* Q3.5.8:: [This question intentionally left blank] * Q3.5.9:: How do I make the Delete key delete forward? * Q3.5.10:: Can I turn on "sticky" modifier keys? * Q3.5.11:: How do I map the arrow keys? @@ -1050,7 +1081,7 @@ Scrollbars: * Q3.9.1:: How can I disable the scrollbar? * Q3.9.2:: How can one use resources to change scrollbar colors? * Q3.9.3:: Moving the scrollbar can move the point; can I disable this? -* Q3.9.4:: How can I get automatic horizontal scrolling? +* Q3.9.4:: How can I turn off automatic horizontal scrolling in specific modes? Text Selections: * Q3.10.1:: How can I turn off or change highlighted selections? @@ -1062,18 +1093,19 @@ Text Selections:  File: xemacs-faq.info, Node: Q3.0.1, Next: Q3.0.2, Prev: Customization, Up: Customization -3.0: Customization - Emacs Lisp and .emacs -========================================== +3.0: Customization - Emacs Lisp and `init.el'/`.emacs' +====================================================== Q3.0.1: What version of Emacs am I running? ------------------------------------------- - How can `.emacs' determine which of the family of Emacsen I am using? + How can `init.el'/`.emacs' determine which of the family of Emacsen +I am using? To determine if you are currently running GNU Emacs 18, GNU Emacs 19, XEmacs 19, XEmacs 20, or Epoch, and use appropriate code, check out the -example given in `etc/sample.emacs'. There are other nifty things in -there as well! +example given in `etc/sample.init.el' (`etc/sample.emacs' in XEmacs +versions prior to 21.4). There are other nifty things in there as well! For all new code, all you really need to do is: @@ -1089,9 +1121,7 @@ Q3.0.2: How can I evaluate Emacs-Lisp expressions? `C-j' after the expression. How do I do it from another buffer? Press `M-:' (the default binding of `eval-expression'), and enter -the expression to the minibuffer. In XEmacs prior to 19.15 -`eval-expression' used to be a disabled command by default. If this is -the case, upgrade your XEmacs. +the expression to the minibuffer.  File: xemacs-faq.info, Node: Q3.0.3, Next: Q3.0.4, Prev: Q3.0.2, Up: Customization @@ -1099,9 +1129,9 @@ File: xemacs-faq.info, Node: Q3.0.3, Next: Q3.0.4, Prev: Q3.0.2, Up: Customi Q3.0.3: `(setq tab-width 6)' behaves oddly. ------------------------------------------- - If you put `(setq tab-width 6)' in your `.emacs' file it does not -work! Is there a reason for this? If you do it at the EVAL prompt it -works fine!! How strange. + If you put `(setq tab-width 6)' in your `init.el'/`.emacs' file it +does not work! Is there a reason for this? If you do it at the EVAL +prompt it works fine!! How strange. Use `setq-default' instead, since `tab-width' is all-buffer-local. @@ -1176,8 +1206,6 @@ File: xemacs-faq.info, Node: Q3.0.7, Next: Q3.0.8, Prev: Q3.0.6, Up: Customi Q3.0.7: Font selections in don't get saved after `Save Options'. ---------------------------------------------------------------- - For XEmacs 19.14 and previous: - John Mann writes: You have to go to Options->Frame Appearance and unselect @@ -1185,9 +1213,7 @@ Q3.0.7: Font selections in don't get saved after `Save Options'. are only applied to the _current_ frame and do _not_ get saved when you save options. - For XEmacs 19.15 and later: - - Implement the above as well as set the following in your `.emacs' + Also, set the following in your `init.el'/`.emacs': (setq options-save-faces t) @@ -1280,38 +1306,3 @@ File: xemacs-faq.info, Node: Q3.1.4, Next: Q3.1.5, Prev: Q3.1.3, Up: Customi Q3.1.4: [This question intentionally left blank] ------------------------------------------------ - -File: xemacs-faq.info, Node: Q3.1.5, Next: Q3.1.6, Prev: Q3.1.4, Up: Customization - -Q3.1.5: How can I get the icon to just say `XEmacs'? ----------------------------------------------------- - - I'd like the icon to just say `XEmacs', and not include the name of -the current file in it. - - Add the following line to your `.emacs': - - (setq frame-icon-title-format "XEmacs") - - -File: xemacs-faq.info, Node: Q3.1.6, Next: Q3.1.7, Prev: Q3.1.5, Up: Customization - -Q3.1.6: How can I have the window title area display the full path? -------------------------------------------------------------------- - - I'd like to have the window title area display the full -directory/name of the current buffer file and not just the name. - - Add the following line to your `.emacs': - - (setq frame-title-format "%S: %f") - - A more sophisticated title might be: - - (setq frame-title-format - '("%S: " (buffer-file-name "%f" - (dired-directory dired-directory "%b")))) - - That is, use the file name, or the dired-directory, or the buffer -name. - diff --git a/info/xemacs.info b/info/xemacs.info index 459dc9d..0a3a6df 100644 --- a/info/xemacs.info +++ b/info/xemacs.info @@ -44,16 +44,16 @@ xemacs.info-10: 429215 xemacs.info-11: 477039 xemacs.info-12: 526210 xemacs.info-13: 575703 -xemacs.info-14: 620082 -xemacs.info-15: 669514 -xemacs.info-16: 718919 -xemacs.info-17: 768596 -xemacs.info-18: 816849 -xemacs.info-19: 866480 -xemacs.info-20: 891467 -xemacs.info-21: 923121 -xemacs.info-22: 972525 -xemacs.info-23: 1015111 +xemacs.info-14: 620063 +xemacs.info-15: 669495 +xemacs.info-16: 718900 +xemacs.info-17: 768577 +xemacs.info-18: 816830 +xemacs.info-19: 866461 +xemacs.info-20: 891448 +xemacs.info-21: 923102 +xemacs.info-22: 972506 +xemacs.info-23: 1015092  Tag Table: (Indirect) @@ -303,137 +303,137 @@ Node: Lisp Debug587925 Node: Lisp Interaction593352 Node: External Lisp594707 Node: Packages596781 -Node: Package Terminology597700 -Node: Installing Packages599310 -Node: Sumo602230 -Node: Manually603111 -Node: Automatically604481 -Node: Which Packages609044 -Node: Removing Packages609853 -Node: Building Packages610549 -Node: Local.rules File613190 -Node: Creating Packages615044 -Node: Available Packages620082 -Node: Abbrevs626797 -Node: Defining Abbrevs628996 -Node: Expanding Abbrevs631443 -Node: Editing Abbrevs634145 -Node: Saving Abbrevs636018 -Node: Dynamic Abbrevs637973 -Node: Picture639275 -Node: Basic Picture641708 -Node: Insert in Picture643993 -Node: Tabs in Picture645415 -Node: Rectangles in Picture646936 -Node: Sending Mail648844 -Node: Mail Format650555 -Node: Mail Headers651905 -Node: Mail Mode658313 -Node: Reading Mail661926 -Node: Calendar/Diary663501 -Node: Calendar Motion665175 -Node: Calendar Unit Motion666058 -Node: Move to Beginning or End668381 -Node: Specified Dates669514 -Node: Scroll Calendar670402 -Node: Mark and Region672193 -Node: General Calendar674099 -Node: LaTeX Calendar675707 -Node: Holidays677721 -Node: Sunrise/Sunset680823 -Node: Lunar Phases683862 -Node: Other Calendars685247 -Node: Calendar Systems686734 -Node: To Other Calendar689845 -Node: From Other Calendar691836 -Node: Mayan Calendar694141 -Node: Diary697336 -Node: Diary Commands699085 -Node: Format of Diary File702408 -Node: Date Formats705278 -Node: Adding to Diary707852 -Node: Special Diary Entries709483 -Node: Calendar Customization714822 -Node: Calendar Customizing715684 -Node: Holiday Customizing718919 -Node: Date Display Format725406 -Node: Time Display Format726364 -Node: Daylight Savings727502 -Node: Diary Customizing730690 -Node: Hebrew/Islamic Entries735311 -Node: Fancy Diary Display738651 -Node: Included Diary Files740567 -Node: Sexp Diary Entries741548 -Node: Appt Customizing746638 -Node: Sorting747684 -Node: Shell752490 -Node: Single Shell753783 -Node: Interactive Shell755397 -Node: Shell Mode759162 -Node: Terminal emulator761653 -Node: Term Mode763962 -Node: Paging in Term764876 -Node: Narrowing765674 -Node: Hardcopy767624 -Node: Recursive Edit768596 -Node: Dissociated Press771583 -Node: CONX774146 -Node: Amusements775170 -Node: Emulation775650 -Node: Customization777510 -Node: Minor Modes779326 -Node: Variables780958 -Node: Examining782914 -Node: Easy Customization784375 -Node: Customization Groups785389 -Node: Changing an Option788318 -Node: Face Customization794588 -Node: Specific Customization796352 -Node: Edit Options798959 -Node: Locals800543 -Node: File Variables803722 -Node: Keyboard Macros808272 -Node: Basic Kbd Macro810443 -Node: Save Kbd Macro812375 -Node: Kbd Macro Query814033 -Node: Key Bindings815975 -Node: Keymaps816849 -Node: Rebinding820699 -Node: Interactive Rebinding821398 -Node: Programmatic Rebinding823587 -Node: Key Bindings Using Strings826394 -Node: Disabling828021 -Node: Syntax829800 -Node: Syntax Entry830681 -Node: Syntax Change834765 -Node: Init File836934 -Node: Init Syntax838398 -Node: Init Examples840749 -Node: Terminal Init844939 -Node: Audible Bell846676 -Node: Faces850107 -Node: Frame Components854949 -Node: X Resources855394 -Node: Geometry Resources857053 -Node: Iconic Resources859501 -Node: Resource List859973 -Node: Face Resources866480 -Node: Widgets870157 -Node: Menubar Resources871096 -Node: Quitting872610 -Node: Lossage875588 -Node: Stuck Recursive876232 -Node: Screen Garbled876938 -Node: Text Garbled878072 -Node: Unasked-for Search878711 -Node: Emergency Escape879496 -Node: Total Frustration881275 -Node: Bugs881906 -Node: Glossary891467 -Node: Manifesto923121 -Node: Key Index946598 -Node: Command Index972525 -Node: Variable Index1015111 -Node: Concept Index1031197 +Node: Package Terminology597690 +Node: Installing Packages599300 +Node: Sumo602210 +Node: Manually603091 +Node: Automatically604461 +Node: Which Packages609024 +Node: Removing Packages609833 +Node: Building Packages610529 +Node: Local.rules File613169 +Node: Creating Packages615023 +Node: Available Packages620063 +Node: Abbrevs626778 +Node: Defining Abbrevs628977 +Node: Expanding Abbrevs631424 +Node: Editing Abbrevs634126 +Node: Saving Abbrevs635999 +Node: Dynamic Abbrevs637954 +Node: Picture639256 +Node: Basic Picture641689 +Node: Insert in Picture643974 +Node: Tabs in Picture645396 +Node: Rectangles in Picture646917 +Node: Sending Mail648825 +Node: Mail Format650536 +Node: Mail Headers651886 +Node: Mail Mode658294 +Node: Reading Mail661907 +Node: Calendar/Diary663482 +Node: Calendar Motion665156 +Node: Calendar Unit Motion666039 +Node: Move to Beginning or End668362 +Node: Specified Dates669495 +Node: Scroll Calendar670383 +Node: Mark and Region672174 +Node: General Calendar674080 +Node: LaTeX Calendar675688 +Node: Holidays677702 +Node: Sunrise/Sunset680804 +Node: Lunar Phases683843 +Node: Other Calendars685228 +Node: Calendar Systems686715 +Node: To Other Calendar689826 +Node: From Other Calendar691817 +Node: Mayan Calendar694122 +Node: Diary697317 +Node: Diary Commands699066 +Node: Format of Diary File702389 +Node: Date Formats705259 +Node: Adding to Diary707833 +Node: Special Diary Entries709464 +Node: Calendar Customization714803 +Node: Calendar Customizing715665 +Node: Holiday Customizing718900 +Node: Date Display Format725387 +Node: Time Display Format726345 +Node: Daylight Savings727483 +Node: Diary Customizing730671 +Node: Hebrew/Islamic Entries735292 +Node: Fancy Diary Display738632 +Node: Included Diary Files740548 +Node: Sexp Diary Entries741529 +Node: Appt Customizing746619 +Node: Sorting747665 +Node: Shell752471 +Node: Single Shell753764 +Node: Interactive Shell755378 +Node: Shell Mode759143 +Node: Terminal emulator761634 +Node: Term Mode763943 +Node: Paging in Term764857 +Node: Narrowing765655 +Node: Hardcopy767605 +Node: Recursive Edit768577 +Node: Dissociated Press771564 +Node: CONX774127 +Node: Amusements775151 +Node: Emulation775631 +Node: Customization777491 +Node: Minor Modes779307 +Node: Variables780939 +Node: Examining782895 +Node: Easy Customization784356 +Node: Customization Groups785370 +Node: Changing an Option788299 +Node: Face Customization794569 +Node: Specific Customization796333 +Node: Edit Options798940 +Node: Locals800524 +Node: File Variables803703 +Node: Keyboard Macros808253 +Node: Basic Kbd Macro810424 +Node: Save Kbd Macro812356 +Node: Kbd Macro Query814014 +Node: Key Bindings815956 +Node: Keymaps816830 +Node: Rebinding820680 +Node: Interactive Rebinding821379 +Node: Programmatic Rebinding823568 +Node: Key Bindings Using Strings826375 +Node: Disabling828002 +Node: Syntax829781 +Node: Syntax Entry830662 +Node: Syntax Change834746 +Node: Init File836915 +Node: Init Syntax838379 +Node: Init Examples840730 +Node: Terminal Init844920 +Node: Audible Bell846657 +Node: Faces850088 +Node: Frame Components854930 +Node: X Resources855375 +Node: Geometry Resources857034 +Node: Iconic Resources859482 +Node: Resource List859954 +Node: Face Resources866461 +Node: Widgets870138 +Node: Menubar Resources871077 +Node: Quitting872591 +Node: Lossage875569 +Node: Stuck Recursive876213 +Node: Screen Garbled876919 +Node: Text Garbled878053 +Node: Unasked-for Search878692 +Node: Emergency Escape879477 +Node: Total Frustration881256 +Node: Bugs881887 +Node: Glossary891448 +Node: Manifesto923102 +Node: Key Index946579 +Node: Command Index972506 +Node: Variable Index1015092 +Node: Concept Index1031178  End Tag Table diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 2ff3afa..cf45be8 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog @@ -1,3 +1,20 @@ +2001-03-21 Martin Buchholz + + * XEmacs 21.2.46 "Urania" is released. + +2001-03-19 Andy Piper + + * installexe.sh: use bash by default. + +2001-03-09 William M. Perry + + * gnuclient.c: The Great GTK Merge. + +2000-08-10 Ben Wing + + * update-elc.sh: deleted (retroactively). replaced by update-elc-2.el, + which does the same thing but in a platform-independent way. + 2001-02-23 Martin Buchholz * XEmacs 21.2.45 "Thelxepeia" is released. diff --git a/lib-src/config.values.in b/lib-src/config.values.in index a0cb7ef..1074285 100644 --- a/lib-src/config.values.in +++ b/lib-src/config.values.in @@ -31,6 +31,7 @@ ETCDIR_USER_DEFINED "@ETCDIR_USER_DEFINED@" EXEC_PREFIX "@EXEC_PREFIX@" EXEC_PREFIX_USER_DEFINED "@EXEC_PREFIX_USER_DEFINED@" FFLAGS "@FFLAGS@" +GTK_CONFIG "@GTK_CONFIG@" INFODIR "@INFODIR@" INFODIR_USER_DEFINED "@INFODIR_USER_DEFINED@" INFOPATH "@INFOPATH@" diff --git a/lib-src/gnuclient.c b/lib-src/gnuclient.c index d4c1630..2b1e5d7 100644 --- a/lib-src/gnuclient.c +++ b/lib-src/gnuclient.c @@ -641,9 +641,17 @@ main (int argc, char *argv[]) } else /* !suppress_windows_system */ { - if (display) + if (0) + ; +#ifdef HAVE_X_WINDOWS + else if (display) sprintf (command, "(gnuserv-edit-files '(x %s) '(", clean_string (display)); +#endif +#ifdef HAVE_GTK + else if (display) + strcpy (command, "(gnuserv-edit-files '(gtk nil) '("); +#endif #ifdef HAVE_MS_WINDOWS else sprintf (command, "(gnuserv-edit-files '(mswindows nil) '("); diff --git a/lib-src/gnuserv.c b/lib-src/gnuserv.c index 3cf78c4..34b933b 100644 --- a/lib-src/gnuserv.c +++ b/lib-src/gnuserv.c @@ -500,7 +500,7 @@ permitted (unsigned long host_addr, int fd) #ifdef AUTH_MAGIC_COOKIE if (server_xauth && server_xauth->data) - { + { /* Do a compare without comprising info about the size of the cookie */ int auth_data_pos; @@ -517,7 +517,7 @@ permitted (unsigned long host_addr, int fd) return TRUE; for(;rand() % 1000;); - } + } #else printf ("client tried Xauth, but server is not compiled with Xauth\n"); diff --git a/lib-src/installexe.sh b/lib-src/installexe.sh index 2c1849a..d971b09 100644 --- a/lib-src/installexe.sh +++ b/lib-src/installexe.sh @@ -1,9 +1,10 @@ -#!sh +#!bash install_prog=$1 shift tstr="" + while [ $# -gt 0 ] do if [ -f $1.exe ] diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2aa8b12..87ab998 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,179 @@ +2001-03-21 Martin Buchholz + + * XEmacs 21.2.46 "Urania" is released. + +2001-03-16 Stephen J. Turnbull + + * menubar-items.el (default-menubar): Update sample.emacs to + sample.init.el and adjust accelerators. + +2001-02-02 Stephen J. Turnbull + + * build-report.el (build-report): Improve docstring. + +2001-03-15 Stephen J. Turnbull + + * ChangeLog: Log GTK merge. + + * gutter-items.el: + * mwheel.el: + * sound.el: + * startup.el: + Revert gratuitous whitespace changes. + +2001-03-07 Ben Wing + + * help.el: + * help.el (key-or-menu-binding): + * help.el (Help-find-file): New. + * help.el (describe-beta): + * help.el (describe-copying): + * help.el (describe-project): + * help.el (view-emacs-news): + * help.el (view-sample-init-el): New. + * help.el (Help-princ-face): New. + * help.el (Help-prin1-face): New. + * help.el (help-symbol-function-context-menu): + * help.el (help-symbol-variable-context-menu): + * help.el (help-symbol-function-and-variable-context-menu): + * help.el (frob-help-extents): + * help.el (describe-function-1): + * help.el (describe-variable): + + Add coloring in Help buffers, correspondent with hyperlinks. + View files in view-mode rather than Fundamental. + Remove separators from context menus -- now handled in generic code. + Add `Find Tag' to context menu. + + * menubar.el (popup-mode-menu): + + Rewrite code that outputs the popup menu to (a) put more specific + entries first, (b) be more robust, (c) output the proper context + menu separators automatically (the context menu functionality is + new and currently used only by Help). + +2001-03-10 William M. Perry + + * dialog-gtk.el (gtk-make-dialog-box-internal): Forgot to rewrite + this function when converting from the 21.1 GTK branch. Now + supports file, password, question, and color built-in dialogs. + +2001-03-06 Ben Wing + + * keydefs.el: + * keydefs.el (global-map): + Add commented-out change of M-k (for 21.5). + + * menubar-items.el (default-menubar): + Fix items to control kill-line behavior; add items for + shifted motion. + + * simple.el: + * simple.el (kill-whole-line): + * simple.el (historical-kill-line): Removed. + * simple.el (kill-line): Removed. + * simple.el (kill-entire-line): New. + * simple.el (kill-line-1): New. + * simple.el (backward-kill-line): + Undo kill-whole-line == always changes. Add new function + kill-entire-line to unconditionally delete the current line. + Add comments describing the lamentable state of affairs of + the kill-line functions and variables. + +2001-03-02 Ben Wing + + * simple.el: + * simple.el (beginning-of-buffer): + * simple.el (end-of-buffer): + * simple.el (mark-ring-unrecorded-commands): + * simple.el (signal-error-on-buffer-boundary): + * simple.el (shifted-motion-keys-select-region): + * simple.el (unshifted-motion-keys-deselect-region): + * simple.el (motion-keys-for-shifted-motion): New. + * simple.el (handle-pre-motion-command): + * simple.el (handle-post-motion-command): + * simple.el (forward-char-command): + * simple.el (backward-char-command): + * simple.el (scroll-up-command): + * simple.el (scroll-down-command): + * simple.el (next-line): + * simple.el (previous-line): + * simple.el (backward-block-of-lines): + * simple.el (forward-block-of-lines): + * simple.el (backward-word): + * simple.el (mark-word): + + Augment documentation of the most common motion commands to make + note of the shifted-motion support. Improve the support to (a) + properly document how it works and why it's done in the fashion it + is, and (b) allow the keystrokes that trigger it to be customized. + + Correct error in the customize specification of + mark-ring-unrecorded-commands. + +2001-03-02 Ben Wing + + * font-lock.el: + * font-lock.el (font-lock-pending-extent-table): Removed. + * font-lock.el (font-lock-pending-buffer-table): New. + * font-lock.el (font-lock-pre-idle-hook): + * font-lock.el (font-lock-after-change-function): + * font-lock.el (font-lock-fontify-pending-extents): + * font-lock.el (font-lock-lisp-like): + + Fix handling of pending extents to avoid excessive slowness (N^2 + behavior) when making lots of buffer changes between redisplays, + such as when saving the Options. + +2001-03-09 William M. Perry + + * device.el: + * dragdrop.el: + * dumped-lisp.el: + * faces.el: + * frame.el: + * gnuserv.el: + * loadup.el: + * menubar-items.el: + * minibuf.el: + The Great GTK Merge. + + * ChangeLog.GTK: + * dialog-gtk.el: + * gdk.el: + * generic-widgets.el: + * glade.el: + * gnome-widgets.el: + * gnome.el: + * gtk-compose.el: + * gtk-extra.el: + * gtk-faces.el: + * gtk-ffi.el: + * gtk-file-dialog.el: + * gtk-font-menu.el: + * gtk-glyphs.el: + * gtk-init.el: + * gtk-iso8859-1.el: + * gtk-marshal.el: + * gtk-mouse.el: + * gtk-package.el: + * gtk-password-dialog.el: + * gtk-select.el: + * gtk-widget-accessors.el: + * gtk-widgets.el: + * gtk.el: + widgets-gtk.el: + The Great GTK Merge: new files. + +2001-03-05 Stephen J. Turnbull + + * generic-widgets.el: Don't require gtk (a built-in feature) at + top level. Don't execute the last sexp unless (featurep 'gtk). + +2001-02-28 Stephen J. Turnbull + + * mule/mule-init.el (auto-language-alist): Split zh into GB and BIG5. + 2001-02-23 Martin Buchholz * XEmacs 21.2.45 "Thelxepeia" is released. diff --git a/lisp/auto-autoloads.el b/lisp/auto-autoloads.el index 3881e9a..20cfd5f 100644 --- a/lisp/auto-autoloads.el +++ b/lisp/auto-autoloads.el @@ -978,6 +978,8 @@ Find packages matching a given keyword." t nil) (defcustom font-lock-maximum-size (* 250 1024) "*If non-nil, the maximum size for buffers for fontifying.\nOnly buffers less than this can be fontified when Font Lock mode is turned on.\nIf nil, means size is irrelevant.\nIf a list, each element should be a cons pair of the form (MAJOR-MODE . SIZE),\nwhere MAJOR-MODE is a symbol or t (meaning the default). For example:\n ((c++-mode . 256000) (c-mode . 256000) (rmail-mode . 1048576))\nmeans that the maximum size is 250K for buffers in `c++-mode' or `c-mode', one\nmegabyte for buffers in `rmail-mode', and size is irrelevant otherwise." :type '(choice (const :tag "none" nil) (integer :tag "size") (repeat :menu-tag "mode specific" :tag "mode specific" :value ((t)) (cons :tag "Instance" (radio :tag "Mode" (const :tag "all" t) (symbol :tag "name")) (radio :tag "Size" (const :tag "none" nil) (integer :tag "size"))))) :group 'font-lock) +(defcustom font-lock-fontify-string-delimiters nil "*If non-nil, apply font-lock-string-face to string delimiters as well as\nstring text when fontifying." :type 'boolean :group 'font-lock) + (defvar font-lock-keywords nil "\ A list defining the keywords for `font-lock-mode' to highlight. @@ -1099,6 +1101,43 @@ dramatically slow things down! (make-variable-buffer-local 'font-lock-keywords) +(defvar font-lock-syntactic-keywords nil "\ +A list of the syntactic keywords to highlight. +Can be the list or the name of a function or variable whose value is the list. +See `font-lock-keywords' for a description of the form of this list; +the differences are listed below. MATCH-HIGHLIGHT should be of the form: + + (MATCH SYNTAX OVERRIDE LAXMATCH) + +where SYNTAX can be of the form (SYNTAX-CODE . MATCHING-CHAR), the name of a +syntax table, or an expression whose value is such a form or a syntax table. +OVERRIDE cannot be `prepend' or `append'. + +For example, an element of the form highlights syntactically: + + (\"\\\\$\\\\(#\\\\)\" 1 (1 . nil)) + + a hash character when following a dollar character, with a SYNTAX-CODE of + 1 (meaning punctuation syntax). Assuming that the buffer syntax table does + specify hash characters to have comment start syntax, the element will only + highlight hash characters that do not follow dollar characters as comments + syntactically. + + (\"\\\\('\\\\).\\\\('\\\\)\" + (1 (7 . ?')) + (2 (7 . ?'))) + + both single quotes which surround a single character, with a SYNTAX-CODE of + 7 (meaning string quote syntax) and a MATCHING-CHAR of a single quote (meaning + a single quote matches a single quote). Assuming that the buffer syntax table + does not specify single quotes to have quote syntax, the element will only + highlight single quotes of the form 'c' as strings syntactically. + Other forms, such as foo'bar or 'fubar', will not be highlighted as strings. + +This is normally set via `font-lock-defaults'.") + +(make-variable-buffer-local 'font-lock-syntactic-keywords) + (defcustom font-lock-mode nil "Non nil means `font-lock-mode' is on" :group 'font-lock :type 'boolean :initialize 'custom-initialize-default :require 'font-lock :set (function (lambda (var val) (font-lock-mode (or val 0))))) (defvar font-lock-mode-hook nil "\ @@ -1760,6 +1799,11 @@ buffer called `*Shadows*'. Shadowings are located by calling the (autoload 'load-sound-file "sound" "\ Read in an audio-file and add it to the sound-alist. +FILENAME can either be absolute or relative, in which case the file will +be searched in the directories given by `default-sound-directory-list'. +When looking for the file, the extensions given by `sound-extension-list' are +also tried in the given order. + You can only play sound files if you are running on display 0 of the console of a machine with native sound support or running a NetAudio server and XEmacs has the necessary sound support compiled in. diff --git a/lisp/build-report.el b/lisp/build-report.el index b35fd05..c7e126d 100644 --- a/lisp/build-report.el +++ b/lisp/build-report.el @@ -4,7 +4,7 @@ ;; Author: Adrian Aichner ;; Date: Sun., Apr. 20, 1997-2000. -;; Version: $Revision: 1.5.2.7 $ +;; Version: $Revision: 1.5.2.9 $ ;; Keywords: internal ;; This file is part of XEmacs. @@ -271,19 +271,22 @@ under csh, so that you get beta.err went you run `mk beta'." ;;;###autoload (defun build-report (&rest args) - "Composes a fresh mail message with the contents of the built XEmacs -Installation file and excerpts from XEmacs make output. -`compose-mail' is used to create the mail message. Point is left at -the beginning of the mail text. You may add some personal notes if -you like and send the report. -See also - `compose-mail', `mail-user-agent', - `build-report-destination', - `build-report-keep-regexp', - `build-report-delete-regexp', - `build-report-make-output-dir', - `build-report-make-output-files', and - `build-report-installation-file'." + "Report build information including Installation and make output. + +Prompts for status (usually \"Success\" or \"Failure\"). Then uses +`compose-mail' to create a mail message. The Subject header contains +status and version information. Point is left at the beginning of the +mail text. Add some notes if you like, and send the report. + +Looks for Installation and the make output file (`beta.err' by +default, customizable via `build-report-make-output-files') in the +build directory of the running XEmacs by default (customizable via +`build-report-make-output-dir'). The output from make is filtered +through `build-report-keep-regexp' and `build-report-delete-regexp' +before including in the message. + +See also `mail-user-agent', `build-report-destination', and +`build-report-installation-file'." ;; `interactive' form returns value for formal parameter `args'. (interactive (let (prompt diff --git a/lisp/custom-load.el b/lisp/custom-load.el index 61699b3..ec81952 100644 --- a/lisp/custom-load.el +++ b/lisp/custom-load.el @@ -17,7 +17,7 @@ (custom-add-loads 'menu '("menubar-items")) (custom-add-loads 'minibuffer '("simple" "minibuf")) (custom-add-loads 'log-message '("simple")) -(custom-add-loads 'environment '("frame" "keydefs" "minibuf" "modeline" "window-xemacs" "menubar" "gutter" "toolbar-items" "x-init" "cus-edit" "gnuserv" "sound")) +(custom-add-loads 'environment '("frame" "keydefs" "minibuf" "modeline" "window-xemacs" "menubar" "gutter" "toolbar-items" "cus-edit" "gnuserv" "sound" "x-init")) (custom-add-loads 'sound '("sound")) (custom-add-loads 'pui '("package-ui")) (custom-add-loads 'terminals '("gnuserv")) @@ -82,7 +82,7 @@ (custom-add-loads 'isearch '("isearch-mode")) (custom-add-loads 'font-lock-faces '("font-lock")) (custom-add-loads 'modeline '("modeline")) -(custom-add-loads 'editing '("simple" "abbrev" "fill" "mouse" "cus-edit" "dragdrop")) +(custom-add-loads 'editing '("simple" "abbrev" "fill" "mouse" "dragdrop" "cus-edit")) (custom-add-loads 'matching '("simple" "isearch-mode" "hyper-apropos")) (custom-add-loads 'i18n '("cus-edit")) (custom-add-loads 'info '("toolbar-items" "info")) diff --git a/lisp/device.el b/lisp/device.el index 8468f33..2942e1d 100644 --- a/lisp/device.el +++ b/lisp/device.el @@ -52,6 +52,7 @@ This is equivalent to the type of the device's console. Value is `tty' for a tty device (a character-only terminal), `x' for a device that is a screen on an X display, +`gtk' for a device that is a GTK connection. `ns' for a device that is a NeXTstep connection (not yet implemented), `mswindows' for a device that is a MS Windows workstation, `msprinter' for a device that is a MS Windows printer connection, @@ -103,6 +104,10 @@ it is nil, it is assumes to be the value returned by emacs-pid." "Return the number of color cells of DEVICE, or nil if unknown." (device-system-metric device 'num-color-cells)) +(defun make-gtk-device () + "Create a new GTK device." + (make-device 'gtk nil)) + (defun make-x-device (&optional display) "Create a new device connected to DISPLAY." (make-device 'x display)) diff --git a/lisp/dragdrop.el b/lisp/dragdrop.el index 1250482..ec5002f 100644 --- a/lisp/dragdrop.el +++ b/lisp/dragdrop.el @@ -420,5 +420,16 @@ This always assumes DndText as type." event (buffer-substring-no-properties begin end)) (error "OffiX functionality not compiled in."))) +(defun gtk-start-drag (event data &optional type) + (interactive "esi") + (if (featurep 'gtk) + (gtk-start-drag-internal event data type) + (error "GTK functionality not compiled in."))) + +(defun gtk-start-drag-region (event begin end) + (interactive "_er") + (if (featurep 'gtk) + (gtk-start-drag-internal event (buffer-substring-no-properties begin end) "text/plain") + (error "GTK functionality not compiled in."))) ;;; dragdrop.el ends here diff --git a/lisp/dumped-lisp.el b/lisp/dumped-lisp.el index a299732..20e2d5e 100644 --- a/lisp/dumped-lisp.el +++ b/lisp/dumped-lisp.el @@ -187,7 +187,7 @@ ;; id-menus is not here. infodock needs to figure out a clever way to ;; advise this stuff or we need to export a clean way for infodock or ;; others to control this programmatically. - (when-feature (and infodock (or x mswindows) menubar) "id-menus") + (when-feature (and infodock (or x mswindows gtk) menubar) "id-menus") ;; preload the X code. (when-feature x "x-faces") (when-feature x "x-iso8859-1") @@ -198,6 +198,20 @@ (when-feature x "x-init") (when-feature x "x-win-xfree86") (when-feature x "x-win-sun") +;; preload the GTK code + (when-feature gtk "gtk-ffi") + (when-feature gtk "gtk-widgets") + (when-feature gtk "gdk") + (when-feature gtk "gtk-init") + (when-feature gtk "gtk-faces") + (when-feature gtk "gtk-iso8859-1") + (when-feature (and gtk dialog) "dialog-gtk") + (when-feature gtk "gtk-select") + (when-feature gtk "gtk-mouse") + (when-feature gtk "gtk-glyphs") + (when-feature glade "glade") + (when-feature gtk "widgets-gtk") + ;; preload the mswindows code. (when-feature mswindows "msw-glyphs") (when-feature mswindows "msw-faces") diff --git a/lisp/faces.el b/lisp/faces.el index 568c7ae..4e34298 100644 --- a/lisp/faces.el +++ b/lisp/faces.el @@ -761,7 +761,10 @@ See `face-property-instance' for the semantics of the DOMAIN argument." (and (face-equal-loop common-props face1 face2 domain) (cond ((eq 'tty (device-type device)) (face-equal-loop tty-props face1 face2 domain)) + ;; #### Why isn't this (console-on-window-system-p (device-console device))? + ;; #### FIXME! ((or (eq 'x (device-type device)) + (eq 'gtk (device-type device)) (eq 'mswindows (device-type device))) (face-equal-loop win-props face1 face2 domain)) (t t))))) @@ -1018,7 +1021,10 @@ circumstances." (when (featurep 'tty) (set-face-highlight-p face t locale (cons 'tty tags)))) (lambda () - ;; handle X/MS Windows specific entries + ;; handle window-system specific entries + (when (featurep 'gtk) + (frob-face-property face 'font 'gtk-make-font-bold + '(gtk) locale tags)) (when (featurep 'x) (frob-face-property face 'font 'x-make-font-bold '(x) locale tags)) @@ -1045,7 +1051,10 @@ how this function works." (when (featurep 'tty) (set-face-underline-p face t locale (cons 'tty tags)))) (lambda () - ;; handle X specific entries + ;; handle window-system specific entries + (when (featurep 'gtk) + (frob-face-property face 'font 'gtk-make-font-italic + '(gtk) locale tags)) (when (featurep 'x) (frob-face-property face 'font 'x-make-font-italic '(x) locale tags)) @@ -1073,7 +1082,10 @@ argument and for more specifics on exactly how this function works." (set-face-highlight-p face t locale (cons 'tty tags)) (set-face-underline-p face t locale (cons 'tty tags)))) (lambda () - ;; handle X specific entries + ;; handle window-system specific entries + (when (featurep 'gtk) + (frob-face-property face 'font 'gtk-make-font-bold-italic + '(gtk) locale tags)) (when (featurep 'x) (frob-face-property face 'font 'x-make-font-bold-italic '(x) locale tags)) @@ -1100,7 +1112,10 @@ specifics on exactly how this function works." (when (featurep 'tty) (set-face-highlight-p face nil locale (cons 'tty tags)))) (lambda () - ;; handle X specific entries + ;; handle window-system specific entries + (when (featurep 'gtk) + (frob-face-property face 'font 'gtk-make-font-unbold + '(gtk) locale tags)) (when (featurep 'x) (frob-face-property face 'font 'x-make-font-unbold '(x) locale tags)) @@ -1127,7 +1142,10 @@ specifics on exactly how this function works." (when (featurep 'tty) (set-face-underline-p face nil locale (cons 'tty tags)))) (lambda () - ;; handle X specific entries + ;; handle window-system specific entries + (when (featurep 'gtk) + (frob-face-property face 'font 'gtk-make-font-unitalic + '(gtk) locale tags)) (when (featurep 'x) (frob-face-property face 'font 'x-make-font-unitalic '(x) locale tags)) @@ -1477,6 +1495,8 @@ and 'global)." ;; Then do any device-specific initialization. (cond ((eq 'x (device-type device)) (x-init-device-faces device)) + ((eq 'gtk (device-type device)) + (gtk-init-device-faces device)) ((eq 'mswindows (device-type device)) (mswindows-init-device-faces device)) ;; Nothing to do for TTYs? @@ -1492,6 +1512,8 @@ and 'global)." ;; Then do any frame-specific initialization. (cond ((eq 'x (frame-type frame)) (x-init-frame-faces frame)) + ((eq 'gtk (frame-type frame)) + (gtk-init-frame-faces frame)) ((eq 'mswindows (frame-type frame)) (mswindows-init-frame-faces frame)) ;; Is there anything which should be done for TTY's? @@ -1508,7 +1530,9 @@ and 'global)." (loop for face in (face-list) do (init-face-from-resources face 'global)) ;; Further X frobbing. - (x-init-global-faces) + (and (featurep 'x) (x-init-global-faces)) + (and (featurep 'gtk) (gtk-init-global-faces)) + ;; for bold and the like, make the global specification be bold etc. ;; if the user didn't already specify a value. These will also be ;; frobbed further in init-other-random-faces. @@ -1737,6 +1761,7 @@ in that frame; otherwise change each frame." 'global) (set-face-background-pixmap 'highlight '(((x default mono) . "gray1") +;; ((gtk default mono) . "gray1") ((mswindows default mono) . "gray1")) 'global) @@ -1748,6 +1773,7 @@ in that frame; otherwise change each frame." 'global) (set-face-background-pixmap 'zmacs-region '(((x default mono) . "gray3") +;; ((gtk default mono) . "gray3") ((mswindows default mono) . "gray3")) 'global) @@ -1755,6 +1781,9 @@ in that frame; otherwise change each frame." '(((x default color) . "gray68") ((x default grayscale) . "gray68") ((x default mono) . [default foreground]) +;; ((gtk default color) . "gray68") +;; ((gtk default grayscale) . "gray68") +;; ((gtk default mono) . [default foreground]) ((mswindows default color) . "gray68") ((mswindows default grayscale) . "gray68") ((mswindows default mono) . [default foreground])) @@ -1772,6 +1801,7 @@ in that frame; otherwise change each frame." 'global) (set-face-background-pixmap 'primary-selection '(((x default mono) . "gray3") + ;;((gtk default mono) . "gray3") ((mswindows default mono) . "gray3")) 'global) @@ -1779,18 +1809,24 @@ in that frame; otherwise change each frame." '(((x default color) . "paleturquoise") ((x default color) . "green") ((x default grayscale) . "gray53") + ;;((gtk default color) . "paleturquoise") + ;;((gtk default color) . "green") + ;;((gtk default grayscale) . "gray53") ((mswindows default color) . "paleturquoise") ((mswindows default color) . "green") ((mswindows default grayscale) . "gray53")) 'global) (set-face-background-pixmap 'secondary-selection '(((x default mono) . "gray1") + ;;((gtk default mono) . "gray1") ((mswindows default mono) . "gray1")) 'global) (set-face-background 'isearch '(((x default color) . "paleturquoise") ((x default color) . "green") + ;;((gtk default color) . "paleturquoise") + ;;((gtk default color) . "green") ((mswindows default color) . "paleturquoise") ((mswindows default color) . "green")) 'global) diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 9373594..71c7a33 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el @@ -1186,12 +1186,14 @@ Otherwise, changes to existing text will not be processed until the next redisplay cycle, avoiding excessive fontification when many buffer modifications are performed or a buffer is reverted.") -(defvar font-lock-pending-extent-table (make-hash-table :weakness 'key)) +;; list of buffers in which there is a pending change. +(defvar font-lock-pending-buffer-table (make-hash-table :weakness 'key)) +;; table used to keep track of ranges needing fontification. (defvar font-lock-range-table (make-range-table)) (defun font-lock-pre-idle-hook () (condition-case font-lock-error - (if (> (hash-table-count font-lock-pending-extent-table) 0) + (if (> (hash-table-count font-lock-pending-buffer-table) 0) (font-lock-fontify-pending-extents)) (error (warn "Error caught in `font-lock-pre-idle-hook': %s" font-lock-error)))) @@ -1203,12 +1205,15 @@ buffer modifications are performed or a buffer is reverted.") (defun font-lock-after-change-function (beg end old-len) (when font-lock-mode - (let ((ex (make-extent beg end))) - (set-extent-property ex 'detachable nil) - (set-extent-property ex 'end-open nil) - (let ((exs (gethash (current-buffer) font-lock-pending-extent-table))) - (push ex exs) - (puthash (current-buffer) exs font-lock-pending-extent-table))) + ;; treat deletions as if the following character (or previous, if + ;; there is no following) were inserted. this is a bit of a hack + ;; but allows us to use text properties for everything. + (if (= beg end) + (cond ((/= end (point-max)) (setq end (1+ end))) + ((/= beg (point-min)) (setq beg (1- beg))) + (t nil))) + (put-text-property beg end 'font-lock-pending t) + (puthash (current-buffer) t font-lock-pending-buffer-table) (if font-lock-always-fontify-immediately (font-lock-fontify-pending-extents)))) @@ -1218,61 +1223,55 @@ buffer modifications are performed or a buffer is reverted.") ;; only one buffer and one contiguous region! (save-match-data (maphash - #'(lambda (buffer exs) + #'(lambda (buffer dummy) ;; remove first, to avoid infinite reprocessing if error - (remhash buffer font-lock-pending-extent-table) + (remhash buffer font-lock-pending-buffer-table) (when (buffer-live-p buffer) (clear-range-table font-lock-range-table) (with-current-buffer buffer (save-excursion (save-restriction - ;; if we don't widen, then the C code will fail to - ;; realize that we're inside a comment. + ;; if we don't widen, then the C code in + ;; syntactically-sectionize will fail to realize that + ;; we're inside a comment. #### We don't actually use + ;; syntactically-sectionize any more. Do we still + ;; need the widen? (widen) (let ((zmacs-region-stays zmacs-region-stays)) ; protect from change! - (mapc - #'(lambda (ex) - ;; paranoia. - (when (and (extent-live-p ex) - (not (extent-detached-p ex))) - ;; first expand the ranges to full lines, because - ;; that is what will be fontified; then use a - ;; range table to merge the ranges. - (let* ((beg (extent-start-position ex)) - (end (extent-end-position ex)) - (beg (progn (goto-char beg) - (beginning-of-line) - (point))) - (end (progn (goto-char end) - (forward-line 1) - (point)))) - (detach-extent ex) - (put-range-table beg end t - font-lock-range-table)))) - exs) + (map-extents + #'(lambda (ex dummy-maparg) + ;; first expand the ranges to full lines, + ;; because that is what will be fontified; + ;; then use a range table to merge the + ;; ranges. (we could also do this simply using + ;; text properties. the range table code was + ;; here from a previous version of this code + ;; and works just as well.) + (let* ((beg (extent-start-position ex)) + (end (extent-end-position ex)) + (beg (progn (goto-char beg) + (beginning-of-line) + (point))) + (end (progn (goto-char end) + (forward-line 1) + (point)))) + (put-range-table beg end t + font-lock-range-table))) + nil nil nil nil nil 'font-lock-pending t) + ;; clear all pending extents first in case of error below. + (put-text-property (point-min) (point-max) + 'font-lock-pending nil) (map-range-table #'(lambda (beg end val) - ;; Maybe flush the internal cache used by - ;; syntactically-sectionize. (It'd be nice if this - ;; was more automatic.) Any deletions mean the - ;; cache is invalid, and insertions at beginning or - ;; end of line mean that the bol cache might be - ;; invalid. - ;; #### This code has been commented out for some time - ;; now and is bit-rotting. Someone should look into - ;; this. -;; (if (or change-was-deletion (bobp) -;; (= (preceding-char) ?\n)) -;; (buffer-syntactic-context-flush-cache)) - ;; #### This creates some unnecessary progress gauges. + ;; This creates some unnecessary progress gauges. ;; (if (and (= beg (point-min)) ;; (= end (point-max))) ;; (font-lock-fontify-buffer) ;; (font-lock-fontify-region beg end))) (font-lock-fontify-region beg end)) font-lock-range-table))))))) - font-lock-pending-extent-table))) + font-lock-pending-buffer-table))) ;; Syntactic fontification functions. diff --git a/lisp/frame.el b/lisp/frame.el index f13e517..c8ddc29 100644 --- a/lisp/frame.el +++ b/lisp/frame.el @@ -451,6 +451,7 @@ tty A standard TTY connection or terminal. CONNECTION should be the Unix command `tty') or nil for XEmacs' standard input and output (usually the TTY in which XEmacs started). Only if support for TTY's was compiled into XEmacs. +gtk A GTK device. ns A connection to a machine running the NeXTstep windowing system. Not currently implemented. mswindows A connection to a machine running Microsoft Windows NT or diff --git a/lisp/gnuserv.el b/lisp/gnuserv.el index 01128a9..2389480 100644 --- a/lisp/gnuserv.el +++ b/lisp/gnuserv.el @@ -271,6 +271,7 @@ Each element is a gnuclient structure that identifies a client.") (defun gnuserv-main-frame-function (type) "Return a sensible value for the main Emacs frame." (if (or (eq type 'x) + (eq type 'gtk) (eq type 'mswindows)) (car (frame-list)) nil)) @@ -280,6 +281,7 @@ Each element is a gnuclient structure that identifies a client.") This is meant in the X sense, so it will not return frames that are on another visual screen. Totally visible frames are preferred. If none found, return nil." (if (or (eq type 'x) + (eq type 'gtk) (eq type 'mswindows)) (cond ((car (filtered-frame-list 'frame-totally-visible-p (selected-device)))) @@ -428,6 +430,7 @@ If a flag is `view', view the files read-only." ((null dest-frame) (case (car type) (tty (apply 'make-tty-device (cdr type))) + (gtk (make-gtk-device)) (x (make-x-device (cadr type))) (mswindows (make-mswindows-device)) (t (error "Invalid device type")))) diff --git a/lisp/help.el b/lisp/help.el index a337b13..e7e769f 100644 --- a/lisp/help.el +++ b/lisp/help.el @@ -1,6 +1,7 @@ ;;; help.el --- help commands for XEmacs. ;; Copyright (C) 1985, 1986, 1992-4, 1997 Free Software Foundation, Inc. +;; Copyright (C) 2001 Ben Wing. ;; Maintainer: FSF ;; Keywords: help, internal, dumped @@ -264,41 +265,9 @@ otherwise it is killed." ;;(define-key global-map 'backspace 'deprecated-help-command) -;; This function has been moved to help-nomule.el and mule-help.el. -;; TUTORIAL arg is XEmacs addition -;(defun help-with-tutorial (&optional tutorial) -; "Select the XEmacs learn-by-doing tutorial. -;Optional arg TUTORIAL specifies the tutorial file; default is \"TUTORIAL\"." -; (interactive) -; (if (null tutorial) -; (setq tutorial "TUTORIAL")) -; (let ((file (expand-file-name (concat "~/" tutorial)))) -; (delete-other-windows) -; (if (get-file-buffer file) -; (switch-to-buffer (get-file-buffer file)) -; (switch-to-buffer (create-file-buffer file)) -; (setq buffer-file-name file) -; (setq default-directory (expand-file-name "~/")) -; (setq buffer-auto-save-file-name nil) -; (insert-file-contents (expand-file-name tutorial data-directory)) -; (goto-char (point-min)) -; (search-forward "\n<<") -; (delete-region (point-at-bol) (point-at-eol)) -; (let ((n (- (window-height (selected-window)) -; (count-lines (point-min) (point)) -; 6))) -; (if (< n 12) -; (newline n) -; ;; Some people get confused by the large gap. -; (newline (/ n 2)) -; (insert "[Middle of page left blank for didactic purposes. " -; "Text continues below]") -; (newline (- n (/ n 2))))) -; (goto-char (point-min)) -; (set-buffer-modified-p nil)))) +;; help-with-tutorial moved to help-nomule.el and mule-help.el. ;; used by describe-key, describe-key-briefly, insert-key-binding, etc. - (defun key-or-menu-binding (key &optional menu-flag) "Return the command invoked by KEY. Like `key-binding', but handles menu events and toolbar presses correctly. @@ -620,25 +589,27 @@ describes the minor mode." ;; So keyboard macro definitions are documented correctly (fset 'defining-kbd-macro (symbol-function 'start-kbd-macro)) +;; view a read-only file intelligently +(defun Help-find-file (file) + (if (fboundp 'view-file) + (view-file file) + (find-file-read-only file) + (goto-char (point-min)))) + (defun describe-distribution () "Display info on how to obtain the latest version of XEmacs." (interactive) - (find-file-read-only - (locate-data-file "DISTRIB"))) + (Help-find-file (locate-data-file "DISTRIB"))) (defun describe-beta () "Display info on how to deal with Beta versions of XEmacs." (interactive) - (find-file-read-only - (locate-data-file "BETA")) - (goto-char (point-min))) + (Help-find-file (locate-data-file "BETA"))) (defun describe-copying () "Display info on how you may redistribute copies of XEmacs." (interactive) - (find-file-read-only - (locate-data-file "COPYING")) - (goto-char (point-min))) + (Help-find-file (locate-data-file "COPYING"))) (defun describe-pointer () "Show a list of all defined mouse buttons, and their definitions." @@ -648,9 +619,7 @@ describes the minor mode." (defun describe-project () "Display info on the GNU project." (interactive) - (find-file-read-only - (locate-data-file "GNU")) - (goto-char (point-min))) + (Help-find-file (locate-data-file "GNU"))) (defun describe-no-warranty () "Display info on all the kinds of warranty XEmacs does NOT have." @@ -762,7 +731,7 @@ of the key sequence that ran this command." (defun view-emacs-news () "Display info on recent changes to XEmacs." (interactive) - (find-file (locate-data-file "NEWS"))) + (Help-find-file (locate-data-file "NEWS"))) (defun xemacs-www-page () "Go to the XEmacs World Wide Web page." @@ -788,6 +757,11 @@ instead, to ensure that you get the most up-to-date information." (Info-find-node "xemacs-faq" "Top")) (switch-to-buffer "*info*")) +(defun view-sample-init-el () + "Display the sample init.el file." + (interactive) + (Help-find-file (locate-data-file "sample.init.el"))) + (defcustom view-lossage-key-count 100 "*Number of keys `view-lossage' shows. The maximum number of available keys is governed by `recent-keys-ring-size'." @@ -1124,6 +1098,38 @@ part of the documentation of internal subroutines." ; ;; CLisp `:' keywords as references. ; (list (concat "\\<:" sym-char "+\\>") 0 'font-lock-reference-face t))) +;; replacement for `princ' that puts the text in the specified face, +;; if possible +(defun Help-princ-face (object face) + (cond ((bufferp standard-output) + (let ((opoint (point standard-output))) + (princ object) + (put-nonduplicable-text-property opoint (point standard-output) + 'face face standard-output))) + ((markerp standard-output) + (let ((buf (marker-buffer standard-output)) + (pos (marker-position standard-output))) + (princ object) + (put-nonduplicable-text-property + pos (marker-position standard-output) 'face face buf))) + (t princ object))) + +;; replacement for `prin1' that puts the text in the specified face, +;; if possible +(defun Help-prin1-face (object face) + (cond ((bufferp standard-output) + (let ((opoint (point standard-output))) + (prin1 object) + (put-nonduplicable-text-property opoint (point standard-output) + 'face face standard-output))) + ((markerp standard-output) + (let ((buf (marker-buffer standard-output)) + (pos (marker-position standard-output))) + (prin1 object) + (put-nonduplicable-text-property + pos (marker-position standard-output) 'face face buf))) + (t prin1 object))) + (defvar help-symbol-regexp (let ((sym-char "[+a-zA-Z0-9_:*]") (sym-char-no-dash "[-+a-zA-Z0-9_:*]")) @@ -1151,25 +1157,25 @@ part of the documentation of internal subroutines." (help-symbol-run-function-1 last-popup-menu-event ex fun)))) (defvar help-symbol-function-context-menu - '("---" - ["View %_Documentation" (help-symbol-run-function 'describe-function)] + '(["View %_Documentation" (help-symbol-run-function 'describe-function)] ["Find %_Function Source" (help-symbol-run-function 'find-function)] + ["Find %_Tag" (help-symbol-run-function 'find-tag)] )) (defvar help-symbol-variable-context-menu - '("---" - ["View %_Documentation" (help-symbol-run-function 'describe-variable)] + '(["View %_Documentation" (help-symbol-run-function 'describe-variable)] ["Find %_Variable Source" (help-symbol-run-function 'find-variable)] + ["Find %_Tag" (help-symbol-run-function 'find-tag)] )) (defvar help-symbol-function-and-variable-context-menu - '("---" - ["View Function %_Documentation" (help-symbol-run-function + '(["View Function %_Documentation" (help-symbol-run-function 'describe-function)] ["View Variable D%_ocumentation" (help-symbol-run-function 'describe-variable)] ["Find %_Function Source" (help-symbol-run-function 'find-function)] ["Find %_Variable Source" (help-symbol-run-function 'find-variable)] + ["Find %_Tag" (help-symbol-run-function 'find-tag)] )) (defun frob-help-extents (buffer) @@ -1179,9 +1185,10 @@ part of the documentation of internal subroutines." ;; properties: ;; 1. mouse-face is 'highlight (so the extent gets highlighted on mouse over) ;; 2. help-symbol is the name of the symbol. - ;; 3. context-menu is a list of context menu items, specific to whether + ;; 3. face is 'font-lock-reference-face. + ;; 4. context-menu is a list of context menu items, specific to whether ;; the symbol is a function, variable, or both. - ;; 4. activate-function will cause the function or variable to be described, + ;; 5. activate-function will cause the function or variable to be described, ;; replacing the existing help contents. (save-excursion (set-buffer buffer) @@ -1200,6 +1207,7 @@ part of the documentation of internal subroutines." (let ((ex (make-extent b e))) (set-extent-property ex 'mouse-face 'highlight) (set-extent-property ex 'help-symbol sym) + (set-extent-property ex 'face 'font-lock-reference-face) (set-extent-property ex 'context-menu (cond ((and var fun) @@ -1217,7 +1225,10 @@ part of the documentation of internal subroutines." (defun describe-function-1 (function &optional nodoc) "This function does the work for `describe-function'." - (princ (format "`%s' is " function)) + (princ "`") + ;; (Help-princ-face function 'font-lock-function-name-face) overkill + (princ function) + (princ "' is ") (let* ((def function) aliases file-name autoload-file kbd-macro-p fndef macrop) (while (and (symbolp def) (fboundp def)) @@ -1281,7 +1292,7 @@ part of the documentation of internal subroutines." (if describe-function-show-arglist (let ((arglist (function-arglist function))) (when arglist - (princ arglist) + (Help-princ-face arglist 'font-lock-comment-face) (terpri)))) (terpri) (cond (kbd-macro-p @@ -1421,7 +1432,11 @@ there is no variable around that point, nil is returned." (let ((origvar variable) aliases) (let ((print-escape-newlines t)) - (princ (format "`%s' is " (symbol-name variable))) + (princ "`") + ;; (Help-princ-face (symbol-name variable) + ;; 'font-lock-variable-name-face) overkill + (princ (symbol-name variable)) + (princ "' is ") (while (variable-alias variable) (let ((newvar (variable-alias variable))) (if aliases @@ -1443,8 +1458,8 @@ there is no variable around that point, nil is returned." (princ (format " -- loaded from \"%s\"\n" file-name)))) (princ "\nValue: ") (if (not (boundp variable)) - (princ "void\n") - (prin1 (symbol-value variable)) + (Help-princ-face "void\n" 'font-lock-comment-face) + (Help-prin1-face (symbol-value variable) 'font-lock-comment-face) (terpri)) (terpri) (cond ((local-variable-p variable (current-buffer)) diff --git a/lisp/keydefs.el b/lisp/keydefs.el index 17f2e66..cbece4f 100644 --- a/lisp/keydefs.el +++ b/lisp/keydefs.el @@ -238,7 +238,8 @@ Keymap for characters following C-c.") (define-key global-map '(control meta -) 'negative-argument) (define-key global-map "\C-k" 'kill-line) -(define-key global-map '(control K) 'historical-kill-line) +;will change like this in 21.5. +;(define-key global-map "\M-k" 'kill-entire-line) (define-key global-map "\C-w" 'kill-region) (define-key global-map "\M-w" 'kill-ring-save) (define-key global-map "\M-\C-w" 'append-next-kill) @@ -352,6 +353,8 @@ Keymap for characters following C-c.") (define-key global-map "\M-a" 'backward-sentence) (define-key global-map "\M-e" 'forward-sentence) (define-key global-map "\M-k" 'kill-sentence) +;will change like this in 21.5. +;(define-key global-map "\M-K" 'kill-sentence) ;;(define-key global-map "\C-x\177" 'backward-kill-sentence) (define-key global-map "\C-x[" 'backward-page) diff --git a/lisp/ldap.el b/lisp/ldap.el index 1c14c13..8ddc567 100644 --- a/lisp/ldap.el +++ b/lisp/ldap.el @@ -5,7 +5,7 @@ ;; Author: Oscar Figueiredo ;; Maintainer: Oscar Figueiredo ;; Created: Jan 1998 -;; Version: $Revision: 1.7.2.9 $ +;; Version: $Revision: 1.7.2.11 $ ;; Keywords: help comm ;; This file is part of XEmacs diff --git a/lisp/loadup.el b/lisp/loadup.el index df70360..fa64a15 100644 --- a/lisp/loadup.el +++ b/lisp/loadup.el @@ -275,7 +275,14 @@ ;; (condition-case () (delete-file "xemacs") (file-error nil)) (when (fboundp 'really-free) (really-free)) - (dump-emacs (if (featurep 'infodock) "infodock" "xemacs") "temacs") + (dump-emacs + (cond + ((featurep 'infodock) "infodock") + ;; #### BILL!!! + ;; If we want to dump under a name other than `xemacs', do that here! + ;; ((featurep 'gtk) "xemacs-gtk") + (t "xemacs")) + "temacs") (kill-emacs)) ;; Avoid error if user loads some more libraries now. diff --git a/lisp/menubar-items.el b/lisp/menubar-items.el index 088c499..54a82e8 100644 --- a/lisp/menubar-items.el +++ b/lisp/menubar-items.el @@ -226,7 +226,8 @@ which will not be used as accelerators." ("%_View" ["%_New Frame" make-frame] - ["Frame on Other Displa%_y..." make-frame-on-display] + ["Frame on Other Displa%_y..." make-frame-on-display + :active (fboundp 'make-frame-on-display)] ["%_Delete Frame" delete-frame :active (not (eq (next-frame (selected-frame) 'nomini 'window-system) (selected-frame)))] @@ -703,16 +704,10 @@ which will not be used as accelerators." :style toggle :selected (and (boundp 'pending-delete-mode) pending-delete-mode) :active (boundp 'pending-delete-mode)] - ("`%_kill-line' Behavior..." - ["Kill %_Whole Line" - (customize-set-variable 'kill-whole-line 'always) - :style radio :selected (eq kill-whole-line 'always)] - ["Kill to %_End of Line" - (customize-set-variable 'kill-whole-line nil) - :style radio :selected (eq kill-whole-line nil)] - ["Kill Whole Line at %_Beg, Otherwise to End" - (customize-set-variable 'kill-whole-line t) - :style radio :selected (eq kill-whole-line t)]) + ["`%_kill-line' Kills Whole Line at %_Beg" + (customize-set-variable 'kill-whole-line (not kill-whole-line)) + :style toggle + :selected kill-whole-line] ["Size for %_Block-Movement Commands..." (customize-set-variable 'block-movement-size (read-number "Block Movement Size: " @@ -724,6 +719,17 @@ which will not be used as accelerators." :style toggle :selected (and (boundp 'viper-mode) viper-mode) :active (fboundp 'toggle-viper-mode)] "----" + ["S%_hifted Motion Keys Select Region" + (customize-set-variable 'shifted-motion-keys-select-region + (not shifted-motion-keys-select-region)) + :style toggle + :selected shifted-motion-keys-select-region] + ["%_After Shifted Motion, Unshifted Motion Keys Deselect" + (customize-set-variable 'unshifted-motion-keys-deselect-region + (not unshifted-motion-keys-deselect-region)) + :style toggle + :selected unshifted-motion-keys-deselect-region] + "----" ["%_Set Key..." global-set-key] ["%_Unset Key..." global-unset-key] "---" @@ -1435,13 +1441,18 @@ which will not be used as accelerators." ("%_Tutorials" :filter tutorials-menu-filter) ("%_Samples" - ["Sample .%_emacs" - (find-file (locate-data-file "sample.emacs")) - :active (locate-data-file "sample.emacs")] + ["Sample %_init.el" + (find-file (locate-data-file "sample.init.el")) + :active (locate-data-file "sample.init.el")] + ["Sample .%_gtkrc" + (find-file (locate-data-file "sample.gtkrc")) + :included (featurep 'gtk) + :active (locate-data-file "sample.gtkrc")] ["Sample .%_Xdefaults" (find-file (locate-data-file "sample.Xdefaults")) + :included (featurep 'x) :active (locate-data-file "sample.Xdefaults")] - ["Sample e%_nriched" + ["Sample %_enriched" (find-file (locate-data-file "enriched.doc")) :active (locate-data-file "enriched.doc")]) ("%_Commands & Keys" diff --git a/lisp/menubar.el b/lisp/menubar.el index 44c5b6a..917b49c 100644 --- a/lisp/menubar.el +++ b/lisp/menubar.el @@ -523,35 +523,40 @@ button was clicked." (extent-property extent 'context-menu)) context-extents)))) (popup-menu - (cond ((and global-popup-menu mode-popup-menu) + (progn ;; Merge global-popup-menu and mode-popup-menu - (check-menu-syntax mode-popup-menu) - (let* ((title (car mode-popup-menu)) - (items (cdr mode-popup-menu)) + (and mode-popup-menu (check-menu-syntax mode-popup-menu)) + (let* ((mode-title (and (stringp (car mode-popup-menu)) + (car mode-popup-menu))) + (mode-items (if mode-title (cdr mode-popup-menu) + mode-popup-menu)) + (global-title (and (stringp (car global-popup-menu)) + (car global-popup-menu))) + (global-items (if global-title (cdr global-popup-menu) + global-popup-menu)) mode-filters) ;; Strip keywords from local menu for attaching them at the top - (while (and items - (keywordp (car items))) + (while (and mode-items + (keywordp (car mode-items))) ;; Push both keyword and its argument. - (push (pop items) mode-filters) - (push (pop items) mode-filters)) + (push (pop mode-items) mode-filters) + (push (pop mode-items) mode-filters)) (setq mode-filters (nreverse mode-filters)) ;; If mode-filters contains a keyword already present in ;; `global-popup-menu', you will probably lose. - (append (list (car global-popup-menu)) + (append (and popup-menu-titles + (cond (mode-title (list mode-title)) + (global-title (list global-title)) + (t ""))) mode-filters - (cdr global-popup-menu) - '("---" "---") - (if popup-menu-titles (list title)) - (if popup-menu-titles '("---" "---")) - items - context-menu-items))) - (t - (append - (or mode-popup-menu - global-popup-menu - (error "No menu defined in this buffer")) - context-menu-items)))) + context-menu-items + (and context-menu-items mode-items '("---")) + mode-items + (and (or context-menu-items mode-items) + global-items '("---" "---")) + (and global-title (list global-title)) + global-items + )))) (while (popup-up-p) (dispatch-event (next-event))) diff --git a/lisp/minibuf.el b/lisp/minibuf.el index 019519f..44dab20 100644 --- a/lisp/minibuf.el +++ b/lisp/minibuf.el @@ -2208,7 +2208,7 @@ whether it is a file(/result) or a directory (/result/)." (defun read-color-completion-table () (case (device-type) ;; #### Evil device-type dependency - (x + ((x gtk) (if (boundp 'x-read-color-completion-table) x-read-color-completion-table (let ((rgb-file (locate-file "rgb.txt" x-library-search-path)) diff --git a/lisp/mule/mule-init.el b/lisp/mule/mule-init.el index c587e46..296e210 100644 --- a/lisp/mule/mule-init.el +++ b/lisp/mule/mule-init.el @@ -76,7 +76,8 @@ (defvar auto-language-alist '(("^ja" . "Japanese") - ("^zh" . "Chinese") + ("^zh_.*.GB.*" . "Chinese-GB") + ("^zh_.*.BIG5.*" . "Chinese-BIG5") ("^ko" . "Korean")) "Alist of LANG patterns vs. corresponding language environment. Each element looks like (REGEXP . LANGUAGE-ENVIRONMENT). diff --git a/lisp/simple.el b/lisp/simple.el index 38fd6fa..4ff4777 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -525,6 +525,11 @@ With arg N, put point N/10 of the way from the beginning. If the buffer is narrowed, this command uses the beginning and size of the accessible part of the buffer. +The characters that are moved over may be added to the current selection +\(i.e. active region) if the Shift key is held down, a motion key is used +to invoke this command, and `shifted-motion-keys-select-region' is t; see +the documentation for this variable for more details. + Don't use this command in Lisp programs! \(goto-char (point-min)) is faster and avoids clobbering the mark." ;; XEmacs change @@ -548,6 +553,11 @@ With arg N, put point N/10 of the way from the end. If the buffer is narrowed, this command uses the beginning and size of the accessible part of the buffer. +The characters that are moved over may be added to the current selection +\(i.e. active region) if the Shift key is held down, a motion key is used +to invoke this command, and `shifted-motion-keys-select-region' is t; see +the documentation for this variable for more details. + Don't use this command in Lisp programs! \(goto-char (point-max)) is faster and avoids clobbering the mark." ;; XEmacs change @@ -1103,46 +1113,20 @@ Repeating \\[universal-argument] without digits or minus sign (skip-chars-forward " \t")) (defcustom kill-whole-line nil - "*Control when and whether `kill-line' removes entire lines. -Note: This only applies when `kill-line' is called interactively; -otherwise, it behaves \"historically\". - -If `always', `kill-line' with no arg always kills the whole line, -wherever point is in the line. (If you want to just kill to the end -of the line, use \\[historical-kill-line].) - -If not `always' but non-nil, `kill-line' with no arg kills the whole -line if point is at the beginning, and otherwise behaves historically. - -If nil, `kill-line' behaves historically." - :type '(radio (const :tag "Kill to end of line" nil) - (const :tag "Kill whole line" always) - (const - :tag "Kill whole line at beginning, otherwise end of line" t)) + "*If non-nil, kill the whole line if point is at the beginning. +Otherwise, `kill-line' kills only up to the end of the line, but not +the terminating newline. Note: This only applies when `kill-line' is +called interactively. + +WARNING: This is a misnamed variable! It should be called something +like `kill-whole-line-when-at-beginning'. If you simply want +\\[kill-line] to kill the entire current line, bind it to the function +`kill-entire-line'. " + :type 'boolean :group 'killing) -(defun historical-kill-line (&optional arg) - "Same as `kill-line' but ignores value of `kill-whole-line'." - (interactive "*P") - (let ((kill-whole-line nil)) - (if (interactive-p) - (call-interactively 'kill-line) - (kill-line arg)))) - -(defun kill-line (&optional arg) - "Kill the rest of the current line, or the entire line. -If no nonblanks there, kill thru newline. -If called interactively, may kill the entire line; see `kill-whole-line'. -when given no argument at the beginning of a line. -With prefix argument, kill that many lines from point. -Negative arguments kill lines backward. - -When calling from a program, nil means \"no arg\", -a number counts as a prefix arg." - (interactive "*P") - (kill-region (if (and (interactive-p) - (not arg) - (eq kill-whole-line 'always)) +(defun kill-line-1 (arg entire-line interactive-p) + (kill-region (if entire-line (save-excursion (beginning-of-line) (point)) @@ -1162,13 +1146,39 @@ a number counts as a prefix arg." (if (eobp) (signal 'end-of-buffer nil)) (if (or (looking-at "[ \t]*$") - (and (interactive-p) - (or (eq kill-whole-line 'always) + (or entire-line + (and interactive-p (and kill-whole-line (bolp))))) (forward-line 1) (end-of-line))) (point)))) +(defun kill-entire-line (&optional arg) + "Kill the entire line. +With prefix argument, kill that many lines from point. Negative +arguments kill lines backward. + +When calling from a program, nil means \"no arg\", +a number counts as a prefix arg." + (interactive "*P") + (kill-line-1 arg t (interactive-p))) + +(defun kill-line (&optional arg) + "Kill the rest of the current line, or the entire line. +If no nonblanks there, kill thru newline. If called interactively, +may kill the entire line when given no argument at the beginning of a +line; see `kill-whole-line'. With prefix argument, kill that many +lines from point. Negative arguments kill lines backward. + +WARNING: This is a misnamed function! It should be called something +like `kill-to-end-of-line'. If you simply want to kill the entire +current line, use `kill-entire-line'. + +When calling from a program, nil means \"no arg\", +a number counts as a prefix arg." + (interactive "*P") + (kill-line-1 arg nil (interactive-p))) + ;; XEmacs (defun backward-kill-line nil "Kill back to the beginning of the line." @@ -1726,24 +1736,24 @@ of selection using any shifted motion commands to not be recorded. The value `yank' affects all yank-like commands, as well as just `yank'." :type '(repeat (choice (const :tag "shifted motion commands" - 'shifted-motion-commands) + shifted-motion-commands) (const :tag "functions that select text" :inline t - '(mark-beginning-of-buffer - mark-bob - mark-defun - mark-end-of-buffer - mark-end-of-line - mark-end-of-sentence - mark-eob - mark-marker - mark-page - mark-paragraph - mark-sexp - mark-whole-buffer - mark-word)) + (mark-beginning-of-buffer + mark-bob + mark-defun + mark-end-of-buffer + mark-end-of-line + mark-end-of-sentence + mark-eob + mark-marker + mark-page + mark-paragraph + mark-sexp + mark-whole-buffer + mark-word)) (const :tag "functions that paste text" - 'yank) + yank) function)) :group 'killing) @@ -1920,7 +1930,7 @@ The mark is activated unless DONT-ACTIVATE-REGION is non-nil." (defcustom signal-error-on-buffer-boundary t - "*Non-nil value causes XEmacs to beep or signal an error when certain interactive commands would move point past (point-min) or (point-max). + "*If Non-nil, beep or signal an error when moving past buffer boundary. The commands that honor this variable are forward-char-command @@ -1942,33 +1952,122 @@ We think it is an unnecessary and unwanted side-effect." (defcustom shifted-motion-keys-select-region t "*If non-nil, shifted motion keys select text, like in MS Windows. -See also `unshifted-motion-keys-deselect-region'." + +More specifically, if a keystroke that matches one of the key +specifications in `motion-keys-for-shifted-motion' is pressed along +with the Shift key, and the command invoked moves the cursor and +preserves the active region (see `zmacs-region-stays'), the +intervening text will be added to the active region. + +When the region has been enabled or augmented as a result of a shifted +motion key, an unshifted motion key will normally deselect the region. +However, if `unshifted-motion-keys-deselect-region' is t, the region +will remain active, augmented by the characters moved over by this +motion key. + +This functionality is specifically interpreted in terms of keys, and +*NOT* in terms of particular commands, because that produces the most +intuitive behavior: `forward-char' will work with shifted motion +when invoked by `right' but not `C-f', and user-written motion commands +bound to motion keys will automatically work with shifted motion." :type 'boolean :group 'editing-basics) (defcustom unshifted-motion-keys-deselect-region t "*If non-nil, unshifted motion keys deselect a shifted-motion region. -This only occurs after a region has been selected using shifted motion keys -(not when using the traditional set-mark-then-move method), and has no effect -if `shifted-motion-keys-select-region' is nil." +This only occurs after a region has been selected or augmented using +shifted motion keys (not when using the traditional set-mark-then-move +method), and has no effect if `shifted-motion-keys-select-region' is +nil." :type 'boolean :group 'editing-basics) +(defcustom motion-keys-for-shifted-motion + '(left right up down home end prior next + kp-left kp-right kp-up kp-down kp-home kp-end kp-prior kp-next) + "*List of keys considered motion keys for the purpose of shifted selection. +When one of these keys is pressed along with the Shift key, and the +command invoked moves the cursor and preserves the active region (see +`zmacs-region-stays'), the intervening text will be added to the active +region. See `shifted-motion-keys-select-region' for more details. + +Each entry should be a keysym or a list (MODIFIERS ... KEYSYM), +i.e. zero or more modifiers followed by a keysym. When a keysym alone +is given, a keystroke consisting of that keysym, with or without any +modifiers, is considered a motion key. When the list form is given, +only a keystroke with exactly those modifiers and no others (with the +exception of the Shift key) is considered a motion key. + +NOTE: Currently, the keysym cannot be a non-alphabetic character key +such as the `=/+' key. In any case, the shifted-motion paradigm does +not make much sense with those keys. The keysym can, however, be an +alphabetic key without problem, and you can specify the key using +either a character or a symbol, uppercase or lowercase." + :type '(repeat (choice (const :tag "normal cursor-pad (\"gray\") keys" + :inline t + (left right up down home end prior next)) + (const :tag "keypad motion keys" + :inline t + (kp-left kp-right kp-up kp-down + kp-home kp-end kp-prior kp-next)) + (const :tag "alphabetic motion keys" + :inline t + ((control b) (control f) + (control p) (control n) + (control a) (control e) + (control v) (meta v) + (meta b) (meta f) + (meta a) (meta e) + (meta m) ; back-to-indentation + (meta r) ; move-to-window-line + (meta control b) (meta control f) + (meta control p) (meta control n) + (meta control a) (meta control e) + (meta control d) ;; down-list + (meta control u) ;; backward-up-list + )) + symbol)) + :group 'editing-basics) + (defun handle-pre-motion-command-current-command-is-motion () (and (key-press-event-p last-input-event) - (memq (event-key last-input-event) - '(left right up down home end prior next - kp-left kp-right kp-up kp-down - kp-home kp-end kp-prior kp-next)))) + (let ((key (event-key last-input-event)) + (mods (delq 'shift (event-modifiers last-input-event)))) + ;(princ (format "key: %s mods: %s\n" key mods) 'external-debugging-output) + (catch 'handle-pre-motion-command-current-command-is-motion + (flet ((keysyms-equal (a b) + (if (characterp a) + (setq a (intern (char-to-string (downcase a))))) + (if (characterp b) + (setq b (intern (char-to-string (downcase b))))) + (eq a b))) + (mapc #'(lambda (keysym) + (when (if (listp keysym) + (and (equal mods (butlast keysym)) + (keysyms-equal key (car (last keysym)))) + (keysyms-equal key keysym)) + (throw + 'handle-pre-motion-command-current-command-is-motion + t))) + motion-keys-for-shifted-motion) + nil))))) (defun handle-pre-motion-command () - (if - (and + (if (and (handle-pre-motion-command-current-command-is-motion) zmacs-regions shifted-motion-keys-select-region (not (region-active-p)) - (memq 'shift (event-modifiers last-input-event))) + ;; Special-case alphabetic keysyms, because the `shift' + ;; modifier does not appear on them. (Unfortunately, we have no + ;; way of determining Shift-key status on non-alphabetic ASCII + ;; keysyms. However, in this case, using Shift will invoke a + ;; separate command from the non-shifted version, so the + ;; "shifted motion" paradigm makes no sense.) + (or (memq 'shift (event-modifiers last-input-event)) + (let ((key (event-key last-input-event))) + (and (characterp key) + (not (eq key (downcase key))))))) (let ((in-shifted-motion-command t)) (push-mark nil nil t)))) @@ -1978,7 +2077,12 @@ if `shifted-motion-keys-select-region' is nil." (handle-pre-motion-command-current-command-is-motion) zmacs-regions (region-active-p)) - (cond ((memq 'shift (event-modifiers last-input-event)) + ;; Special-case alphabetic keysyms, because the `shift' + ;; modifier does not appear on them. See above. + (cond ((or (memq 'shift (event-modifiers last-input-event)) + (let ((key (event-key last-input-event))) + (and (characterp key) + (not (eq key (downcase key)))))) (if shifted-motion-keys-select-region (putf this-command-properties 'shifted-motion-command t)) (setq zmacs-region-stays t)) @@ -1993,7 +2097,12 @@ if `shifted-motion-keys-select-region' is nil." On attempt to pass end of buffer, stop and signal `end-of-buffer'. On attempt to pass beginning of buffer, stop and signal `beginning-of-buffer'. Error signaling is suppressed if `signal-error-on-buffer-boundary' -is nil. If BUFFER is nil, the current buffer is assumed." +is nil. If BUFFER is nil, the current buffer is assumed. + +The characters that are moved over may be added to the current selection +\(i.e. active region) if the Shift key is held down, a motion key is used +to invoke this command, and `shifted-motion-keys-select-region' is t; see +the documentation for this variable for more details." (interactive "_p") (if signal-error-on-buffer-boundary (forward-char arg buffer) @@ -2007,7 +2116,12 @@ is nil. If BUFFER is nil, the current buffer is assumed." On attempt to pass end of buffer, stop and signal `end-of-buffer'. On attempt to pass beginning of buffer, stop and signal `beginning-of-buffer'. Error signaling is suppressed if `signal-error-on-buffer-boundary' -is nil. If BUFFER is nil, the current buffer is assumed." +is nil. If BUFFER is nil, the current buffer is assumed. + +The characters that are moved over may be added to the current selection +\(i.e. active region) if the Shift key is held down, a motion key is used +to invoke this command, and `shifted-motion-keys-select-region' is t; see +the documentation for this variable for more details." (interactive "_p") (if signal-error-on-buffer-boundary (backward-char arg buffer) @@ -2036,6 +2150,11 @@ On attempt to scroll past end of buffer, `end-of-buffer' is signaled. On attempt to scroll past beginning of buffer, `beginning-of-buffer' is signaled. +The characters that are moved over may be added to the current selection +\(i.e. active region) if the Shift key is held down, a motion key is used +to invoke this command, and `shifted-motion-keys-select-region' is t; see +the documentation for this variable for more details. + If `signal-error-on-buffer-boundary' is nil, attempts to scroll past buffer boundaries do not cause an error to be signaled." (interactive "_P") @@ -2067,7 +2186,12 @@ On attempt to scroll past beginning of buffer, `beginning-of-buffer' is signaled. If `signal-error-on-buffer-boundary' is nil, attempts to scroll past buffer -boundaries do not cause an error to be signaled." +boundaries do not cause an error to be signaled. + +The characters that are moved over may be added to the current selection +\(i.e. active region) if the Shift key is held down, a motion key is used +to invoke this command, and `shifted-motion-keys-select-region' is t; see +the documentation for this variable for more details." (interactive "_P") (if signal-error-on-buffer-boundary (scroll-down n) @@ -2092,6 +2216,11 @@ a semipermanent goal column to which this command always moves. Then it does not try to move vertically. This goal column is stored in `goal-column', which is nil when there is none. +The characters that are moved over may be added to the current selection +\(i.e. active region) if the Shift key is held down, a motion key is used +to invoke this command, and `shifted-motion-keys-select-region' is t; see +the documentation for this variable for more details. + If you are thinking of using this in a Lisp program, consider using `forward-line' instead. It is usually easier to use and more reliable (no dependence on goal column, etc.)." @@ -2123,6 +2252,11 @@ The command \\[set-goal-column] can be used to create a semipermanent goal column to which this command always moves. Then it does not try to move vertically. +The characters that are moved over may be added to the current selection +\(i.e. active region) if the Shift key is held down, a motion key is used +to invoke this command, and `shifted-motion-keys-select-region' is t; see +the documentation for this variable for more details. + If you are thinking of using this in a Lisp program, consider using `forward-line' with a negative argument instead. It is usually easier to use and more reliable (no dependence on goal column, etc.)." @@ -2144,14 +2278,24 @@ to use and more reliable (no dependence on goal column, etc.)." (defun backward-block-of-lines () "Move backward by one \"block\" of lines. The number of lines that make up a block is controlled by -`block-movement-size', which defaults to 6." +`block-movement-size', which defaults to 6. + +The characters that are moved over may be added to the current selection +\(i.e. active region) if the Shift key is held down, a motion key is used +to invoke this command, and `shifted-motion-keys-select-region' is t; see +the documentation for this variable for more details." (interactive "_") (forward-line (- block-movement-size))) (defun forward-block-of-lines () "Move forward by one \"block\" of lines. The number of lines that make up a block is controlled by -`block-movement-size', which defaults to 6." +`block-movement-size', which defaults to 6. + +The characters that are moved over may be added to the current selection +\(i.e. active region) if the Shift key is held down, a motion key is used +to invoke this command, and `shifted-motion-keys-select-region' is t; see +the documentation for this variable for more details." (interactive "_") (forward-line block-movement-size)) @@ -2743,7 +2887,12 @@ not end the comment. Blank lines do not get comments." Normally t is returned, but if an edge of the buffer is reached, point is left there and nil is returned. -COUNT defaults to 1, and BUFFER defaults to the current buffer." +COUNT defaults to 1, and BUFFER defaults to the current buffer. + +The characters that are moved over may be added to the current selection +\(i.e. active region) if the Shift key is held down, a motion key is used +to invoke this command, and `shifted-motion-keys-select-region' is t; see +the documentation for this variable for more details." (interactive "_p") (forward-word (- (or count 1)) buffer)) diff --git a/lwlib/ChangeLog b/lwlib/ChangeLog index 12f1c4e..73a67bd 100644 --- a/lwlib/ChangeLog +++ b/lwlib/ChangeLog @@ -1,40 +1,6 @@ -2001-02-23 Martin Buchholz +2001-03-21 Martin Buchholz - * XEmacs 21.2.45 "Thelxepeia" is released. - -2001-02-16 Raymond Toy - - * lwlib-Xaw.c: Always include ATHENA_AsciiText_h_ to get the - text-field widget. - (xaw_creation_table): Always include the text-field widget - -2001-02-08 Martin Buchholz - - * XEmacs 21.2.44 "Thalia" is released. - -2001-02-06 Martin Buchholz - - * xlwgauge.c: - * xlwgcs.c: - * xlwgcs.c (XtAllocateGC): Fix typo for X11R4. - * xlwgcs.h: - * xlwradio.c (RadioExpose): - * xlwcheckbox.c: - Remove use of BSD-specific types. - s/u_(char|short|int_long)/unsigned $1/g - -2001-02-05 Martin Buchholz - - * lwlib-Xm.c (xm_update_one_value): - Obey the man page; use XtFree instead of free. - -2001-02-02 Martin Buchholz - - * config.h.in: Use "..." to include config.h - -2001-01-26 Martin Buchholz - - * XEmacs 21.2.43 "Terspichore" is released. + * XEmacs 21.2.46 "Urania" is released. 2001-01-20 Martin Buchholz diff --git a/man/ChangeLog b/man/ChangeLog index 320621f..74239eb 100644 --- a/man/ChangeLog +++ b/man/ChangeLog @@ -1,3 +1,319 @@ +2001-03-21 Martin Buchholz + + * XEmacs 21.2.46 "Urania" is released. + +2001-03-08 Ben Wing + + * internals\internals.texi (Top): + * internals\internals.texi (A History of Emacs): + * internals\internals.texi (Through Version 18): + * internals\internals.texi (Lucid Emacs): + * internals\internals.texi (GNU Emacs 19): + * internals\internals.texi (GNU Emacs 20): + * internals\internals.texi (XEmacs From the Outside): + * internals\internals.texi (The Lisp Language): + * internals\internals.texi (XEmacs From the Perspective of Building): + * internals\internals.texi (XEmacs From the Inside): + * internals\internals.texi (The XEmacs Object System (Abstractly Speaking)): + * internals\internals.texi (How Lisp Objects Are Represented in C): + * internals\internals.texi (Rules When Writing New C Code): + * internals\internals.texi (General Coding Rules): + * internals\internals.texi (Writing Lisp Primitives): + * internals\internals.texi (Writing Good Comments): + * internals\internals.texi (Adding Global Lisp Variables): + * internals\internals.texi (Proper Use of Unsigned Types): + * internals\internals.texi (Coding for Mule): + * internals\internals.texi (Character-Related Data Types): + * internals\internals.texi (Working With Character and Byte Positions): + * internals\internals.texi (Conversion to and from External Data): + * internals\internals.texi (General Guidelines for Writing Mule-Aware Code): + * internals\internals.texi (An Example of Mule-Aware Code): + * internals\internals.texi (Techniques for XEmacs Developers): + * internals\internals.texi (A Summary of the Various XEmacs Modules): + * internals\internals.texi (Low-Level Modules): + * internals\internals.texi (Basic Lisp Modules): + * internals\internals.texi (Modules for Standard Editing Operations): + * internals\internals.texi (Editor-Level Control Flow Modules): + * internals\internals.texi (Modules for the Basic Displayable Lisp Objects): + * internals\internals.texi (Modules for other Display-Related Lisp Objects): + * internals\internals.texi (Modules for the Redisplay Mechanism): + * internals\internals.texi (Modules for Interfacing with the File System): + * internals\internals.texi (Modules for Other Aspects of the Lisp Interpreter and Object System): + * internals\internals.texi (Modules for Interfacing with the Operating System): + * internals\internals.texi (Modules for Interfacing with X Windows): + * internals\internals.texi (Allocation of Objects in XEmacs Lisp): + * internals\internals.texi (Introduction to Allocation): + * internals\internals.texi (Garbage Collection): + * internals\internals.texi (GCPROing): + * internals\internals.texi (Garbage Collection - Step by Step): + * internals\internals.texi (Invocation): + * internals\internals.texi (garbage_collect_1): + * internals\internals.texi (mark_object): + * internals\internals.texi (gc_sweep): + * internals\internals.texi (sweep_lcrecords_1): + * internals\internals.texi (compact_string_chars): + * internals\internals.texi (sweep_strings): + * internals\internals.texi (sweep_bit_vectors_1): + * internals\internals.texi (Integers and Characters): + * internals\internals.texi (Allocation from Frob Blocks): + * internals\internals.texi (lrecords): + * internals\internals.texi (Low-level allocation): + * internals\internals.texi (Cons): + * internals\internals.texi (Vector): + * internals\internals.texi (Bit Vector): + * internals\internals.texi (Symbol): + * internals\internals.texi (Marker): + * internals\internals.texi (String): + * internals\internals.texi (Dumping): + * internals\internals.texi (Overview): + * internals\internals.texi (Data descriptions): + * internals\internals.texi (Dumping phase): + * internals\internals.texi (Object inventory): + * internals\internals.texi (Address allocation): + * internals\internals.texi (The header): + * internals\internals.texi (Data dumping): + * internals\internals.texi (Pointers dumping): + * internals\internals.texi (Reloading phase): + * internals\internals.texi (Events and the Event Loop): + * internals\internals.texi (Introduction to Events): + * internals\internals.texi (Main Loop): + * internals\internals.texi (Specifics of the Event Gathering Mechanism): + * internals\internals.texi (Specifics About the Emacs Event): + * internals\internals.texi (The Event Stream Callback Routines): + * internals\internals.texi (Other Event Loop Functions): + * internals\internals.texi (Converting Events): + * internals\internals.texi (Evaluation; Stack Frames; Bindings): + * internals\internals.texi (Evaluation): + * internals\internals.texi (Dynamic Binding; The specbinding Stack; Unwind-Protects): + * internals\internals.texi (Simple Special Forms): + * internals\internals.texi (Symbols and Variables): + * internals\internals.texi (Introduction to Symbols): + * internals\internals.texi (Obarrays): + * internals\internals.texi (Buffers and Textual Representation): + * internals\internals.texi (Introduction to Buffers): + * internals\internals.texi (The Text in a Buffer): + * internals\internals.texi (Buffer Lists): + * internals\internals.texi (Markers and Extents): + * internals\internals.texi (Bufbytes and Emchars): + * internals\internals.texi (MULE Character Sets and Encodings): + * internals\internals.texi (Character Sets): + * internals\internals.texi (Encodings): + * internals\internals.texi (Japanese EUC (Extended Unix Code)): + * internals\internals.texi (JIS7): + * internals\internals.texi (Internal Mule Encodings): + * internals\internals.texi (Internal String Encoding): + * internals\internals.texi (Internal Character Encoding): + * internals\internals.texi (The Lisp Reader and Compiler): + * internals\internals.texi (Lstreams): + * internals\internals.texi (Creating an Lstream): + * internals\internals.texi (Lstream Types): + * internals\internals.texi (Lstream Functions): + * internals\internals.texi (Consoles; Devices; Frames; Windows): + * internals\internals.texi (Introduction to Consoles; Devices; Frames; Windows): + * internals\internals.texi (Point): + * internals\internals.texi (Window Hierarchy): + * internals\internals.texi (The Redisplay Mechanism): + * internals\internals.texi (Critical Redisplay Sections): + * internals\internals.texi (Line Start Cache): + * internals\internals.texi (Extents): + * internals\internals.texi (Introduction to Extents): + * internals\internals.texi (Extent Ordering): + * internals\internals.texi (Format of the Extent Info): + * internals\internals.texi (Zero-Length Extents): + * internals\internals.texi (Mathematics of Extent Ordering): + * internals\internals.texi (Faces): + * internals\internals.texi (Glyphs): + * internals\internals.texi (Specifiers): + * internals\internals.texi (Menus): + * internals\internals.texi (Subprocesses): + * internals\internals.texi (Interface to the X Window System): + * internals\internals.texi (Lucid Widget Library): + * internals\internals.texi (Generic Widget Interface): + * internals\internals.texi (Scrollbars): + * internals\internals.texi (Menubars): + * internals\internals.texi (Checkboxes and Radio Buttons): + * internals\internals.texi (Progress Bars): + * internals\internals.texi (Tab Controls): + Add more index entries. Add sections on comments and unsigned types. + +2001-03-08 Ben Wing + + * make-stds.texi (Makefile Basics): + * make-stds.texi (Command Variables): + * make-stds.texi (Directory Variables): + * make-stds.texi (Standard Targets): + * standards.texi: + * standards.texi (Top): + * standards.texi (Preface): + * standards.texi (Legal Issues): + * standards.texi (Reading Non-Free Code): + * standards.texi (Contributions): + * standards.texi (Trademarks): + * standards.texi (Design Advice): + * standards.texi (Source Language): + * standards.texi (Compatibility): + * standards.texi (Using Extensions): + * standards.texi (Standard C): + * standards.texi (Program Behavior): + * standards.texi (Semantics): + * standards.texi (Libraries): + * standards.texi (Errors): + * standards.texi (User Interfaces): + * standards.texi (Graphical Interfaces): + * standards.texi (Command-Line Interfaces): + * standards.texi (Option Table): + * standards.texi (Memory Usage): + * standards.texi (File Usage): + * standards.texi (Formatting): + * standards.texi (Comments): + * standards.texi (Syntactic Conventions): + * standards.texi (Names): + * standards.texi (System Portability): + * standards.texi (CPU Portability): + * standards.texi (System Functions): + * standards.texi (Internationalization): + * standards.texi (Mmap): + * standards.texi (Documentation): + * standards.texi (GNU Manuals): + * standards.texi (Doc Strings and Manuals): + * standards.texi (Manual Structure Details): + * standards.texi (License for Manuals): + * standards.texi (Manual Credits): + * standards.texi (Printed Manuals): + * standards.texi (NEWS File): + * standards.texi (Change Logs): + * standards.texi (Style of Change Logs): + * standards.texi (Simple Changes): + * standards.texi (Conditional Changes): + * standards.texi (Indicating the Part Changed): + * standards.texi (Managing Releases): + * standards.texi (Configuration): + * standards.texi (Releases): + * standards.texi (References): + * standards.texi (Index): + Update to latest GNU version. + + * xemacs-faq.texi (Q6.3.3): + * xemacs-faq.texi (Q6.4.1): + Improve questions on current Windows activity. + +2001-03-07 Sandra Wambold + + * xemacs-faq.texi: (Q.1.0.7): changed list archive address + +2001-02-25 Ben Wing + + * xemacs-faq.texi (Top): + * xemacs-faq.texi (Introduction): + * xemacs-faq.texi (Q1.0.1): + * xemacs-faq.texi (Q1.0.4): + * xemacs-faq.texi (Q1.0.6): + * xemacs-faq.texi (Q1.0.10): + * xemacs-faq.texi (Q1.2.1): + * xemacs-faq.texi (Q1.4.1): + * xemacs-faq.texi (Q1.4.2): + * xemacs-faq.texi (Q2.0.12): + * xemacs-faq.texi (Q2.1.1): + * xemacs-faq.texi (Q2.1.2): + * xemacs-faq.texi (Q2.1.9): + * xemacs-faq.texi (Q2.1.15): + * xemacs-faq.texi (Q2.1.19): + * xemacs-faq.texi (Customization): + * xemacs-faq.texi (Q3.0.1): + * xemacs-faq.texi (Q3.0.2): + * xemacs-faq.texi (Q3.0.3): + * xemacs-faq.texi (Q3.0.7): + * xemacs-faq.texi (Q3.1.5): + * xemacs-faq.texi (Q3.1.6): + * xemacs-faq.texi (Q3.2.1): + * xemacs-faq.texi (Q3.2.3): + * xemacs-faq.texi (Q3.2.4): + * xemacs-faq.texi (Q3.3.1): + * xemacs-faq.texi (Q3.3.2): + * xemacs-faq.texi (Q3.3.3): + * xemacs-faq.texi (Q3.3.4): + * xemacs-faq.texi (Q3.3.5): + * xemacs-faq.texi (Q3.4.1): + * xemacs-faq.texi (Q3.4.2): + * xemacs-faq.texi (Q3.5.2): + * xemacs-faq.texi (Q3.5.4): + * xemacs-faq.texi (key-translation-map): New. + * xemacs-faq.texi (Q3.5.5): + * xemacs-faq.texi (Q3.5.6): + * xemacs-faq.texi (Q3.5.7): + * xemacs-faq.texi (Q3.5.8): + * xemacs-faq.texi (global-map): Removed. + * xemacs-faq.texi (Q3.5.9): + * xemacs-faq.texi (Q3.6.1): + * xemacs-faq.texi (Q3.6.2): + * xemacs-faq.texi (Q3.6.3): + * xemacs-faq.texi (Q3.7.6): + * xemacs-faq.texi (Q3.7.7): + * xemacs-faq.texi (Q3.8.1): + * xemacs-faq.texi (Q3.8.2): + * xemacs-faq.texi (Q3.8.3): + * xemacs-faq.texi (Q3.9.1): + * xemacs-faq.texi (Q3.9.4): + * xemacs-faq.texi (Q3.10.1): + * xemacs-faq.texi (Q3.10.2): + * xemacs-faq.texi (Q3.10.3): + * xemacs-faq.texi (Q4.0.12): + * xemacs-faq.texi (Miscellaneous): + * xemacs-faq.texi (Q5.0.1): + * xemacs-faq.texi (Q5.0.2): + * xemacs-faq.texi (Q5.0.3): + * xemacs-faq.texi (Q5.0.4): + * xemacs-faq.texi (Q5.0.5): + * xemacs-faq.texi (Q5.0.8): + * xemacs-faq.texi (Q5.0.9): + * xemacs-faq.texi (Q5.0.11): + * xemacs-faq.texi (Q5.0.12): + * xemacs-faq.texi (Q5.0.13): + * xemacs-faq.texi (Q5.0.16): + * xemacs-faq.texi (Q5.0.17): + * xemacs-faq.texi (Q5.1.9): + * xemacs-faq.texi (Q5.1.11): + * xemacs-faq.texi (Q5.2.1): + * xemacs-faq.texi (Q5.2.2): + * xemacs-faq.texi (Q5.3.1): + * xemacs-faq.texi (Q5.3.2): + * xemacs-faq.texi (Q5.3.4): + * xemacs-faq.texi (MS Windows): + * xemacs-faq.texi (Q6.0.1): + * xemacs-faq.texi (Q6.0.2): + * xemacs-faq.texi (Q6.0.3): + * xemacs-faq.texi (Q6.0.4): + * xemacs-faq.texi (Q6.1.5): + * xemacs-faq.texi (Q6.2.3): + * xemacs-faq.texi (Q6.3.1): + + Remove most references to XEmacs pre-19.15, since they are way out + of date and are cluttering up and confusing many answers. Update + references to .emacs to take into account the new init file + location. Update information about the MS Windows port. Change + description of XEmacs at beginning to match the web site. Update + info about current developers. + + +2001-02-25 Ben Wing + + * lispref\help.texi (Describing Characters): + kp- not kp_. + +2001-02-25 Ben Wing + + * new-users-guide\custom1.texi (Customization Basics): + * new-users-guide\custom1.texi (Customizing key Bindings): + * new-users-guide\custom1.texi (Customizing Menus): + * new-users-guide\custom2.texi (Other Customizations): + * new-users-guide\custom2.texi (Setting Variables): + * new-users-guide\custom2.texi (Init File): + * new-users-guide\xmenu.texi (Options Menu): + * new-users-guide\modes.texi (Major Modes): + * new-users-guide\modes.texi (Minor Modes): + * new-users-guide\new-users-guide.texi (Top): + Fix up references to .emacs to take into account init.el. + 2001-02-23 Martin Buchholz * XEmacs 21.2.45 "Thelxepeia" is released. diff --git a/man/internals/internals.texi b/man/internals/internals.texi index db888d1..f82c7ee 100644 --- a/man/internals/internals.texi +++ b/man/internals/internals.texi @@ -105,7 +105,7 @@ instead of in the original English. @node Top, A History of Emacs, (dir), (dir) @ifinfo -This Info file contains v1.0 of the XEmacs Internals Manual. +This Info file contains v1.3 of the XEmacs Internals Manual, August 1999. @end ifinfo @menu @@ -309,7 +309,8 @@ Extents @node A History of Emacs, XEmacs From the Outside, Top, Top @chapter A History of Emacs -@cindex history of Emacs +@cindex history of Emacs, a +@cindex Emacs, a history of @cindex Hackers (Steven Levy) @cindex Levy, Steven @cindex ITS (Incompatible Timesharing System) @@ -345,8 +346,9 @@ Lisp, a programming language developed at MIT that underlies Emacs.) * XEmacs:: The continuation of Lucid Emacs. @end menu -@node Through Version 18, Lucid Emacs, A History of Emacs, A History of Emacs +@node Through Version 18 @section Through Version 18 +@cindex version 18, through @cindex Gosling, James @cindex Great Usenet Renaming @@ -458,7 +460,7 @@ version 18.58 released ?????. version 18.59 released October 31, 1992. @end itemize -@node Lucid Emacs, GNU Emacs 19, Through Version 18, A History of Emacs +@node Lucid Emacs @section Lucid Emacs @cindex Lucid Emacs @cindex Lucid Inc. @@ -546,9 +548,11 @@ version 20.3 (the first stable version of XEmacs 20.x) released November 30, version 20.4 released February 28, 1998. @end itemize -@node GNU Emacs 19, GNU Emacs 20, Lucid Emacs, A History of Emacs +@node GNU Emacs 19 @section GNU Emacs 19 @cindex GNU Emacs 19 +@cindex Emacs 19, GNU +@cindex version 19, GNU Emacs @cindex FSF Emacs About a year after the initial release of Lucid Emacs, the FSF @@ -623,9 +627,11 @@ Lucid Emacs; the work was mostly done by Richard Mlynarik, who had been working on and using GNU Emacs for a long time (back as far as version 16 or 17). -@node GNU Emacs 20, XEmacs, GNU Emacs 19, A History of Emacs +@node GNU Emacs 20 @section GNU Emacs 20 @cindex GNU Emacs 20 +@cindex Emacs 20, GNU +@cindex version 20, GNU Emacs @cindex FSF Emacs On February 2, 1997 work began on GNU Emacs to integrate Mule. The first @@ -642,7 +648,7 @@ version 20.2 released September 20, 1997. version 20.3 released August 19, 1998. @end itemize -@node XEmacs, , GNU Emacs 20, A History of Emacs +@node XEmacs @section XEmacs @cindex XEmacs @@ -720,6 +726,8 @@ have consistently failed. @node XEmacs From the Outside, The Lisp Language, A History of Emacs, Top @chapter XEmacs From the Outside +@cindex XEmacs from the outside +@cindex outside, XEmacs from the @cindex read-eval-print XEmacs appears to the outside world as an editor, but it is really a @@ -762,6 +770,7 @@ have to write functions to do those operations in Lisp. @node The Lisp Language, XEmacs From the Perspective of Building, XEmacs From the Outside, Top @chapter The Lisp Language +@cindex Lisp language, the @cindex Lisp vs. C @cindex C vs. Lisp @cindex Lisp vs. Java @@ -983,6 +992,8 @@ inside the real OS. @node XEmacs From the Perspective of Building, XEmacs From the Inside, The Lisp Language, Top @chapter XEmacs From the Perspective of Building +@cindex XEmacs from the perspective of building +@cindex building, XEmacs from the perspective of The heart of XEmacs is the Lisp environment, which is written in C. This is contained in the @file{src/} subdirectory. Underneath @@ -1092,6 +1103,8 @@ such as allocation memory in one process, and freeing it in the next. @node XEmacs From the Inside, The XEmacs Object System (Abstractly Speaking), XEmacs From the Perspective of Building, Top @chapter XEmacs From the Inside +@cindex XEmacs from the inside +@cindex inside, XEmacs from the Internally, XEmacs is quite complex, and can be very confusing. To simplify things, it can be useful to think of XEmacs as containing an @@ -1251,6 +1264,8 @@ change the C code. @node The XEmacs Object System (Abstractly Speaking), How Lisp Objects Are Represented in C, XEmacs From the Inside, Top @chapter The XEmacs Object System (Abstractly Speaking) +@cindex XEmacs object system (abstractly speaking), the +@cindex object system (abstractly speaking), the XEmacs At the heart of the Lisp interpreter is its management of objects. XEmacs Lisp contains many built-in objects, some of which are @@ -1610,6 +1625,9 @@ initialized through a read syntax. @node How Lisp Objects Are Represented in C, Rules When Writing New C Code, The XEmacs Object System (Abstractly Speaking), Top @chapter How Lisp Objects Are Represented in C +@cindex Lisp objects are represented in C, how +@cindex objects are represented in C, how Lisp +@cindex represented in C, how Lisp objects are Lisp objects are represented in C using a 32-bit or 64-bit machine word (depending on the processor; i.e. DEC Alphas use 64-bit Lisp objects and @@ -1694,6 +1712,9 @@ specified. @node Rules When Writing New C Code, A Summary of the Various XEmacs Modules, How Lisp Objects Are Represented in C, Top @chapter Rules When Writing New C Code +@cindex writing new C code, rules when +@cindex C code, rules when writing new +@cindex code, rules when writing new C The XEmacs C Code is extremely complex and intricate, and there are many rules that are more or less consistently followed throughout the code. @@ -1705,13 +1726,16 @@ situations, often in code far away from where the actual breakage is. @menu * General Coding Rules:: * Writing Lisp Primitives:: +* Writing Good Comments:: * Adding Global Lisp Variables:: +* Proper Use of Unsigned Types:: * Coding for Mule:: * Techniques for XEmacs Developers:: @end menu -@node General Coding Rules, Writing Lisp Primitives, Rules When Writing New C Code, Rules When Writing New C Code +@node General Coding Rules @section General Coding Rules +@cindex coding rules, general The C code is actually written in a dialect of C called @dfn{Clean C}, meaning that it can be compiled, mostly warning-free, with either a C or @@ -1828,8 +1852,11 @@ the list. The macros @code{EXTERNAL_LIST_LOOP_DELETE_IF} and @code{LIST_LOOP_DELETE_IF} delete elements from a lisp list satisfying some predicate. -@node Writing Lisp Primitives, Adding Global Lisp Variables, General Coding Rules, Rules When Writing New C Code +@node Writing Lisp Primitives @section Writing Lisp Primitives +@cindex writing Lisp primitives +@cindex Lisp primitives, writing +@cindex primitives, writing Lisp Lisp primitives are Lisp functions implemented in C. The details of interfacing the C function so that Lisp can call it are handled by a few @@ -2072,8 +2099,73 @@ number of arguments. They work by calling @code{Ffuncall}. @file{lisp.h} contains the definitions for important macros and functions. -@node Adding Global Lisp Variables, Coding for Mule, Writing Lisp Primitives, Rules When Writing New C Code +@node Writing Good Comments +@section Writing Good Comments +@cindex writing good comments +@cindex comments, writing good + +Comments are a lifeline for programmers trying to understand tricky +code. In general, the less obvious it is what you are doing, the more +you need a comment, and the more detailed it needs to be. You should +always be on guard when you're writing code for stuff that's tricky, and +should constantly be putting yourself in someone else's shoes and asking +if that person could figure out without much difficulty what's going +on. (Assume they are a competent programmer who understands the +essentials of how the XEmacs code is structured but doesn't know much +about the module you're working on or any algorithms you're using.) If +you're not sure whether they would be able to, add a comment. Always +err on the side of more comments, rather than less. + +Generally, when making comments, there is no need to attribute them with +your name or initials. This especially goes for small, +easy-to-understand, non-opinionated ones. Also, comments indicating +where, when, and by whom a file was changed are @emph{strongly} +discouraged, and in general will be removed as they are discovered. +This is exactly what @file{ChangeLogs} are there for. However, it can +occasionally be useful to mark exactly where (but not when or by whom) +changes are made, particularly when making small changes to a file +imported from elsewhere. These marks help when later on a newer version +of the file is imported and the changes need to be merged. (If +everything were always kept in CVS, there would be no need for this. +But in practice, this often doesn't happen, or the CVS repository is +later on lost or unavailable to the person doing the update.) + +When putting in an explicit opinion in a comment, you should +@emph{always} attribute it with your name, and optionally the date. +This also goes for long, complex comments explaining in detail the +workings of something -- by putting your name there, you make it +possible for someone who has questions about how that thing works to +determine who wrote the comment so they can write to them. Preferably, +use your actual name and not your initials, unless your initials are +generally recognized (e.g. @samp{jwz}). You can use only your first +name if it's obvious who you are; otherwise, give first and last name. +If you're not a regular contributor, you might consider putting your +email address in -- it may be in the ChangeLog, but after awhile +ChangeLogs have a tendency of disappearing or getting +muddled. (E.g. your comment may get copied somewhere else or even into +another program, and tracking down the proper ChangeLog may be very +difficult.) + +If you come across an opinion that is not or no longer valid, or you +come across any comment that no longer applies but you want to keep it +around, enclose it in @samp{[[ } and @samp{ ]]} marks and add a comment +afterwards explaining why the preceding comment is no longer valid. Put +your name on this comment, as explained above. + +Just as comments are a lifeline to programmers, incorrect comments are +death. If you come across an incorrect comment, @strong{immediately} +correct it or flag it as incorrect, as described in the previous +paragraph. Whenever you work on a section of code, @emph{always} make +sure to update any comments to be correct -- or, at the very least, flag +them as incorrect. + +To indicate a "todo" or other problem, use four pound signs -- +i.e. @samp{####}. + +@node Adding Global Lisp Variables @section Adding Global Lisp Variables +@cindex global Lisp variables, adding +@cindex variables, adding global Lisp Global variables whose names begin with @samp{Q} are constants whose value is a symbol of a particular name. The name of the variable should @@ -2134,9 +2226,41 @@ is in use, and will happily collect it and reuse its storage for another Lisp object, and you will be the one who's unhappy when you can't figure out how your variable got overwritten. -@node Coding for Mule, Techniques for XEmacs Developers, Adding Global Lisp Variables, Rules When Writing New C Code +@node Proper Use of Unsigned Types +@section Proper Use of Unsigned Types +@cindex unsigned types, proper use of +@cindex types, proper use of unsigned + +Avoid using @code{unsigned int} and @code{unsigned long} whenever +possible. Unsigned types are viral -- any arithmetic or comparisons +involving mixed signed and unsigned types are automatically converted to +unsigned, which is almost certainly not what you want. Many subtle and +hard-to-find bugs are created by careless use of unsigned types. In +general, you should almost @emph{never} use an unsigned type to hold a +regular quantity of any sort. The only exceptions are + +@enumerate +@item +When there's a reasonable possibility you will actually need all 32 or +64 bits to store the quantity. +@item +When calling existing API's that require unsigned types. In this case, +you should still do all manipulation using signed types, and do the +conversion at the very threshold of the API call. +@item +In existing code that you don't want to modify because you don't +maintain it. +@item +In bit-field structures. +@end enumerate + +Other reasonable uses of @code{unsigned int} and @code{unsigned long} +are representing non-quantities -- e.g. bit-oriented flags and such. + +@node Coding for Mule @section Coding for Mule -@cindex Coding for Mule +@cindex coding for Mule +@cindex Mule, coding for Although Mule support is not compiled by default in XEmacs, many people are using it, and we consider it crucial that new code works correctly @@ -2157,8 +2281,10 @@ code generalization for future I18N work. * An Example of Mule-Aware Code:: @end menu -@node Character-Related Data Types, Working With Character and Byte Positions, Coding for Mule, Coding for Mule +@node Character-Related Data Types @subsection Character-Related Data Types +@cindex character-related data types +@cindex data types, character-related First, let's review the basic character-related datatypes used by XEmacs. Note that the separate @code{typedef}s are not mandatory in the @@ -2234,8 +2360,11 @@ which are equivalent to @code{unsigned char}. Obviously, an and Extcounts are not all that frequent in XEmacs code. @end table -@node Working With Character and Byte Positions, Conversion to and from External Data, Character-Related Data Types, Coding for Mule +@node Working With Character and Byte Positions @subsection Working With Character and Byte Positions +@cindex character and byte positions, working with +@cindex byte positions, working with character and +@cindex positions, working with character and byte Now that we have defined the basic character-related types, we can look at the macros and functions designed for work with them and for @@ -2358,8 +2487,10 @@ Bufbyte *charptr_n_addr (Bufbyte *p, Charcount cc); @end example @end table -@node Conversion to and from External Data, General Guidelines for Writing Mule-Aware Code, Working With Character and Byte Positions, Coding for Mule +@node Conversion to and from External Data @subsection Conversion to and from External Data +@cindex conversion to and from external data +@cindex external data, conversion to and from When an external function, such as a C library function, returns a @code{char} pointer, you should almost never treat it as @code{Bufbyte}. @@ -2500,8 +2631,11 @@ for @code{TO_INTERNAL_FORMAT} or a sink for @code{TO_EXTERNAL_FORMAT}. You'll get an assertion failure if you try. -@node General Guidelines for Writing Mule-Aware Code, An Example of Mule-Aware Code, Conversion to and from External Data, Coding for Mule +@node General Guidelines for Writing Mule-Aware Code @subsection General Guidelines for Writing Mule-Aware Code +@cindex writing Mule-aware code, general guidelines for +@cindex Mule-aware code, general guidelines for writing +@cindex code, general guidelines for writing Mule-aware This section contains some general guidance on how to write Mule-aware code, as well as some pitfalls you should avoid. @@ -2552,8 +2686,10 @@ needs to be decoded only once, when it is read. After that, it is passed around in internal format. @end table -@node An Example of Mule-Aware Code, , General Guidelines for Writing Mule-Aware Code, Coding for Mule +@node An Example of Mule-Aware Code @subsection An Example of Mule-Aware Code +@cindex code, an example of Mule-aware +@cindex Mule-aware code, an example of As an example of Mule-aware code, we will analyze the @code{string} function, which conses up a Lisp string from the character arguments it @@ -2602,9 +2738,13 @@ over the XEmacs code. For starters, I recommend understood this section of the manual and studied the examples, you can proceed writing new Mule-aware code. -@node Techniques for XEmacs Developers, , Coding for Mule, Rules When Writing New C Code +@node Techniques for XEmacs Developers @section Techniques for XEmacs Developers +@cindex techniques for XEmacs developers +@cindex developers, techniques for XEmacs +@cindex Purify +@cindex Quantify To make a purified XEmacs, do: @code{make puremacs}. To make a quantified XEmacs, do: @code{make quantmacs}. @@ -2616,6 +2756,7 @@ machine!. Run it like so: temacs -batch -l loadup.el run-temacs @var{xemacs-args...} @end example +@cindex error checking Before you go through the trouble, are you compiling with all debugging and error-checking off? If not, try that first. Be warned that while Quantify is directly responsible for quite a few @@ -2660,6 +2801,7 @@ Heavily used small code fragments need to be fast. The traditional way to implement such code fragments in C is with macros. But macros in C are known to be broken. +@cindex macro hygiene Macro arguments that are repeatedly evaluated may suffer from repeated side effects or suboptimal performance. @@ -2702,6 +2844,7 @@ is, since a C block has no value, a macro used as an expression rather than a statement cannot use the techniques just described to avoid multiple evaluation. +@cindex inline functions In most cases where a macro has function semantics, an inline function is a better implementation technique. Modern compiler optimizers tend to inline functions even if they have no @code{inline} keyword, and @@ -2744,6 +2887,8 @@ The declaration right before the definition is to prevent warnings when compiling with @code{gcc -Wmissing-declarations}. I consider issuing this warning for inline functions a gcc bug, but the gcc maintainers disagree. +@cindex inline functions, headers +@cindex header files, inline functions Every header which contains inline functions, either directly by using @code{INLINE_HEADER} or indirectly by using @code{DECLARE_LRECORD} must be added to @file{inline.c}'s includes to make the optimization @@ -2794,6 +2939,9 @@ use it to do so. @end itemize +@cindex Lisp object types, creating +@cindex creating Lisp object types +@cindex object types, creating Lisp Here is a checklist of things to do when creating a new lisp object type named @var{foo}: @@ -2821,6 +2969,7 @@ add an INIT_LRECORD_IMPLEMENTATION call to @code{syms_of_@var{foo}.c} @node A Summary of the Various XEmacs Modules, Allocation of Objects in XEmacs Lisp, Rules When Writing New C Code, Top @chapter A Summary of the Various XEmacs Modules +@cindex modules, a summary of the various XEmacs This is accurate as of XEmacs 20.0. @@ -2839,8 +2988,10 @@ add an INIT_LRECORD_IMPLEMENTATION call to @code{syms_of_@var{foo}.c} * Modules for Internationalization:: @end menu -@node Low-Level Modules, Basic Lisp Modules, A Summary of the Various XEmacs Modules, A Summary of the Various XEmacs Modules +@node Low-Level Modules @section Low-Level Modules +@cindex low-level modules +@cindex modules, low-level @example config.h @@ -3055,8 +3206,10 @@ This is not currently used. -@node Basic Lisp Modules, Modules for Standard Editing Operations, Low-Level Modules, A Summary of the Various XEmacs Modules +@node Basic Lisp Modules @section Basic Lisp Modules +@cindex Lisp modules, basic +@cindex modules, basic Lisp @example lisp-disunion.h @@ -3229,8 +3382,10 @@ structures. Note that the byte-code @emph{compiler} is written in Lisp. -@node Modules for Standard Editing Operations, Editor-Level Control Flow Modules, Basic Lisp Modules, A Summary of the Various XEmacs Modules +@node Modules for Standard Editing Operations @section Modules for Standard Editing Operations +@cindex modules for standard editing operations +@cindex editing operations, modules for standard @example buffer.c @@ -3399,8 +3554,10 @@ Most of this could be implemented in Lisp. -@node Editor-Level Control Flow Modules, Modules for the Basic Displayable Lisp Objects, Modules for Standard Editing Operations, A Summary of the Various XEmacs Modules +@node Editor-Level Control Flow Modules @section Editor-Level Control Flow Modules +@cindex control flow modules, editor-level +@cindex modules, editor-level control flow @example event-Xt.c @@ -3501,8 +3658,12 @@ code is loaded). -@node Modules for the Basic Displayable Lisp Objects, Modules for other Display-Related Lisp Objects, Editor-Level Control Flow Modules, A Summary of the Various XEmacs Modules +@node Modules for the Basic Displayable Lisp Objects @section Modules for the Basic Displayable Lisp Objects +@cindex modules for the basic displayable Lisp objects +@cindex displayable Lisp objects, modules for the basic +@cindex Lisp objects, modules for the basic displayable +@cindex objects, modules for the basic displayable Lisp @example console-msw.c @@ -3592,8 +3753,11 @@ types such as scrollbars. -@node Modules for other Display-Related Lisp Objects, Modules for the Redisplay Mechanism, Modules for the Basic Displayable Lisp Objects, A Summary of the Various XEmacs Modules +@node Modules for other Display-Related Lisp Objects @section Modules for other Display-Related Lisp Objects +@cindex modules for other display-related Lisp objects +@cindex display-related Lisp objects, modules for other +@cindex Lisp objects, modules for other display-related @example faces.c @@ -3682,8 +3846,10 @@ These files were removed due to Unisys patent infringement concerns. -@node Modules for the Redisplay Mechanism, Modules for Interfacing with the File System, Modules for other Display-Related Lisp Objects, A Summary of the Various XEmacs Modules +@node Modules for the Redisplay Mechanism @section Modules for the Redisplay Mechanism +@cindex modules for the redisplay mechanism +@cindex redisplay mechanism, modules for the @example redisplay-output.c @@ -3755,8 +3921,11 @@ probably be merged into @file{redisplay-tty.c}. -@node Modules for Interfacing with the File System, Modules for Other Aspects of the Lisp Interpreter and Object System, Modules for the Redisplay Mechanism, A Summary of the Various XEmacs Modules +@node Modules for Interfacing with the File System @section Modules for Interfacing with the File System +@cindex modules for interfacing with the file system +@cindex interfacing with the file system, modules for +@cindex file system, modules for interfacing with the @example lstream.c @@ -3856,8 +4025,12 @@ a broken implementation. -@node Modules for Other Aspects of the Lisp Interpreter and Object System, Modules for Interfacing with the Operating System, Modules for Interfacing with the File System, A Summary of the Various XEmacs Modules +@node Modules for Other Aspects of the Lisp Interpreter and Object System @section Modules for Other Aspects of the Lisp Interpreter and Object System +@cindex modules for other aspects of the Lisp interpreter and object system +@cindex Lisp interpreter and object system, modules for other aspects of the +@cindex interpreter and object system, modules for other aspects of the Lisp +@cindex object system, modules for other aspects of the Lisp interpreter and @example elhash.c @@ -4018,8 +4191,11 @@ various security applications on the Internet. -@node Modules for Interfacing with the Operating System, Modules for Interfacing with X Windows, Modules for Other Aspects of the Lisp Interpreter and Object System, A Summary of the Various XEmacs Modules +@node Modules for Interfacing with the Operating System @section Modules for Interfacing with the Operating System +@cindex modules for interfacing with the operating system +@cindex interfacing with the operating system, modules for +@cindex operating system, modules for interfacing with the @example callproc.c @@ -4247,8 +4423,11 @@ AIX prior to 4.1. -@node Modules for Interfacing with X Windows, Modules for Internationalization, Modules for Interfacing with the Operating System, A Summary of the Various XEmacs Modules +@node Modules for Interfacing with X Windows @section Modules for Interfacing with X Windows +@cindex modules for interfacing with X Windows +@cindex interfacing with X Windows, modules for +@cindex X Windows, modules for interfacing with @example Emacs.ad.h @@ -4392,8 +4571,10 @@ Don't touch this code; something is liable to break if you do. -@node Modules for Internationalization, , Modules for Interfacing with X Windows, A Summary of the Various XEmacs Modules +@node Modules for Internationalization @section Modules for Internationalization +@cindex modules for internationalization +@cindex internationalization, modules for @example mule-canna.c @@ -4471,6 +4652,9 @@ Asian-language support, and is not currently used. @node Allocation of Objects in XEmacs Lisp, Dumping, A Summary of the Various XEmacs Modules, Top @chapter Allocation of Objects in XEmacs Lisp +@cindex allocation of objects in XEmacs Lisp +@cindex objects in XEmacs Lisp, allocation of +@cindex Lisp objects, allocation of in XEmacs @menu * Introduction to Allocation:: @@ -4490,8 +4674,9 @@ Asian-language support, and is not currently used. * Compiled Function:: @end menu -@node Introduction to Allocation, Garbage Collection, Allocation of Objects in XEmacs Lisp, Allocation of Objects in XEmacs Lisp +@node Introduction to Allocation @section Introduction to Allocation +@cindex allocation, introduction to Emacs Lisp, like all Lisps, has garbage collection. This means that the programmer never has to explicitly free (destroy) an object; it @@ -4561,7 +4746,7 @@ except that their type is stored in lrecord fashion rather than in directly-tagged fashion. -@node Garbage Collection, GCPROing, Introduction to Allocation, Allocation of Objects in XEmacs Lisp +@node Garbage Collection @section Garbage Collection @cindex garbage collection @@ -4585,8 +4770,11 @@ once a certain amount of memory has been allocated since the last garbage collection (according to @code{gc-cons-threshold}). -@node GCPROing, Garbage Collection - Step by Step, Garbage Collection, Allocation of Objects in XEmacs Lisp +@node GCPROing @section @code{GCPRO}ing +@cindex @code{GCPRO}ing +@cindex garbage collection protection +@cindex protection, garbage collection @code{GCPRO}ing is one of the ugliest and trickiest parts of Emacs internals. The basic idea is that whenever garbage collection @@ -4741,9 +4929,9 @@ will result in a few objects not getting collected when they should, but it obviates the need for @code{GCPRO}ing, and allows garbage collection to happen at any point at all, such as during object allocation. -@node Garbage Collection - Step by Step, Integers and Characters, GCPROing, Allocation of Objects in XEmacs Lisp +@node Garbage Collection - Step by Step @section Garbage Collection - Step by Step -@cindex garbage collection step by step +@cindex garbage collection - step by step @menu * Invocation:: @@ -4756,7 +4944,7 @@ to happen at any point at all, such as during object allocation. * sweep_bit_vectors_1:: @end menu -@node Invocation, garbage_collect_1, Garbage Collection - Step by Step, Garbage Collection - Step by Step +@node Invocation @subsection Invocation @cindex garbage collection, invocation @@ -4816,7 +5004,7 @@ everything related to @code{eval} (@code{Feval_buffer}, @code{call0}, for example the ones raised by every @code{QUIT}-macro triggered after pressing Ctrl-g. -@node garbage_collect_1, mark_object, Invocation, Garbage Collection - Step by Step +@node garbage_collect_1 @subsection @code{garbage_collect_1} @cindex @code{garbage_collect_1} @@ -5006,7 +5194,7 @@ A small memory reserve is always held back that can be reached by and exit. @end enumerate -@node mark_object, gc_sweep, garbage_collect_1, Garbage Collection - Step by Step +@node mark_object @subsection @code{mark_object} @cindex @code{mark_object} @@ -5040,7 +5228,7 @@ be performed. In case another object was returned, as mentioned before, we reiterate the whole @code{mark_object} process beginning with this next object. -@node gc_sweep, sweep_lcrecords_1, mark_object, Garbage Collection - Step by Step +@node gc_sweep @subsection @code{gc_sweep} @cindex @code{gc_sweep} @@ -5135,7 +5323,7 @@ whole block is empty. If so, the whole block is freed (using @code{xfree}) and the free list state is set to the state it had before handling this block. -@node sweep_lcrecords_1, compact_string_chars, gc_sweep, Garbage Collection - Step by Step +@node sweep_lcrecords_1 @subsection @code{sweep_lcrecords_1} @cindex @code{sweep_lcrecords_1} @@ -5156,7 +5344,7 @@ has to persist, otherwise it is manually freed by calling @code{xfree}. During this loop, the lcrecord statistics are kept up to date by calling @code{tick_lcrecord_stats} with the right arguments, -@node compact_string_chars, sweep_strings, sweep_lcrecords_1, Garbage Collection - Step by Step +@node compact_string_chars @subsection @code{compact_string_chars} @cindex @code{compact_string_chars} @@ -5202,7 +5390,7 @@ is reset on the last block to which we moved a string, i.e. @code{to_block}, and all remaining blocks (we know that they just carry garbage) are explicitly @code{xfree}d. -@node sweep_strings, sweep_bit_vectors_1, compact_string_chars, Garbage Collection - Step by Step +@node sweep_strings @subsection @code{sweep_strings} @cindex @code{sweep_strings} @@ -5223,7 +5411,7 @@ addition: in case, the string was not allocated in a therefore it was @code{malloc}ed separately, we know also @code{xfree} it explicitly. -@node sweep_bit_vectors_1, , sweep_strings, Garbage Collection - Step by Step +@node sweep_bit_vectors_1 @subsection @code{sweep_bit_vectors_1} @cindex @code{sweep_bit_vectors_1} @@ -5237,8 +5425,10 @@ them become unmarked. In addition, the bookkeeping information used for garbage collector's output purposes is updated. -@node Integers and Characters, Allocation from Frob Blocks, Garbage Collection - Step by Step, Allocation of Objects in XEmacs Lisp +@node Integers and Characters @section Integers and Characters +@cindex integers and characters +@cindex characters, integers and Integer and character Lisp objects are created from integers using the macros @code{XSETINT()} and @code{XSETCHAR()} or the equivalent @@ -5251,8 +5441,10 @@ directly in the @code{Lisp_Object}. are too big; i.e. you won't get the value you expected but the tag bits will at least be correct. -@node Allocation from Frob Blocks, lrecords, Integers and Characters, Allocation of Objects in XEmacs Lisp +@node Allocation from Frob Blocks @section Allocation from Frob Blocks +@cindex allocation from frob blocks +@cindex frob blocks, allocation from The uninitialized memory required by a @code{Lisp_Object} of a particular type is allocated using @@ -5278,8 +5470,9 @@ last frob block for space, and creates a new frob block if there is none. (There are actually two versions of these macros, one of which is more defensive but less efficient and is used for error-checking.) -@node lrecords, Low-level allocation, Allocation from Frob Blocks, Allocation of Objects in XEmacs Lisp +@node lrecords @section lrecords +@cindex lrecords [see @file{lrecord.h}] @@ -5517,8 +5710,10 @@ simply return the object's size in bytes, exactly as you might expect. For an example, see the methods for window configurations and opaques. @end enumerate -@node Low-level allocation, Cons, lrecords, Allocation of Objects in XEmacs Lisp +@node Low-level allocation @section Low-level allocation +@cindex low-level allocation +@cindex allocation, low-level Memory that you want to allocate directly should be allocated using @code{xmalloc()} rather than @code{malloc()}. This implements @@ -5588,8 +5783,9 @@ and bit-vector creation routines. These routines also call statistics on how much memory is allocated, so that garbage-collection can be invoked when the threshold is reached. -@node Cons, Vector, Low-level allocation, Allocation of Objects in XEmacs Lisp +@node Cons @section Cons +@cindex cons Conses are allocated in standard frob blocks. The only thing to note is that conses can be explicitly freed using @code{free_cons()} @@ -5602,8 +5798,9 @@ However, you have to be @emph{extremely} careful when doing this. If you mess this up, you will get BADLY BURNED, and it has happened before. -@node Vector, Bit Vector, Cons, Allocation of Objects in XEmacs Lisp +@node Vector @section Vector +@cindex vector As mentioned above, each vector is @code{malloc()}ed individually, and all are threaded through the variable @code{all_vectors}. Vectors are @@ -5613,8 +5810,10 @@ Note that the @code{struct Lisp_Vector} is declared with its is actually @code{malloc()}ed with the right size, however, and access to any element through the @code{contents} array works fine. -@node Bit Vector, Symbol, Vector, Allocation of Objects in XEmacs Lisp +@node Bit Vector @section Bit Vector +@cindex bit vector +@cindex vector, bit Bit vectors work exactly like vectors, except for more complicated code to access an individual bit, and except for the fact that bit @@ -5623,8 +5822,9 @@ that there's an lrecord implementation pointer at the beginning and the tag field in bit vector Lisp words is ``lrecord'' rather than ``vector''.) -@node Symbol, Marker, Bit Vector, Allocation of Objects in XEmacs Lisp +@node Symbol @section Symbol +@cindex symbol Symbols are also allocated in frob blocks. Symbols in the awful horrible obarray structure are chained through their @code{next} field. @@ -5632,8 +5832,9 @@ horrible obarray structure are chained through their @code{next} field. Remember that @code{intern} looks up a symbol in an obarray, creating one if necessary. -@node Marker, String, Symbol, Allocation of Objects in XEmacs Lisp +@node Marker @section Marker +@cindex marker Markers are allocated in frob blocks, as usual. They are kept in a buffer unordered, but in a doubly-linked list so that they @@ -5643,8 +5844,9 @@ long time due to the O(N^2) time required to remove lots of markers from a buffer.) Markers are removed from a buffer in the finalize stage, in @code{ADDITIONAL_FREE_marker()}. -@node String, Compiled Function, Marker, Allocation of Objects in XEmacs Lisp +@node String @section String +@cindex string As mentioned above, strings are a special case. A string is logically two parts, a fixed-size object (containing the length, property list, @@ -5704,16 +5906,20 @@ string data (which would normally be obtained from the now-non-existent The string compactor recognizes this special 0xFFFFFFFF marker and handles it correctly. -@node Compiled Function, , String, Allocation of Objects in XEmacs Lisp +@node Compiled Function @section Compiled Function +@cindex compiled function +@cindex function, compiled Not yet documented. @node Dumping, Events and the Event Loop, Allocation of Objects in XEmacs Lisp, Top @chapter Dumping +@cindex dumping @section What is dumping and its justification +@cindex dumping and its justification, what is The C code of XEmacs is just a Lisp engine with a lot of built-in primitives useful for writing an editor. The editor itself is written @@ -5756,8 +5962,9 @@ without any system-specific hacks. * Remaining issues:: @end menu -@node Overview, Data descriptions, Dumping, Dumping +@node Overview @section Overview +@cindex dumping overview The portable dumping system has to: @@ -5773,8 +5980,9 @@ starting address if needed, and reinitialize all pointers to this data. Also, rebuild all the quickly rebuildable data. @end enumerate -@node Data descriptions, Dumping phase, Overview, Dumping +@node Data descriptions @section Data descriptions +@cindex dumping data descriptions The more complex task of the dumper is to be able to write lisp objects (lrecords) and C structs to disk and reload them at a different address, @@ -5813,8 +6021,9 @@ lrecord_implementation, so we don't need to duplicate it. For C structures we use a struct struct_description, which includes a size field and a pointer to an associated array of lrecord_description. -@node Dumping phase, Reloading phase, Data descriptions, Dumping +@node Dumping phase @section Dumping phase +@cindex dumping phase Dumping is done by calling the function pdump() (in dumper.c) which is invoked from Fdump_emacs (in emacs.c). This function performs a number @@ -5828,8 +6037,9 @@ of tasks. * Pointers dumping:: @end menu -@node Object inventory, Address allocation, Dumping phase, Dumping phase +@node Object inventory @subsection Object inventory +@cindex dumping object inventory The first task is to build the list of the objects to dump. This includes: @@ -5914,8 +6124,9 @@ Weak lists and weak hash tables are dumped as if they were their non-weak equivalent (without changing their type, of course). This has not yet been a problem. -@node Address allocation, The header, Object inventory, Dumping phase +@node Address allocation @subsection Address allocation +@cindex dumping address allocation The next step is to allocate the offsets of each of the objects in the @@ -5951,8 +6162,9 @@ The maximum alignment requirement we take into account is 2^8. starting at offset 256 (this leaves room for the header and keeps the alignments happy). -@node The header, Data dumping, Address allocation, Dumping phase +@node The header @subsection The header +@cindex dumping, the header The next step creates the file and writes a header with a signature and some random information in it. The @code{reloc_address} field, which @@ -5960,8 +6172,10 @@ indicates at which address the file should be loaded if we want to avoid post-reload relocation, is set to 0. It then seeks to offset 256 (base offset for the objects). -@node Data dumping, Pointers dumping, The header, Dumping phase +@node Data dumping @subsection Data dumping +@cindex data dumping +@cindex dumping, data The data is dumped in the same order as the addresses were allocated by @code{pdump_dump_data()}, called from @code{pdump_scan_by_alignment()}. @@ -5972,8 +6186,10 @@ if we are careful with lrecords whose size is not a multiple of 4, we are ensured that the object is always written at the offset in the file allocated in step Address Allocation. -@node Pointers dumping, , Data dumping, Dumping phase +@node Pointers dumping @subsection Pointers dumping +@cindex pointers dumping +@cindex dumping, pointers A bunch of tables needed to reassign properly the global pointers are then written. They are: @@ -6009,10 +6225,13 @@ Some very important information like the @code{staticpros} and This is the end of the dumping part. -@node Reloading phase, Remaining issues, Dumping phase, Dumping +@node Reloading phase @section Reloading phase +@cindex reloading phase +@cindex dumping, reloading phase @subsection File loading +@cindex dumping, file loading The file is mmap'ed in memory (which ensures a PAGESIZE alignment, at least 4096), or if mmap is unavailable or fails, a 256-bytes aligned @@ -6025,17 +6244,20 @@ is computed and will be used for all the relocations. @subsection Putting back the pdump_opaques +@cindex dumping, putting back the pdump_opaques The memory contents are restored in the obvious and trivial way. @subsection Putting back the pdump_root_struct_ptrs +@cindex dumping, putting back the pdump_root_struct_ptrs The variables pointed to by pdump_root_struct_ptrs in the dump phase are reset to the right relocated object addresses. @subsection Object relocation +@cindex dumping, object relocation All the objects are relocated using their description and their offset by @code{pdump_reloc_one}. This step is unnecessary if the @@ -6043,18 +6265,21 @@ reloc_address is equal to the file loading address. @subsection Putting back the pdump_root_objects and pdump_weak_object_chains +@cindex dumping, putting back the pdump_root_objects and pdump_weak_object_chains Same as Putting back the pdump_root_struct_ptrs. @subsection Reorganize the hash tables +@cindex dumping, reorganize the hash tables Since some of the hash values in the lisp hash tables are address-dependent, their layout is now wrong. So we go through each of them and have them resorted by calling @code{pdump_reorganize_hash_table}. -@node Remaining issues, , Reloading phase, Dumping +@node Remaining issues @section Remaining issues +@cindex dumping, remaining issues The build process will have to start a post-dump xemacs, ask it the loading address (which will, hopefully, be always the same between @@ -6075,6 +6300,8 @@ The DOC file contents should probably end up in the dump file. @node Events and the Event Loop, Evaluation; Stack Frames; Bindings, Dumping, Top @chapter Events and the Event Loop +@cindex events and the event loop +@cindex event loop, events and the @menu * Introduction to Events:: @@ -6087,8 +6314,9 @@ The DOC file contents should probably end up in the dump file. * Dispatching Events; The Command Builder:: @end menu -@node Introduction to Events, Main Loop, Events and the Event Loop, Events and the Event Loop +@node Introduction to Events @section Introduction to Events +@cindex events, introduction to An event is an object that encapsulates information about an interesting occurrence in the operating system. Events are @@ -6126,8 +6354,10 @@ Emacs events---there may not be a one-to-one correspondence. Emacs events are documented in @file{events.h}; I'll discuss them later. -@node Main Loop, Specifics of the Event Gathering Mechanism, Introduction to Events, Events and the Event Loop +@node Main Loop @section Main Loop +@cindex main loop +@cindex events, main loop The @dfn{command loop} is the top-level loop that the editor is always running. It loops endlessly, calling @code{next-event} to retrieve an @@ -6193,8 +6423,9 @@ wrapper similar to @code{command_loop_2()}. Note also that invoking @code{top_level_1()}, just like when it invokes @code{command_loop_2()}. -@node Specifics of the Event Gathering Mechanism, Specifics About the Emacs Event, Main Loop, Events and the Event Loop +@node Specifics of the Event Gathering Mechanism @section Specifics of the Event Gathering Mechanism +@cindex event gathering mechanism, specifics of the Here is an approximate diagram of the collection processes at work in XEmacs, under TTY's (TTY's are simpler than X @@ -6432,14 +6663,18 @@ a SIGINT? emacs_Xt_next_event() using `dispatch-event' @end example -@node Specifics About the Emacs Event, The Event Stream Callback Routines, Specifics of the Event Gathering Mechanism, Events and the Event Loop +@node Specifics About the Emacs Event @section Specifics About the Emacs Event +@cindex event, specifics about the Lisp object -@node The Event Stream Callback Routines, Other Event Loop Functions, Specifics About the Emacs Event, Events and the Event Loop +@node The Event Stream Callback Routines @section The Event Stream Callback Routines +@cindex event stream callback routines, the +@cindex callback routines, the event stream -@node Other Event Loop Functions, Converting Events, The Event Stream Callback Routines, Events and the Event Loop +@node Other Event Loop Functions @section Other Event Loop Functions +@cindex event loop functions, other @code{detect_input_pending()} and @code{input-pending-p} look for input by calling @code{event_stream->event_pending_p} and looking in @@ -6460,8 +6695,10 @@ or scrollbar action), calling @code{dispatch-event} on any others. the right kind of input method support, it is possible for (read-char) to return a Kanji character. -@node Converting Events, Dispatching Events; The Command Builder, Other Event Loop Functions, Events and the Event Loop +@node Converting Events @section Converting Events +@cindex converting events +@cindex events, converting @code{character_to_event()}, @code{event_to_character()}, @code{event-to-character}, and @code{character-to-event} convert between @@ -6471,13 +6708,19 @@ event was not a keypress, @code{event_to_character()} returns -1 and between character representation and the split-up event representation (keysym plus mod keys). -@node Dispatching Events; The Command Builder, , Converting Events, Events and the Event Loop +@node Dispatching Events; The Command Builder @section Dispatching Events; The Command Builder +@cindex dispatching events; the command builder +@cindex events; the command builder, dispatching +@cindex command builder, dispatching events; the Not yet documented. @node Evaluation; Stack Frames; Bindings, Symbols and Variables, Events and the Event Loop, Top @chapter Evaluation; Stack Frames; Bindings +@cindex evaluation; stack frames; bindings +@cindex stack frames; bindings, evaluation; +@cindex bindings, evaluation; stack frames; @menu * Evaluation:: @@ -6486,8 +6729,9 @@ Not yet documented. * Catch and Throw:: @end menu -@node Evaluation, Dynamic Binding; The specbinding Stack; Unwind-Protects, Evaluation; Stack Frames; Bindings, Evaluation; Stack Frames; Bindings +@node Evaluation @section Evaluation +@cindex evaluation @code{Feval()} evaluates the form (a Lisp object) that is passed to it. Note that evaluation is only non-trivial for two types of objects: @@ -6616,8 +6860,12 @@ arguments are given as separate C arguments rather than being passed as an array). @code{apply1()} uses @code{Fapply()} while the others use @code{Ffuncall()} to do the real work. -@node Dynamic Binding; The specbinding Stack; Unwind-Protects, Simple Special Forms, Evaluation, Evaluation; Stack Frames; Bindings +@node Dynamic Binding; The specbinding Stack; Unwind-Protects @section Dynamic Binding; The specbinding Stack; Unwind-Protects +@cindex dynamic binding; the specbinding stack; unwind-protects +@cindex binding; the specbinding stack; unwind-protects, dynamic +@cindex specbinding stack; unwind-protects, dynamic binding; the +@cindex unwind-protects, dynamic binding; the specbinding stack; @example struct specbinding @@ -6670,8 +6918,9 @@ a local-variable binding (@code{func} is 0, @code{symbol} is not the symbol's value). @end enumerate -@node Simple Special Forms, Catch and Throw, Dynamic Binding; The specbinding Stack; Unwind-Protects, Evaluation; Stack Frames; Bindings +@node Simple Special Forms @section Simple Special Forms +@cindex special forms, simple @code{or}, @code{and}, @code{if}, @code{cond}, @code{progn}, @code{prog1}, @code{prog2}, @code{setq}, @code{quote}, @code{function}, @@ -6687,8 +6936,10 @@ typically called in real life only in interpreted code, since the byte compiler knows how to convert calls to these functions directly into byte code. -@node Catch and Throw, , Simple Special Forms, Evaluation; Stack Frames; Bindings +@node Catch and Throw @section Catch and Throw +@cindex catch and throw +@cindex throw, catch and @example struct catchtag @@ -6748,6 +6999,8 @@ created since the catch. @node Symbols and Variables, Buffers and Textual Representation, Evaluation; Stack Frames; Bindings, Top @chapter Symbols and Variables +@cindex symbols and variables +@cindex variables, symbols and @menu * Introduction to Symbols:: @@ -6755,8 +7008,9 @@ created since the catch. * Symbol Values:: @end menu -@node Introduction to Symbols, Obarrays, Symbols and Variables, Symbols and Variables +@node Introduction to Symbols @section Introduction to Symbols +@cindex symbols, introduction to A symbol is basically just an object with four fields: a name (a string), a value (some Lisp object), a function (some Lisp object), and @@ -6772,8 +7026,9 @@ property list is used as a more general mechanism of associating additional values with particular names, and once again the namespace is independent of the function and variable namespaces. -@node Obarrays, Symbol Values, Introduction to Symbols, Symbols and Variables +@node Obarrays @section Obarrays +@cindex obarrays The identity of symbols with their names is accomplished through a structure called an obarray, which is just a poorly-implemented hash @@ -6839,8 +7094,10 @@ returns the removed symbol. (Remember: You can't put the symbol back into any obarray.) Finally, @code{mapatoms} maps over all of the symbols in an obarray. -@node Symbol Values, , Obarrays, Symbols and Variables +@node Symbol Values @section Symbol Values +@cindex symbol values +@cindex values, symbol The value field of a symbol normally contains a Lisp object. However, a symbol can be @dfn{unbound}, meaning that it logically has no value. @@ -6884,6 +7141,8 @@ well-documented in comments in @file{buffer.c}, @file{symbols.c}, and @node Buffers and Textual Representation, MULE Character Sets and Encodings, Symbols and Variables, Top @chapter Buffers and Textual Representation +@cindex buffers and textual representation +@cindex textual representation, buffers and @menu * Introduction to Buffers:: A buffer holds a block of text such as a file. @@ -6894,8 +7153,9 @@ well-documented in comments in @file{buffer.c}, @file{symbols.c}, and * The Buffer Object:: The Lisp object corresponding to a buffer. @end menu -@node Introduction to Buffers, The Text in a Buffer, Buffers and Textual Representation, Buffers and Textual Representation +@node Introduction to Buffers @section Introduction to Buffers +@cindex buffers, introduction to A buffer is logically just a Lisp object that holds some text. In this, it is like a string, but a buffer is optimized for @@ -6947,8 +7207,10 @@ and @dfn{buffer of the selected window}, and the distinction between window. (This latter distinction is explained in detail in the section on windows.) -@node The Text in a Buffer, Buffer Lists, Introduction to Buffers, Buffers and Textual Representation +@node The Text in a Buffer @section The Text in a Buffer +@cindex text in a buffer, the +@cindex buffer, the text in a The text in a buffer consists of a sequence of zero or more characters. A @dfn{character} is an integer that logically represents @@ -7087,8 +7349,9 @@ in the internal Emacs buffer representation rather than in one of a number of possible alternative representations (e.g. EUC-encoded text, etc.). -@node Buffer Lists, Markers and Extents, The Text in a Buffer, Buffers and Textual Representation +@node Buffer Lists @section Buffer Lists +@cindex buffer lists Recall earlier that buffers are @dfn{permanent} objects, i.e. that they remain around until explicitly deleted. This entails that there is @@ -7123,8 +7386,10 @@ respectively. You can also force a new buffer to be created using a unique name from this by appending a number, and then creates the buffer. This is basically like the symbol operation @code{gensym}. -@node Markers and Extents, Bufbytes and Emchars, Buffer Lists, Buffers and Textual Representation +@node Markers and Extents @section Markers and Extents +@cindex markers and extents +@cindex extents, markers and Among the things associated with a buffer are things that are logically attached to certain buffer positions. This can be used to @@ -7163,13 +7428,17 @@ given the buffer. Extents remain in a buffer until they are detached (which could happen as a result of text being deleted) or the buffer is deleted, and primitives do exist to enumerate the extents in a buffer. -@node Bufbytes and Emchars, The Buffer Object, Markers and Extents, Buffers and Textual Representation +@node Bufbytes and Emchars @section Bufbytes and Emchars +@cindex Bufbytes and Emchars +@cindex Emchars, Bufbytes and Not yet documented. -@node The Buffer Object, , Bufbytes and Emchars, Buffers and Textual Representation +@node The Buffer Object @section The Buffer Object +@cindex buffer object, the +@cindex object, the buffer Buffers contain fields not directly accessible by the Lisp programmer. We describe them here, naming them by the names used in the C code. @@ -7267,6 +7536,9 @@ or @code{nil}. @node MULE Character Sets and Encodings, The Lisp Reader and Compiler, Buffers and Textual Representation, Top @chapter MULE Character Sets and Encodings +@cindex Mule character sets and encodings +@cindex character sets and encodings, Mule +@cindex encodings, Mule character sets and Recall that there are two primary ways that text is represented in XEmacs. The @dfn{buffer} representation sees the text as a series of @@ -7287,8 +7559,9 @@ representation is that it's compact and is compatible with ASCII. * CCL:: @end menu -@node Character Sets, Encodings, MULE Character Sets and Encodings, MULE Character Sets and Encodings +@node Character Sets @section Character Sets +@cindex character sets A character set (or @dfn{charset}) is an ordered set of characters. A particular character in a charset is indexed using one or more @@ -7368,8 +7641,10 @@ Bytes Character set Range This is a bit ad-hoc but gets the job done. -@node Encodings, Internal Mule Encodings, Character Sets, MULE Character Sets and Encodings +@node Encodings @section Encodings +@cindex encodings, Mule +@cindex Mule encodings An @dfn{encoding} is a way of numerically representing characters from one or more character sets. If an encoding only encompasses one @@ -7395,8 +7670,11 @@ encodings: * JIS7:: @end menu -@node Japanese EUC (Extended Unix Code), JIS7, Encodings, Encodings +@node Japanese EUC (Extended Unix Code) @subsection Japanese EUC (Extended Unix Code) +@cindex Japanese EUC (Extended Unix Code) +@cindex EUC (Extended Unix Code), Japanese +@cindex Extended Unix Code, Japanese EUC This encompasses the character sets Printing-ASCII, Japanese-JISX0201, and Japanese-JISX0208-Kana (half-width katakana, the right half of @@ -7417,8 +7695,9 @@ Japanese-JISX0212 PC1 + 0x80 | PC2 + 0x80 @end example -@node JIS7, , Japanese EUC (Extended Unix Code), Encodings +@node JIS7 @subsection JIS7 +@cindex JIS7 This encompasses the character sets Printing-ASCII, Japanese-JISX0201-Roman (the left half of JISX0201; this character set @@ -7452,8 +7731,11 @@ Escape sequence ASCII equivalent Meaning Initially, Printing-ASCII is invoked. -@node Internal Mule Encodings, CCL, Encodings, MULE Character Sets and Encodings +@node Internal Mule Encodings @section Internal Mule Encodings +@cindex internal Mule encodings +@cindex Mule encodings, internal +@cindex encodings, internal Mule In XEmacs/Mule, each character set is assigned a unique number, called a @dfn{leading byte}. This is used in the encodings of a character. @@ -7498,8 +7780,11 @@ followed later by the exact details.) * Internal Character Encoding:: @end menu -@node Internal String Encoding, Internal Character Encoding, Internal Mule Encodings, Internal Mule Encodings +@node Internal String Encoding @subsection Internal String Encoding +@cindex internal string encoding +@cindex string encoding, internal +@cindex encoding, internal string ASCII characters are encoded using their position code directly. Other characters are encoded using their leading byte followed by their @@ -7548,8 +7833,11 @@ conditions. For example, EUC satisfies only (2) and (3), while Shift-JIS and Big5 (not yet described) satisfy only (2). (All non-modal encodings must satisfy (2), in order to be unambiguous.) -@node Internal Character Encoding, , Internal String Encoding, Internal Mule Encodings +@node Internal Character Encoding @subsection Internal Character Encoding +@cindex internal character encoding +@cindex character encoding, internal +@cindex encoding, internal character One 19-bit word represents a single character. The word is separated into three fields: @@ -7583,8 +7871,9 @@ Composite 0x1F ? ? Note that character codes 0 - 255 are the same as the ``binary encoding'' described above. -@node CCL, , Internal Mule Encodings, MULE Character Sets and Encodings +@node CCL @section CCL +@cindex CCL @example CCL PROGRAM SYNTAX: @@ -7751,11 +8040,15 @@ ReadJumpCondR: 11111 RRR c...c Read1 and JumpCondR @node The Lisp Reader and Compiler, Lstreams, MULE Character Sets and Encodings, Top @chapter The Lisp Reader and Compiler +@cindex Lisp reader and compiler, the +@cindex reader and compiler, the Lisp +@cindex compiler, the Lisp reader and Not yet documented. @node Lstreams, Consoles; Devices; Frames; Windows, The Lisp Reader and Compiler, Top @chapter Lstreams +@cindex lstreams An @dfn{lstream} is an internal Lisp object that provides a generic buffering stream implementation. Conceptually, you send data to the @@ -7774,8 +8067,9 @@ blocking data together in order to achieve efficiency. * Lstream Methods:: Creating new lstream types. @end menu -@node Creating an Lstream, Lstream Types, Lstreams, Lstreams +@node Creating an Lstream @section Creating an Lstream +@cindex lstream, creating an Lstreams come in different types, depending on what is being interfaced to. Although the primitive for creating new lstreams is @@ -7805,8 +8099,10 @@ and he's probably right. Open for writing, but never writes partial MULE characters. @end table -@node Lstream Types, Lstream Functions, Creating an Lstream, Lstreams +@node Lstream Types @section Lstream Types +@cindex lstream types +@cindex types, lstream @table @asis @item stdio @@ -7830,8 +8126,9 @@ and he's probably right. @item encoding @end table -@node Lstream Functions, Lstream Methods, Lstream Types, Lstreams +@node Lstream Functions @section Lstream Functions +@cindex lstream functions @deftypefun {Lstream *} Lstream_new (Lstream_implementation *@var{imp}, const char *@var{mode}) Allocate and return a new Lstream. This function is not really meant to @@ -7913,8 +8210,9 @@ necessary storage structures, for example. Rewind the stream to the beginning. @end deftypefun -@node Lstream Methods, , Lstream Functions, Lstreams +@node Lstream Methods @section Lstream Methods +@cindex lstream methods @deftypefn {Lstream Method} ssize_t reader (Lstream *@var{stream}, unsigned char *@var{data}, size_t @var{size}) Read some data from the stream's end and store it into @var{data}, which @@ -7980,6 +8278,10 @@ Mark this object for garbage collection. Same semantics as a standard @node Consoles; Devices; Frames; Windows, The Redisplay Mechanism, Lstreams, Top @chapter Consoles; Devices; Frames; Windows +@cindex consoles; devices; frames; windows +@cindex devices; frames; windows, consoles; +@cindex frames; windows, consoles; devices; +@cindex windows, consoles; devices; frames; @menu * Introduction to Consoles; Devices; Frames; Windows:: @@ -7988,8 +8290,12 @@ Mark this object for garbage collection. Same semantics as a standard * The Window Object:: @end menu -@node Introduction to Consoles; Devices; Frames; Windows, Point, Consoles; Devices; Frames; Windows, Consoles; Devices; Frames; Windows +@node Introduction to Consoles; Devices; Frames; Windows @section Introduction to Consoles; Devices; Frames; Windows +@cindex consoles; devices; frames; windows, introduction to +@cindex devices; frames; windows, introduction to consoles; +@cindex frames; windows, introduction to consoles; devices; +@cindex windows, introduction to consoles; devices; frames; A window-system window that you see on the screen is called a @dfn{frame} in Emacs terminology. Each frame is subdivided into one or @@ -8030,8 +8336,9 @@ selected, and changing the selected frame causes the remembered window within it to become the selected window. Similar relationships apply for consoles to devices and devices to frames. -@node Point, Window Hierarchy, Introduction to Consoles; Devices; Frames; Windows, Consoles; Devices; Frames; Windows +@node Point @section Point +@cindex point Recall that every buffer has a current insertion position, called @dfn{point}. Now, two or more windows may be displaying the same buffer, @@ -8051,7 +8358,7 @@ you must special-case on the selected window and retrieve the buffer's point instead. This is related to why @code{save-window-excursion} does not save the selected window's value of @code{point}. -@node Window Hierarchy, The Window Object, Point, Consoles; Devices; Frames; Windows +@node Window Hierarchy @section Window Hierarchy @cindex window hierarchy @cindex hierarchy of windows @@ -8149,8 +8456,10 @@ is @code{nil} but the @code{prev} points to itself. (#### This is an artifact that should be fixed.) @end enumerate -@node The Window Object, , Window Hierarchy, Consoles; Devices; Frames; Windows +@node The Window Object @section The Window Object +@cindex window object, the +@cindex object, the window Windows have the following accessible fields: @@ -8256,6 +8565,7 @@ this field is @code{nil}. @node The Redisplay Mechanism, Extents, Consoles; Devices; Frames; Windows, Top @chapter The Redisplay Mechanism +@cindex redisplay mechanism, the The redisplay mechanism is one of the most complicated sections of XEmacs, especially from a conceptual standpoint. This is doubly so @@ -8281,8 +8591,9 @@ It Is Better To Be Fast Than Not To Be. * Redisplay Piece by Piece:: @end menu -@node Critical Redisplay Sections, Line Start Cache, The Redisplay Mechanism, The Redisplay Mechanism +@node Critical Redisplay Sections @section Critical Redisplay Sections +@cindex redisplay sections, critical @cindex critical redisplay sections Within this section, we are defenseless and assume that the @@ -8313,7 +8624,7 @@ we simply return. #### We should abort instead. #### If a frame-size change does occur we should probably actually be preempting redisplay. -@node Line Start Cache, Redisplay Piece by Piece, Critical Redisplay Sections, The Redisplay Mechanism +@node Line Start Cache @section Line Start Cache @cindex line start cache @@ -8374,9 +8685,9 @@ the part of the cache starting at where the modification occurs. In case you're wondering, the Second Golden Rule of Redisplay is not applicable. -@node Redisplay Piece by Piece, , Line Start Cache, The Redisplay Mechanism +@node Redisplay Piece by Piece @section Redisplay Piece by Piece -@cindex Redisplay Piece by Piece +@cindex redisplay piece by piece As you can begin to see redisplay is complex and also not well documented. Chuck no longer works on XEmacs so this section is my take @@ -8427,6 +8738,7 @@ display have been removed. @node Extents, Faces, The Redisplay Mechanism, Top @chapter Extents +@cindex extents @menu * Introduction to Extents:: Extents are ranges over text, with properties. @@ -8437,8 +8749,9 @@ display have been removed. * Extent Fragments:: Cached information useful for redisplay. @end menu -@node Introduction to Extents, Extent Ordering, Extents, Extents +@node Introduction to Extents @section Introduction to Extents +@cindex extents, introduction to Extents are regions over a buffer, with a start and an end position denoting the region of the buffer included in the extent. In @@ -8459,8 +8772,9 @@ further work needing to be done. It didn't work out that way, however, and just ended up complexifying and buggifying all the rest of the code.) -@node Extent Ordering, Format of the Extent Info, Introduction to Extents, Extents +@node Extent Ordering @section Extent Ordering +@cindex extent ordering Extents are compared using memory indices. There are two orderings for extents and both orders are kept current at all times. The normal @@ -8493,8 +8807,9 @@ theorem about the display order also applies to the e-order if you swap all occurrences of ``display order'' and ``e-order'', ``less than'' and ``greater than'', and ``extent start'' and ``extent end''. -@node Format of the Extent Info, Zero-Length Extents, Extent Ordering, Extents +@node Format of the Extent Info @section Format of the Extent Info +@cindex extent info, format of the An extent-info structure consists of a list of the buffer or string's extents and a @dfn{stack of extents} that lists all of the extents over @@ -8527,8 +8842,10 @@ not be aware of the fact that the extent list is implemented as an array, except for the fact that positions are integers (this should be generalized to handle integers and linked list equally well). -@node Zero-Length Extents, Mathematics of Extent Ordering, Format of the Extent Info, Extents +@node Zero-Length Extents @section Zero-Length Extents +@cindex zero-length extents +@cindex extents, zero-length Extents can be zero-length, and will end up that way if their endpoints are explicitly set that way or if their detachable property is @code{nil} @@ -8556,10 +8873,10 @@ endpoint is open, the extent remains in the buffer, moving as necessary. exactly like markers and that open-closed, non-detachable zero-length extents behave like the ``point-type'' marker in Mule. -@node Mathematics of Extent Ordering, Extent Fragments, Zero-Length Extents, Extents +@node Mathematics of Extent Ordering @section Mathematics of Extent Ordering +@cindex mathematics of extent ordering @cindex extent mathematics -@cindex mathematics of extents @cindex extent ordering @cindex display order of extents @@ -8691,9 +9008,10 @@ greater than @math{I} and thus it is greater than any extent in @math{S}, including @math{F}. Otherwise, @math{F2} includes @math{I} and thus is in @math{S}, and thus @math{F2 >= F}. -@node Extent Fragments, , Mathematics of Extent Ordering, Extents +@node Extent Fragments @section Extent Fragments -@cindex extent fragment +@cindex extent fragments +@cindex fragments, extent Imagine that the buffer is divided up into contiguous, non-overlapping @dfn{runs} of text such that no extent starts or ends within a run @@ -8715,11 +9033,13 @@ determining which extents overly a particular position. @node Faces, Glyphs, Extents, Top @chapter Faces +@cindex faces Not yet documented. @node Glyphs, Specifiers, Faces, Top @chapter Glyphs +@cindex glyphs Glyphs are graphical elements that can be displayed in XEmacs buffers or gutters. We use the term graphical element here in the broadest possible @@ -8753,6 +9073,8 @@ Any action on a glyph first consults the cache before actually instantiating a widget. @section Glyph Instantiation +@cindex glyph instantiation +@cindex instantiation, glyph Glyph instantiation is a hairy topic and requires some explanation. The guts of glyph instantiation is contained within @@ -8819,12 +9141,17 @@ governing-domain. The governing domain for an image-instance is determined using the governing_domain image-instance method. @section Widget-Glyphs +@cindex widget-glyphs @section Widget-Glyphs in the MS-Windows Environment +@cindex widget-glyphs in the MS-Windows environment +@cindex MS-Windows environment, widget-glyphs in the To Do @section Widget-Glyphs in the X Environment +@cindex widget-glyphs in the X environment +@cindex X environment, widget-glyphs in the Widget-glyphs under X make heavy use of lwlib (@pxref{Lucid Widget Library}) for manipulating the native toolkit objects. This is primarily @@ -8851,11 +9178,13 @@ the widget is and how to set its properties. @node Specifiers, Menus, Glyphs, Top @chapter Specifiers +@cindex specifiers Not yet documented. @node Menus, Subprocesses, Specifiers, Top @chapter Menus +@cindex menus A menu is set by setting the value of the variable @code{current-menubar} (which may be buffer-local) and then calling @@ -8908,6 +9237,7 @@ description. @node Subprocesses, Interface to the X Window System, Menus, Top @chapter Subprocesses +@cindex subprocesses The fields of a process are: @@ -8981,6 +9311,7 @@ or @code{nil} if it is using pipes. @node Interface to the X Window System, Index, Subprocesses, Top @chapter Interface to the X Window System +@cindex X Window System, interface to the Mostly undocumented. @@ -8988,8 +9319,11 @@ Mostly undocumented. * Lucid Widget Library:: An interface to various widget sets. @end menu -@node Lucid Widget Library, , , Interface to the X Window System +@node Lucid Widget Library @section Lucid Widget Library +@cindex Lucid Widget Library +@cindex widget library, Lucid +@cindex library, Lucid Widget Lwlib is extremely poorly documented and quite hairy. The author(s) blame that on X, Xt, and Motif, with some justice, but also sufficient @@ -9018,8 +9352,9 @@ interface. * Tab Controls:: @end menu -@node Generic Widget Interface, Scrollbars, , Lucid Widget Library +@node Generic Widget Interface @subsection Generic Widget Interface +@cindex widget interface, generic In general in any toolkit a widget may be a composite object. In Xt, all widgets have an X window that they manage, but typically a complex @@ -9098,20 +9433,28 @@ The @code{widget_instance} structure also contains a pointer to the root of its tree. Widget instances are further confi -@node Scrollbars, Menubars, Generic Widget Interface, Lucid Widget Library +@node Scrollbars @subsection Scrollbars +@cindex scrollbars -@node Menubars, Checkboxes and Radio Buttons, Scrollbars, Lucid Widget Library +@node Menubars @subsection Menubars +@cindex menubars -@node Checkboxes and Radio Buttons, Progress Bars, Menubars, Lucid Widget Library +@node Checkboxes and Radio Buttons @subsection Checkboxes and Radio Buttons +@cindex checkboxes and radio buttons +@cindex radio buttons, checkboxes and +@cindex buttons, checkboxes and radio -@node Progress Bars, Tab Controls, Checkboxes and Radio Buttons, Lucid Widget Library +@node Progress Bars @subsection Progress Bars +@cindex progress bars +@cindex bars, progress -@node Tab Controls, , Progress Bars, Lucid Widget Library +@node Tab Controls @subsection Tab Controls +@cindex tab controls @include index.texi diff --git a/man/lispref/help.texi b/man/lispref/help.texi index 88ec58f..4007d8e 100644 --- a/man/lispref/help.texi +++ b/man/lispref/help.texi @@ -417,8 +417,8 @@ appears as the name of the symbol in the @sc{car} of the list. @result{} "C-x SPC M-y SPC LFD SPC TAB SPC RET SPC C-l 1 2 3" @end group @group -(single-key-description 'kp_next) - @result{} "kp_next" +(single-key-description 'kp-next) + @result{} "kp-next" @end group @group (single-key-description '(shift button1)) diff --git a/man/make-stds.texi b/man/make-stds.texi index 746dca5..68faa8d 100644 --- a/man/make-stds.texi +++ b/man/make-stds.texi @@ -81,7 +81,7 @@ foo.1 : foo.man sedscript @noindent will fail when the build directory is not the source directory, because -@file{foo.man} and @file{sedscript} are in the the source directory. +@file{foo.man} and @file{sedscript} are in the source directory. When using GNU @code{make}, relying on @samp{VPATH} to find the source file will work in the case where there is a single dependency file, @@ -249,9 +249,10 @@ Every Makefile should define the variable @code{INSTALL}, which is the basic command for installing a file into the system. Every Makefile should also define the variables @code{INSTALL_PROGRAM} -and @code{INSTALL_DATA}. (The default for each of these should be -@code{$(INSTALL)}.) Then it should use those variables as the commands -for actual installation, for executables and nonexecutables +and @code{INSTALL_DATA}. (The default for @code{INSTALL_PROGRAM} should +be @code{$(INSTALL)}; the default for @code{INSTALL_DATA} should be +@code{$@{INSTALL@} -m 644}.) Then it should use those variables as the +commands for actual installation, for executables and nonexecutables respectively. Use these variables as follows: @example @@ -282,26 +283,28 @@ installed. Installation directories should always be named by variables, so it is easy to install in a nonstandard place. The standard names for these variables are described below. They are based on a standard filesystem -layout; variants of it are used in SVR4, 4.4BSD, Linux, Ultrix v4, and -other modern operating systems. +layout; variants of it are used in SVR4, 4.4BSD, GNU/Linux, Ultrix v4, +and other modern operating systems. These two variables set the root for the installation. All the other installation directories should be subdirectories of one of these two, and nothing should be directly installed into these two directories. -@table @samp +@table @code @item prefix +@vindex prefix A prefix used in constructing the default values of the variables listed below. The default value of @code{prefix} should be @file{/usr/local}. When building the complete GNU system, the prefix will be empty and @file{/usr} will be a symbolic link to @file{/}. (If you are using Autoconf, write it as @samp{@@prefix@@}.) -Running @samp{make install} with a different value of @code{prefix} -from the one used to build the program should @var{not} recompile -the program. +Running @samp{make install} with a different value of @code{prefix} from +the one used to build the program should @emph{not} recompile the +program. @item exec_prefix +@vindex exec_prefix A prefix used in constructing the default values of some of the variables listed below. The default value of @code{exec_prefix} should be @code{$(prefix)}. @@ -312,20 +315,22 @@ machine-specific files (such as executables and subroutine libraries), while @code{$(prefix)} is used directly for other directories. Running @samp{make install} with a different value of @code{exec_prefix} -from the one used to build the program should @var{not} recompile the +from the one used to build the program should @emph{not} recompile the program. @end table Executable programs are installed in one of the following directories. -@table @samp +@table @code @item bindir +@vindex bindir The directory for installing executable programs that users can run. This should normally be @file{/usr/local/bin}, but write it as @file{$(exec_prefix)/bin}. (If you are using Autoconf, write it as @samp{@@bindir@@}.) @item sbindir +@vindex sbindir The directory for installing executable programs that can be run from the shell, but are only generally useful to system administrators. This should normally be @file{/usr/local/sbin}, but write it as @@ -333,6 +338,7 @@ should normally be @file{/usr/local/sbin}, but write it as (If you are using Autoconf, write it as @samp{@@sbindir@@}.) @item libexecdir +@vindex libexecdir @comment This paragraph adjusted to avoid overfull hbox --roland 5jul94 The directory for installing executable programs to be run by other programs rather than by users. This directory should normally be @@ -507,7 +513,7 @@ And finally, you should set the following variable: @item srcdir The directory for the sources being compiled. The value of this variable is normally inserted by the @code{configure} shell script. -(If you are using Autoconf, use @samp{srcdir = @@srcdir@@}.) +(If you are using Autconf, use @samp{srcdir = @@srcdir@@}.) @end table For example: @@ -625,7 +631,8 @@ the installation commands. @xref{Install Command Categories}. @item install-strip Like @code{install}, but strip the executable files while installing -them. In many cases, the definition of this target can be very simple: +them. In simple cases, this target can use the @code{install} target in +a simple way: @smallexample install-strip: @@ -633,6 +640,14 @@ install-strip: install @end smallexample +But if the package installs scripts as well as real executables, the +@code{install-strip} target can't just refer to the @code{install} +target; it has to strip the executables but not the scripts. + +@code{install-strip} should not strip the executables in the build +directory which are being copied for installation. It should only strip +the copies that are installed. + Normally we do not recommend stripping an executable unless you are sure the program has no bugs. However, it can be reasonable to install a stripped executable for actual execution while saving the unstripped @@ -747,7 +762,7 @@ The easiest way to do this is to create a subdirectory appropriately named, use @code{ln} or @code{cp} to install the proper files in it, and then @code{tar} that subdirectory. -Compress the tar file file with @code{gzip}. For example, the actual +Compress the tar file with @code{gzip}. For example, the actual distribution file for GCC version 1.40 is called @file{gcc-1.40.tar.gz}. The @code{dist} target should explicitly depend on all non-source files @@ -795,6 +810,19 @@ installdirs: mkinstalldirs $(mandir) @end smallexample +@noindent +or, if you wish to support @env{DESTDIR}, + +@smallexample +# Make sure all installation directories (e.g. $(bindir)) +# actually exist by making them if necessary. +installdirs: mkinstalldirs + $(srcdir)/mkinstalldirs \ + $(DESTDIR)$(bindir) $(DESTDIR)$(datadir) \ + $(DESTDIR)$(libdir) $(DESTDIR)$(infodir) \ + $(DESTDIR)$(mandir) +@end smallexample + This rule should not modify the directories where compilation is done. It should do nothing but create installation directories. @end table diff --git a/man/new-users-guide/custom1.texi b/man/new-users-guide/custom1.texi index f60c940..97f679f 100644 --- a/man/new-users-guide/custom1.texi +++ b/man/new-users-guide/custom1.texi @@ -1,25 +1,25 @@ @comment node-name, next, previous, up @node Customization Basics, Help, Edit, Top @chapter Customize key bindings and menus -@cindex .emacs +@cindex init.el @cindex customize @findex eval-region - When you start Emacs, it reads the file @file{~/.emacs} in your home -directory. You can use this file to initialize and customize Emacs to -your liking. This file should contain lisp-code. You can customize your -@file{.emacs} file to create new -menus, disable menus, change key bindings, enable a minor mode, etc. Any -kind of customization affects -only a particular Emacs job that you do them in. If you want to save -your customizations `permanently' i.e. for future use also, you have to -put it in your @samp{.emacs} file. After you make changes to your -@file{.emacs} file and save it, the changes will be effective only after -you start Emacs again i.e. for a new Emacs process. To try out some of -the examples in this section, highlight that region and evaluate the -region by giving the command @kbd{M-x eval-region}. You will be able to -see the results of your customizations in that Emacs session only -(@pxref{Lisp Eval,,,xemacs,XEmacs User's Manual}). +When you start Emacs, it reads the file @file{~/.xemacs/init.el} in the +@file{.xemacs/} subdirectory of your home directory. You can use this +file to initialize and customize Emacs to your liking. This file should +contain lisp-code. You can customize your @file{init.el} file to create +new menus, disable menus, change key bindings, enable a minor mode, +etc. Any kind of customization affects only a particular Emacs job that +you do them in. If you want to save your customizations `permanently' +i.e. for future use also, you have to put it in your @samp{init.el} +file. After you make changes to your @file{init.el} file and save it, the +changes will be effective only after you start Emacs again i.e. for a +new Emacs process. To try out some of the examples in this section, +highlight that region and evaluate the region by giving the command +@kbd{M-x eval-region}. You will be able to see the results of your +customizations in that Emacs session only (@pxref{Lisp +Eval,,,xemacs,XEmacs User's Manual}). @comment node-name, next, previous, up @menu @@ -43,7 +43,7 @@ define a particular behavior. You can customize the key @kbd{C-n} to move to the previous line by binding it to @b{previous-line} and @kbd{C-p} to move to the next line by binding it to @b{next-line}. To bind keys to globally run commands you need to use the following syntax -in your @b{.emacs} file: +in your @b{init.el} file: @cindex binding keys @example @@ -52,7 +52,7 @@ in your @b{.emacs} file: @noindent Here, @code{global-set-key} is a function which will bind the @dfn{keys} to the specified @dfn{cmd}. For example, if you type the -following in your @b{.emacs} file: +following in your @b{init.el} file: @example (global-set-key "\C-p" 'next-line) @@ -69,14 +69,14 @@ which means disable a command or turn off a feature. If you want to enable a command or turn on a particular feature use @samp{t} which stands for @samp{true}. For example, if you do not wish @kbd{C-x C-c} to @samp{Exit Emacs} you can type the following expression in your -@file{.emacs} file: +@file{init.el} file: @example (global-set-key "\C-x\C-c" nil) @end example @noindent -You might want to have this statement in your @file{.emacs} file because +You might want to have this statement in your @file{init.el} file because its easy to hit this command by mistake and it could be annoying to exit Emacs unintentionally. There is a @b{Exit Emacs} option in the @b{File menu} which you might want to use instead. To make a particular key @@ -174,7 +174,7 @@ add-menu-item: (@var{menu-name} @var{item-name} @var{function} @var{enabled-p} This function will add a menu item to a menu, creating the menu first if necessary. If the named item already exists, the menu will remain unchanged. For example, if you add the following example to your -@file{.emacs} file or evaluate it (@pxref{Customization Basics}), +@file{init.el} file or evaluate it (@pxref{Customization Basics}), @example (add-menu-item '("Edit") "Replace String" replace-string t "Clear") diff --git a/man/new-users-guide/custom2.texi b/man/new-users-guide/custom2.texi index de40787..e7ab517 100644 --- a/man/new-users-guide/custom2.texi +++ b/man/new-users-guide/custom2.texi @@ -6,12 +6,12 @@ @cindex font-lock-mode You can modify the behavior of Emacs in minor ways permanently by -putting your changes in your @file{.emacs} file. This file contains Lisp +putting your changes in your @file{init.el} file. This file contains Lisp function call expressions. Each of these expressions will consist of a function name followed by arguments, all surrounded by parentheses. For example, to turn on the auto-fill-mode (i.e. break lines automatically when they become too long) , put the following line in your -@file{.emacs} file: +@file{init.el} file: @example (add-hook 'text-mode-hook @@ -35,7 +35,7 @@ example above. Similarly, to enable the "font-lock mode" which displays your program in different fonts and colors(@pxref{Modes}), put the following in your -@file{.emacs} file. The comments above the statement explain what the +@file{init.el} file. The comments above the statement explain what the statements do. @example @@ -64,7 +64,7 @@ functions, comments or other keywords should be displayed in : @noindent For other customizations regarding the font-lock face, look at the file -@file{/usr/local/lib/xemacs-19.11/etc/sample.emacs}. +@file{/usr/local/lib/xemacs-VERSION/etc/sample.init.el}. @@ -72,7 +72,7 @@ For other customizations regarding the font-lock face, look at the file @menu * Setting Variables:: Customizing Emacs variables * Init File:: Some examples of Lisp expressions in - .emacs file + init.el file @end menu @node Setting Variables, Init File, Other Customizations, Other Customizations @@ -132,7 +132,7 @@ Type "nil" and hit @key{RET}. Now if you again use @kbd{M-x describe variable} , you will see that the new value of case-fold-search will be "nil" and your searches will be case-sensitive. This will be effective only for that Emacs session. If you want to change the value of a -variable permanently put the following statement in your @file{.emacs} +variable permanently put the following statement in your @file{init.el} file : @example @@ -141,7 +141,7 @@ file : @noindent This statement will make searches case-sensitive only in the current -buffer which is the @file{.emacs} file. This will not be very useful. To +buffer which is the @file{init.el} file. This will not be very useful. To make searches case-sensitive globally in all buffers, use: @example @@ -204,8 +204,8 @@ these options. @cindex init file examples For customizing Emacs, you need to put Lisp expressions in your -@file{.emacs} file. The following are some useful Lisp expressions. If -you find any of them useful, just type them in your @file{.emacs} file: +@file{init.el} file. The following are some useful Lisp expressions. If +you find any of them useful, just type them in your @file{init.el} file: @itemize @bullet @item @@ -290,7 +290,7 @@ This expression will make searches case sensitive: @noindent If we use "setq" instead of "setq-default" then searches will be case-sensitive only in the current buffer's local value. In this case the -buffer would be the @file{.emacs} file. Since this would not be too +buffer would be the @file{init.el} file. Since this would not be too helpful and we want to have case-sensitive searches in all buffers, we have to use "setq-default". @@ -370,7 +370,7 @@ the modeline: @item If you don't want the text to be highlighted when you use commands for marking regions so as to use the @dfn{kill} and @dfn{yank} commands -later, you can use the following expression in your @file{.emacs} file: +later, you can use the following expression in your @file{init.el} file: @vindex zmacs-regions @example @@ -410,7 +410,7 @@ To get rid of the menu, use : @item If you want an extensive menu-bar use the following expression in your -@file{.emacs} file. +@file{init.el} file. @example (load "big-menubar") @@ -419,14 +419,14 @@ If you want an extensive menu-bar use the following expression in your @noindent If you want to write your own menus, you can look at some of the examples in -@file{/usr/local/lib/xemacs-20.0/lisp/packages/big-menubar.el} file. +@file{/usr/local/lib/xemacs-VERSION/lisp/packages/big-menubar.el} file. @end itemize - For more information on initializing your @file{.emacs} file, + For more information on initializing your @file{init.el} file, @xref{Init File,,,xemacs,XEmacs User's Manual}. You should also look at -@file{/usr/local/lib/xemacs-20.0/etc/sample.emacs}, which is a sample -@file{.emacs} file. It contains some of the commonly desired +@file{/usr/local/lib/xemacs-VERSION/etc/sample.init.el}, which is a sample +@file{init.el} file. It contains some of the commonly desired customizations in Emacs. diff --git a/man/new-users-guide/modes.texi b/man/new-users-guide/modes.texi index 3009e75..69df93f 100644 --- a/man/new-users-guide/modes.texi +++ b/man/new-users-guide/modes.texi @@ -122,7 +122,7 @@ information. @item asm-mode @cindex asm-mode Use asm-mode for editing files of assembler code. Look at the file -@file{ /usr/local/lib/xemacs-19.11/lisp/modes/asm.el} for more +@file{ /usr/local/lib/xemacs-VERSION/lisp/modes/asm.el} for more information. @end table @@ -169,8 +169,8 @@ menu item from the @b{Options} menu on the menu-bar at the top. If you wish to have this mode enabled permanently, choose @b{Save Options} from the @b{Options} menu. @xref{Options Menu}, for more information on the Options menu. You can also add statements in -your @file{.emacs} file. For each major mode in which you wish to -enable this minor mode, you need a statement in your @file{.emacs} +your @file{init.el} file. For each major mode in which you wish to +enable this minor mode, you need a statement in your @file{init.el} file. The following example shows how to enable the font-lock mode when the major mode is c-mode. diff --git a/man/new-users-guide/new-users-guide.texi b/man/new-users-guide/new-users-guide.texi index 2826aef..99be6d5 100644 --- a/man/new-users-guide/new-users-guide.texi +++ b/man/new-users-guide/new-users-guide.texi @@ -186,7 +186,7 @@ Other Customizations * Setting Variables:: Customizing Emacs variables * Init File:: Some examples of Lisp expressions in - .emacs file + init.el file Selecting and Moving Text diff --git a/man/new-users-guide/xmenu.texi b/man/new-users-guide/xmenu.texi index d642ec0..c2fa3ab 100644 --- a/man/new-users-guide/xmenu.texi +++ b/man/new-users-guide/xmenu.texi @@ -383,11 +383,11 @@ M-x find-file-other-window (bound to keys: C-x 4 f, C-x 4 C-f) @end example @item Syntax Highlighting -You can customize your @code{.emacs} file to include the font-lock mode +You can customize your @code{init.el} file to include the font-lock mode so that when you select this item, the comments will be displayed in one face, strings in another, reserved words in another, and so on. @xref{Customization,,,xemacs,XEmacs User's Manual}, for more -information on customizing @code{.emacs} file. After selecting this +information on customizing @code{init.el} file. After selecting this item, you will find your code a lot easier to read. When @b{Fonts} is selected, different parts of the program will appear in different Fonts. When @b{Colors} is selected, then the program will be displayed @@ -433,7 +433,7 @@ available will be selecting that buffer. @item Save Options Selecting this item will save the current settings of your Options -menu to your @code{.emacs} file so that the next time you start XEmacs, +menu to your @code{init.el} file so that the next time you start XEmacs, you won't need to select the options again. @end table diff --git a/man/standards.texi b/man/standards.texi index 7889e30..bcb19fa 100644 --- a/man/standards.texi +++ b/man/standards.texi @@ -3,7 +3,7 @@ @setfilename ../info/standards.info @settitle GNU Coding Standards @c This date is automagically updated when you save this file: -@set lastupdate June 24, 1999 +@set lastupdate February 21, 2001 @c %**end of header @ifinfo @@ -17,6 +17,12 @@ END-INFO-DIR-ENTRY @c @setchapternewpage odd @setchapternewpage off +@c Put everything in one index (arbitrarily chosen to be the concept index). +@syncodeindex fn cp +@syncodeindex ky cp +@syncodeindex pg cp +@syncodeindex vr cp + @c This is used by a cross ref in make-stds.texi @set CODESTD 1 @iftex @@ -28,7 +34,7 @@ END-INFO-DIR-ENTRY @ifinfo GNU Coding Standards -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice @@ -59,7 +65,7 @@ by the Free Software Foundation. @page @vskip 0pt plus 1filll -Copyright @copyright{} 1992, 1993, 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. +Copyright @copyright{} 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice @@ -92,6 +98,7 @@ Last updated @value{lastupdate}. * Documentation:: Documenting Programs * Managing Releases:: The Release Process * References:: References to Non-Free Software or Documentation +* Index:: @end menu @node Preface @@ -106,7 +113,7 @@ even if you write in another programming language. The rules often state reasons for writing in a certain way. Corrections or suggestions for this document should be sent to -@email{gnu@@gnu.org}. If you make a suggestion, please include a +@email{bug-standards@@gnu.org}. If you make a suggestion, please include a suggested new wording for it; our time is limited. We prefer a context diff to the @file{standards.texi} or @file{make-stds.texi} files, but if you don't have those files, please mail your suggestion anyway. @@ -114,19 +121,34 @@ you don't have those files, please mail your suggestion anyway. This release of the GNU Coding Standards was last updated @value{lastupdate}. +@cindex where to obtain @code{standards.texi} +@cindex downloading this manual +If you did not obtain this file directly from the GNU project and +recently, please check for a newer version. You can ftp the GNU Coding +Standards from any GNU FTP host in the directory +@file{/pub/gnu/standards/}. The GNU Coding Standards are available +there in several different formats: @file{standards.text}, +@file{standards.texi}, @file{standards.info}, and @file{standards.dvi}. +The GNU Coding Standards are also available on the GNU World Wide Web +server: @uref{http://www.gnu.org/prep/standards_toc.html}. + @node Legal Issues @chapter Keeping Free Software Free +@cindex legal aspects This @value{CHAPTER} discusses how you can make sure that GNU software -remains unencumbered. +avoids legal difficulties, and other related issues. @menu * Reading Non-Free Code:: Referring to Proprietary Programs * Contributions:: Accepting Contributions +* Trademarks:: How We Deal with Trademark Issues @end menu @node Reading Non-Free Code @section Referring to Proprietary Programs +@cindex proprietary programs +@cindex avoiding proprietary code Don't in any circumstances refer to Unix source code for or during your work on GNU! (Or to any other proprietary programs.) @@ -158,9 +180,10 @@ Or turn some parts of the program into independently usable libraries. Or use a simple garbage collector instead of tracking precisely when to free memory, or use a new GNU facility such as obstacks. - @node Contributions @section Accepting Contributions +@cindex legal papers +@cindex accepting contributions If the program you are working on is copyrighted by the Free Software Foundation, then when someone else sends you a piece of code to add to @@ -203,38 +226,122 @@ We have more detailed advice for maintainers of programs; if you have reached the stage of actually maintaining a program for GNU (whether released or not), please ask us for a copy. +@node Trademarks +@section Trademarks +@cindex trademarks + +Please do not include any trademark acknowledgements in GNU software +packages or documentation. + +Trademark acknowledgements are the statements that such-and-such is a +trademark of so-and-so. The GNU Project has no objection to the basic +idea of trademarks, but these acknowledgements feel like kowtowing, so +we don't use them. There is no legal requirement for them. + +What is legally required, as regards other people's trademarks, is to +avoid using them in ways which a reader might read as naming or labeling +our own programs or activities. For example, since ``Objective C'' is +(or at least was) a trademark, we made sure to say that we provide a +``compiler for the Objective C language'' rather than an ``Objective C +compiler''. The latter is meant to be short for the former, but it does +not explicitly state the relationship, so it could be misinterpreted as +using ``Objective C'' as a label for the compiler rather than for the +language. + @node Design Advice @chapter General Program Design +@cindex program design This @value{CHAPTER} discusses some of the issues you should take into account when designing your program. +@c Standard or ANSI C +@c +@c In 1989 the American National Standards Institute (ANSI) standardized +@c C as standard X3.159-1989. In December of that year the +@c International Standards Organization ISO adopted the ANSI C standard +@c making minor changes. In 1990 ANSI then re-adopted ISO standard +@c C. This version of C is known as either ANSI C or Standard C. + +@c A major revision of the C Standard appeared in 1999. + @menu +* Source Language:: Which languges to use. * Compatibility:: Compatibility with other implementations * Using Extensions:: Using non-standard features -* ANSI C:: Using ANSI C features -* Source Language:: Using languages other than C +* Standard C:: Using Standard C features @end menu +@node Source Language +@section Which Languages to Use +@cindex programming languges + +When you want to use a language that gets compiled and runs at high +speed, the best language to use is C. Using another language is like +using a non-standard feature: it will cause trouble for users. Even if +GCC supports the other language, users may find it inconvenient to have +to install the compiler for that other language in order to build your +program. For example, if you write your program in C++, people will +have to install the GNU C++ compiler in order to compile your program. + +C has one other advantage over C++ and other compiled languages: more +people know C, so more people will find it easy to read and modify the +program if it is written in C. + +So in general it is much better to use C, rather than the +comparable alternatives. + +But there are two exceptions to that conclusion: + +@itemize @bullet +@item +It is no problem to use another language to write a tool specifically +intended for use with that language. That is because the only people +who want to build the tool will be those who have installed the other +language anyway. + +@item +If an application is of interest only to a narrow part of the community, +then the question of which language it is written in has less effect on +other people, so you may as well please yourself. +@end itemize + +Many programs are designed to be extensible: they include an interpreter +for a language that is higher level than C. Often much of the program +is written in that language, too. The Emacs editor pioneered this +technique. + +@cindex GUILE +The standard extensibility interpreter for GNU software is GUILE, which +implements the language Scheme (an especially clean and simple dialect +of Lisp). @uref{http://www.gnu.org/software/guile/}. We don't reject +programs written in other ``scripting languages'' such as Perl and +Python, but using GUILE is very important for the overall consistency of +the GNU system. + @node Compatibility @section Compatibility with Other Implementations +@cindex compatibility with C and @sc{posix} standards +@cindex @sc{posix} compatibility With occasional exceptions, utility programs and libraries for GNU should be upward compatible with those in Berkeley Unix, and upward -compatible with @sc{ansi} C if @sc{ansi} C specifies their behavior, and -upward compatible with @sc{posix} if @sc{posix} specifies their -behavior. +compatible with Standard C if Standard C specifies their +behavior, and upward compatible with @sc{posix} if @sc{posix} specifies +their behavior. When these standards conflict, it is useful to offer compatibility modes for each of them. -@sc{ansi} C and @sc{posix} prohibit many kinds of extensions. Feel free -to make the extensions anyway, and include a @samp{--ansi}, +@cindex options for compatibility +Standard C and @sc{posix} prohibit many kinds of extensions. Feel +free to make the extensions anyway, and include a @samp{--ansi}, @samp{--posix}, or @samp{--compatible} option to turn them off. However, if the extension has a significant chance of breaking any real -programs or scripts, then it is not really upward compatible. Try to -redesign its interface. +programs or scripts, then it is not really upward compatible. So you +should try to redesign its interface to make it upward compatible. +@cindex @code{POSIXLY_CORRECT}, environment variable Many GNU programs suppress extensions that conflict with @sc{posix} if the environment variable @code{POSIXLY_CORRECT} is defined (even if it is defined with a null value). Please make your program recognize this @@ -246,10 +353,12 @@ completely with something totally different and better. (For example, @code{vi} is replaced with Emacs.) But it is nice to offer a compatible feature as well. (There is a free @code{vi} clone, so we offer it.) -Additional useful features not in Berkeley Unix are welcome. +Additional useful features are welcome regardless of whether +there is any precedent for them. @node Using Extensions @section Using Non-standard Features +@cindex non-standard extensions Many GNU facilities that already exist support a number of convenient extensions over the comparable Unix facilities. Whether to use these @@ -270,36 +379,33 @@ straightforwardly do without them, but to use the extensions if they are a big improvement. An exception to this rule are the large, established programs (such as -Emacs) which run on a great variety of systems. Such programs would -be broken by use of GNU extensions. +Emacs) which run on a great variety of systems. Using GNU extensions in +such programs would make many users unhappy, so we don't do that. -Another exception is for programs that are used as part of -compilation: anything that must be compiled with other compilers in -order to bootstrap the GNU compilation facilities. If these require -the GNU compiler, then no one can compile them without having them -installed already. That would be no good. +Another exception is for programs that are used as part of compilation: +anything that must be compiled with other compilers in order to +bootstrap the GNU compilation facilities. If these require the GNU +compiler, then no one can compile them without having them installed +already. That would be extremely troublesome in certain cases. -@node ANSI C -@section @sc{ansi} C and pre-@sc{ansi} C +@node Standard C +@section Standard C and Pre-Standard C +@cindex @sc{ansi} C standard -Do not ever use the ``trigraph'' feature of @sc{ansi} C. +1989 Standard C is widespread enough now that it is ok to use its +features in new programs. There is one exception: do not ever use the +``trigraph'' feature of Standard C. -@sc{ansi} C is widespread enough now that it is ok to write new programs -that use @sc{ansi} C features (and therefore will not work in -non-@sc{ansi} compilers). And if a program is already written in -@sc{ansi} C, there's no need to convert it to support non-@sc{ansi} -compilers. +1999 Standard C is not widespread yet, so please do not require its +features in programs. It is ok to use its features if they are present. -If you don't know non-@sc{ansi} C, there's no need to learn it; just -write in @sc{ansi} C. +However, it is easy to support pre-standard compilers in most programs, +so if you know how to do that, feel free. If a program you are +maintaining has such support, you should try to keep it working. -However, it is easy to support non-@sc{ansi} compilers in most programs, -so you might still consider doing so when you write a program. And if a -program you are maintaining has such support, you should try to keep it -working. - -To support pre-@sc{ansi} C, instead of writing function definitions in -@sc{ansi} prototype form, +@cindex function prototypes +To support pre-standard C, instead of writing function definitions in +standard prototype form, @example int @@ -308,7 +414,7 @@ foo (int x, int y) @end example @noindent -write the definition in pre-@sc{ansi} style like this, +write the definition in pre-standard style like this, @example int @@ -325,9 +431,9 @@ int foo (int, int); @end example You need such a declaration anyway, in a header file, to get the benefit -of @sc{ansi} C prototypes in all the files where the function is called. -And once you have the declaration, you normally lose nothing by writing -the function definition in the pre-@sc{ansi} style. +of prototypes in all the files where the function is called. And once +you have the declaration, you normally lose nothing by writing the +function definition in the pre-standard style. This technique does not work for integer types narrower than @code{int}. If you think of an argument as being of a type narrower than @code{int}, @@ -338,72 +444,52 @@ example, if a function argument needs to hold the system type @code{dev_t}, you run into trouble, because @code{dev_t} is shorter than @code{int} on some machines; but you cannot use @code{int} instead, because @code{dev_t} is wider than @code{int} on some machines. There -is no type you can safely use on all machines in a non-@sc{ansi} -definition. The only way to support non-@sc{ansi} C and pass such an +is no type you can safely use on all machines in a non-standard +definition. The only way to support non-standard C and pass such an argument is to check the width of @code{dev_t} using Autoconf and choose the argument type accordingly. This may not be worth the trouble. -@node Source Language -@section Using Languages Other Than C - -Using a language other than C is like using a non-standard feature: it -will cause trouble for users. Even if GCC supports the other language, -users may find it inconvenient to have to install the compiler for that -other language in order to build your program. For example, if you -write your program in C++, people will have to install the C++ compiler -in order to compile your program. Thus, it is better if you write in C. +In order to support pre-standard compilers that do not recognize +prototypes, you may want to use a preprocessor macro like this: -But there are three situations when there is no disadvantage in using -some other language: - -@itemize @bullet -@item -It is okay to use another language if your program contains an -interpreter for that language. - -For example, if your program links with GUILE, it is ok to write part of -the program in Scheme or another language supported by GUILE. - -@item -It is okay to use another language in a tool specifically intended for -use with that language. - -This is okay because the only people who want to build the tool will be -those who have installed the other language anyway. - -@item -If an application is of interest to a narrow community, then perhaps -it's not important if the application is inconvenient to install. -@end itemize - -C has one other advantage over C++ and other compiled languages: more -people know C, so more people will find it easy to read and modify the -program if it is written in C. +@example +/* Declare the prototype for a general external function. */ +#if defined (__STDC__) || defined (WINDOWSNT) +#define P_(proto) proto +#else +#define P_(proto) () +#endif +@end example @node Program Behavior @chapter Program Behavior for All Programs -This @value{CHAPTER} describes how to write robust software. It also -describes general standards for error messages, the command line interface, -and how libraries should behave. +This @value{CHAPTER} describes conventions for writing robust +software. It also describes general standards for error messages, the +command line interface, and how libraries should behave. @menu * Semantics:: Writing robust programs * Libraries:: Library behavior * Errors:: Formatting error messages -* User Interfaces:: Standards for command line interfaces -* Option Table:: Table of long options. +* User Interfaces:: Standards about interfaces generally +* Graphical Interfaces:: Standards for graphical interfaces +* Command-Line Interfaces:: Standards for command line interfaces +* Option Table:: Table of long options * Memory Usage:: When and how to care about memory needs +* File Usage:: Which files to use, and where @end menu @node Semantics @section Writing Robust Programs +@cindex arbitrary limits on data Avoid arbitrary limits on the length or number of @emph{any} data structure, including file names, lines, files, and symbols, by allocating all data structures dynamically. In most Unix utilities, ``long lines are silently truncated''. This is not acceptable in a GNU utility. +@cindex @code{NUL} characters Utilities reading files should not drop NUL characters, or any other nonprinting characters @emph{including those with codes above 0177}. The only sensible exceptions would be utilities specifically intended @@ -413,6 +499,7 @@ Whenever possible, try to make programs work properly with sequences of bytes that represent multibyte characters, using encodings such as UTF-8 and others. +@cindex error messages Check every system call for an error return, unless you know you wish to ignore errors. Include the system error text (from @code{perror} or equivalent) in @emph{every} error message resulting from a failing @@ -420,6 +507,8 @@ system call, as well as the name of the file if any and the name of the utility. Just ``cannot open foo.c'' or ``stat failed'' is not sufficient. +@cindex @code{malloc} return value +@cindex memory allocation failure Check every call to @code{malloc} or @code{realloc} to see if it returned zero. Check @code{realloc} even if you are making the block smaller; in a system that rounds block sizes to a power of 2, @@ -441,6 +530,7 @@ user), it is better to abort the command and return to the command reader loop. This allows the user to kill other processes to free up virtual memory, and then try the command again. +@cindex command-line arguments, decoding Use @code{getopt_long} to decode arguments, unless the argument syntax makes this unreasonable. @@ -455,6 +545,7 @@ are less likely to work compatibly. If you need to find all the files in a directory, use @code{readdir} or some other high-level interface. These are supported compatibly by GNU. +@cindex signal handling The preferred signal handling facilities are the BSD variant of @code{signal}, and the @sc{posix} @code{sigaction} function; the alternative USG @code{signal} interface is an inferior design. @@ -466,6 +557,7 @@ systems running GNU libc version 1, you should include behavior. It is up to you whether to support systems where @code{signal} has only the USG behavior, or give up on them. +@cindex impossible conditions In error checks that detect ``impossible'' conditions, just abort. There is usually no point in printing any message. These checks indicate the existence of bugs. Whoever wants to fix the bugs will have @@ -480,12 +572,28 @@ bits (0 through 255). A single run of the program might have 256 errors; if you try to return 256 as the exit status, the parent process will see 0 as the status, and it will appear that the program succeeded. +@cindex temporary files +@cindex @code{TMPDIR} environment variable If you make temporary files, check the @code{TMPDIR} environment variable; if that variable is defined, use the specified directory instead of @file{/tmp}. +In addition, be aware that there is a possible security problem when +creating temporary files in world-writable directories. In C, you can +avoid this problem by creating temporary files in this manner: + +@example +fd = open(filename, O_WRONLY | O_CREAT | O_EXCL, 0600); +@end example + +@noindent +or by using the @code{mkstemps} function from libiberty. + +In bash, use @code{set -C} to avoid this problem. + @node Libraries @section Library Behavior +@cindex libraries Try to make library functions reentrant. If they need to do dynamic storage allocation, at least try to avoid any nonreentrancy aside from @@ -505,16 +613,18 @@ together, so that no reasonable program could use one without the other; then they can both go in the same file. External symbols that are not documented entry points for the user -should have names beginning with @samp{_}. They should also contain -the chosen name prefix for the library, to prevent collisions with -other libraries. These can go in the same files with user entry -points if you like. +should have names beginning with @samp{_}. The @samp{_} should be +followed by the chosen name prefix for the library, to prevent +collisions with other libraries. These can go in the same files with +user entry points if you like. Static functions and variables can be used as you like and need not fit any naming convention. @node Errors @section Formatting Error Messages +@cindex formatting error messages +@cindex error messages, formatting Error messages from compilers should look like this: @@ -574,8 +684,10 @@ usage messages, should start with a capital letter. But they should not end with a period. @node User Interfaces -@section Standards for Command Line Interfaces +@section Standards for Interfaces Generally +@cindex program name and its behavior +@cindex behavior, dependent on program's name Please don't make the behavior of a utility depend on the name used to invoke it. It is useful sometimes to make a link to a utility with a different name, and that should not change what it does. @@ -583,6 +695,7 @@ with a different name, and that should not change what it does. Instead, use a run time option or a compilation switch or both to select among the alternate behaviors. +@cindex output device and program's behavior Likewise, please don't make the behavior of the program depend on the type of output device it is used with. Device independence is an important principle of the system's design; do not compromise it merely @@ -604,6 +717,34 @@ output device type. For example, we provide a @code{dir} program much like @code{ls} except that its default output format is always multi-column format. +@node Graphical Interfaces +@section Standards for Graphical Interfaces +@cindex graphical user interface + +@cindex gtk +When you write a program that provides a graphical user interface, +please make it work with X Windows and the GTK toolkit unless the +functionality specifically requires some alternative (for example, +``displaying jpeg images while in console mode''). + +In addition, please provide a command-line interface to control the +functionality. (In many cases, the graphical user interface can be a +separate program which invokes the command-line program.) This is +so that the same jobs can be done from scripts. + +@cindex corba +@cindex gnome +Please also consider providing a CORBA interface (for use from GNOME), a +library interface (for use from C), and perhaps a keyboard-driven +console interface (for use by users from console mode). Once you are +doing the work to provide the functionality and the graphical interface, +these won't be much extra work. + +@node Command-Line Interfaces +@section Standards for Command Line Interfaces +@cindex command-line interface + +@findex getopt It is a good idea to follow the @sc{posix} guidelines for the command-line options of a program. The easiest way to do this is to use @code{getopt} to parse them. Note that the GNU version of @code{getopt} @@ -611,6 +752,7 @@ will normally permit options anywhere among the arguments unless the special argument @samp{--} is used. This is not what @sc{posix} specifies; it is a GNU extension. +@cindex long-named options Please define long-named options that are equivalent to the single-letter Unix-style options. We hope to make GNU more user friendly this way. This is easy to do with the GNU function @@ -630,16 +772,20 @@ file name as an ordinary argument for compatibility, try to provide an option as another way to specify it. This will lead to more consistency among GNU utilities, and fewer idiosyncracies for users to remember. +@cindex standard command-line options All programs should support two standard options: @samp{--version} and @samp{--help}. @table @code +@cindex @samp{--version} option @item --version This option should direct the program to print information about its name, version, origin and legal status, all on standard output, and then exit successfully. Other options and arguments should be ignored once this is seen, and the program should not perform its normal function. +@cindex canonical name of a program +@cindex program's canonical name The first line is meant to be easy for a program to parse; the version number proper starts after the last space. In addition, it contains the canonical name for this program, in this format: @@ -712,12 +858,15 @@ versions' changes. You don't have to mention the name of the program in these notices, if that is inconvenient, since it appeared in the first line. +@cindex @samp{--help} option @item --help This option should output brief documentation for how to invoke the program, on standard output, then exit successfully. Other options and arguments should be ignored once this is seen, and the program should not perform its normal function. +@cindex address for bug reports +@cindex bug reports Near the end of the @samp{--help} option's output there should be a line that says where to mail bug reports. It should have this format: @@ -728,11 +877,13 @@ Report bugs to @var{mailing-address}. @node Option Table @section Table of Long Options +@cindex long option names +@cindex table of long options Here is a table of long options used by GNU programs. It is surely incomplete, but we aim to list all the options that a new program might want to be compatible with. If you use names not already in the table, -please send @email{gnu@@gnu.org} a list of them, with their +please send @email{bug-standards@@gnu.org} a list of them, with their meanings, so we can update the table. @c Please leave newlines between items in this table; it's much easier @@ -1104,6 +1255,9 @@ Used to ask for brief usage information. @item hide-control-chars @samp{-q} in @code{ls}. +@item html +In @code{makeinfo}, output HTML. + @item idle @samp{-u} in @code{who}. @@ -1164,6 +1318,10 @@ Used to ask for brief usage information. @item info @samp{-i}, @samp{-l}, and @samp{-m} in Finger. +@item init-file +In some programs, specify the name of the file to read as the user's +init file. + @item initial @samp{-i} in @code{expand}. @@ -1182,6 +1340,9 @@ Used to ask for brief usage information. @item intermix-type @samp{-p} in @code{shar}. +@item iso-8601 +Used in @code{date} + @item jobs @samp{-j} in Make. @@ -1835,8 +1996,9 @@ Print the version number. @node Memory Usage @section Memory Usage +@cindex memory usage -If it typically uses just a few meg of memory, don't bother making any +If a program typically uses just a few meg of memory, don't bother making any effort to reduce memory usage. For example, if it is impractical for other reasons to operate on files more than a few meg long, it is reasonable to read entire input files into core to operate on them. @@ -1852,6 +2014,23 @@ files that are bigger than will fit in core all at once. If your program creates complicated data structures, just make them in core and give a fatal error if @code{malloc} returns zero. +@node File Usage +@section File Usage +@cindex file usage + +Programs should be prepared to operate when @file{/usr} and @file{/etc} +are read-only file systems. Thus, if the program manages log files, +lock files, backup files, score files, or any other files which are +modified for internal purposes, these files should not be stored in +@file{/usr} or @file{/etc}. + +There are two exceptions. @file{/etc} is used to store system +configuration information; it is reasonable for a program to modify +files in @file{/etc} when its job is to update the system configuration. +Also, if the user explicitly asks to modify one file in a directory, it +is reasonable for the program to store other files in the same +directory. + @node Writing C @chapter Making The Best Use of C @@ -1872,7 +2051,10 @@ when writing GNU software. @node Formatting @section Formatting Your Source Code +@cindex formatting source code +@cindex open brace +@cindex braces, in C source It is important to put the open-brace that starts the body of a C function in column zero, and avoid putting any other open-brace or open-parenthesis or open-bracket in column zero. Several tools look @@ -1894,7 +2076,8 @@ concat (s1, s2) /* Name starts in column zero here */ @end example @noindent -or, if you want to use @sc{ansi} C, format the definition like this: +or, if you want to use Standard C syntax, format the definition like +this: @example static char * @@ -1904,7 +2087,7 @@ concat (char *s1, char *s2) @} @end example -In @sc{ansi} C, if the arguments don't fit nicely on one line, +In Standard C, if the arguments don't fit nicely on one line, split it like this: @example @@ -1914,7 +2097,25 @@ lots_of_args (int an_integer, long a_long, short a_short, @dots{} @end example -For the body of the function, we prefer code formatted like this: +The rest of this section gives our recommendations for other aspects of +C formatting style, which is also the default style of the @code{indent} +program in version 1.2 and newer. It corresponds to the options + +@smallexample +-nbad -bap -nbc -bbo -bl -bli2 -bls -ncdb -nce -cp1 -cs -di2 +-ndj -nfc1 -nfca -hnl -i2 -ip5 -lp -pcs -psl -nsc -nsob +@end smallexample + +We don't think of these recommendations as requirements, because it +causes no problems for users if two different programs have different +formatting styles. + +But whatever style you use, please use it consistently, since a mixture +of styles within one program tends to look ugly. If you are +contributing changes to an existing program, please follow the style of +that program. + +For the body of the function, our recommended style looks like this: @example if (x < foo (y, z)) @@ -1930,12 +2131,14 @@ else @} @end example +@cindex spaces before open-paren We find it easier to read a program when it has spaces before the open-parentheses and after the commas. Especially after the commas. When you split an expression into multiple lines, split it before an operator, not after one. Here is the right way: +@cindex expressions, splitting @example if (foo_this_is_long && bar > win (x, y, z) && remaining_condition) @@ -1960,14 +2163,15 @@ mode = ((inmode[j] == VOIDmode Insert extra parentheses so that Emacs will indent the code properly. For example, the following indentation looks nice if you do it by hand, -but Emacs would mess it up: @example v = rup->ru_utime.tv_sec*1000 + rup->ru_utime.tv_usec/1000 + rup->ru_stime.tv_sec*1000 + rup->ru_stime.tv_usec/1000; @end example -But adding a set of parentheses solves the problem: +@noindent +but Emacs would alter it. Adding a set of parentheses produces +something that looks equally nice, and which Emacs will preserve: @example v = (rup->ru_utime.tv_sec*1000 + rup->ru_utime.tv_usec/1000 @@ -1984,14 +2188,16 @@ do while (a > 0); @end example +@cindex formfeed +@cindex control-L Please use formfeed characters (control-L) to divide the program into pages at logical places (but not within a function). It does not matter just how long the pages are, since they do not have to fit on a printed page. The formfeeds should appear alone on lines by themselves. - @node Comments @section Commenting Your Work +@cindex commenting Every program should start with a comment saying briefly what it is for. Example: @samp{fmt - filter for simple filling of text}. @@ -2043,6 +2249,8 @@ There should be a comment on each static variable as well, like this: int truncate_lines; @end example +@cindex conditionals, comments for +@cindex @code{#endif}, commenting Every @samp{#endif} should have a comment, except in the case of short conditionals (just a few lines) that are not nested. The comment should state the condition of the conditional that is ending, @emph{including @@ -2084,9 +2292,23 @@ but, by contrast, write the comments this way for a @samp{#ifndef}: @node Syntactic Conventions @section Clean Use of C Constructs - -Please explicitly declare all arguments to functions. -Don't omit them just because they are @code{int}s. +@cindex syntactic conventions + +@cindex implicit @code{int} +@cindex function argument, declaring +Please explicitly declare the types of all objects. For example, you +should explicitly declare all arguments to functions, and you should +declare functions to return @code{int} rather than omitting the +@code{int}. + +@cindex compiler warnings +@cindex @samp{-Wall} compiler option +Some programmers like to use the GCC @samp{-Wall} option, and change the +code whenever it issues a warning. If you want to do this, then do. +Other programmers prefer not to use @samp{-Wall}, because it gives +warnings for valid and legitimate code which they do not want to change. +If you want to do this, then do. The compiler should be your servant, +not your master. Declarations of external functions and functions to appear later in the source file should all go in one place near the beginning of the file @@ -2094,6 +2316,7 @@ source file should all go in one place near the beginning of the file should go in a header file. Don't put @code{extern} declarations inside functions. +@cindex temporary variables It used to be common practice to use the same local variables (with names like @code{tem}) over and over for different values within one function. Instead of doing this, it is better declare a separate local @@ -2105,6 +2328,7 @@ all its uses. This makes the program even cleaner. Don't use local variables or parameters that shadow global identifiers. +@cindex multiple variables in a line Don't declare multiple variables in one declaration that spans lines. Start a new declaration on each line, instead. For example, instead of this: @@ -2205,6 +2429,7 @@ if (foo == 0) fatal ("virtual memory exhausted"); @end example +@pindex lint Don't make the program ugly to placate @code{lint}. Please don't insert any casts to @code{void}. Zero without a cast is perfectly fine as a null pointer constant, except when calling a varargs function. @@ -2212,6 +2437,7 @@ pointer constant, except when calling a varargs function. @node Names @section Naming Variables and Functions +@cindex names of variables and functions The names of global variables and functions in a program serve as comments of a sort. So don't choose terse names---instead, look for names that give useful information about the meaning of the variable or @@ -2249,30 +2475,41 @@ When you want to define names with constant integer values, use @code{enum} rather than @samp{#define}. GDB knows about enumeration constants. -Use file names of 14 characters or less, to avoid creating gratuitous -problems on older System V systems. You can use the program -@code{doschk} to test for this. @code{doschk} also tests for potential -name conflicts if the files were loaded onto an MS-DOS file -system---something you may or may not care about. +@cindex file-name limitations +@pindex doschk +You might want to make sure that none of the file names would conflict +the files were loaded onto an MS-DOS file system which shortens the +names. You can use the program @code{doschk} to test for this. + +Some GNU programs were designed to limit themselves to file names of 14 +characters or less, to avoid file name conflicts if they are read into +older System V systems. Please preserve this feature in the existing +GNU programs that have it, but there is no need to do this in new GNU +programs. @code{doschk} also reports file names longer than 14 +characters. @node System Portability @section Portability between System Types +@cindex portability, between system types In the Unix world, ``portability'' refers to porting to different Unix versions. For a GNU program, this kind of portability is desirable, but not paramount. The primary purpose of GNU software is to run on top of the GNU kernel, -compiled with the GNU C compiler, on various types of @sc{cpu}. The -amount and kinds of variation among GNU systems on different @sc{cpu}s -will be comparable to the variation among Linux-based GNU systems or -among BSD systems today. So the kinds of portability that are absolutely -necessary are quite limited. - -But many users do run GNU software on non-GNU Unix or Unix-like systems. -So supporting a variety of Unix-like systems is desirable, although not -paramount. - +compiled with the GNU C compiler, on various types of @sc{cpu}. So the +kinds of portability that are absolutely necessary are quite limited. +But it is important to support Linux-based GNU systems, since they +are the form of GNU that is popular. + +Beyond that, it is good to support the other free operating systems +(*BSD), and it is nice to support other Unix-like systems if you want +to. Supporting a variety of Unix-like systems is desirable, although +not paramount. It is usually not too hard, so you may as well do it. +But you don't have to consider it an obligation, if it does turn out to +be hard. + +@pindex autoconf The easiest way to achieve portability to most Unix-like systems is to use Autoconf. It's unlikely that your program needs to know more information about the host platform than Autoconf can provide, simply @@ -2282,15 +2519,30 @@ written. Avoid using the format of semi-internal data bases (e.g., directories) when there is a higher-level alternative (@code{readdir}). +@cindex non-@sc{posix} systems, and portability As for systems that are not like Unix, such as MSDOS, Windows, the Macintosh, VMS, and MVS, supporting them is often a lot of work. When that is the case, it is better to spend your time adding features that will be useful on GNU and GNU/Linux, rather than on supporting other incompatible systems. +It is a good idea to define the ``feature test macro'' +@code{_GNU_SOURCE} when compiling your C files. When you compile on GNU +or GNU/Linux, this will enable the declarations of GNU library extension +functions, and that will usually give you a compiler error message if +you define the same function names in some other way in your program. +(You don't have to actually @emph{use} these functions, if you prefer +to make the program more portable to other systems.) + +But whether or not you use these GNU extensions, you should avoid +using their names for any other meanings. Doing so would make it hard +to move your code into other GNU programs. + @node CPU Portability @section Portability between @sc{cpu}s +@cindex data types, and portability +@cindex portability, and data types Even GNU systems will differ because of differences among @sc{cpu} types---for example, difference in byte ordering and alignment requirements. It is absolutely essential to handle these differences. @@ -2298,6 +2550,25 @@ However, don't make any effort to cater to the possibility that an @code{int} will be less than 32 bits. We don't support 16-bit machines in GNU. +Similarly, don't make any effort to cater to the possibility that +@code{long} will be smaller than predefined types like @code{size_t}. +For example, the following code is ok: + +@example +printf ("size = %lu\n", (unsigned long) sizeof array); +printf ("diff = %ld\n", (long) (pointer2 - pointer1)); +@end example + +1989 Standard C requires this to work, and we know of only one +counterexample: 64-bit programs on Microsoft Windows IA-64. We will +leave it to those who want to port GNU programs to that environment +to figure out how to do it. + +Predefined file-size types like @code{off_t} are an exception: they are +longer than @code{long} on many platforms, so code like the above won't +work with them. One way to print an @code{off_t} value portably is to +print its digits yourself, one by one. + Don't assume that the address of an @code{int} object is also the address of its least-significant byte. This is false on big-endian machines. Thus, don't make the following mistake: @@ -2312,9 +2583,9 @@ while ((c = getchar()) != EOF) When calling functions, you need not worry about the difference between pointers of various types, or between pointers and integers. On most machines, there's no difference anyway. As for the few machines where -there is a difference, all of them support @sc{ansi} C, so you can use -prototypes (conditionalized to be active only in @sc{ansi} C) to make -the code work on those systems. +there is a difference, all of them support Standard C prototypes, so you can +use prototypes (perhaps conditionalized to be active only in Standard C) +to make the code work on those systems. In certain cases, it is ok to pass integer and pointer arguments indiscriminately to the same function, and use no prototype on any @@ -2333,37 +2604,49 @@ error (s, a1, a2, a3) @noindent In practice, this works on all machines, since a pointer is generally -the widest possible kind of argument, and it is much simpler than any +the widest possible kind of argument; it is much simpler than any ``correct'' alternative. Be sure @emph{not} to use a prototype for such functions. -However, avoid casting pointers to integers unless you really need to. -Outside of special situations, such casts greatly reduce portability, -and in most programs they are easy to avoid. In the cases where casting -pointers to integers is essential---such as, a Lisp interpreter which -stores type information as well as an address in one word---it is ok to -do it, but you'll have to make explicit provisions to handle different -word sizes. +If you have decided to use Standard C, then you can instead define +@code{error} using @file{stdarg.h}, and pass the arguments along to +@code{vfprintf}. + +@cindex casting pointers to integers +Avoid casting pointers to integers if you can. Such casts greatly +reduce portability, and in most programs they are easy to avoid. In the +cases where casting pointers to integers is essential---such as, a Lisp +interpreter which stores type information as well as an address in one +word---you'll have to make explicit provisions to handle different word +sizes. You will also need to make provision for systems in which the +normal range of addresses you can get from @code{malloc} starts far away +from zero. @node System Functions @section Calling System Functions +@cindex library functions, and portability +@cindex portability, and library functions -C implementations differ substantially. @sc{ansi} C reduces but does not -eliminate the incompatibilities; meanwhile, many users wish to compile -GNU software with pre-@sc{ansi} compilers. This chapter gives -recommendations for how to use the more or less standard C library -functions to avoid unnecessary loss of portability. +C implementations differ substantially. Standard C reduces but does +not eliminate the incompatibilities; meanwhile, many GNU packages still +support pre-standard compilers because this is not hard to do. This +chapter gives recommendations for how to use the more-or-less standard C +library functions to avoid unnecessary loss of portability. @itemize @bullet @item -Don't use the value of @code{sprintf}. It returns the number of +Don't use the return value of @code{sprintf}. It returns the number of characters written on some systems, but not on all systems. @item +Be aware that @code{vfprintf} is not always available. + +@item @code{main} should be declared to return type @code{int}. It should terminate either by calling @code{exit} or by returning the integer status code; make sure it cannot ever return an undefined value. +@cindex declaration for system functions @item Don't declare system functions explicitly. @@ -2380,7 +2663,7 @@ actual conflicts. @item If you must declare a system function, don't specify the argument types. -Use an old-style declaration, not an @sc{ansi} prototype. The more you +Use an old-style declaration, not a Standard C prototype. The more you specify about the function, the more likely a conflict. @item @@ -2402,6 +2685,7 @@ exceptional systems (mostly 64-bit machines), you can use @code{realloc}---or put these declarations in configuration files specific to those systems. +@cindex string library functions @item The string functions require special treatment. Some Unix systems have a header file @file{string.h}; others have @file{strings.h}. Neither @@ -2412,7 +2696,7 @@ figure out which file to include, or don't include either file. If you don't include either strings file, you can't get declarations for the string functions from the header file in the usual way. -That causes less of a problem than you might think. The newer @sc{ansi} +That causes less of a problem than you might think. The newer standard string functions should be avoided anyway because many systems still don't support them. The string functions you can use are these: @@ -2442,7 +2726,7 @@ names, but neither pair works on all systems. You should pick a single pair of names and use it throughout your program. (Nowadays, it is better to choose @code{strchr} and -@code{strrchr} for new programs, since those are the standard @sc{ansi} +@code{strrchr} for new programs, since those are the standard names.) Declare both of those names as functions returning @code{char *}. On systems which don't support those names, define them as macros in terms of the other pair. For example, here is what to put at the @@ -2468,7 +2752,9 @@ One way to get them properly defined is to use Autoconf. @node Internationalization @section Internationalization +@cindex internationalization +@pindex gettext GNU has a library called GNU gettext that makes it easy to translate the messages in a program into various languages. You should use this library in every program. Use English for the messages as they appear @@ -2495,6 +2781,7 @@ translations for this package from the translations for other packages. Normally, the text domain name should be the same as the name of the package---for example, @samp{fileutils} for the GNU file utilities. +@cindex message text, and internationalization To enable gettext to work well, avoid writing code that makes assumptions about the structure of words or sentences. When you want the precise text of a sentence to vary depending on the data, use two or @@ -2566,6 +2853,7 @@ printf (f->tried_implicit @node Mmap @section Mmap +@findex mmap Don't assume that @code{mmap} either works on all files or fails for all files. It may work on some files and fail on others. @@ -2582,11 +2870,20 @@ all these kinds of files. @node Documentation @chapter Documenting Programs +@cindex documentation + +A GNU program should ideally come with full free documentation, adequate +for both reference and tutorial purposes. If the package can be +programmed or extended, the documentation should cover programming or +extending it, as well as just using it. @menu * GNU Manuals:: Writing proper manuals. +* Doc Strings and Manuals:: Compiling doc strings doesn't make a manual. * Manual Structure Details:: Specific structure conventions. * License for Manuals:: Writing the distribution terms for a manual. +* Manual Credits:: Giving credit to documentation contributors. +* Printed Manuals:: Mentioning the printed manual. * NEWS File:: NEWS files supplement manuals. * Change Logs:: Recording Changes * Man Pages:: Man pages are secondary. @@ -2597,13 +2894,18 @@ all these kinds of files. @node GNU Manuals @section GNU Manuals -The preferred way to document part of the GNU system is to write a -manual in the Texinfo formatting language. This makes it possible to -produce a good quality formatted book, using @TeX{}, and to generate an -Info file. It is also possible to generate HTML output from Texinfo -source. See the Texinfo manual, either the hardcopy, or the on-line -version available through @code{info} or the Emacs Info subsystem -(@kbd{C-h i}). +The preferred document format for the GNU system is the Texinfo +formatting language. Every GNU package should (ideally) have +documentation in Texinfo both for reference and for learners. Texinfo +makes it possible to produce a good quality formatted book, using +@TeX{}, and to generate an Info file. It is also possible to generate +HTML output from Texinfo source. See the Texinfo manual, either the +hardcopy, or the on-line version available through @code{info} or the +Emacs Info subsystem (@kbd{C-h i}). + +Nowadays some other formats such as Docbook and Sgmltexi can be +converted automatically into Texinfo. It is ok to produce the Texinfo +documentation by conversion this way, as long as it gives good results. Programmers often find it most natural to structure the documentation following the structure of the implementation, which they know. But @@ -2632,9 +2934,9 @@ have one manual for ``comparison of files'' which covers both of those programs, as well as @code{cmp}. By documenting these programs together, we can make the whole subject clearer. -The manual which discusses a program should document all of the -program's command-line options and all of its commands. It should give -examples of their use. But don't organize the manual as a list of +The manual which discusses a program should certainly document all of +the program's command-line options and all of its commands. It should +give examples of their use. But don't organize the manual as a list of features. Instead, organize it logically, by subtopics. Address the questions that a user will ask when thinking about the job that the program does. @@ -2659,10 +2961,19 @@ are purely tutorial and cover the basics of the subject. These provide the framework for a beginner to understand the rest of the manual. The Bison manual provides a good example of how to do this. +To serve as a reference, a manual should have an Index that list all the +functions, variables, options, and important concepts that are part of +the program. One combined Index should do for a short manual, but +sometimes for a complex package it is better to use multiple indices. +The Texinfo manual includes advice on preparing good index entries, see +@ref{Index Entries, , Making Index Entries, texinfo, The GNU Texinfo +Manual}, and see @ref{Indexing Commands, , Defining the Entries of an +Index, texinfo, The GNU Texinfo manual}. + Don't use Unix man pages as a model for how to write GNU documentation; most of them are terse, badly structured, and give inadequate -explanation of the underlying concepts. (There are, of course -exceptions.) Also Unix man pages use a particular format which is +explanation of the underlying concepts. (There are, of course, some +exceptions.) Also, Unix man pages use a particular format which is different from what we use in GNU manuals. Please include an email address in the manual for where to report @@ -2674,10 +2985,38 @@ documentation; use ``file name'' (two words) instead. We use the term Please do not use the term ``illegal'' to refer to erroneous input to a computer program. Please use ``invalid'' for this, and reserve the term -``illegal'' for violations of law. +``illegal'' for activities punishable by law. + +@node Doc Strings and Manuals +@section Doc Strings and Manuals + +Some programming systems, such as Emacs, provide a documentation string +for each function, command or variable. You may be tempted to write a +reference manual by compiling the documentation strings and writing a +little additional text to go around them---but you must not do it. That +approach is a fundamental mistake. The text of well-written +documentation strings will be entirely wrong for a manual. + +A documentation string needs to stand alone---when it appears on the +screen, there will be no other text to introduce or explain it. +Meanwhile, it can be rather informal in style. + +The text describing a function or variable in a manual must not stand +alone; it appears in the context of a section or subsection. Other text +at the beginning of the section should explain some of the concepts, and +should often make some general points that apply to several functions or +variables. The previous descriptions of functions and variables in the +section will also have given information about the topic. A description +written to stand alone would repeat some of that information; this +redundance looks bad. Meanwhile, the informality that is acceptable in +a documentation string is totally unacceptable in a manual. + +The only good way to use documentation strings in writing a good manual +is to use them as a source of information for writing good text. @node Manual Structure Details @section Manual Structure Details +@cindex manual structure The title page of the manual should state the version of the programs or packages documented in the manual. The Top node of the manual should @@ -2697,26 +3036,57 @@ Alternatively, put a menu item in some menu whose item name fits one of the above patterns. This identifies the node which that item points to as the node for this purpose, regardless of the node's actual name. -There will be automatic features for specifying a program name and -quickly reading just this part of its manual. +The @samp{--usage} feature of the Info reader looks for such a node +or menu item in order to find the relevant text, so it is essential +for every Texinfo file to have one. If one manual describes several programs, it should have such a node for -each program described. +each program described in the manual. @node License for Manuals @section License for Manuals +@cindex license for manuals -If the manual contains a copy of the GNU GPL or GNU LGPL, or if it -contains chapters that make political or personal statements, please -copy the distribution terms of the GNU Emacs Manual, and adapt it by -modifying appropriately the list of special chapters that may not be -modified or deleted. +Please use the GNU Free Documentation License for all GNU manuals that +are more than a few pages long. Likewise for a collection of short +documents---you only need one copy of the GNU FDL for the whole +collection. For a single short document, you can use a very permissive +non-copyleft license, to avoid taking up space with a long license. -If the manual does not contain any such chapters, then imitate the -simpler distribution terms of the Texinfo manual. +See @uref{http://www.gnu.org/copyleft/fdl-howto.html} for more explanation +of how to employ the GFDL. + +Note that it is not obligatory to include a copy of the GNU GPL or GNU +LGPL in a manual whose license is neither the GPL nor the LGPL. It can +be a good idea to include the program's license in a large manual; in a +short manual, whose size would be increased considerably by including +the program's license, it is probably better not to include it. + +@node Manual Credits +@section Manual Credits +@cindex credits for manuals + +Please credit the principal human writers of the manual as the authors, +on the title page of the manual. If a company sponsored the work, thank +the company in a suitable place in the manual, but do not cite the +company as an author. + +@node Printed Manuals +@section Printed Manuals + +The FSF publishes some GNU manuals in printed form. To encourage sales +of these manuals, the on-line versions of the manual should mention at +the very start that the printed manual is available and should point at +information for getting it---for instance, with a link to the page +@url{http://www.gnu.org/order/order.html}. This should not be included +in the printed manual, though, because there it is redundant. + +It is also useful to explain in the on-line forms of the manual how the +user can print out the manual from the sources. @node NEWS File @section The NEWS File +@cindex @file{NEWS} file In addition to its manual, the package should have a file named @file{NEWS} which contains a list of user-visible changes worth @@ -2731,6 +3101,7 @@ user to that file. @node Change Logs @section Change Logs +@cindex change logs Keep a change log to describe all the changes made to program source files. The purpose of this is so that people investigating bugs in the @@ -2745,6 +3116,7 @@ history of how the conflicting concepts arose and who they came from. * Style of Change Logs:: * Simple Changes:: * Conditional Changes:: +* Indicating the Part Changed:: @end menu @node Change Log Concepts @@ -2785,10 +3157,16 @@ Then describe the changes you made to that function or variable. @node Style of Change Logs @subsection Style of Change Logs +@cindex change logs, style -Here are some examples of change log entries: +Here are some simple examples of change log entries, starting with the +header line that says who made the change and when, followed by +descriptions of specific changes. (These examples are drawn from Emacs +and GCC.) @example +1998-08-17 Richard Stallman + * register.el (insert-register): Return nil. (jump-to-register): Likewise. @@ -2819,6 +3197,15 @@ entries represent parts of the same change, so that they work together, then don't put blank lines between them. Then you can omit the file name and the asterisk when successive entries are in the same file. +Break long lists of function names by closing continued lines with +@samp{)}, rather than @samp{,}, and opening the continuation with +@samp{(} as in this example: + +@example +* keyboard.c (menu_bar_items, tool_bar_items) +(Fexecute_extended_command): Deal with `keymap' property. +@end example + @node Simple Changes @subsection Simple Changes @@ -2826,9 +3213,10 @@ Certain simple kinds of changes don't need much detail in the change log. When you change the calling sequence of a function in a simple fashion, -and you change all the callers of the function, there is no need to make -individual entries for all the callers that you changed. Just write in -the entry for the function being called, ``All callers changed.'' +and you change all the callers of the function to use the new calling +sequence, there is no need to make individual entries for all the +callers that you changed. Just write in the entry for the function +being called, ``All callers changed''---like this: @example * keyboard.c (Fcommand_execute): New arg SPECIAL. @@ -2848,6 +3236,8 @@ documentation says with the way the program actually works. @node Conditional Changes @subsection Conditional Changes +@cindex conditional changes, and change logs +@cindex change logs, conditional changes C programs often contain compile-time @code{#if} conditionals. Many changes are conditional; sometimes you add a new definition which is @@ -2887,8 +3277,23 @@ a certain macro is @emph{not} defined: (gethostname) [!HAVE_SOCKETS]: Replace with winsock version. @end example +@node Indicating the Part Changed +@subsection Indicating the Part Changed + +Indicate the part of a function which changed by using angle brackets +enclosing an indication of what the changed part does. Here is an entry +for a change in the part of the function @code{sh-while-getopts} that +deals with @code{sh} commands: + +@example +* progmodes/sh-script.el (sh-while-getopts) : Handle case that +user-specified option string is empty. +@end example + + @node Man Pages @section Man Pages +@cindex man pages In the GNU project, man pages are secondary. It is not necessary or expected for every GNU program to have a man page, but some of them do. @@ -2935,6 +3340,7 @@ with the FSF about the individual case. @node Managing Releases @chapter The Release Process +@cindex releasing Making a release is more than just bundling up your source files in a tar file and putting it up for FTP. You should set up your software so @@ -2952,7 +3358,9 @@ all GNU software. @node Configuration @section How Configuration Should Work +@cindex program configuration +@pindex configure Each GNU distribution should come with a shell script named @code{configure}. This script is given arguments which describe the kind of machine and system you want to compile the program for. @@ -3020,13 +3428,14 @@ The @code{configure} script needs to be able to decode all plausible alternatives for how to describe a machine. Thus, @samp{sun3-sunos4.1} would be a valid alias. For many programs, @samp{vax-dec-ultrix} would be an alias for @samp{vax-dec-bsd}, simply because the differences -between Ultrix and BSD are rarely noticeable, but a few programs +between Ultrix and @sc{bsd} are rarely noticeable, but a few programs might need to distinguish them. @c Real 4.4BSD now runs on some Suns. There is a shell script called @file{config.sub} that you can use as a subroutine to validate system types and canonicalize aliases. +@cindex optional features, configure-time Other options are permitted to specify in more detail the software or hardware present on the machine, and include or exclude optional parts of the package: @@ -3062,17 +3471,6 @@ and Do not use a @samp{--with} option to specify the file name to use to find certain files. That is outside the scope of what @samp{--with} options are for. - -@item --nfp -The target machine has no floating point processor. - -@item --gas -The target machine assembler is GAS, the GNU assembler. -This is obsolete; users should use @samp{--with-gnu-as} instead. - -@item --x -The target machine has the X Window System installed. -This is obsolete; users should use @samp{--with-x} instead. @end table All @code{configure} scripts should accept all of these ``detail'' @@ -3088,27 +3486,36 @@ you might think of. That is deliberate. We want to limit the possible configuration options in GNU software. We do not want GNU programs to have idiosyncratic configuration options. -Packages that perform part of the compilation process may support cross-compilation. -In such a case, the host and target machines for the program may be -different. The @code{configure} script should normally treat the -specified type of system as both the host and the target, thus producing -a program which works for the same type of machine that it runs on. +Packages that perform part of the compilation process may support +cross-compilation. In such a case, the host and target machines for the +program may be different. -The way to build a cross-compiler, cross-assembler, or what have you, is -to specify the option @samp{--host=@var{hosttype}} when running -@code{configure}. This specifies the host system without changing the -type of target system. The syntax for @var{hosttype} is the same as -described above. +The @code{configure} script should normally treat the specified type of +system as both the host and the target, thus producing a program which +works for the same type of machine that it runs on. -Bootstrapping a cross-compiler requires compiling it on a machine other -than the host it will run on. Compilation packages accept a -configuration option @samp{--build=@var{hosttype}} for specifying the -configuration on which you will compile them, in case that is different -from the host. +To configure a cross-compiler, cross-assembler, or what have you, you +should specify a target different from the host, using the configure +option @samp{--target=@var{targettype}}. The syntax for +@var{targettype} is the same as for the host type. So the command would +look like this: + +@example +./configure @var{hosttype} --target=@var{targettype} +@end example Programs for which cross-operation is not meaningful need not accept the -@samp{--host} option, because configuring an entire operating system for -cross-operation is not a meaningful thing. +@samp{--target} option, because configuring an entire operating system for +cross-operation is not a meaningful operation. + +Bootstrapping a cross-compiler requires compiling it on a machine other +than the host it will run on. Compilation packages accept a +configuration option @samp{--build=@var{buildtype}} for specifying the +configuration on which you will compile them, but the configure script +should normally guess the build machine type (using +@file{config.guess}), so this option is probably not necessary. The +host and target types normally default from the build type, so in +bootstrapping a cross-compiler you must specify them both explicitly. Some programs have ways of configuring themselves automatically. If your program is set up to do this, your @code{configure} script can simply @@ -3123,6 +3530,7 @@ ignore most of its arguments. @node Releases @section Making Releases +@cindex packaging Package the distribution of @code{Foo version 69.96} up in a gzipped tar file with the name @file{foo-69.96.tar.gz}. It should unpack into a @@ -3135,6 +3543,7 @@ files} and @dfn{non-source files}. Source files are written by humans and never changed automatically; non-source files are produced from source files by programs under the control of the Makefile. +@cindex @file{README} file The distribution should contain a file named @file{README} which gives the name of the package, and a general description of what it does. It is also good to explain the purpose of each of the first-level @@ -3193,6 +3602,7 @@ characters both before and after the period. Thus, are truncated to @file{foobarha.c} and @file{foobarha.o}, which are distinct. +@cindex @file{texinfo.tex}, in a distribution Include in your distribution a copy of the @file{texinfo.tex} you used to test print any @file{*.texinfo} or @file{*.texi} files. @@ -3204,6 +3614,7 @@ other files to get. @node References @chapter References to Non-Free Software and Documentation +@cindex references to non-free material A GNU program should not recommend use of any non-free program. We can't stop some people from writing proprietary programs, or stop other @@ -3227,6 +3638,17 @@ we are serious about the need for free documentation, we must not undermine our position by recommending use of documentation that isn't free. +@node Index +@unnumbered Index +@printindex cp + @contents @bye +Local variables: +update-date-leading-regexp: "@c This date is automagically updated when you save this file:\n@set lastupdate " +update-date-trailing-regexp: "" +eval: (load "/gd/gnuorg/update-date.el") +eval: (add-hook 'write-file-hooks 'update-date) +compile-command: "make just-standards" +End: diff --git a/man/xemacs-faq.texi b/man/xemacs-faq.texi index 690aa76..9d63f48 100644 --- a/man/xemacs-faq.texi +++ b/man/xemacs-faq.texi @@ -7,7 +7,7 @@ @finalout @titlepage @title XEmacs FAQ -@subtitle Frequently asked questions about XEmacs @* Last Modified: $Date: 2001/01/18 13:35:02 $ +@subtitle Frequently asked questions about XEmacs @* Last Modified: $Date: 2001/03/08 08:19:10 $ @sp 1 @author Tony Rossini @author Ben Wing @@ -67,7 +67,7 @@ The canonical version of the FAQ is the texinfo document If you do not have makeinfo installed, you may @uref{xemacs-faq.info, download the faq} in info format, and install it in @file{/info/}. For example in -@file{/usr/local/lib/xemacs-20.4/info/}. +@file{/usr/local/lib/xemacs-21.4/info/}. @end itemize @@ -127,8 +127,8 @@ Internationalization: * Q1.3.7:: How about Cyrillic Modes? Getting Started: -* Q1.4.1:: What is a @file{.emacs} and is there a sample one? -* Q1.4.2:: Can I use the same @file{.emacs} with the other Emacs? +* Q1.4.1:: What is an @file{init.el} or @file{.emacs} and is there a sample one? +* Q1.4.2:: Can I use the same @file{init.el}/@file{.emacs} with the other Emacs? * Q1.4.3:: Any good XEmacs tutorials around? * Q1.4.4:: May I see an example of a useful XEmacs Lisp function? * Q1.4.5:: And how do I bind it to a key? @@ -201,7 +201,7 @@ X Window System & Resources: * Q3.1.8:: @samp{-iconic} doesn't work. Textual Fonts & Colors: -* Q3.2.1:: How can I set color options from @file{.emacs}? +* Q3.2.1:: How can I set color options from @file{init.el}/@file{.emacs}? * Q3.2.2:: How do I set the text, menu and modeline fonts? * Q3.2.3:: How can I set the colors when highlighting a region? * Q3.2.4:: How can I limit color map usage? @@ -227,7 +227,7 @@ The Keyboard: * Q3.5.5:: Scrolling one line at a time. * Q3.5.6:: How to map @kbd{Help} key alone on Sun type4 keyboard? * Q3.5.7:: How can you type in special characters in XEmacs? -* Q3.5.8:: Why does @code{(global-set-key [delete-forward] 'delete-char)} complain? +* Q3.5.8:: [This question intentionally left blank] * Q3.5.9:: How do I make the Delete key delete forward? * Q3.5.10:: Can I turn on @dfn{sticky} modifier keys? * Q3.5.11:: How do I map the arrow keys? @@ -258,7 +258,7 @@ Scrollbars: * Q3.9.1:: How can I disable the scrollbar? * Q3.9.2:: How can one use resources to change scrollbar colors? * Q3.9.3:: Moving the scrollbar can move the point; can I disable this? -* Q3.9.4:: How can I get automatic horizontal scrolling? +* Q3.9.4:: How can I turn off automatic horizontal scrolling in specific modes? Text Selections: * Q3.10.1:: How can I turn off or change highlighted selections? @@ -323,14 +323,14 @@ The Miscellaneous Stuff * Q5.0.1:: How can I do source code highlighting using font-lock? * Q5.0.2:: I do not like cc-mode. How do I use the old c-mode? * Q5.0.3:: How do I get @samp{More} Syntax Highlighting on by default? -* Q5.0.4:: How can I enable auto-indent? +* Q5.0.4:: How can I enable auto-indent and/or Filladapt? * Q5.0.5:: How can I get XEmacs to come up in text/auto-fill mode by default? * Q5.0.6:: How do I start up a second shell buffer? * Q5.0.7:: Telnet from shell filters too much. * Q5.0.8:: Why does edt emulation not work? * Q5.0.9:: How can I emulate VI and use it as my default mode? * Q5.0.10:: [This question intentionally left blank] -* Q5.0.11:: How do I turn on filladapt for all buffers? +* Q5.0.11:: [This question intentionally left blank] * Q5.0.12:: How do I disable gnuserv from opening a new frame? * Q5.0.13:: How do I start gnuserv so that each subsequent XEmacs is a client? * Q5.0.14:: Strange things are happening in Shell Mode. @@ -362,7 +362,7 @@ Sound: Miscellaneous: * Q5.3.1:: How do you make XEmacs indent CL if-clauses correctly? -* Q5.3.2:: Fontifying hangs when editing a postscript file. +* Q5.3.2:: [This question intentionally left blank] * Q5.3.3:: How can I print WYSIWYG a font-locked buffer? * Q5.3.4:: Getting @kbd{M-x lpr} to work with postscript printer. * Q5.3.5:: How do I specify the paths that XEmacs uses for finding files? @@ -379,8 +379,8 @@ XEmacs on MS Windows General Info: * Q6.0.1:: What is the status of the XEmacs port to Windows? * Q6.0.2:: What flavors of MS Windows are supported? -* Q6.0.3:: Are binary kits available? -* Q6.0.4:: Does XEmacs on MS Windows require an X server to run? +* Q6.0.3:: Are binaries available? +* Q6.0.4:: Can I build XEmacs on MS Windows with support for X or Cygwin? Building XEmacs on MS Windows: * Q6.1.1:: I decided to run with X. Where do I get an X server? @@ -393,7 +393,7 @@ Building XEmacs on MS Windows: Customization and User Interface: * Q6.2.1:: How will the port cope with differences in the Windows user interface? * Q6.2.2:: How do I change fonts in XEmacs on MS Windows? -* Q6.2.3:: Where do I put my @file{.emacs} file? +* Q6.2.3:: Where do I put my @file{init.el}/@file{.emacs} file? Miscellaneous: * Q6.3.1:: Will XEmacs rename all the win32-* symbols to w32-*? @@ -478,8 +478,8 @@ Internationalization: * Q1.3.7:: How about Cyrillic Modes? Getting Started: -* Q1.4.1:: What is a @file{.emacs} and is there a sample one? -* Q1.4.2:: Can I use the same @file{.emacs} with the other Emacs? +* Q1.4.1:: What is an @file{init.el} or @file{.emacs} and is there a sample one? +* Q1.4.2:: Can I use the same @file{init.el}/@file{.emacs} with the other Emacs? * Q1.4.3:: Any good XEmacs tutorials around? * Q1.4.4:: May I see an example of a useful XEmacs Lisp function? * Q1.4.5:: And how do I bind it to a key? @@ -491,11 +491,17 @@ Getting Started: @unnumberedsubsec Q1.0.1: What is XEmacs? -An alternative to GNU Emacs, originally based on an early alpha version -of FSF's version 19, and has diverged quite a bit since then. XEmacs -was known as Lucid Emacs through version 19.10. Almost all features of -GNU Emacs are supported in XEmacs. The maintainers of XEmacs actively -track changes to GNU Emacs while also working to add new features. +XEmacs is a highly customizable open source text editor and application +development system. It is protected under the GNU Public License and +related to other versions of Emacs, in particular GNU Emacs. Its +emphasis is on modern graphical user interface support and an open +software development model, similar to Linux. XEmacs has an active +development community numbering in the hundreds, and runs on Windows 95 +and NT, Linux and nearly every other version of Unix in +existence. Support for XEmacs has been supplied by Sun Microsystems, +University of Illinois, Lucid, ETL/Electrotechnical Laboratory, Amdahl +Corporation, BeOpen, and others, as well as the unpaid time of a great +number of individual developers. @node Q1.0.2, Q1.0.3, Q1.0.1, Introduction @unnumberedsubsec Q1.0.2: What is the current version of XEmacs? @@ -538,7 +544,7 @@ The XEmacs maintainers are generally more receptive to suggestions than the GNU Emacs maintainers. @item -Many more bundled packages than GNU Emacs +Many more bundled packages than GNU Emacs. @item Binaries are available for many common operating systems. @@ -554,7 +560,7 @@ Better Motif compliance. @item Some internationalization support (including full MULE support, if -compiled with it.) +compiled with it). @item Variable-width fonts. @@ -585,8 +591,6 @@ The ability to embed arbitrary graphics in a buffer. @item Completely compatible (at the C level) with the Xt-based toolkits. -@item -First production Web Browser supporting Style Sheets. @end itemize @node Q1.0.5, Q1.0.6, Q1.0.4, Introduction @@ -606,7 +610,7 @@ that often result. Mail your questions to @email{xemacs-beta@@xemacs.org} and @unnumberedsubsec Q1.0.6: Where can I get help? Probably the easiest way, if everything is installed, is to use Info, by -pressing @kbd{C-h i}, or selecting @code{Manuals->Info} from the +pressing @kbd{C-h i}, or looking for an Info item on the Help Menu. @kbd{M-x apropos} can be used to look for particular commands. For items not found in the manual, try reading this FAQ @@ -630,7 +634,7 @@ xemacs-request address. Send a message with a subject of @node Q1.0.7, Q1.0.8, Q1.0.6, Introduction @unnumberedsubsec Q1.0.7: Where are the mailing lists archived? -The archives can be found at @uref{http://www.xemacs.org/Lists/Archive} +The archives can be found at @uref{http://list-archive.xemacs.org} @node Q1.0.8, Q1.0.9, Q1.0.7, Introduction @unnumberedsubsec Q1.0.8: How do you pronounce XEmacs? @@ -650,41 +654,6 @@ Screen snapshots are available in the WWW version of the FAQ. Yes, @xref{MS Windows}. -@comment Thanks to efforts of many people, coordinated by -@comment @email{davidh@@wr.com.au, David Hobley} and @email{marcpa@@cam.org, Marc -@comment Paquette}, beta versions of XEmacs now run on 32-bit Windows platforms -@comment (NT and 95). The current betas require having an X server to run -@comment XEmacs; however, a native NT/95 port is in alpha, thanks to -@comment @email{jhar@@tardis.ed.ac.uk, Jonathan Harris}. -@comment -@comment Although some features are still unimplemented, XEmacs 21.0 will support -@comment MS-Windows. -@comment -@comment The NT development is now coordinated by a mailing list at -@comment @email{xemacs-nt@@xemacs.org}. -@comment -@comment If you are willing to contribute or want to follow the progress, mail to -@comment @iftex -@comment @* -@comment @end iftex -@comment @email{xemacs-nt-request@@xemacs.org} to subscribe. -@comment -@comment Furthermore, Altrasoft is seeking corporate and government sponsors to -@comment help fund a fully native port of XEmacs to Windows 95 and NT using -@comment full-time, senior-level staff working under a professionally managed -@comment project structure. See @uref{http://www.altrasoft.com/, the Altrasoft -@comment web site} for more details -@comment or contact Altrasoft directly at 1-888-ALTSOFT. -@comment -@comment -@comment The closest existing port is @dfn{Win-Emacs}, which is based on Lucid -@comment Emacs 19.6. Available from @uref{http://www.pearlsoft.com/}. -@comment -@comment There's a port of GNU Emacs (not XEmacs) at -@comment @example -@comment @uref{http://www.cs.washington.edu/homes/voelker/ntemacs.html}. -@comment @end example - @node Q1.0.11, Q1.0.12, Q1.0.10, Introduction @unnumberedsubsec Q1.0.11: Is there a port of XEmacs to the Macintosh? @c changed @@ -786,7 +755,7 @@ always hope :) @unnumberedsubsec Q1.2.1: Who wrote XEmacs? XEmacs is the result of the time and effort of many people. The -developers responsible for the 19.16/20.x releases are: +developers responsible for recent releases are: @itemize @bullet @item @email{martin@@xemacs.org, Martin Buchholz} @@ -795,10 +764,12 @@ developers responsible for the 19.16/20.x releases are: @end html -@item @email{steve@@xemacs.org, Steve Baur} +@item @email{turnbull@@sk.tsukuba.ac.jp, Steven Turnbull} + +@item @email{ben@@xemacs.org, Ben Wing} @html -
Portrait of Steve Baur
+
Portrait of Ben Wing
@end html @@ -810,36 +781,36 @@ developers responsible for the 19.16/20.x releases are: @end itemize -The developers responsible for the 19.14 release are: +The developers responsible for older releases were: @itemize @bullet -@item @email{cthomp@@xemacs.org, Chuck Thompson} +@item @email{steve@@xemacs.org, Steve Baur} + @html -
Portrait of Chuck Thompson
+
Portrait of Steve Baur
@end html -Chuck was Mr. XEmacs from 19.11 through 19.14, and is responsible -for XEmacs becoming a widely distributed program over the Internet. - -@item @email{ben@@xemacs.org, Ben Wing} +@item @email{cthomp@@xemacs.org, Chuck Thompson} @html -
Portrait of Ben Wing
+
Portrait of Chuck Thompson
@end html -@end itemize - - -@itemize @bullet @item @email{jwz@@jwz.org, Jamie Zawinski} @html
Portrait of Jamie Zawinski
@end html -Jamie Zawinski was Mr. Lucid Emacs from 19.0 through 19.10, the last -release actually named Lucid Emacs. Richard Mlynarik was crucial to -most of those releases. - @item @email{mly@@adoc.xerox.com, Richard Mlynarik} + +Steve Baur was the primary maintainer for 19.15 through 21.0. + +Chuck Thompson and Ben Wing were the maintainers for 19.11 through 19.14 +and heavy code contributors for 19.8 through 19.10. + +Jamie Zawinski was the maintainer for 19.0 through 19.10 (the entire +history of Lucid Emacs). Richard Mlynarik was a heavy code contributor +to 19.6 through 19.8. + @end itemize Along with many other contributors, partially enumerated in the @@ -1089,24 +1060,40 @@ XEmacs) is @uref{http://sunsite.oit.unc.edu/sergei/Software/Software.html} @node Q1.4.1, Q1.4.2, Q1.3.7, Introduction @unnumberedsec 1.4: Getting Started, Backing up & Recovery -@unnumberedsubsec Q1.4.1: What is a @file{.emacs} and is there a sample one? - -The @file{.emacs} file is used to customize XEmacs to your tastes. No -two are alike, nor are they expected to be alike, but that's the point. -The XEmacs distribution contains an excellent starter example in the etc -directory called @file{sample.emacs}. Copy this file from there to your -home directory and rename it @file{.emacs}. Then edit it to suit. - -Starting with 19.14, you may bring the @file{sample.emacs} into an -XEmacs buffer by selecting @samp{Help->Sample .emacs} from the menubar. -To determine the location of the @file{etc} directory type the command +@unnumberedsubsec Q1.4.1: What is an @file{init.el} or @file{.emacs} and is there a sample one? + +The @file{init.el} or @file{.emacs} file is used to customize XEmacs to +your tastes. Starting in 21.4, the preferred location for the init file +is @file{~/.xemacs/init.el}; in previous versions, it was +@file{~/.emacs}. 21.4 still accepts the old location, but the first +time you run it, it will ask to migrate your file to the new location. +If you answer yes, the file will be moved, and a "compatibility" +@file{.emacs} file will be placed in the old location so that you can +still run older versions of XEmacs, and versions of GNU Emacs, which +expect the old location. The @file{.emacs} file present is just a stub +that loads the real file in @file{~/.xemacs/init.el}. + +No two init files are alike, nor are they expected to be alike, but +that's the point. The XEmacs distribution contains an excellent starter +example in the @file{etc/} directory called @file{sample.init.el} +(starting in 21.4) or @file{sample.emacs} in older versions. Copy this +file from there to @file{~/.xemacs/init.el} (starting in 21.4) or +@file{~/.emacs} in older versions, where @samp{~} means your home +directory, of course. Then edit it to suit. + +You may bring the @file{sample.init.el} or @file{sample.emacs} file into +an XEmacs buffer from the menubar. (The menu entry for it is always +under the @samp{Help} menu, but its location under that has changed in +various versions. Recently, look under the @samp{Samples} submenu.) To +determine the location of the @file{etc/} directory type the command @kbd{C-h v data-directory @key{RET}}. @node Q1.4.2, Q1.4.3, Q1.4.1, Introduction -@unnumberedsubsec Q1.4.2: Can I use the same @file{.emacs} with the other Emacs? +@unnumberedsubsec Q1.4.2: Can I use the same @file{init.el}/@file{.emacs} with the other Emacs? -Yes. The sample @file{.emacs} included in the XEmacs distribution will -show you how to handle different versions and flavors of Emacs. +Yes. The sample @file{init.el}/@file{.emacs} included in the XEmacs +distribution will show you how to handle different versions and flavors +of Emacs. @node Q1.4.3, Q1.4.4, Q1.4.2, Introduction @unnumberedsubsec Q1.4.3: Any good tutorials around? @@ -1543,7 +1530,7 @@ written on disk using a special unexec() function. This function is obviously heavily system dependent. And on some systems, it leads to an executable which, although valid, cannot be stripped without damage. If memory serves, this is especially the case for AIX binaries. On other -architecture it might work OK. +architectures it might work OK. The Right Way to strip the emacs binary is to strip temacs prior to dumping xemacs. This will always work, although you can do that only if @@ -1628,8 +1615,8 @@ to edit those files, you will be informed that a more recent auto-save file exists. You can use @kbd{M-x recover-file} to retrieve the auto-saved version of the file. -Starting with 19.14, you may use the command @kbd{M-x recover-session} -after a crash to pick up where you left off. +You can use the command @kbd{M-x recover-session} after a crash to pick +up where you left off. Now, XEmacs is not perfect, and there may occasionally be times, or particular sequences of actions, that cause it to crash. If you can @@ -1713,10 +1700,11 @@ Issue the command @kbd{M-x eval-current-buffer}. Reproduce the error. @end enumerate -Depending on the version of XEmacs, you may either select Edit->Show -Messages (19.13 and earlier) or Help->Recent Keystrokes/Messages (19.14 -and later) from the menubar to see the most recent messages. This -command is bound to @kbd{C-h l} by default. +Depending on the version of XEmacs, you may either select View->Show +Message Log (recent versions), Edit->Show Messages (some earlier +versions) or Help->Recent Keystrokes/Messages (other earlier versions) +from the menubar to see the most recent messages. This command is bound +to @kbd{C-h l} by default. @node Q2.1.3, Q2.1.4, Q2.1.2, Installation @unnumberedsubsec Q2.1.3: Translation Table Syntax messages at Startup @@ -1864,8 +1852,8 @@ XEmacs startup, which says @samp{Color Red3} not defined. The OpenWindows 3.0 server is incredibly buggy. Your best bet is to replace it with one from the generic MIT X11 release. You might also -try disabling parts of your @file{.emacs}, like enabling background -pixmaps. +try disabling parts of your @file{init.el}/@file{.emacs}, like those +that enable background pixmaps. @node Q2.1.10, Q2.1.11, Q2.1.9, Installation @unnumberedsubsec Q2.1.10: Warnings from incorrect key modifiers. @@ -2171,9 +2159,8 @@ authors, or to comp.os.linux.development.system). Again, you'll have to use the narrowing-down process described above. @item -If you compiled 19.14 with @samp{--debug} (or by default in later -versions), you will get a Lisp backtrace output when XEmacs crashes, so -you'll have something useful. +You will get a Lisp backtrace output when XEmacs crashes, so you'll have +something useful. @end enumerate @@ -2244,8 +2231,8 @@ under which it is running. The solution is to add: (set-time-zone-rule "MET") @end lisp -to your @file{.emacs} or the @file{site-start.el} file if you can. -Replace @code{MET} with your local timezone. +to your @file{init.el}/@file{.emacs} or the @file{site-start.el} file if +you can. Replace @code{MET} with your local timezone. @node Q2.1.20, Q2.1.21, Q2.1.19, Installation @unnumberedsubsec Q2.1.20: @samp{Symbol's function definition is void: hkey-help-show.} @@ -2347,7 +2334,7 @@ This is part 3 of the XEmacs Frequently Asked Questions list. This section is devoted to Customization and screen settings. @menu -Customization---Emacs Lisp and @file{.emacs}: +Customization---Emacs Lisp and @file{init.el}/@file{.emacs}: * Q3.0.1:: What version of Emacs am I running? * Q3.0.2:: How do I evaluate Elisp expressions? * Q3.0.3:: @code{(setq tab-width 6)} behaves oddly. @@ -2369,7 +2356,7 @@ X Window System & Resources: * Q3.1.8:: @samp{-iconic} doesn't work. Textual Fonts & Colors: -* Q3.2.1:: How can I set color options from @file{.emacs}? +* Q3.2.1:: How can I set color options from @file{init.el}/@file{.emacs}? * Q3.2.2:: How do I set the text, menu and modeline fonts? * Q3.2.3:: How can I set the colors when highlighting a region? * Q3.2.4:: How can I limit color map usage? @@ -2395,7 +2382,7 @@ The Modeline: * Q3.5.5:: Scrolling one line at a time. * Q3.5.6:: How to map @kbd{Help} key alone on Sun type4 keyboard? * Q3.5.7:: How can you type in special characters in XEmacs? -* Q3.5.8:: Why does @code{(global-set-key [delete-forward] 'delete-char)} complain? +* Q3.5.8:: [This question intentionally left blank] * Q3.5.9:: How do I make the Delete key delete forward? * Q3.5.10:: Can I turn on @dfn{sticky} modifier keys? * Q3.5.11:: How do I map the arrow keys? @@ -2426,7 +2413,7 @@ Scrollbars: * Q3.9.1:: How can I disable the scrollbar? * Q3.9.2:: How can one use resources to change scrollbar colors? * Q3.9.3:: Moving the scrollbar can move the point; can I disable this? -* Q3.9.4:: How can I get automatic horizontal scrolling? +* Q3.9.4:: How can I turn off automatic horizontal scrolling in specific modes? Text Selections: * Q3.10.1:: How can I turn off or change highlighted selections? @@ -2437,16 +2424,17 @@ Text Selections: @end menu @node Q3.0.1, Q3.0.2, Customization, Customization -@unnumberedsec 3.0: Customization -- Emacs Lisp and .emacs +@unnumberedsec 3.0: Customization -- Emacs Lisp and @file{init.el}/@file{.emacs} @unnumberedsubsec Q3.0.1: What version of Emacs am I running? -How can @file{.emacs} determine which of the family of Emacsen I am -using? +How can @file{init.el}/@file{.emacs} determine which of the family of +Emacsen I am using? To determine if you are currently running GNU Emacs 18, GNU Emacs 19, XEmacs 19, XEmacs 20, or Epoch, and use appropriate code, check out the -example given in @file{etc/sample.emacs}. There are other nifty things -in there as well! +example given in @file{etc/sample.init.el} (@file{etc/sample.emacs} in +XEmacs versions prior to 21.4). There are other nifty things in there +as well! For all new code, all you really need to do is: @@ -2462,16 +2450,14 @@ with @kbd{C-j} after the expression. How do I do it from another buffer? Press @kbd{M-:} (the default binding of @code{eval-expression}), and -enter the expression to the minibuffer. In XEmacs prior to 19.15 -@code{eval-expression} used to be a disabled command by default. If -this is the case, upgrade your XEmacs. +enter the expression to the minibuffer. @node Q3.0.3, Q3.0.4, Q3.0.2, Customization @unnumberedsubsec Q3.0.3: @code{(setq tab-width 6)} behaves oddly. -If you put @code{(setq tab-width 6)} in your @file{.emacs} file it does -not work! Is there a reason for this? If you do it at the EVAL prompt -it works fine!! How strange. +If you put @code{(setq tab-width 6)} in your +@file{init.el}/@file{.emacs} file it does not work! Is there a reason +for this? If you do it at the EVAL prompt it works fine!! How strange. Use @code{setq-default} instead, since @code{tab-width} is all-buffer-local. @@ -2545,8 +2531,6 @@ buffer. @node Q3.0.7, Q3.0.8, Q3.0.6, Customization @unnumberedsubsec Q3.0.7: Font selections in don't get saved after @code{Save Options}. -For XEmacs 19.14 and previous: - @email{mannj@@ll.mit.edu, John Mann} writes: @quotation @@ -2556,9 +2540,7 @@ are only applied to the @emph{current} frame and do @emph{not} get saved when you save options. @end quotation -For XEmacs 19.15 and later: - -Implement the above as well as set the following in your @file{.emacs} +Also, set the following in your @file{init.el}/@file{.emacs}: @lisp (setq options-save-faces t) @@ -2645,7 +2627,7 @@ in: I'd like the icon to just say @samp{XEmacs}, and not include the name of the current file in it. -Add the following line to your @file{.emacs}: +Add the following line to your @file{init.el}/@file{.emacs}: @lisp (setq frame-icon-title-format "XEmacs") @@ -2657,7 +2639,7 @@ Add the following line to your @file{.emacs}: I'd like to have the window title area display the full directory/name of the current buffer file and not just the name. -Add the following line to your @file{.emacs}: +Add the following line to your @file{init.el}/@file{.emacs}: @lisp (setq frame-title-format "%S: %f") @@ -2741,10 +2723,10 @@ bugs... @node Q3.2.1, Q3.2.2, Q3.1.8, Customization @unnumberedsec 3.2: Textual Fonts & Colors -@unnumberedsubsec Q3.2.1: How can I set color options from @file{.emacs}? +@unnumberedsubsec Q3.2.1: How can I set color options from @file{init.el}/@file{.emacs}? -How can I set the most commonly used color options from my @file{.emacs} -instead of from my @file{.Xdefaults}? +How can I set the most commonly used color options from my +@file{init.el}/@file{.emacs} instead of from my @file{.Xdefaults}? Like this: @@ -2807,7 +2789,7 @@ Emacs.zmacs-region.attributeForeground: firebrick Emacs.zmacs-region.attributeBackground: lightseagreen @end example -or in your @file{.emacs}: +or in your @file{init.el}/@file{.emacs}: @lisp (set-face-background 'zmacs-region "red") @@ -2818,22 +2800,17 @@ or in your @file{.emacs}: @unnumberedsubsec Q3.2.4: How can I limit color map usage? I'm using Netscape (or another color grabber like XEmacs); -is there anyway to limit the number of available colors in the color map? +is there any way to limit the number of available colors in the color map? -XEmacs 19.13 didn't have such a mechanism (unlike netscape, or other -color-hogs). One solution is to start XEmacs prior to netscape, since -this will prevent Netscape from grabbing all colors (but Netscape will -complain). You can use the flags for Netscape, like -mono, -ncols <#> -or -install (for mono, limiting to <#> colors, or for using a private -color map). Since Netscape will take the entire colormap and never -release it, the only reasonable way to run it is with @samp{-install}. +Answer: No, but you can start Netscape before XEmacs, and it will use +the closest available color if the colormap is full. You can also limit +the number of colors Netscape uses, using the flags -mono, -ncols <#> or +-install (for mono, limiting to <#> colors, or for using a private color +map). If you have the money, another solution would be to use a truecolor or direct color video. -Starting with XEmacs 19.14, XEmacs uses the closest available color if -the colormap is full, so it's O.K. now to start Netscape first. - @node Q3.2.5, Q3.2.6, Q3.2.4, Customization @unnumberedsubsec Q3.2.5: My tty supports color, but XEmacs doesn't use them. @@ -2882,15 +2859,15 @@ and so on. You can also do this interactively via @kbd{M-x edit-faces}. (set-specifier has-modeline-p nil) @end lisp -Starting with XEmacs 19.14 the modeline responds to mouse clicks, so if -you haven't liked or used the modeline in the past, you might want to -try the new version out. - +@c Starting with XEmacs 19.14 the modeline responds to mouse clicks, so if +@c you haven't liked or used the modeline in the past, you might want to +@c try the new version out. +@c @node Q3.3.2, Q3.3.3, Q3.3.1, Customization @unnumberedsubsec Q3.3.2: How do you have XEmacs display the line number in the modeline? -Add the following line to your @file{.emacs} file to display the -line number: +Add the following line to your @file{init.el}/@file{.emacs} file to +display the line number: @lisp (line-number-mode 1) @@ -2906,20 +2883,20 @@ Or select from the @code{Options} menu @iftex @* @end iftex -@code{Customize->Emacs->Editing->Basics->Line Number Mode} +@code{Advanced (Customize)->Emacs->Editing->Basics->Line Number Mode} and/or @iftex @* @end iftex -@code{Customize->Emacs->Editing->Basics->Column Number Mode} +@code{Advanced (Customize)->Emacs->Editing->Basics->Column Number Mode} Or type @kbd{M-x customize @key{RET} editing-basics @key{RET}}. @node Q3.3.3, Q3.3.4, Q3.3.2, Customization @unnumberedsubsec Q3.3.3: How do I get XEmacs to put the time of day on the modeline? -Add the following line to your @file{.emacs} file to display the -time: +Add the following line to your @file{init.el}/@file{.emacs} file to +display the time: @lisp (display-time) @@ -2934,28 +2911,28 @@ With AUC TeX, fast typing is hard because the current chapter, section etc. are given in the modeline. How can I turn this off? It's not AUC TeX, it comes from @code{func-menu} in @file{func-menu.el}. -Add this code to your @file{.emacs} to turn it off: - -@lisp -(setq fume-display-in-modeline-p nil) -@end lisp - -Or just add a hook to @code{TeX-mode-hook} to turn it off only for TeX -mode: - -@lisp -(add-hook 'TeX-mode-hook - '(lambda () (setq fume-display-in-modeline-p nil))) -@end lisp +@c Add this code to your @file{init.el}/@file{.emacs} to turn it off: +@c +@c @lisp +@c (setq fume-display-in-modeline-p nil) +@c @end lisp +@c +@c Or just add a hook to @code{TeX-mode-hook} to turn it off only for TeX +@c mode: +@c +@c @lisp +@c (add-hook 'TeX-mode-hook +@c '(lambda () (setq fume-display-in-modeline-p nil))) +@c @end lisp +@c @email{dhughes@@origin-at.co.uk, David Hughes} writes: @quotation -If you have 19.14 or later, try this instead; you'll still get the -function name displayed in the modeline, but it won't attempt to keep -track when you modify the file. To refresh when it gets out of synch, -you simply need click on the @samp{Rescan Buffer} option in the -function-menu. +Try this; you'll still get the function name displayed in the modeline, +but it won't attempt to keep track when you modify the file. To refresh +when it gets out of synch, you simply need click on the @samp{Rescan +Buffer} option in the function-menu. @lisp (setq-default fume-auto-rescan-buffer-p nil) @@ -2974,20 +2951,20 @@ You can use something like the following: @end lisp Then, when editing a Lisp file (i.e. when in Lisp mode), the modeline -colors change from the default set in your @file{.emacs}. The change -will only be made in the buffer you just entered (which contains the -Lisp file you are editing) and will not affect the modeline colors -anywhere else. +colors change from the default set in your @file{init.el}/@file{.emacs}. +The change will only be made in the buffer you just entered (which +contains the Lisp file you are editing) and will not affect the modeline +colors anywhere else. Notes: @itemize @bullet -@item -The hook is the mode name plus @code{-hook}. eg. c-mode-hook, -c++-mode-hook, emacs-lisp-mode-hook (used for your @file{.emacs} or a -@file{xx.el} file), lisp-interaction-mode-hook (the @samp{*scratch*} -buffer), text-mode-hook, etc. +@item The hook is the mode name plus @code{-hook}. eg. c-mode-hook, +c++-mode-hook, emacs-lisp-mode-hook (used for your +@file{init.el}/@file{.emacs} or a @file{xx.el} file), +lisp-interaction-mode-hook (the @samp{*scratch*} buffer), +text-mode-hook, etc. @item Be sure to use @code{add-hook}, not @code{(setq c-mode-hook xxxx)}, @@ -3001,29 +2978,26 @@ eg. @code{(set-face-font 'modeline "*bold-r-normal*140-100-100*" current mode. @end itemize -This works in 19.15 as well, but there are additional modeline faces, -@code{modeline-buffer-id}, @code{modeline-mousable}, and -@code{modeline-mousable-minor-mode}, which you may want to customize. +There are additional modeline faces, @code{modeline-buffer-id}, +@code{modeline-mousable}, and @code{modeline-mousable-minor-mode}, which +you may want to customize. @node Q3.4.1, Q3.4.2, Q3.3.5, Customization @unnumberedsec 3.4: Multiple Device Support @unnumberedsubsec Q3.4.1: How do I open a frame on another screen of my multi-headed display? -The support for this was revamped for 19.14. Use the command -@kbd{M-x make-frame-on-display}. This command is also on the File menu -in the menubar. +Use the command @kbd{M-x make-frame-on-display}. This command is also +on the File menu in the menubar. -XEmacs 19.14 and later also have the command @code{make-frame-on-tty} -which will establish a connection to any tty-like device. Opening the -TTY devices should be left to @code{gnuclient}, though. +The command @code{make-frame-on-tty} also exists, which will establish a +connection to any tty-like device. Opening the TTY devices should be +left to @code{gnuclient}, though. @node Q3.4.2, Q3.5.1, Q3.4.1, Customization @unnumberedsubsec Q3.4.2: Can I really connect to a running XEmacs after calling up over a modem? How? -If you're not running at least XEmacs 19.14, you can't. Otherwise check -out the @code{gnuattach} program supplied with XEmacs. Starting with -XEmacs 20.3, @code{gnuattach} and @code{gnudoit} functionality is -provided by @code{gnuclient}. +Yes. Use @code{gnuclient -nw}. (Prior to 20.3, use the @code{gnuattach} +program supplied with XEmacs instead.) Also @xref{Q5.0.12}. @@ -3071,7 +3045,7 @@ question 3.5.3 (@pxref{Q3.5.3}). @node Q3.5.2, Q3.5.3, Q3.5.1, Customization @unnumberedsubsec Q3.5.2: How can I stop down-arrow from adding empty lines to the bottom of my buffers? -Add the following line to your @file{.emacs} file: +Add the following line to your @file{init.el}/@file{.emacs} file: @lisp (setq next-line-add-newlines nil) @@ -3108,23 +3082,18 @@ can not bind a key to a function that you're also passing arguments to. I cannot manage to globally bind my @kbd{Delete} key to something other than the default. How does one do this? +Answer: The problem is that many modes explicitly bind @kbd{Delete}. To +get around this, try the following: + @lisp (defun foo () (interactive) (message "You hit DELETE")) -(global-set-key 'delete 'foo) +(define-key key-translation-map 'delete 'redirected-delete) +(global-set-key 'redirected-delete 'foo) @end lisp -However, some modes explicitly bind @kbd{Delete}, so you would need to -add a hook that does @code{local-set-key} for them. If what you want to -do is make the Backspace and Delete keys work more PC/Motif-like, then -take a look at the @file{delbs.el} package. - -New in XEmacs 19.14 is a variable called @code{key-translation-map} -which makes it easier to bind @kbd{Delete}. @file{delbs.el} is a -good example of how to do this correctly. - Also @xref{Q3.5.10}. @node Q3.5.5, Q3.5.6, Q3.5.4, Customization @@ -3159,7 +3128,7 @@ keys (i.e. @kbd{C-n} and @kbd{C-p}): Starting with XEmacs-20.3 you can also change this with Customize. Select from the @code{Options} menu -@code{Customize->Emacs->Environment->Windows->Scroll Step...} or type +@code{Advanced (Customize)->Emacs->Environment->Windows->Scroll Step...} or type @kbd{M-x customize @key{RET} windows @key{RET}}. @node Q3.5.6, Q3.5.7, Q3.5.5, Customization @@ -3171,7 +3140,7 @@ The following works in GNU Emacs 19: (global-set-key [help] 'help-command);; Help @end lisp -The following works in XEmacs 19.15 with the addition of shift: +The following works in XEmacs with the addition of shift: @lisp (global-set-key [(shift help)] 'help-command);; Help @@ -3198,9 +3167,8 @@ the null binding @code{OpenWindows.KeyboardCommand.Help:}. One way is to use the package @code{x-compose}. Then you can use sequences like @kbd{Compose " a} to get ä, etc. -Another way is to use the @code{iso-insert} package, provided in XEmacs -19.15 and later. Then you can use sequences like @kbd{C-x 8 " a} to get -ä, etc. +Another way is to use the @code{iso-insert} package. Then you can use +sequences like @kbd{C-x 8 " a} to get ä, etc. @email{glynn@@sensei.co.uk, Glynn Clements} writes: @@ -3243,28 +3211,9 @@ Running @samp{xmodmap -pk} will list all of the defined keysyms. @end quotation @node Q3.5.8, Q3.5.9, Q3.5.7, Customization -@unnumberedsubsec Q3.5.8: Why does @code{(global-set-key [delete-forward] 'delete-char)} complain? - -Why does @code{(define-key global-map [ delete-forward ] 'delete-char)} -complain of not being able to bind an unknown key? - -Try this instead: - -@lisp -(define-key global-map [delete_forward] 'delete-char) -@end lisp +@unnumberedsubsec Q3.5.8: [This question intentionally left blank] -and it will work. - -What you are seeing above is a bug due to code that is trying to check -for GNU Emacs syntax like: - -(define-key global-map [C-M-a] 'delete-char) - -which otherwise would cause no errors but would not result in the -expected behavior. - -This bug has been fixed in 19.14. +Obsolete question, left blank to avoid renumbering. @node Q3.5.9, Q3.5.10, Q3.5.8, Customization @unnumberedsubsec Q3.5.9: How do I make the Delete key delete forward? @@ -3282,7 +3231,7 @@ set things up, and @code{delbs-disable-delete-forward} to revert to Starting with XEmacs-20.3 better solution is to set variable @code{delete-key-deletes-forward} to t. You can also change this with Customize. Select from the @code{Options} menu -@code{Customize->Emacs->Editing->Basics->Delete Key Deletes Forward} or +@code{Advanced (Customize)->Emacs->Editing->Basics->Delete Key Deletes Forward} or type @kbd{M-x customize @key{RET} editing-basics @key{RET}}. Also @xref{Q3.5.4}. @@ -3349,7 +3298,7 @@ For a 2 pixel bar cursor, use: Starting with XEmacs-20.3 you can also change these with Customize. Select from the @code{Options} menu -@code{Customize->Emacs->Environment->Display->Bar Cursor...} or type +@code{Advanced (Customize)->Emacs->Environment->Display->Bar Cursor...} or type @kbd{M-x customize @key{RET} display @key{RET}}. You can use a color to make it stand out better: @@ -3365,16 +3314,15 @@ Emacs*cursorColor: Red (setq bar-cursor nil) @end lisp -Starting with XEmacs-20.3 you can also change this with Customize. +Starting with XEmacs 20.3 you can also change this with Customize. Select from the @code{Options} menu -@code{Customize->Emacs->Environment->Display->Bar Cursor...} or type +@code{Advanced (Customize)->Emacs->Environment->Display->Bar Cursor...} or type @kbd{M-x customize @key{RET} display @key{RET}}. @node Q3.6.3, Q3.7.1, Q3.6.2, Customization @unnumberedsubsec Q3.6.3: Can I make the cursor blink? -If you are running a version of XEmacs older than 19.14, no. Otherwise -you can do the following: +Yes, like this: @lisp (blink-cursor-mode) @@ -3456,7 +3404,7 @@ do I disable this? Examine the function @code{mouse-yank}, by typing @kbd{C-h f mouse-yank @key{RET}}. -To get XEmacs to paste at the text cursor, add this your @file{.emacs}: +To get XEmacs to paste at the text cursor, add this your @file{init.el}/@file{.emacs}: @lisp (setq mouse-yank-at-point t) @@ -3464,7 +3412,7 @@ To get XEmacs to paste at the text cursor, add this your @file{.emacs}: Starting with XEmacs-20.2 you can also change this with Customize. Select from the @code{Options} menu -@code{Customize->Emacs->Editing->Mouse->Yank At Point...} or type +@code{Advanced (Customize)->Emacs->Editing->Mouse->Yank At Point...} or type @kbd{M-x customize @key{RET} mouse @key{RET}}. @node Q3.7.7, Q3.7.8, Q3.7.6, Customization @@ -3487,7 +3435,7 @@ rectangular regions: Starting with XEmacs-20.2 you can also change this with Customize. Select from the @code{Options} menu -@code{Customize->Emacs->Editing->Mouse->Track Rectangle...} or type +@code{Advanced (Customize)->Emacs->Editing->Mouse->Track Rectangle...} or type @kbd{M-x customize @key{RET} mouse @key{RET}}. @@ -3509,15 +3457,15 @@ delay for a second if you let it. @unnumberedsec 3.8: The Menubar and Toolbar @unnumberedsubsec Q3.8.1: How do I get rid of the menu (or menubar)? -If you are running XEmacs 19.13 and earlier, add this command to your -@file{.emacs}. - -@lisp -(set-menubar nil) -@end lisp - -Starting with XEmacs 19.14 the preferred method is: - +@c If you are running XEmacs 19.13 or earlier, add this command to your +@c @file{init.el}/@file{.emacs}. +@c +@c @lisp +@c (set-menubar nil) +@c @end lisp +@c +@c Starting with XEmacs 19.14 the preferred method is: +@c @lisp (set-specifier menubar-visible-p nil) @end lisp @@ -3525,7 +3473,7 @@ Starting with XEmacs 19.14 the preferred method is: @node Q3.8.2, Q3.8.3, Q3.8.1, Customization @unnumberedsubsec Q3.8.2: Can I customize the basic menubar? -For an extensive menubar, add this line to your @file{.emacs}: +For an extensive menubar, add this line to your @file{init.el}/@file{.emacs}: @lisp (load "big-menubar") @@ -3539,7 +3487,7 @@ directory. @node Q3.8.3, Q3.8.4, Q3.8.2, Customization @unnumberedsubsec Q3.8.3: How do I control how many buffers are listed in the menu @code{Buffers List}? -Add the following to your @file{.emacs} (suit to fit): +Add the following to your @file{init.el}/@file{.emacs} (suit to fit): @lisp (setq buffers-menu-max-size 20) @@ -3549,7 +3497,7 @@ For no limit, use an argument of @samp{nil}. Starting with XEmacs-20.3 you can also change this with Customize. Select from the @code{Options} menu -@code{Customize->Emacs->Environment->Menu->Buffers Menu->Max Size...} or +@code{Advanced (Customize)->Emacs->Environment->Menu->Buffers Menu->Max Size...} or type @kbd{M-x customize @key{RET} buffers-menu @key{RET}}. @node Q3.8.4, Q3.8.5, Q3.8.3, Customization @@ -3630,12 +3578,12 @@ turn the scrollbars off only in a single buffer: @lisp (set-specifier scrollbar-width 0 (current-buffer)) @end lisp - -In XEmacs versions prior to 19.14, you had to use the hairier construct: - -@lisp -(set-specifier scrollbar-width (cons (selected-frame) 0)) -@end lisp +@c +@c In XEmacs versions prior to 19.14, you had to use the hairier construct: +@c +@c @lisp +@c (set-specifier scrollbar-width (cons (selected-frame) 0)) +@c @end lisp @node Q3.9.2, Q3.9.3, Q3.9.1, Customization @unnumberedsubsec Q3.9.2: How can one use resources to change scrollbar colors? @@ -3671,17 +3619,9 @@ hand corner. This cannot be changed. @node Q3.9.4, Q3.10.1, Q3.9.3, Customization -@unnumberedsubsec Q3.9.4: How can I get automatic horizontal scrolling? +@unnumberedsubsec Q3.9.4: How can I turn off automatic horizontal scrolling in specific modes? -By the same token, how can I turn it off in specific modes? - -To do this, add to your @file{.emacs} file: - -@lisp -(require 'auto-show) -@end lisp - -Then do @code{(setq truncate-lines t)} in the mode-hooks for any modes +Do @code{(setq truncate-lines t)} in the mode-hooks for any modes in which you want lines truncated. More precisely: If @code{truncate-lines} is nil, horizontal scrollbars @@ -3696,8 +3636,6 @@ do then horizontal scrollbars will not appear in truncated buffers unless the package specifically asked for them. -Automatic horizontal scrolling is now standard, starting with 19.14. - @node Q3.10.1, Q3.10.2, Q3.9.4, Customization @unnumberedsec 3.10: Text Selections @unnumberedsubsec Q3.10.1: How can I turn off or change highlighted selections? @@ -3705,14 +3643,14 @@ Automatic horizontal scrolling is now standard, starting with 19.14. The @code{zmacs} mode allows for what some might call gratuitous highlighting for selected regions (either by setting mark or by using the mouse). This is the default behavior. To turn off, add the -following line to your @file{.emacs} file: +following line to your @file{init.el}/@file{.emacs} file: @lisp (setq zmacs-regions nil) @end lisp Starting with XEmacs-20.2 you can also change this with Customize. Select -from the @code{Options} menu @code{Customize->Emacs->Editing->Basics->Zmacs +from the @code{Options} menu @code{Advanced (Customize)->Emacs->Editing->Basics->Zmacs Regions} or type @kbd{M-x customize @key{RET} editing-basics @key{RET}}. To change the face for selection, look at @code{Options->Customize} on @@ -3729,7 +3667,7 @@ is what happens when you select a region (with the mouse or keyboard) and you press a key to replace the selected region by the key you typed. Usually backspace kills the selected region. -To get this behavior, add the following lines to your @file{.emacs}: +To get this behavior, add the following lines to your @file{init.el}/@file{.emacs}: @lisp (cond @@ -3749,7 +3687,7 @@ more portable. I do not like my text highlighted while I am doing isearch as I am not able to see what's underneath. How do I turn it off? -Put the following in your @file{.emacs}: +Put the following in your @file{init.el}/@file{.emacs}: @lisp (setq isearch-highlight nil) @@ -4084,8 +4022,8 @@ control VM's behavior. Enter vm-vars, @code{forward-search} for toolbar, find the variables that control the toolbar placement, appearance, existence, copy to your -@file{.emacs} or @file{.vm} and modify according to the detailed -instructions. +@file{init.el}/@file{.emacs} or @file{.vm} and modify according to the +detailed instructions. The above also applies to all the various features of VM: search for some keywords, maybe the first you conjure isn't appropriate, find the @@ -4684,14 +4622,14 @@ Major & Minor Modes: * Q5.0.1:: How can I do source code highlighting using font-lock? * Q5.0.2:: I do not like cc-mode. How do I use the old c-mode? * Q5.0.3:: How do I get @samp{More} Syntax Highlighting on by default? -* Q5.0.4:: How can I enable auto-indent? +* Q5.0.4:: How can I enable auto-indent and/or Filladapt? * Q5.0.5:: How can I get XEmacs to come up in text/auto-fill mode by default? * Q5.0.6:: How do I start up a second shell buffer? * Q5.0.7:: Telnet from shell filters too much. * Q5.0.8:: Why does edt emulation not work? * Q5.0.9:: How can I emulate VI and use it as my default mode? * Q5.0.10:: [This question intentionally left blank] -* Q5.0.11:: How do I turn on filladapt for all buffers? +* Q5.0.11:: [This question intentionally left blank] * Q5.0.12:: How do I disable gnuserv from opening a new frame? * Q5.0.13:: How do I start gnuserv so that each subsequent XEmacs is a client? * Q5.0.14:: Strange things are happening in Shell Mode. @@ -4723,7 +4661,7 @@ Sound: Miscellaneous: * Q5.3.1:: How do you make XEmacs indent CL if-clauses correctly? -* Q5.3.2:: Fontifying hangs when editing a postscript file. +* Q5.3.2:: [This question intentionally left blank] * Q5.3.3:: How can I print WYSIWYG a font-locked buffer? * Q5.3.4:: Getting @kbd{M-x lpr} to work with postscript printer. * Q5.3.5:: How do I specify the paths that XEmacs uses for finding files? @@ -4741,16 +4679,20 @@ Miscellaneous: @unnumberedsubsec Q5.0.1: How can I do source code highlighting using font-lock? For most modes, font-lock is already set up and just needs to be turned -on. This can be done by @kbd{M-x font-lock-mode}, or by having XEmacs -automatically start it by adding lines like: +on. This can be done by adding the line: @lisp -(add-hook 'emacs-lisp-mode-hook 'turn-on-font-lock) -(add-hook 'dired-mode-hook 'turn-on-font-lock) +(require 'font-lock) @end lisp -to your @file{.emacs}. See the file @file{etc/sample.emacs} for more -examples. +to your @file{init.el}/@file{.emacs}. (You can turn it on for the +current buffer and session only by @kbd{M-x font-lock-mode}.) See the +file @file{etc/sample.init.el} (@file{etc/sample.emacs} in XEmacs +versions prior to 21.4) for more information. + +@c the old way: +@c (add-hook 'emacs-lisp-mode-hook 'turn-on-font-lock) +@c (add-hook 'dired-mode-hook 'turn-on-font-lock) See also @code{Syntax Highlighting} from the @code{Options} menu. Remember to save options. @@ -4763,7 +4705,7 @@ much more powerful than the old c-mode. If you're having trouble getting your old offsets to work, try using @code{c-set-offset} instead. You might also consider using the package @code{cc-compat}. -But, if you still insist, add the following lines to your @file{.emacs}: +But, if you still insist, add the following lines to your @file{init.el}/@file{.emacs}: @lisp (fmakunbound 'c-mode) @@ -4781,47 +4723,56 @@ c++-mode. @node Q5.0.3, Q5.0.4, Q5.0.2, Miscellaneous @unnumberedsubsec Q5.0.3: How do I get @samp{More} Syntax Highlighting on by default? -Use the following code in your @file{.emacs}: +Use the following code in your @file{init.el}/@file{.emacs}: @lisp (setq-default font-lock-maximum-decoration t) @end lisp -In versions of XEmacs prior to 19.14, you had to use a kludgy solution -like this: - -@lisp -(setq c-font-lock-keywords c-font-lock-keywords-2 - c++-font-lock-keywords c++-font-lock-keywords-2 - lisp-font-lock-keywords lisp-font-lock-keywords-2) -@end lisp - -It will work for C, C++ and Lisp. - +@c In versions of XEmacs prior to 19.14, you had to use a kludgy solution +@c like this: +@c +@c @lisp +@c (setq c-font-lock-keywords c-font-lock-keywords-2 +@c c++-font-lock-keywords c++-font-lock-keywords-2 +@c lisp-font-lock-keywords lisp-font-lock-keywords-2) +@c @end lisp +@c +@c It will work for C, C++ and Lisp. +@c See also @code{Syntax Highlighting} from the @code{Options} menu. Remember to save options. @node Q5.0.4, Q5.0.5, Q5.0.3, Miscellaneous -@unnumberedsubsec Q5.0.4: How can I enable auto-indent? +@unnumberedsubsec Q5.0.4: How can I enable auto-indent and/or Filladapt? -Put the following line in your @file{.emacs}: +Put the following line in your @file{init.el}/@file{.emacs}: @lisp (setq indent-line-function 'indent-relative-maybe) @end lisp If you want to get fancy, try the @code{filladapt} package available -standard with XEmacs. Put this into your @file{.emacs}: +standard with XEmacs. Put this into your @file{init.el}/@file{.emacs}: @lisp (require 'filladapt) -(add-hook 'text-mode-hook 'turn-on-filladapt-mode) -;;; and others ... +(setq-default filladapt-mode t) +(add-hook 'c-mode-hook 'turn-off-filladapt-mode) +@end lisp + +This will enable Filladapt for all modes except C mode, where it doesn't +work well. To turn Filladapt on only in particular major modes, remove +the @code{(setq-default ...)} line and use +@code{turn-on-filladapt-mode}, like this: + +@lisp +(add-hook 'text-mode-hook 'turn-on-filladapt-mode) @end lisp You can customize filling and adaptive filling with Customize. Select from the @code{Options} menu -@code{Customize->Emacs->->Editing->Fill->Fill...} +@code{Advanced (Customize)->Emacs->Editing->Fill->Fill...} or type @kbd{M-x customize @key{RET} fill @key{RET}}. Note that well-behaving text-lookalike modes will run @@ -4833,7 +4784,7 @@ Please note that the @code{fa-extras} package is no longer useful. @node Q5.0.5, Q5.0.6, Q5.0.4, Miscellaneous @unnumberedsubsec Q5.0.5: How can I get XEmacs to come up in text/auto-fill mode by default? -Try the following lisp in your @file{.emacs}: +Try the following lisp in your @file{init.el}/@file{.emacs}: @lisp (setq default-major-mode 'text-mode) @@ -4911,7 +4862,7 @@ if you have @code{ssh} installed. We don't know, but you can use tpu-edt emulation instead, which works fine and is a little fancier than the standard edt emulation. To do -this, add the following line to your @file{.emacs}: +this, add the following line to your @file{init.el}/@file{.emacs}: @lisp (tpu-edt) @@ -4928,7 +4879,7 @@ add this as well: @unnumberedsubsec Q5.0.9: How can I emulate VI and use it as my default mode? Our recommended VI emulator is viper. To make viper-mode the default, -add this to your @file{.emacs}: +add this to your @file{init.el}/@file{.emacs}: @lisp (viper-mode) @@ -4937,7 +4888,7 @@ add this to your @file{.emacs}: @email{kifer@@CS.SunySB.EDU, Michael Kifer} writes: @quotation -This should be added as close to the top of @file{.emacs} as you can get +This should be added as close to the top of @file{init.el}/@file{.emacs} as you can get it, otherwise some minor modes may not get viper-ized. @end quotation @@ -4947,22 +4898,9 @@ it, otherwise some minor modes may not get viper-ized. Obsolete question, left blank to avoid renumbering @node Q5.0.11, Q5.0.12, Q5.0.10, Miscellaneous -@unnumberedsubsec Q5.0.11: How do I turn on filladapt for all buffers? - -Filladapt is a minor mode and minor modes are traditionally off by -default. The following added to your @file{.emacs} will turn it on for -all buffers: - -@lisp -(setq-default filladapt-mode t) -@end lisp +@unnumberedsubsec Q5.0.11: [This question intentionally left blank] -Use @code{turn-on-filladapt-mode} to turn Filladapt on in particular -major modes, like this: - -@lisp -(add-hook 'text-mode-hook 'turn-on-filladapt-mode) -@end lisp +Obsolete question, left blank to avoid renumbering @node Q5.0.12, Q5.0.13, Q5.0.11, Miscellaneous @unnumberedsubsec Q5.0.12: How do I disable gnuserv from opening a new frame? @@ -4975,23 +4913,22 @@ created. For example, you could put (setq gnuserv-frame (selected-frame)) @end lisp -early on in your @file{.emacs}, to ensure that the first frame created +early on in your @file{init.el}/@file{.emacs}, to ensure that the first frame created is the one used for your gnuserv buffers. -Starting in 19.15, there is an option to set the gnuserv target to -the current frame. See -@code{Options->"Other Window" Location->Make current frame gnuserv target} +There is an option to set the gnuserv target to the current frame. See +@code{Options->Display->"Other Window" Location->Make Current Frame Gnuserv Target} Starting with XEmacs-20.3 you can also change this with Customize. Select from the @code{Options} menu -@code{Customize->Emacs->Environment->Gnuserv->Gnuserv Frame...} or type -@kbd{M-x customize @key{RET} gnuserv @key{RET}}. +@code{Advanced (Customize)->Emacs->Environment->Gnuserv->Gnuserv Frame...} +or type @kbd{M-x customize @key{RET} gnuserv @key{RET}}. @node Q5.0.13, Q5.0.14, Q5.0.12, Miscellaneous @unnumberedsubsec Q5.0.13: How do I start gnuserv so that each subsequent XEmacs is a client? -Put the following in your @file{.emacs} file to start the server: +Put the following in your @file{init.el}/@file{.emacs} file to start the server: @lisp (gnuserv-start) @@ -5046,7 +4983,7 @@ This can be had from @uref{http://www.python.org/emacs/}. @code{auto-show-mode} controls whether or not a horizontal scrollbar magically appears when a line is too long to be displayed. This is enabled by default. To turn it off, put the following in your -@file{.emacs}: +@file{init.el}/@file{.emacs}: @lisp (setq auto-show-mode nil) @@ -5056,7 +4993,8 @@ enabled by default. To turn it off, put the following in your @node Q5.0.17, Q5.0.18, Q5.0.16, Miscellaneous @unnumberedsubsec Q5.0.17: How can I get two instances of info? -You can't. The @code{info} package does not provide for multiple info buffers. +Before 21.4, you can't. The @code{info} package does not provide for +multiple info buffers. In 21.4, this should be fixed. #### how? @node Q5.0.18, Q5.0.19, Q5.0.17, Miscellaneous @unnumberedsubsec Q5.0.18: [This question intentionally left blank] @@ -5432,7 +5370,7 @@ Instead of @samp{FILE}, use the image file name @iftex @* @end iftex -@file{/usr/local/lib/xemacs-20.2/etc/recycle.xpm}). +@file{/usr/local/lib/xemacs-21.4/etc/recycle.xpm}). You can turn this to a function (that optionally prompts you for a file name), and inserts the glyph at @code{(point)} instead of @@ -5474,18 +5412,18 @@ is: an easy way to find out where it spends time? @c New -z@email{hniksic@@xemacs.org, Hrvoje Niksic} writes: +@email{hniksic@@xemacs.org, Hrvoje Niksic} writes: @quotation -Under XEmacs 20.4 and later you can use @kbd{M-x profile-key-sequence}, press a key -(say @key{RET} in the Gnus Group buffer), and get the results using -@kbd{M-x profile-results}. It should give you an idea of where the time -is being spent. +Under XEmacs 20.4 and later you can use @kbd{M-x profile-key-sequence}, +press a key (say @key{RET} in the Gnus Group buffer), and get the +results using @kbd{M-x profile-results}. It should give you an idea of +where the time is being spent. @end quotation @node Q5.2.1, Q5.2.2, Q5.1.11, Miscellaneous @unnumberedsubsec Q5.2.1: How do I turn off the sound? -Add the following line to your @file{.emacs}: +Add the following line to your @file{init.el}/@file{.emacs}: @lisp (setq bell-volume 0) @@ -5495,9 +5433,9 @@ Add the following line to your @file{.emacs}: That will make your XEmacs totally silent---even the default ding sound (TTY beep on TTY-s) will be gone. -Starting with XEmacs-20.2 you can also change these with Customize. +Starting with XEmacs 20.2 you can also change these with Customize. Select from the @code{Options} menu -@code{Customize->Emacs->Environment->Sound->Sound...} or type +@code{Advanced (Customize)->Emacs->Environment->Sound->Sound...} or type @kbd{M-x customize @key{RET} sound @key{RET}}. @@ -5505,15 +5443,15 @@ Select from the @code{Options} menu @unnumberedsubsec Q5.2.2: How do I get funky sounds instead of a boring beep? Make sure your XEmacs was compiled with sound support, and then put this -in your @file{.emacs}: +in your @file{init.el}/@file{.emacs}: @lisp (load-default-sounds) @end lisp -The sound support in XEmacs 19.14 was greatly improved over previous -versions. - +@c The sound support in XEmacs 19.14 was greatly improved over previous +@c versions. +@c @node Q5.2.3, Q5.2.4, Q5.2.2, Miscellaneous @unnumberedsubsec Q5.2.3: What's NAS, how do I get it? @@ -5546,7 +5484,7 @@ I'd like XEmacs to indent all the clauses of a Common Lisp @code{if} the same amount instead of indenting the 3rd clause differently from the first two. -One way is to add, to @file{.emacs}: +One way is to add, to @file{init.el}/@file{.emacs}: @lisp (put 'if 'lisp-indent-function nil) @@ -5576,24 +5514,9 @@ than previous versions. This may prove useful if you need to customize any indent-functions. @node Q5.3.2, Q5.3.3, Q5.3.1, Miscellaneous -@unnumberedsubsec Q5.3.2: Fontifying hang when editing a postscript file. - -When I try to edit a postscript file it gets stuck saying: -@samp{fontifying 'filename' (regexps....)} and it just sits there. If I -press @kbd{C-c} in the window where XEmacs was started, it suddenly -becomes alive again. - -This was caused by a bug in the Postscript font-lock regular -expressions. It was fixed in 19.13. For earlier versions of XEmacs, -have a look at your @file{.emacs} file. You will probably have a line -like: +@unnumberedsubsec Q5.3.2: [This question intentionally left blank] -@lisp -(add-hook 'postscript-mode-hook 'turn-on-font-lock) -@end lisp - -Take it out, restart XEmacs, and it won't try to fontify your postscript -files anymore. +Obsolete question, left blank to avoid renumbering. @node Q5.3.3, Q5.3.4, Q5.3.2, Miscellaneous @unnumberedsubsec Q5.3.3: How can I print WYSIWYG a font-locked buffer? @@ -5612,7 +5535,7 @@ My printer is a Postscript printer and @code{lpr} only works for Postscript files, so how do I get @kbd{M-x lpr-region} and @kbd{M-x lpr-buffer} to work? -Put something like this in your @file{.emacs}: +Put something like this in your @file{init.el}/@file{.emacs}: @lisp (setq lpr-command "a2ps") @@ -5922,7 +5845,7 @@ General Info * Q6.0.1:: What is the status of the XEmacs port to Windows? * Q6.0.2:: What flavors of MS Windows are supported? * Q6.0.3:: Where are the XEmacs on MS Windows binaries? -* Q6.0.4:: Does XEmacs on MS Windows require an X server to run? +* Q6.0.4:: Can I build XEmacs on MS Windows with support for X or Cygwin? Building XEmacs on MS Windows * Q6.1.1:: I decided to run with X. Where do I get an X server? @@ -5935,7 +5858,7 @@ Building XEmacs on MS Windows Customization and User Interface * Q6.2.1:: How will the port cope with differences in the Windows user interface? * Q6.2.2:: How do I change fonts in XEmacs on MS Windows? -* Q6.2.3:: Where do I put my @file{.emacs} file? +* Q6.2.3:: Where do I put my @file{init.el}/@file{.emacs} file? Miscellaneous * Q6.3.1:: Will XEmacs rename all the win32-* symbols to w32-*? @@ -5955,70 +5878,63 @@ Is XEmacs really getting ported to MS Windows? What is the status of the port? Yes, a group of volunteers actively works on making XEmacs code base cleanly compile and run on MS Windows operating systems. The mailing -list at @email{xemacs-nt@@xemacs.org} is dedicated to that effort (please use -the -request address to subscribe). +list at @email{xemacs-nt@@xemacs.org} is dedicated to that effort +(please use the -request address to subscribe). -At this time, XEmacs on MS Windows is usable, but lacks some of the -features of XEmacs on UNIX and UNIX-like systems. Notably, -internationalization does not work. +At this time, XEmacs on MS Windows is stable and full-featured. +However, the internationalization (Mule) support does not work -- +although this is being actively worked on. @node Q6.0.2, Q6.0.3, Q6.0.1, MS Windows @unnumberedsubsec Q6.0.2: What flavors of MS Windows are supported? The list name implies NT only. -The list name is misleading, as XEmacs will support both Windows 95, -Windows 98 and Windows NT. The MS Windows-specific code is based on -Microsoft Win32 API, and will not work on MS Windows 3.x or on MS-DOS. +The list name is misleading, as XEmacs will support Windows 95, Windows +98, Windows NT, Windows 2000, Windows ME, Windows XP, and all newer +versions of Windows. The MS Windows-specific code is based on Microsoft +Win32 API, and will not work on MS Windows 3.x or on MS-DOS. @node Q6.0.3, Q6.0.4, Q6.0.2, MS Windows -@unnumberedsubsec Q6.0.3: Are binary kits available? +@unnumberedsubsec Q6.0.3: Are binaries available? -Binary kits are available at -@uref{ftp://ftp.xemacs.org/pub/xemacs/binary-kits/win32/} for the -"plain" MS Windows version. +Binaries are available at +@uref{ftp://ftp.xemacs.org/pub/xemacs/binaries/win32/} for the native MS +Windows version. @node Q6.0.4, Q6.1.1, Q6.0.3, MS Windows -@unnumberedsubsec Q6.0.4: Does XEmacs on MS Windows require an X server to run? +@unnumberedsubsec Q6.0.4: Can I build XEmacs on MS Windows with support for X or Cygwin? -Short answer: No. +Yes. XEmacs can be built in several ways in the MS Windows environment. -Long answer: XEmacs can be built in several ways in the MS Windows -environment, some of them requiring an X server and some not. +The standard way is what we call the "native" port. It uses the Win32 +API and has no connection with X whatsoever -- it does not require X +libraries to build, nor does it require an X server to run. The native +port is the most reliable version and provides the best graphical +support. Almost all development is geared towards this version, and +there is little reason not to use it. -One is what we call the "X" port---it requires X libraries to build -and an X server to run. Internally it uses the Xt event loop and -makes use of X toolkits. Its look is quite un-Windowsy, but it works -reliably and supports all of the graphical features of Unix XEmacs. - -The other is what we call the "native" port. It uses the Win32 API -and does not require X libraries to build, nor does it require an X to -run. In fact, it has no connection with X whatsoever. At this time, -the native port obsoletes the X port, providing almost all of its -features, including support for menus, scrollbars, toolbars, embedded -images and background pixmaps, frame pointers, etc. Most of the -future work will be based on the native port. +You can also build XEmacs "X" port---it requires X libraries to build +and an X server to run. Internally it uses the Xt event loop and makes +use of X toolkits. Its look is quite un-Windowsy, and it is not well +maintained, but it is being kept around for the time being because it +has a long history. There is also a third special case, the Cygwin port. It takes advantage of Cygnus emulation library under Win32, which enables it to reuse much of the Unix XEmacs code base, such as processes and network support, or internal select() mechanisms. -Cygwin port supports all display types---TTY, X & MS gui, and can be -built with support for all three. If you build with ms gui support +Cygwin port supports all display types---TTY, X & MS GUI, and can be +built with support for all three. If you build with MS GUI support then the Cygwin version uses the majority of the msw code, which is mostly related to display. If you want to build with X support you -need X libraries. If you want to build with tty support you need -ncurses. MS gui requires no additional libraries. - -Some of the advantages of the Cygwin version are that it: - -@itemize @bullet +need X libraries. If you want to build with TTY support you need +ncurses. MS GUI requires no additional libraries. -@item integrates well with Cygwin environment for existing Cygwin users; -@item uses configure so building with different features is very easy; -@item has process support in X & tty. - -@end itemize +The advantages of the Cygwin version are that it integrates well with +Cygwin environment for existing Cygwin users; uses configure so building +with different features is very easy; and has process support in X & +tty. The disadvantage is that it requires several Unix utilities and the whole Cygwin environment, whereas the native port requires only a @@ -6077,18 +5993,18 @@ Some problems to watch out for: @itemize @bullet @item -make sure HOME is set. This controls where you @file{.emacs} file comes -from; +make sure HOME is set. This controls where you +@file{init.el}/@file{.emacs} file comes from; @item CYGWIN needs to be set to tty for process support work. e.g. CYGWIN=tty; (use CYGWIN32=tty under b19 and older.) @item -picking up some other grep or other unix like tools can kill configure; +picking up some other grep or other UNIX-like tools can kill configure; @item -static heap too small, adjust src/sheap-adjust.h to a more positive +static heap too small, adjust @file{src/sheap-adjust.h} to a more positive number; @item @@ -6189,10 +6105,14 @@ manually. For example: @node Q6.2.3, Q6.3.1, Q6.2.2, MS Windows -@unnumberedsubsec Q6.2.3: Where do I put my @file{.emacs} file? +@unnumberedsubsec Q6.2.3: Where do I put my @file{init.el}/@file{.emacs} file? -If the HOME environment variable is set, @file{.emacs} will be looked for -there. Else the directory defaults to `c:\'. +@file{init.el} is the name of the init file starting with 21.4, and is +located in the subdirectory @file{.xemacs/} of your home directory. In +prior versions, the init file is called @file{.emacs} and is located in +your home directory. Your home directory under Windows is determined by +the HOME environment variable. If this is not set, it defaults to +`C:\'. @node Q6.3.1, Q6.3.2, Q6.2.3, MS Windows @unnumberedsec 6.3: Miscellaneous @@ -6212,9 +6132,12 @@ Thus all the XEmacs variables and functions directly related to Win32 are prefixed `mswindows-'. The user-variables shared with NT Emacs will be provided as compatibility aliases. -Architectural note: We believe that there should be a very small -number of window-systems-specific variables, and will try to provide -generic interfaces whenever possible. +Architectural note: We believe that there should be a very small number +of window-systems-specific variables, and we provide generic interfaces +whenever possible. Thus, most of the equivalents of GNU Emacs `w32-*' +functions and variables (as well as the corresponding `x-*' versions) +are non-window-system-specific in XEmacs, and the issue of `mswindows-*' +vs. `w32-*' does not come up much. @node Q6.3.2, Q6.3.3, Q6.3.1, MS Windows @@ -6320,7 +6243,13 @@ others. @node Q6.3.3, Q6.4.1, Q6.3.2, MS Windows @unnumberedsubsec Q6.3.3: What is the porting team doing at the moment? +(as of March 2001) + The porting team is continuing work on the MS Windows-specific code. +Major projects are the development of Mule (internationalization) +support for Windows and the improvement of the widget support (better +support for dialog boxes, buttons, edit fields, and similar UI +elements). @node Q6.4.1, ,Q6.3.3, MS Windows @unnumberedsec 6.3: Troubleshooting diff --git a/man/xemacs/packages.texi b/man/xemacs/packages.texi index 5aaeeaf..7ac72f4 100644 --- a/man/xemacs/packages.texi +++ b/man/xemacs/packages.texi @@ -19,7 +19,7 @@ local needs with safe removal of unnecessary code. * Package Terminology:: Understanding different kinds of packages. * Installing Packages:: How to install packages. * Building Packages:: Building packages from CVS sources. -* Local.rules File:: This is an important file don't forget to create/edit it. +* Local.rules File:: This is an important file that you must create. * Creating Packages:: The basics. * Available Packages:: A brief directory of packaged LISP. @end menu @@ -102,7 +102,7 @@ the @ref{Available Packages} at the time of the XEmacs release. Packages are also listed on the @code{Options} menu under: @example - Options -> Customize -> Emacs -> Packages + Options->Customize->Emacs->Packages @end example However, don't select any of these menu picks unless you actually want @@ -114,7 +114,7 @@ are installed, using the visual package browser and installer. You can access it via the menus: @example - Options -> Manage Packages -> List & Install + Options->Manage Packages->List & Install @end example Or, you can get to it via the keyboard: @@ -403,7 +403,7 @@ Currently, source packages are only available via anonymous CVS. See @table @code @item GNU cp -@item GNU ginstall +@item GNU install (or a BSD compatible install program). @item GNU make (3.75 or later preferred). @@ -608,7 +608,7 @@ The first few @code{make} variables defined are @code{VERSION}, @code{AUTHOR_VERSION}, @code{MAINTAINER}, @code{PACKAGE}, @code{PKG_TYPE}, @code{REQUIRES}, and @code{CATEGORY}. All but one were described in the description of @file{package-info.in}. The last is an -admistrative grouping. Current categories include @code{comm}, +administrative grouping. Current categories include @code{comm}, @code{games}, @code{libs}, @code{mule}, @code{oa}, @code{os}, @code{prog}, and @code{wp}. @ref{Available Packages}, for a list of categories. diff --git a/netinstall/ChangeLog b/netinstall/ChangeLog index 80895ce..46a14c1 100644 --- a/netinstall/ChangeLog +++ b/netinstall/ChangeLog @@ -1,3 +1,15 @@ +2001-03-21 Martin Buchholz + + * XEmacs 21.2.46 "Urania" is released. + +2001-03-01 Andy Piper + + * desktop.cc (find_xemacs_exe_name): support 21.1 and 21.2 series. + + * iniparse.c: remove. + + * inilex.c: remove + 2001-02-23 Martin Buchholz * XEmacs 21.2.45 "Thelxepeia" is released. @@ -198,6 +210,3 @@ 2000-11-12 Andy Piper * all: port from cygwin setup. - -%%% $Id: ChangeLog,v 1.1.2.17 2001/02/08 07:20:42 martinb Exp $ -$Revision: 1.1.2.17 $ diff --git a/netinstall/Makefile.in.in b/netinstall/Makefile.in.in index 7ea3eb2..6edc13f 100644 --- a/netinstall/Makefile.in.in +++ b/netinstall/Makefile.in.in @@ -40,6 +40,9 @@ INSTALLABLES=setup vpath %.c @srcdir@ vpath %.cc @srcdir@ vpath %.h @srcdir@ +vpath %.l @srcdir@ +vpath %.y @srcdir@ +vpath %.rc @srcdir@ #else VPATH=@srcdir@ #endif @@ -173,10 +176,10 @@ version.c : $(srcdir)/ChangeLog Makefile $(WINDRES) --include-dir $(srcdir) -o $@ $< %.o: %.c - $(CC) $(MINGW_CFLAGS) -c -o $@ ${srcdir}/$< + $(CC) $(MINGW_CFLAGS) -c -o $@ $< %.o: %.cc - $(CXX) $(MINGW_CXXFLAGS) -c -o $@ ${srcdir}/$< + $(CC) $(MINGW_CXXFLAGS) -c -o $@ $< iniparse.c iniparse.h : iniparse.y bison -d -o iniparse.c $(srcdir)/iniparse.y diff --git a/netinstall/desktop.cc b/netinstall/desktop.cc index 10e195a..eb4a718 100644 --- a/netinstall/desktop.cc +++ b/netinstall/desktop.cc @@ -110,7 +110,11 @@ find_xemacs_exe_path () static char* find_xemacs_exe_name () { - if (xemacs_package->type == TY_CYGWIN) + /* Hack to support older versions. */ + if (strncmp (xemacs_package->info[xemacs_package->trust].version, + "21.1", 4) == 0) + return strdup ("runemacs.exe"); + else if (xemacs_package->type == TY_CYGWIN) return backslash (concat ("xemacs-", xemacs_package->info[xemacs_package->trust].version, ".exe", 0)); @@ -420,11 +424,7 @@ do_desktop (HINSTANCE h) if (xemacs_package != 0 && xemacs_package->type != TY_GENERIC) { batname = concat (find_xemacs_exe_path (), "\\", -#if 0 find_xemacs_exe_name (), -#else - "runemacs.exe", -#endif 0); root_desktop = check_desktop ("XEmacs", batname); root_menu = check_startmenu ("XEmacs", batname); diff --git a/netinstall/res.rc b/netinstall/res.rc index a6a523d..030b038 100644 --- a/netinstall/res.rc +++ b/netinstall/res.rc @@ -449,7 +449,7 @@ IDB_RTARROW BITMAP DISCARDABLE "choose-rtarrow.bmp" IDB_CHECK_YES BITMAP DISCARDABLE "check-yes.bmp" IDB_CHECK_NO BITMAP DISCARDABLE "check-no.bmp" IDB_CHECK_NA BITMAP DISCARDABLE "check-na.bmp" -GNU BITMAP DISCARDABLE "gnu.bmp" +GNU BITMAP DISCARDABLE "gnu.bmp" IDB_GNU BITMAP DISCARDABLE "gnu.bmp" ///////////////////////////////////////////////////////////////////////////// @@ -478,7 +478,7 @@ BEGIN IDS_ERR_OPEN_READ "Can't open %s for reading: %s" IDS_ROOT_ABSOLUTE "The install directory must be absolute, with both a drive letter and leading slash, like C:\\Cygwin" IDS_DOWNLOAD_COMPLETE "Download Complete" - IDS_CVSID "\n%%% $Id: res.rc,v 1.1.2.5 2001/02/02 19:47:47 andyp Exp $\n" + IDS_CVSID "\n%%% $Id: res.rc,v 1.1.2.6 2001/03/09 04:13:05 wmperry Exp $\n" IDS_NOLOGFILE "Cannot open log file %s for writing" IDS_UNINSTALL_COMPLETE "Uninstalls complete." IDS_WININET "Unable to find or load the Internet Explorer 5 DLLs" diff --git a/nt/ChangeLog b/nt/ChangeLog index ca87cd7..80b62f8 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog @@ -1,3 +1,21 @@ +2001-03-21 Martin Buchholz + + * XEmacs 21.2.46 "Urania" is released. + +2001-03-06 Ben Wing + + * xemacs.mak (DEPEND): + Correct line that runs perl to do correct quoting regardless of + whether nmake is run from bash. + +2001-03-02 Ben Wing + + * config.h: Sadly, we need to disable another warning (C4116, + unnamed type definition in parentheses: A structure, union, or + enumerated type with no name was defined in a parenthetical + expression. The type definition is meaningless.), due to Martin's + latest definition of ALIGNOF. + 2001-02-23 Martin Buchholz * XEmacs 21.2.45 "Thelxepeia" is released. diff --git a/nt/config.h b/nt/config.h index 8d8dae2..78f8e6c 100644 --- a/nt/config.h +++ b/nt/config.h @@ -610,6 +610,10 @@ on various systems. */ /* 'expression' : signed/unsigned mismatch */ #pragma warning ( disable : 4018 ) +/* unnamed type definition in parentheses + (Martin added a pedantically correct definition of ALIGNOF, which + generates temporary anonymous structures, and MSVC complains) */ +#pragma warning ( disable : 4116 ) #endif /* compiler understands #pragma warning*/ diff --git a/nt/config.inc.samp b/nt/config.inc.samp index 1415865..3268522 100644 --- a/nt/config.inc.samp +++ b/nt/config.inc.samp @@ -18,6 +18,13 @@ HAVE_MS_WINDOWS=1 HAVE_X_WINDOWS=0 X11_DIR= +# GTK support. Do NOT set this to 1; as of xemacs-21.2-b44 +# gtk-xemacs is not supported on MSWindows (mingw or msvc). +# Yes, we know that gtk has been ported to native MSWindows +# but XEmacs is not yet ready to use that port. +HAVE_GTK=0 +GTK_DIR= + ############################################################################ # Set this to enable XPM support (virtually mandatory), and specify diff --git a/nt/xemacs.mak b/nt/xemacs.mak index f081407..e7ddf7a 100644 --- a/nt/xemacs.mak +++ b/nt/xemacs.mak @@ -307,10 +307,23 @@ DEPEND=0 # #### here, it doesn't seem to matter if we double ^'s! # results are the same with all single ^ and all double ^^! # see comment below. -! if [perl -p -e "s/^\x23if defined(.+)/!if defined$$1/; s/^\x23e/!e/;" \ +# #### Yuuuuuuuuuuck!!! Cygwin is too smart for its own good. If we are +# being run from within Cygwin, a Cygwin Perl seems to require twice as +# much backslash quoting. This does not happen, of course, with a non- +# Cygwin Perl, so in that circumstance, you'd be screwed and would have +# to fix this Makefile to not have a special Cygwin case. +! if defined(_) +! if [perl -p -e "s/^\\x23if defined(.+)/!if defined$$1/; s/^\\x23e/!e/;" \ + -e "s/([\\s=^])([\\w\\d\\.\\-^]+\\.[ch^])/$$1$(SRC:\=\\\\)\\\\$$2/g;" \ + -e "s/^(.+)\\.o:(.+)/$(OUTDIR:\=\\\\)\\\\$$1.obj:$$2 $(NT:\=\\\\)\\\\config.inc/;" \ + < $(SRC)\depend > $(OUTDIR)\depend.tmp] +! endif +! else +! if [perl -p -e "s/^\x23if defined(.+)/!if defined$$1/; s/^\x23e/!e/;" \ -e "s/([\s=^])([\w\d\.\-^]+\.[ch^])/$$1$(SRC:\=\\)\\$$2/g;" \ -e "s/^(.+)\.o:(.+)/$(OUTDIR:\=\\)\\$$1.obj:$$2 $(NT:\=\\)\\config.inc/;" \ < $(SRC)\depend > $(OUTDIR)\depend.tmp] +! endif ! endif ! include "$(OUTDIR)\depend.tmp" !else diff --git a/src/ChangeLog b/src/ChangeLog index 1a6d69c..3e99bd1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,217 @@ +2001-03-21 Martin Buchholz + + * XEmacs 21.2.46 "Urania" is released. + +2001-03-20 Dan Holmsand + + * realpath.c (xrealpath): Make file-truename work with symlinks to + /cygdrive paths on cygwin. Always lowercase drive-letters on + native windows. + (cygwin_readlink): Don't try to find canonical filename unless + file exists. + +2001-03-15 Stephen J. Turnbull + + * ChangeLog: Log GTK merge. + + * dumper.c: + * select-x.c: + * specifier.c: + * symeval.h: + Revert gratuitous whitespace changes from GTK merge. + + * emacs.c: Document end of complex #ifdef @ l. 1495. + + +2001-03-12 Andy Piper + + * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we + have to do likewise. + +2001-03-12 Andy Piper + + * sysdep.c: we only support mingw now. + +2001-03-09 Andy Piper + + * unexcw.c (copy_executable_and_dump_data_section): making approx + overrun a warning only. + +2001-03-10 William M. Perry + + * faces.c (complex_vars_of_faces): Rewrote the font mucking to + satisfy Stephen's identical-after-cpp plea. + +2001-03-02 Ben Wing + + * cmds.c: + * cmds.c (Fforward_char): + * syntax.c: + * window.c: + + Augment documentation of the most common motion commands to make + note of the shifted-motion support. + +2001-03-02 Ben Wing + + * nt.c (mswindows_fstat): + * nt.c (mswindows_stat): + * search.c (boyer_moore): + Fix compile warnings under Windows. + + * sysdep.c (sys_readdir): + Fix buggy filename-conversion code under Mule. + +2001-03-09 William M. Perry + + * Makefile.in.in: + * config.h.in: + * console.c: + * console.h: + * device.c: + * device.h: + * dragdrop.c: + * emacs.c: + * event-stream.c: + * events.c: + * events.h: + * faces.c: + * frame.h: + * general-slots.h: + * glyphs.c: + * gutter.c: + * inline.c: + * lisp.h: + * lrecord.h: + * make-src-depend: + * redisplay-output.c: + * redisplay.c: + * symsinit.h: + * sysfile.h: + * toolbar.c: + * window.c: + The Great GTK Merge. + + * ChangeLog.GTK: + * console-gtk.c: + * console-gtk.h: + * device-gtk.c: + * emacs-marshals.c: + * emacs-widget-accessors.c: + * event-gtk.c: + * frame-gtk.c: + * gccache-gtk.c: + * gccache-gtk.h: + * glade.c: + * glyphs-gtk.c: + * glyphs-gtk.h: + * gtk-glue.c: + * gtk-xemacs.c: + * gtk-xemacs.h: + * gui-gtk.c: + * gui-gtk.h: + * menubar-gtk.c: + * native-gtk-toolbar.c: + * objects-gtk.c: + * objects-gtk.h: + * redisplay-gtk.c: + * scrollbar-gtk.c: + * scrollbar-gtk.h: + * select-gtk.c: + * toolbar-gtk.c: + * ui-byhand.c: + * ui-gtk.c: + * ui-gtk.h: + The Great GTK Merge: new files. + +2001-02-26 Ben Wing + + Reapplied Lstream change. + +2001-02-26 Ben Wing + + Undid the last change, since it is more controversial than I + thought. It should be back in at some point soon. + +2001-02-25 Ben Wing + + * buffer.c: + * callproc.c (Fold_call_process_internal): + * event-msw.c (ntpipe_slurp_reader): + * event-msw.c (ntpipe_shove_writer): + * event-msw.c (winsock_reader): + * event-msw.c (winsock_writer): + * file-coding.c: + * file-coding.c (detect_eol_type): + * file-coding.c (detect_coding_type): + * file-coding.c (determine_real_coding_system): + * file-coding.c (Fdetect_coding_region): + * file-coding.c (decoding_reader): + * file-coding.c (decoding_writer): + * file-coding.c (mule_decode): + * file-coding.c (Fdecode_coding_region): + * file-coding.c (encoding_reader): + * file-coding.c (encoding_writer): + * file-coding.c (mule_encode): + * file-coding.c (Fencode_coding_region): + * file-coding.c (detect_coding_sjis): + * file-coding.c (decode_coding_sjis): + * file-coding.c (encode_coding_sjis): + * file-coding.c (detect_coding_big5): + * file-coding.c (decode_coding_big5): + * file-coding.c (encode_coding_big5): + * file-coding.c (detect_coding_ucs4): + * file-coding.c (decode_coding_ucs4): + * file-coding.c (encode_coding_ucs4): + * file-coding.c (detect_coding_utf8): + * file-coding.c (decode_coding_utf8): + * file-coding.c (encode_coding_utf8): + * file-coding.c (detect_coding_iso2022): + * file-coding.c (decode_coding_iso2022): + * file-coding.c (encode_coding_iso2022): + * file-coding.c (decode_coding_no_conversion): + * file-coding.c (encode_coding_no_conversion): + * glyphs-x.c (write_lisp_string_to_temp_file): + * gpmevent.c (tty_get_foreign_selection): + * lisp.h: + * lstream.c: + * lstream.c (Lstream_flush_out): + * lstream.c (Lstream_adding): + * lstream.c (Lstream_write_1): + * lstream.c (Lstream_write): + * lstream.c (Lstream_raw_read): + * lstream.c (Lstream_read_more): + * lstream.c (Lstream_read): + * lstream.c (Lstream_unread): + * lstream.c (Lstream_fputc): + * lstream.c (stdio_reader): + * lstream.c (stdio_writer): + * lstream.c (filedesc_reader): + * lstream.c (filedesc_writer): + * lstream.c (lisp_string_reader): + * lstream.c (struct fixed_buffer_stream): + * lstream.c (make_fixed_buffer_input_stream): + * lstream.c (make_fixed_buffer_output_stream): + * lstream.c (fixed_buffer_reader): + * lstream.c (fixed_buffer_writer): + * lstream.c (struct resizing_buffer_stream): + * lstream.c (resizing_buffer_writer): + * lstream.c (dynarr_writer): + * lstream.c (lisp_buffer_reader): + * lstream.c (lisp_buffer_writer): + * lstream.h: + * lstream.h (lstream_implementation): + * lstream.h (struct lstream): + * md5.c (Fmd5): + * process-nt.c (nt_send_process): + * process-unix.c (unix_send_process): + + Correct Lstream lossage due to mixing of signed and unsigned + quantities. All Lstream uses of size_t and ssize_t are now a + single signed data type Lstream_data_count. This fixes problems + under Windows with sending large quantities of data to a process, + and may well fix other subtle bugs. + 2001-02-23 Martin Buchholz * XEmacs 21.2.45 "Thelxepeia" is released. diff --git a/src/Makefile.in.in b/src/Makefile.in.in index 0b2c9cf..4e86817 100644 --- a/src/Makefile.in.in +++ b/src/Makefile.in.in @@ -390,7 +390,7 @@ ${libsrc}DOC: ${EXE_TARGET} update-elc.stamp $(RM) ${libsrc}DOC; \ ${DUMPENV} ./${EXE_TARGET} -nd -batch -l ${srcdir}/../lisp/make-docfile.el -- \ -o ${libsrc}DOC -d ${srcdir} -i ${libsrc}../site-packages \ - ${obj_src} ${mallocdocsrc} ${rallocdocsrc} + ${obj_src} ${mallocdocsrc} ${rallocdocsrc} ${extra_doc_files} dump_elcs: dump-elcs @@ -700,6 +700,14 @@ hpplay.o: ${srcdir}/hpplay.c $(CC) -c -Demacs $(sound_cflags) $(cflags) ${srcdir}/hpplay.c #endif /* HAVE_NATIVE_SOUND */ +#if defined(HAVE_GLADE_GLADE_H) || defined(HAVE_GLADE_H) +glade_files=glade.c +#endif + +#ifdef HAVE_GTK +extra_doc_files=emacs-widget-accessors.c ui-byhand.c $(glade_files) +#endif + xemacs_res.o: ${srcdir}/../nt/xemacs.rc windres --include-dir ${srcdir}/../nt -i ${srcdir}/../nt/xemacs.rc -o $@ diff --git a/src/buffer.c b/src/buffer.c index 0777574..d2245f7 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1918,7 +1918,7 @@ dfc_convert_to_external_format (dfc_conversion_type source_type, while (1) { - ssize_t size_in_bytes; + Lstream_data_count size_in_bytes; char tempbuf[1024]; /* some random amount */ size_in_bytes = Lstream_read (reader, tempbuf, sizeof (tempbuf)); @@ -2056,7 +2056,7 @@ dfc_convert_to_internal_format (dfc_conversion_type source_type, while (1) { - ssize_t size_in_bytes; + Lstream_data_count size_in_bytes; char tempbuf[1024]; /* some random amount */ size_in_bytes = Lstream_read (reader, tempbuf, sizeof (tempbuf)); diff --git a/src/callproc.c b/src/callproc.c index e5766ba..0ee95f0 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -482,7 +482,7 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you nread = 0; while (nread < bufsize - 1024) { - ssize_t this_read + Lstream_data_count this_read = Lstream_read (XLSTREAM (instream), bufptr + nread, bufsize - nread); diff --git a/src/cmds.c b/src/cmds.c index 881bb63..82a0675 100644 --- a/src/cmds.c +++ b/src/cmds.c @@ -50,6 +50,11 @@ Move point right COUNT characters (left if COUNT is negative). On attempt to pass end of buffer, stop and signal `end-of-buffer'. On attempt to pass beginning of buffer, stop and signal `beginning-of-buffer'. On reaching end of buffer, stop and signal error. + +The characters that are moved over may be added to the current selection +\(i.e. active region) if the Shift key is held down, a motion key is used +to invoke this command, and `shifted-motion-keys-select-region' is t; see +the documentation for this variable for more details. */ (count, buffer)) { @@ -95,6 +100,11 @@ DEFUN ("backward-char", Fbackward_char, 0, 2, "_p", /* Move point left COUNT characters (right if COUNT is negative). On attempt to pass end of buffer, stop and signal `end-of-buffer'. On attempt to pass beginning of buffer, stop and signal `beginning-of-buffer'. + +The characters that are moved over may be added to the current selection +\(i.e. active region) if the Shift key is held down, a motion key is used +to invoke this command, and `shifted-motion-keys-select-region' is t; see +the documentation for this variable for more details. */ (count, buffer)) { @@ -117,6 +127,11 @@ that is COUNT - number of lines moved; if backward, COUNT + number moved. With positive COUNT, a non-empty line at the end counts as one line successfully moved (for the return value). If BUFFER is nil, the current buffer is assumed. + +The characters that are moved over may be added to the current selection +\(i.e. active region) if the Shift key is held down, a motion key is used +to invoke this command, and `shifted-motion-keys-select-region' is t; see +the documentation for this variable for more details. */ (count, buffer)) { @@ -178,6 +193,11 @@ Move point to beginning of current line. With argument COUNT not nil or 1, move forward COUNT - 1 lines first. If scan reaches end of buffer, stop there without error. If BUFFER is nil, the current buffer is assumed. + +The characters that are moved over may be added to the current selection +\(i.e. active region) if the Shift key is held down, a motion key is used +to invoke this command, and `shifted-motion-keys-select-region' is t; see +the documentation for this variable for more details. */ (count, buffer)) { @@ -215,6 +235,11 @@ Move point to end of current line. With argument COUNT not nil or 1, move forward COUNT - 1 lines first. If scan reaches end of buffer, stop there without error. If BUFFER is nil, the current buffer is assumed. + +The characters that are moved over may be added to the current selection +\(i.e. active region) if the Shift key is held down, a motion key is used +to invoke this command, and `shifted-motion-keys-select-region' is t; see +the documentation for this variable for more details. */ (count, buffer)) { diff --git a/src/config.h.in b/src/config.h.in index feb9e47..5b54e68 100644 --- a/src/config.h.in +++ b/src/config.h.in @@ -165,8 +165,16 @@ void *alloca (); #endif #endif /* HAVE_X_WINDOWS */ +/* Defines for building Gtk applications */ +#undef HAVE_GNOME +#undef HAVE_GTK +#undef HAVE_GDK_IMLIB_INIT +#undef HAVE_GLADE_GLADE_H +#undef HAVE_GLADE_H +#undef LIBGLADE_XML_TXTDOMAIN + /* Define HAVE_WINDOW_SYSTEM if any windowing system is available. */ -#if defined (HAVE_X_WINDOWS) || defined(HAVE_MS_WINDOWS) /* || defined (HAVE_NEXTSTEP) */ +#if defined (HAVE_GTK) || defined (HAVE_X_WINDOWS) || defined(HAVE_MS_WINDOWS) /* || defined (HAVE_NEXTSTEP) */ #define HAVE_WINDOW_SYSTEM #endif diff --git a/src/console.c b/src/console.c index 0d4b8be..5b8e670 100644 --- a/src/console.c +++ b/src/console.c @@ -244,6 +244,11 @@ select_console_1 (Lisp_Object console) Vwindow_system = Qx; else #endif +#ifdef HAVE_GTK + if (CONSOLE_GTK_P (XCONSOLE (console))) + Vwindow_system = Qgtk; + else +#endif #ifdef HAVE_MS_WINDOWS if (CONSOLE_MSWINDOWS_P (XCONSOLE (console))) Vwindow_system = Qmswindows; diff --git a/src/console.h b/src/console.h index 1f32f8c..a071448 100644 --- a/src/console.h +++ b/src/console.h @@ -503,6 +503,12 @@ error_check_console_type (struct console *con, Lisp_Object sym) too many places where the abstraction is broken. Need to fix. */ +#ifdef HAVE_GTK +#define CONSOLE_TYPESYM_GTK_P(typesym) EQ (typesym, Qgtk) +#else +#define CONSOLE_TYPESYM_GTK_P(typesym) 0 +#endif + #ifdef HAVE_X_WINDOWS #define CONSOLE_TYPESYM_X_P(typesym) EQ (typesym, Qx) #else @@ -521,12 +527,16 @@ error_check_console_type (struct console *con, Lisp_Object sym) #define CONSOLE_TYPESYM_STREAM_P(typesym) EQ (typesym, Qstream) #define CONSOLE_TYPESYM_WIN_P(typesym) \ - (CONSOLE_TYPESYM_X_P (typesym) || CONSOLE_TYPESYM_MSWINDOWS_P (typesym)) + (CONSOLE_TYPESYM_GTK_P (typesym) || CONSOLE_TYPESYM_X_P (typesym) || CONSOLE_TYPESYM_MSWINDOWS_P (typesym)) #define CONSOLE_X_P(con) CONSOLE_TYPESYM_X_P (CONSOLE_TYPE (con)) #define CHECK_X_CONSOLE(z) CHECK_CONSOLE_TYPE (z, x) #define CONCHECK_X_CONSOLE(z) CONCHECK_CONSOLE_TYPE (z, x) +#define CONSOLE_GTK_P(con) CONSOLE_TYPESYM_GTK_P (CONSOLE_TYPE (con)) +#define CHECK_GTK_CONSOLE(z) CHECK_CONSOLE_TYPE (z, gtk) +#define CONCHECK_GTK_CONSOLE(z) CONCHECK_CONSOLE_TYPE (z, gtk) + #define CONSOLE_TTY_P(con) CONSOLE_TYPESYM_TTY_P (CONSOLE_TYPE (con)) #define CHECK_TTY_CONSOLE(z) CHECK_CONSOLE_TYPE (z, tty) #define CONCHECK_TTY_CONSOLE(z) CONCHECK_CONSOLE_TYPE (z, tty) diff --git a/src/depend b/src/depend index 32e15f9..e120125 100644 --- a/src/depend +++ b/src/depend @@ -45,6 +45,23 @@ frame-tty.o: $(LISP_H) conslots.h console-tty.h console.h device.h events.h fram objects-tty.o: $(LISP_H) conslots.h console-tty.h console.h device.h insdel.h mule-charset.h objects-tty.h objects.h specifier.h syssignal.h systty.h redisplay-tty.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h conslots.h console-tty.h console.h device.h events.h faces.h frame.h frameslots.h glyphs.h gui.h lstream.h mule-charset.h objects-tty.h objects.h redisplay.h scrollbar.h specifier.h sysdep.h syssignal.h systime.h systty.h toolbar.h window.h winslots.h #endif +#if defined(HAVE_GTK) +console-gtk.o: $(LISP_H) conslots.h console-gtk.h console.h process.h redisplay.h +device-gtk.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h conslots.h console-gtk.h console.h device.h elhash.h events.h faces.h frame.h frameslots.h gccache-gtk.h glyphs-gtk.h glyphs.h gtk-xemacs.h gui.h mule-charset.h objects-gtk.h objects.h redisplay.h scrollbar.h specifier.h sysdep.h sysfile.h systime.h toolbar.h window.h winslots.h +dialog-gtk.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h commands.h conslots.h console-gtk.h console.h device.h events.h frame.h frameslots.h glyphs.h gui-gtk.h gui.h mule-charset.h opaque.h redisplay.h scrollbar.h specifier.h systime.h toolbar.h window.h winslots.h +event-gtk.o: $(LISP_H) blocktype.h buffer.h bufslots.h casetab.h chartab.h commands.h conslots.h console-gtk.h console-tty.h console.h device.h dragdrop.h elhash.h events-mod.h events.h file-coding.h frame.h frameslots.h glyphs.h gtk-xemacs.h gui.h lstream.h mule-charset.h objects-gtk.h objects.h offix-types.h offix.h process.h redisplay.h scrollbar.h specifier.h sysproc.h syssignal.h systime.h systty.h toolbar.h window.h winslots.h xintrinsic.h +frame-gtk.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h conslots.h console-gtk.h console.h device.h dragdrop.h events.h extents.h faces.h frame.h frameslots.h glyphs-gtk.h glyphs.h gtk-xemacs.h gui.h mule-charset.h objects-gtk.h objects.h redisplay.h scrollbar-gtk.h scrollbar.h specifier.h sysdll.h systime.h toolbar.h ui-gtk.h window.h winslots.h +gccache-gtk.o: $(LISP_H) gccache-gtk.h hash.h +glyphs-gtk.o: $(LISP_H) bitmaps.h buffer.h bufslots.h casetab.h chartab.h conslots.h console-gtk.h console.h device.h faces.h file-coding.h frame.h frameslots.h glyphs-gtk.h glyphs.h gui-gtk.h gui.h imgproc.h insdel.h lstream.h mule-charset.h objects-gtk.h objects.h opaque.h redisplay.h scrollbar.h specifier.h sysdll.h sysfile.h toolbar.h ui-gtk.h window.h winslots.h +gui-gtk.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h conslots.h console-gtk.h console.h device.h frame.h frameslots.h glyphs.h gui-gtk.h gui.h mule-charset.h opaque.h redisplay.h scrollbar.h specifier.h toolbar.h window.h winslots.h +menubar-gtk.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h commands.h conslots.h console-gtk.h console.h device.h events.h frame.h frameslots.h glyphs.h gui-gtk.h gui.h mule-charset.h opaque.h redisplay.h scrollbar.h specifier.h sysdll.h systime.h toolbar.h ui-gtk.h window.h winslots.h +objects-gtk.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h conslots.h console-gtk.h console.h device.h insdel.h mule-charset.h objects-gtk.h objects.h specifier.h +redisplay-gtk.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h conslots.h console-gtk.h console.h debug.h device.h faces.h file-coding.h frame.h frameslots.h gccache-gtk.h glyphs-gtk.h glyphs.h gui.h gutter.h mule-ccl.h mule-charset.h objects-gtk.h objects.h redisplay.h scrollbar.h specifier.h sysdep.h sysproc.h systime.h toolbar.h window.h winslots.h +scrollbar-gtk.o: $(LISP_H) conslots.h console-gtk.h console.h device.h frame.h frameslots.h glyphs-gtk.h glyphs.h gui-gtk.h gui.h redisplay.h scrollbar-gtk.h scrollbar.h specifier.h toolbar.h window.h winslots.h +select-gtk.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h conslots.h console-gtk.h console.h device.h events.h frame.h frameslots.h glyphs.h gui.h mule-charset.h opaque.h redisplay.h scrollbar.h select.h specifier.h systime.h toolbar.h window.h winslots.h +toolbar-gtk.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h conslots.h console-gtk.h console.h device.h faces.h frame.h frameslots.h gccache-gtk.h glyphs-gtk.h glyphs.h gtk-xemacs.h gui.h mule-charset.h objects-gtk.h objects.h redisplay.h scrollbar.h specifier.h toolbar.h window.h winslots.h +ui-gtk.o: $(LISP_H) buffer.h bufslots.h bytecode.h casetab.h chartab.h conslots.h console-gtk.h console.h device.h elhash.h emacs-marshals.c emacs-widget-accessors.c events.h faces.h glade.c glyphs-gtk.h glyphs.h gtk-glue.c gui-gtk.h gui.h hash.h mule-charset.h objects-gtk.h objects.h redisplay.h scrollbar.h specifier.h sysdll.h systime.h ui-byhand.c ui-gtk.h window.h winslots.h +#endif #if defined(HAVE_DATABASE) database.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h database.h mule-charset.h sysfile.h #endif @@ -98,6 +115,8 @@ ecrt0.o: config.h editfns.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h commands.h conslots.h console.h device.h events.h extents.h frame.h frameslots.h glyphs.h gui.h insdel.h line-number.h mule-charset.h redisplay.h scrollbar.h specifier.h sysdep.h sysfile.h syspwd.h systime.h toolbar.h window.h winslots.h eldap.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h eldap.h mule-charset.h opaque.h sysdep.h elhash.o: $(LISP_H) bytecode.h elhash.h +emacs-marshals.o: hash.h +emacs-widget-accessors.o: emacs.o: $(LISP_H) backtrace.h buffer.h bufslots.h casetab.h chartab.h commands.h conslots.h console.h device.h dumper.h frame.h frameslots.h glyphs.h gui.h mule-charset.h nt.h paths.h process.h redisplay.h scrollbar.h specifier.h sysdep.h sysdll.h sysfile.h syssignal.h systime.h systty.h syswindows.h toolbar.h window.h winslots.h emodules.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h conslots.h console.h device.h emodules.h file-coding.h frame.h frameslots.h glyphs.h gui.h insdel.h lstream.h mule-charset.h redisplay.h scrollbar.h specifier.h sysdep.h sysdll.h toolbar.h window.h winslots.h esd.o: $(LISP_H) miscplay.h @@ -105,7 +124,7 @@ eval.o: $(LISP_H) backtrace.h buffer.h bufslots.h bytecode.h casetab.h chartab.h event-Xt.o: $(LISP_H) $(LWLIB_SRCDIR)/lwlib.h Emacs.ad.h EmacsFrame.h blocktype.h buffer.h bufslots.h casetab.h chartab.h conslots.h console-tty.h console-x.h console.h device.h dragdrop.h elhash.h events-mod.h events.h file-coding.h frame.h frameslots.h glyphs.h gui.h lstream.h mule-charset.h objects-x.h objects.h offix-types.h offix.h process.h redisplay.h scrollbar.h specifier.h sysproc.h syssignal.h systime.h systty.h toolbar.h window.h winslots.h xintrinsic.h xintrinsicp.h event-stream.o: $(LISP_H) blocktype.h buffer.h bufslots.h casetab.h chartab.h commands.h conslots.h console.h device.h elhash.h events-mod.h events.h file-coding.h frame.h frameslots.h glyphs.h gui.h insdel.h keymap.h lstream.h macros.h menubar.h mule-charset.h process.h redisplay.h scrollbar.h specifier.h sysdep.h sysfile.h syssignal.h systime.h toolbar.h window.h winslots.h event-unixoid.o: $(LISP_H) conslots.h console-stream.h console-tty.h console.h device.h events.h lstream.h mule-charset.h process.h sysdep.h sysfile.h sysproc.h syssignal.h systime.h systty.h -events.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h conslots.h console-tty.h console-x.h console.h device.h events-mod.h events.h extents.h frame.h frameslots.h glyphs.h gui.h keymap.h mule-charset.h redisplay.h scrollbar.h specifier.h syssignal.h systime.h systty.h toolbar.h window.h winslots.h xintrinsic.h +events.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h conslots.h console-gtk.h console-tty.h console-x.h console.h device.h events-mod.h events.h extents.h frame.h frameslots.h glyphs.h gui.h keymap.h mule-charset.h redisplay.h scrollbar.h specifier.h syssignal.h systime.h systty.h toolbar.h window.h winslots.h xintrinsic.h extents.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h conslots.h console.h debug.h device.h elhash.h extents.h faces.h frame.h frameslots.h glyphs.h gui.h gutter.h insdel.h keymap.h mule-charset.h opaque.h process.h redisplay.h scrollbar.h specifier.h toolbar.h window.h winslots.h faces.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h conslots.h console.h device.h elhash.h extents.h faces.h frame.h frameslots.h glyphs.h gui.h mule-charset.h objects.h redisplay.h scrollbar.h specifier.h toolbar.h window.h winslots.h file-coding.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h elhash.h file-coding.h insdel.h lstream.h mule-ccl.h mule-charset.h opaque.h @@ -120,11 +139,14 @@ free-hook.o: $(LISP_H) hash.h general.o: $(LISP_H) getloadavg.o: $(LISP_H) sysfile.h gif_io.o: config.h gifrlib.h sysfile.h +glade.o: bytecode.h glyphs-eimage.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h conslots.h console.h device.h faces.h file-coding.h frame.h frameslots.h gifrlib.h glyphs.h gui.h lstream.h mule-charset.h objects.h opaque.h redisplay.h scrollbar.h specifier.h sysfile.h toolbar.h window.h winslots.h glyphs-widget.o: $(LISP_H) buffer.h bufslots.h bytecode.h casetab.h chartab.h conslots.h console.h device.h faces.h frame.h frameslots.h glyphs.h gui.h insdel.h lstream.h mule-charset.h objects.h opaque.h redisplay.h scrollbar.h specifier.h toolbar.h window.h winslots.h glyphs.o: $(LISP_H) blocktype.h buffer.h bufslots.h casetab.h chartab.h conslots.h console.h device.h elhash.h faces.h frame.h frameslots.h glyphs.h gui.h insdel.h mule-charset.h objects.h opaque.h rangetab.h redisplay.h scrollbar.h specifier.h toolbar.h window.h winslots.h gmalloc.o: config.h getpagesize.h gpmevent.o: $(LISP_H) commands.h conslots.h console-tty.h console.h device.h events-mod.h events.h gpmevent.h lstream.h mule-charset.h process.h sysdep.h sysproc.h syssignal.h systime.h systty.h +gtk-glue.o: +gtk-xemacs.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h conslots.h console-gtk.h console.h device.h faces.h frame.h frameslots.h glyphs.h gtk-xemacs.h gui.h mule-charset.h objects-gtk.h objects.h redisplay.h scrollbar.h specifier.h toolbar.h window.h winslots.h gui.o: $(LISP_H) buffer.h bufslots.h bytecode.h casetab.h chartab.h elhash.h gui.h mule-charset.h gutter.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h conslots.h console.h device.h faces.h frame.h frameslots.h glyphs.h gui.h gutter.h mule-charset.h redisplay.h scrollbar.h specifier.h toolbar.h window.h winslots.h hash.o: $(LISP_H) hash.h @@ -132,7 +154,7 @@ hftctl.o: $(LISP_H) hpplay.o: $(LISP_H) nativesound.h imgproc.o: $(LISP_H) imgproc.h indent.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h conslots.h console.h device.h extents.h faces.h frame.h frameslots.h glyphs.h gui.h insdel.h mule-charset.h redisplay.h scrollbar.h specifier.h toolbar.h window.h winslots.h -inline.o: $(LISP_H) $(LWLIB_SRCDIR)/lwlib.h buffer.h bufslots.h bytecode.h casetab.h chartab.h conslots.h console-msw.h console.h database.h device.h eldap.h elhash.h events.h extents.h faces.h file-coding.h frame.h frameslots.h glyphs-x.h glyphs.h gui-x.h gui.h keymap.h lstream.h mule-charset.h objects.h opaque.h postgresql.h process.h rangetab.h redisplay.h scrollbar.h specifier.h syntax.h syscommctrl.h systime.h syswindows.h toolbar.h tooltalk.h window.h winslots.h xintrinsic.h +inline.o: $(LISP_H) $(LWLIB_SRCDIR)/lwlib.h buffer.h bufslots.h bytecode.h casetab.h chartab.h conslots.h console-gtk.h console-msw.h console.h database.h device.h eldap.h elhash.h events.h extents.h faces.h file-coding.h frame.h frameslots.h glyphs-x.h glyphs.h gui-x.h gui.h keymap.h lstream.h mule-charset.h objects.h opaque.h postgresql.h process.h rangetab.h redisplay.h scrollbar.h specifier.h syntax.h syscommctrl.h sysdll.h systime.h syswindows.h toolbar.h tooltalk.h ui-gtk.h window.h winslots.h xintrinsic.h input-method-motif.o: $(LISP_H) EmacsFrame.h conslots.h console-x.h console.h device.h frame.h frameslots.h glyphs.h gui.h redisplay.h scrollbar.h specifier.h toolbar.h window.h winslots.h xintrinsic.h input-method-xlib.o: $(LISP_H) EmacsFrame.h buffer.h bufslots.h casetab.h chartab.h conslots.h console-x.h console.h device.h events.h frame.h frameslots.h glyphs.h gui.h mule-charset.h redisplay.h scrollbar.h specifier.h systime.h toolbar.h window.h winslots.h xintrinsic.h insdel.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h conslots.h console.h device.h extents.h frame.h frameslots.h glyphs.h gui.h insdel.h line-number.h lstream.h mule-charset.h redisplay.h scrollbar.h specifier.h toolbar.h window.h winslots.h @@ -152,6 +174,7 @@ menubar.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h conslots.h console. minibuf.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h commands.h conslots.h console-stream.h console.h device.h events.h frame.h frameslots.h glyphs.h gui.h insdel.h mule-charset.h redisplay.h scrollbar.h specifier.h systime.h toolbar.h window.h winslots.h miscplay.o: $(LISP_H) miscplay.h sysfile.h syssignal.h nas.o: $(LISP_H) sysdep.h syssignal.h +native-gtk-toolbar.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h conslots.h console-gtk.h console.h device.h faces.h frame.h frameslots.h glyphs-gtk.h glyphs.h gui.h mule-charset.h objects-gtk.h objects.h redisplay.h scrollbar.h specifier.h toolbar.h window.h winslots.h nt.o: $(LISP_H) ndir.h nt.h ntheap.h sysdir.h sysfile.h sysproc.h syspwd.h syssignal.h systime.h syswindows.h ntheap.o: $(LISP_H) ntheap.h syswindows.h ntplay.o: $(LISP_H) nativesound.h nt.h sysfile.h syswindows.h @@ -196,6 +219,7 @@ tests.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h lstream.h mule-charse toolbar.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h conslots.h console.h device.h frame.h frameslots.h glyphs.h gui.h mule-charset.h redisplay.h scrollbar.h specifier.h toolbar.h window.h winslots.h tooltalk.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h elhash.h mule-charset.h process.h syssignal.h tooltalk.h tparam.o: config.h +ui-byhand.o: gui.h undo.o: $(LISP_H) buffer.h bufslots.h casetab.h chartab.h extents.h mule-charset.h unexaix.o: $(LISP_H) getpagesize.h unexalpha.o: config.h diff --git a/src/device.c b/src/device.c index 16c10a6..6c36f9f 100644 --- a/src/device.c +++ b/src/device.c @@ -549,6 +549,9 @@ have no effect. device-independence violations occur in faces.el. */ int first_x_device = NILP (Vdefault_x_device) && EQ (type, Qx); #endif +#ifdef HAVE_GTK + int first_gtk_device = NILP (Vdefault_gtk_device) && EQ (type, Qgtk); +#endif GCPRO3 (device, console, name); @@ -598,6 +601,10 @@ have no effect. if (first_x_device) init_global_resources (d); #endif +#ifdef HAVE_GTK + if (first_gtk_device) + init_global_resources (d); +#endif init_device_resources (d); MAYBE_DEVMETH (d, finish_init_device, (d, props)); @@ -758,7 +765,8 @@ delete_device_internal (struct device *d, int force, /* #### This should probably be a device method but it is time for 19.14 to go out the door. */ -#ifdef HAVE_X_WINDOWS + /* #### BILL!!! Should this deal with HAVE_MSWINDOWS as well? */ +#if defined (HAVE_X_WINDOWS) || defined (HAVE_GTK) /* Next delete all frames which have the popup property to avoid deleting a child after its parent. */ DEVICE_FRAME_LOOP (frmcons, d) diff --git a/src/device.h b/src/device.h index 3395e05..1ef2b12 100644 --- a/src/device.h +++ b/src/device.h @@ -320,6 +320,10 @@ error_check_device_type (struct device *d, Lisp_Object sym) #define CHECK_X_DEVICE(z) CHECK_DEVICE_TYPE (z, x) #define CONCHECK_X_DEVICE(z) CONCHECK_DEVICE_TYPE (z, x) +#define DEVICE_GTK_P(dev) CONSOLE_TYPESYM_GTK_P (DEVICE_TYPE (dev)) +#define CHECK_GTK_DEVICE(z) CHECK_DEVICE_TYPE (z, gtk) +#define CONCHECK_GTK_DEVICE(z) CONCHECK_DEVICE_TYPE (z, gtk) + #define DEVICE_MSWINDOWS_P(dev) CONSOLE_TYPESYM_MSWINDOWS_P (DEVICE_TYPE (dev)) #define CHECK_MSWINDOWS_DEVICE(z) CHECK_DEVICE_TYPE (z, mswindows) #define CONCHECK_MSWINDOWS_DEVICE(z) CONCHECK_DEVICE_TYPE (z, mswindows) @@ -341,7 +345,7 @@ EXFUN (Fmake_device, 3); EXFUN (Fselected_device, 1); extern Lisp_Object Qcreate_device_hook, Qdelete_device_hook, Qgrayscale; -extern Lisp_Object Qinit_post_tty_win, Qmono, Vdefault_x_device; +extern Lisp_Object Qinit_post_tty_win, Qmono, Vdefault_x_device, Vdefault_gtk_device; extern Lisp_Object Vdevice_class_list; int valid_device_class_p (Lisp_Object class); diff --git a/src/dragdrop.c b/src/dragdrop.c index 713355d..752f82a 100644 --- a/src/dragdrop.c +++ b/src/dragdrop.c @@ -139,4 +139,7 @@ Each element is the feature symbol of the protocol. #ifdef HAVE_OFFIX_DND Vdragdrop_protocols = Fcons ( intern ("offix") , Vdragdrop_protocols ); #endif +#ifdef HAVE_GTK + Vdragdrop_protocols = Fcons ( Qgtk , Vdragdrop_protocols ); +#endif } diff --git a/src/dumper.c b/src/dumper.c index 644d98f..640309d 100644 --- a/src/dumper.c +++ b/src/dumper.c @@ -397,9 +397,9 @@ pdump_backtrace (void) else { stderr_out (" - %s (%d, %d)\n", - LHEADER_IMPLEMENTATION (backtrace[i].obj)->name, - backtrace[i].position, - backtrace[i].offset); + LHEADER_IMPLEMENTATION (backtrace[i].obj)->name, + backtrace[i].position, + backtrace[i].offset); } } } diff --git a/src/elhash.c b/src/elhash.c index 5bf3476..f1462fe 100644 --- a/src/elhash.c +++ b/src/elhash.c @@ -440,7 +440,7 @@ make_standard_lisp_hash_table (enum hash_table_test test, double rehash_threshold, enum hash_table_weakness weakness) { - hash_table_hash_function_t hash_function = 0; + hash_table_hash_function_t hash_function = 0; hash_table_test_function_t test_function = 0; switch (test) diff --git a/src/emacs.c b/src/emacs.c index 2133082..33b515b 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1112,6 +1112,13 @@ main_1 (int argc, char **argv, char **envp, int restart) display_use = "x"; #endif /* HAVE_X_WINDOWS */ +#ifdef HAVE_GTK + { + char *dpy = getenv ("DISPLAY"); + if (dpy && dpy[0]) + display_use = "gtk"; + } +#endif #ifdef HAVE_MS_WINDOWS if (strcmp(display_use, "x") != 0) display_use = "mswindows"; @@ -1262,6 +1269,9 @@ main_1 (int argc, char **argv, char **envp, int restart) #ifdef HAVE_X_WINDOWS syms_of_event_Xt (); #endif +#ifdef HAVE_GTK + syms_of_event_gtk (); +#endif #ifdef HAVE_DRAGNDROP syms_of_dragdrop (); #endif @@ -1337,6 +1347,26 @@ main_1 (int argc, char **argv, char **envp, int restart) syms_of_objects_tty (); #endif +#ifdef HAVE_GTK + syms_of_device_gtk (); + syms_of_frame_gtk (); + syms_of_glyphs_gtk (); + syms_of_objects_gtk (); + syms_of_ui_gtk (); + syms_of_select_gtk (); +#ifdef HAVE_DIALOGS + syms_of_dialog_gtk (); +#endif +#ifdef HAVE_MENUBARS + syms_of_menubar_gtk (); +#endif + syms_of_select_gtk (); + +#if defined (HAVE_MENUBARS) || defined(HAVE_SCROLLBARS) || defined(HAVE_DIALOGS) || defined(HAVE_TOOLBARS) + syms_of_gui_gtk (); +#endif +#endif /* HAVE_GTK */ + #ifdef HAVE_X_WINDOWS #ifdef HAVE_BALLOON_HELP syms_of_balloon_x (); @@ -1469,6 +1499,28 @@ main_1 (int argc, char **argv, char **envp, int restart) console_type_create_redisplay_tty (); #endif +#ifdef HAVE_GTK + console_type_create_gtk (); + console_type_create_select_gtk (); + console_type_create_device_gtk (); + console_type_create_frame_gtk (); + console_type_create_objects_gtk (); + console_type_create_glyphs_gtk (); + console_type_create_redisplay_gtk (); +#ifdef HAVE_MENUBARS + console_type_create_menubar_gtk (); +#endif +#ifdef HAVE_SCROLLBARS + console_type_create_scrollbar_gtk (); +#endif +#ifdef HAVE_TOOLBARS + console_type_create_toolbar_gtk (); +#endif +#ifdef HAVE_DIALOGS + console_type_create_dialog_gtk (); +#endif +#endif /* HAVE_GTK */ + #ifdef HAVE_X_WINDOWS console_type_create_x (); console_type_create_device_x (); @@ -1571,6 +1623,9 @@ main_1 (int argc, char **argv, char **envp, int restart) #ifdef HAVE_MS_WINDOWS image_instantiator_format_create_glyphs_mswindows (); #endif /* HAVE_MSWINDOWS_WINDOWS */ +#ifdef HAVE_GTK + image_instantiator_format_create_glyphs_gtk (); +#endif /* Now initialize the lstream types and associated symbols. Other than the first function below, the functions may @@ -1773,6 +1828,28 @@ main_1 (int argc, char **argv, char **envp, int restart) vars_of_objects_tty (); #endif +#ifdef HAVE_GTK + vars_of_device_gtk (); +#ifdef HAVE_DIALOGS + vars_of_dialog_gtk (); +#endif + vars_of_event_gtk (); + vars_of_frame_gtk (); + vars_of_glyphs_gtk (); + vars_of_ui_gtk (); +#ifdef HAVE_MENUBARS + vars_of_menubar_gtk (); +#endif + vars_of_objects_gtk (); + vars_of_select_gtk (); +#ifdef HAVE_SCROLLBARS + vars_of_scrollbar_gtk (); +#endif +#if defined (HAVE_MENUBARS) || defined (HAVE_SCROLLBARS) || defined (HAVE_DIALOGS) || defined (HAVE_TOOLBARS) + vars_of_gui_gtk (); +#endif +#endif /* HAVE_GTK */ + #ifdef HAVE_X_WINDOWS #ifdef HAVE_BALLOON_HELP vars_of_balloon_x (); @@ -1796,6 +1873,7 @@ main_1 (int argc, char **argv, char **envp, int restart) #endif #endif /* HAVE_X_WINDOWS */ + #ifdef HAVE_MS_WINDOWS vars_of_device_mswindows (); vars_of_console_mswindows (); @@ -1916,6 +1994,9 @@ main_1 (int argc, char **argv, char **envp, int restart) /* These rely on the glyphs just created in the previous function, and call Fadd_spec_to_specifier(), which relies on various variables initialized above. */ +#ifdef HAVE_GTK + complex_vars_of_glyphs_gtk (); +#endif #ifdef HAVE_X_WINDOWS complex_vars_of_glyphs_x (); #endif @@ -2002,6 +2083,9 @@ main_1 (int argc, char **argv, char **envp, int restart) #ifdef HAVE_MS_WINDOWS reinit_console_type_create_mswindows (); #endif +#ifdef HAVE_GTK + reinit_console_type_create_gtk (); +#endif reinit_specifier_type_create (); reinit_specifier_type_create_image (); @@ -2042,6 +2126,9 @@ main_1 (int argc, char **argv, char **envp, int restart) #ifdef HAVE_X_WINDOWS reinit_vars_of_event_Xt (); #endif +#ifdef HAVE_GTK + reinit_vars_of_event_gtk (); +#endif #if defined(HAVE_TTY) && (defined (DEBUG_TTY_EVENT_STREAM) || !defined (HAVE_X_WINDOWS)) reinit_vars_of_event_tty (); #endif @@ -2072,6 +2159,10 @@ main_1 (int argc, char **argv, char **envp, int restart) reinit_vars_of_frame_mswindows (); #endif +#ifdef HAVE_GTK + reinit_vars_of_menubar_gtk (); +#endif + #ifdef HAVE_X_WINDOWS reinit_vars_of_device_x (); #ifdef HAVE_SCROLLBARS diff --git a/src/event-msw.c b/src/event-msw.c index f098d73..fec746e 100644 --- a/src/event-msw.c +++ b/src/event-msw.c @@ -366,8 +366,9 @@ get_ntpipe_input_stream_waitable (Lstream *stream) return s->thread_data->hev_caller; } -static ssize_t -ntpipe_slurp_reader (Lstream *stream, unsigned char *data, size_t size) +static Lstream_data_count +ntpipe_slurp_reader (Lstream *stream, unsigned char *data, + Lstream_data_count size) { /* This function must be called from the main thread only */ struct ntpipe_slurp_stream_shared_data* s = @@ -580,8 +581,9 @@ get_ntpipe_output_stream_param (Lstream *stream) } #endif -static ssize_t -ntpipe_shove_writer (Lstream *stream, const unsigned char *data, size_t size) +static Lstream_data_count +ntpipe_shove_writer (Lstream *stream, const unsigned char *data, + Lstream_data_count size) { struct ntpipe_shove_stream* s = NTPIPE_SHOVE_STREAM_DATA(stream); @@ -697,8 +699,8 @@ winsock_initiate_read (struct winsock_stream *str) str->eof_p = 1; } -static ssize_t -winsock_reader (Lstream *stream, unsigned char *data, size_t size) +static Lstream_data_count +winsock_reader (Lstream *stream, unsigned char *data, Lstream_data_count size) { struct winsock_stream *str = WINSOCK_STREAM_DATA (stream); @@ -732,7 +734,7 @@ winsock_reader (Lstream *stream, unsigned char *data, size_t size) return -1; /* Return as much of buffer as we have */ - size = min (size, (size_t) (str->bufsize - str->bufpos)); + size = min (size, (Lstream_data_count) (str->bufsize - str->bufpos)); memcpy (data, (void*)((BYTE*)str->buffer + str->bufpos), size); str->bufpos += size; @@ -743,8 +745,9 @@ winsock_reader (Lstream *stream, unsigned char *data, size_t size) return size; } -static ssize_t -winsock_writer (Lstream *stream, const unsigned char *data, size_t size) +static Lstream_data_count +winsock_writer (Lstream *stream, const unsigned char *data, + Lstream_data_count size) { struct winsock_stream *str = WINSOCK_STREAM_DATA (stream); diff --git a/src/event-stream.c b/src/event-stream.c index 847ab65..8bd273f 100644 --- a/src/event-stream.c +++ b/src/event-stream.c @@ -4810,6 +4810,11 @@ init_event_stream (void) init_event_Xt_late (); else #endif +#ifdef HAVE_GTK + if (!strcmp (display_use, "gtk")) + init_event_gtk_late (); + else +#endif #ifdef HAVE_MS_WINDOWS if (!strcmp (display_use, "mswindows")) init_event_mswindows_late (); diff --git a/src/events.c b/src/events.c index af1888b..4027f13 100644 --- a/src/events.c +++ b/src/events.c @@ -30,6 +30,7 @@ Boston, MA 02111-1307, USA. */ #include "console-tty.h" /* for stuff in character_to_event */ #include "device.h" #include "console-x.h" /* for x_event_name prototype */ +#include "console-gtk.h" /* for gtk_event_name prototype */ #include "extents.h" /* Just for the EXTENTP abort check... */ #include "events.h" #include "frame.h" @@ -268,6 +269,12 @@ event_equal (Lisp_Object obj1, Lisp_Object obj2, int depth) { struct console *con = XCONSOLE (CDFW_CONSOLE (e1->channel)); +#ifdef HAVE_GTK + if (CONSOLE_GTK_P (con)) + return (!memcmp (&e1->event.magic.underlying_gdk_event, + &e2->event.magic.underlying_gdk_event, + sizeof (GdkEvent))); +#endif #ifdef HAVE_X_WINDOWS if (CONSOLE_X_P (con)) return (e1->event.magic.underlying_x_event.xany.serial == @@ -338,6 +345,10 @@ event_hash (Lisp_Object obj, int depth) case magic_event: { struct console *con = XCONSOLE (CDFW_CONSOLE (EVENT_CHANNEL (e))); +#ifdef HAVE_GTK + if (CONSOLE_GTK_P (con)) + return HASH2 (hash, e->event.magic.underlying_gdk_event.type); +#endif #ifdef HAVE_X_WINDOWS if (CONSOLE_X_P (con)) return HASH2 (hash, e->event.magic.underlying_x_event.xany.serial); @@ -1269,6 +1280,13 @@ format_event_object (char *buf, Lisp_Event *event, int brief) { const char *name = NULL; +#ifdef HAVE_GTK + { + Lisp_Object console = CDFW_CONSOLE (EVENT_CHANNEL (event)); + if (CONSOLE_GTK_P (XCONSOLE (console))) + name = gtk_event_name (event->event.magic.underlying_gdk_event.type); + } +#endif #ifdef HAVE_X_WINDOWS { Lisp_Object console = CDFW_CONSOLE (EVENT_CHANNEL (event)); diff --git a/src/events.h b/src/events.h index 3dcab79..a6ce474 100644 --- a/src/events.h +++ b/src/events.h @@ -422,11 +422,18 @@ struct magic_eval_data # include #endif +#ifdef HAVE_GTK +#include +#endif + union magic_data { #ifdef HAVE_TTY char underlying_tty_event; #endif +#ifdef HAVE_GTK + GdkEvent underlying_gdk_event; +#endif #ifdef HAVE_X_WINDOWS XEvent underlying_x_event; #endif diff --git a/src/faces.c b/src/faces.c index e87d934..551415e 100644 --- a/src/faces.c +++ b/src/faces.c @@ -1942,6 +1942,10 @@ complex_vars_of_faces (void) { Lisp_Object fg_fb = Qnil, bg_fb = Qnil; +#ifdef HAVE_GTK + fg_fb = acons (list1 (Qgtk), build_string ("black"), fg_fb); + bg_fb = acons (list1 (Qgtk), build_string ("white"), bg_fb); +#endif #ifdef HAVE_X_WINDOWS fg_fb = acons (list1 (Qx), build_string ("black"), fg_fb); bg_fb = acons (list1 (Qx), build_string ("white"), bg_fb); @@ -1964,7 +1968,15 @@ complex_vars_of_faces (void) support is compiled in. */ { Lisp_Object inst_list = Qnil; -#ifdef HAVE_X_WINDOWS + +#if defined(HAVE_X_WINDOWS) || defined(HAVE_GTK) + /* This is kind of ugly because stephen wanted this to be CPP + ** identical to the old version, at least for the initial + ** checkin + ** + ** WMP March 9, 2001 + */ + /* The same gory list from x-faces.el. (#### Perhaps we should remove the stuff from x-faces.el and only depend on this stuff here? That should work.) @@ -1989,11 +2001,20 @@ complex_vars_of_faces (void) }; const char **fontptr; +#ifdef HAVE_X_WINDOWS for (fontptr = fonts + countof(fonts) - 1; fontptr >= fonts; fontptr--) inst_list = Fcons (Fcons (list1 (Qx), build_string (*fontptr)), inst_list); #endif /* HAVE_X_WINDOWS */ +#ifdef HAVE_GTK + for (fontptr = fonts + countof(fonts) - 1; fontptr >= fonts; fontptr--) + inst_list = Fcons (Fcons (list1 (Qgtk), build_string (*fontptr)), + inst_list); +#endif /* HAVE_GTK */ +#endif /* HAVE_X_WINDOWS || HAVE_GTK */ + + #ifdef HAVE_TTY inst_list = Fcons (Fcons (list1 (Qtty), build_string ("normal")), inst_list); @@ -2001,16 +2022,16 @@ complex_vars_of_faces (void) #ifdef HAVE_MS_WINDOWS /* Fixedsys does not exist for printers */ inst_list = Fcons (Fcons (list1 (Qmsprinter), - build_string ("Courier:Regular:10::Western")), inst_list); + build_string ("Courier:Regular:10::Western")), inst_list); inst_list = Fcons (Fcons (list1 (Qmsprinter), - build_string ("Courier New:Regular:10::Western")), inst_list); + build_string ("Courier New:Regular:10::Western")), inst_list); inst_list = Fcons (Fcons (list1 (Qmswindows), - build_string ("Fixedsys:Regular:9::Western")), inst_list); + build_string ("Fixedsys:Regular:9::Western")), inst_list); inst_list = Fcons (Fcons (list1 (Qmswindows), - build_string ("Courier:Regular:10::Western")), inst_list); + build_string ("Courier:Regular:10::Western")), inst_list); inst_list = Fcons (Fcons (list1 (Qmswindows), - build_string ("Courier New:Regular:10::Western")), inst_list); + build_string ("Courier New:Regular:10::Western")), inst_list); #endif /* HAVE_MS_WINDOWS */ set_specifier_fallback (Fget (Vdefault_face, Qfont, Qnil), inst_list); } @@ -2039,6 +2060,13 @@ complex_vars_of_faces (void) { Lisp_Object fg_fb = Qnil, bg_fb = Qnil; +#ifdef HAVE_GTK + /* We need to put something in there, or error checking gets + #%!@#ed up before the styles are set, which override the + fallbacks. */ + fg_fb = acons (list1 (Qgtk), build_string ("black"), fg_fb); + bg_fb = acons (list1 (Qgtk), build_string ("Gray80"), bg_fb); +#endif #ifdef HAVE_X_WINDOWS fg_fb = acons (list1 (Qx), build_string ("black"), fg_fb); bg_fb = acons (list1 (Qx), build_string ("Gray80"), bg_fb); diff --git a/src/file-coding.c b/src/file-coding.c index bc59006..8635316 100644 --- a/src/file-coding.c +++ b/src/file-coding.c @@ -176,47 +176,47 @@ EXFUN (Fcopy_coding_system, 2); #ifdef MULE struct detection_state; static int detect_coding_sjis (struct detection_state *st, - const Extbyte *src, size_t n); + const Extbyte *src, Lstream_data_count n); static void decode_coding_sjis (Lstream *decoding, const Extbyte *src, - unsigned_char_dynarr *dst, size_t n); + unsigned_char_dynarr *dst, Lstream_data_count n); static void encode_coding_sjis (Lstream *encoding, const Bufbyte *src, - unsigned_char_dynarr *dst, size_t n); + unsigned_char_dynarr *dst, Lstream_data_count n); static int detect_coding_big5 (struct detection_state *st, - const Extbyte *src, size_t n); + const Extbyte *src, Lstream_data_count n); static void decode_coding_big5 (Lstream *decoding, const Extbyte *src, - unsigned_char_dynarr *dst, size_t n); + unsigned_char_dynarr *dst, Lstream_data_count n); static void encode_coding_big5 (Lstream *encoding, const Bufbyte *src, - unsigned_char_dynarr *dst, size_t n); + unsigned_char_dynarr *dst, Lstream_data_count n); static int detect_coding_ucs4 (struct detection_state *st, - const Extbyte *src, size_t n); + const Extbyte *src, Lstream_data_count n); static void decode_coding_ucs4 (Lstream *decoding, const Extbyte *src, - unsigned_char_dynarr *dst, size_t n); + unsigned_char_dynarr *dst, Lstream_data_count n); static void encode_coding_ucs4 (Lstream *encoding, const Bufbyte *src, - unsigned_char_dynarr *dst, size_t n); + unsigned_char_dynarr *dst, Lstream_data_count n); static int detect_coding_utf8 (struct detection_state *st, - const Extbyte *src, size_t n); + const Extbyte *src, Lstream_data_count n); static void decode_coding_utf8 (Lstream *decoding, const Extbyte *src, - unsigned_char_dynarr *dst, size_t n); + unsigned_char_dynarr *dst, Lstream_data_count n); static void encode_coding_utf8 (Lstream *encoding, const Bufbyte *src, - unsigned_char_dynarr *dst, size_t n); + unsigned_char_dynarr *dst, Lstream_data_count n); static int postprocess_iso2022_mask (int mask); static void reset_iso2022 (Lisp_Object coding_system, struct iso2022_decoder *iso); static int detect_coding_iso2022 (struct detection_state *st, - const Extbyte *src, size_t n); + const Extbyte *src, Lstream_data_count n); static void decode_coding_iso2022 (Lstream *decoding, const Extbyte *src, - unsigned_char_dynarr *dst, size_t n); + unsigned_char_dynarr *dst, Lstream_data_count n); static void encode_coding_iso2022 (Lstream *encoding, const Bufbyte *src, - unsigned_char_dynarr *dst, size_t n); + unsigned_char_dynarr *dst, Lstream_data_count n); #endif /* MULE */ static void decode_coding_no_conversion (Lstream *decoding, const Extbyte *src, - unsigned_char_dynarr *dst, size_t n); + unsigned_char_dynarr *dst, Lstream_data_count n); static void encode_coding_no_conversion (Lstream *encoding, const Bufbyte *src, - unsigned_char_dynarr *dst, size_t n); + unsigned_char_dynarr *dst, Lstream_data_count n); static void mule_decode (Lstream *decoding, const Extbyte *src, - unsigned_char_dynarr *dst, size_t n); + unsigned_char_dynarr *dst, Lstream_data_count n); static void mule_encode (Lstream *encoding, const Bufbyte *src, - unsigned_char_dynarr *dst, size_t n); + unsigned_char_dynarr *dst, Lstream_data_count n); typedef struct codesys_prop codesys_prop; struct codesys_prop @@ -1632,7 +1632,7 @@ mask_has_at_most_one_bit_p (int mask) static eol_type_t detect_eol_type (struct detection_state *st, const Extbyte *src, - size_t n) + Lstream_data_count n) { while (n--) { @@ -1675,7 +1675,7 @@ detect_eol_type (struct detection_state *st, const Extbyte *src, static int detect_coding_type (struct detection_state *st, const Extbyte *src, - size_t n, int just_do_eol) + Lstream_data_count n, int just_do_eol) { if (st->eol_type == EOL_AUTODETECT) st->eol_type = detect_eol_type (st, src, n); @@ -1806,7 +1806,7 @@ determine_real_coding_system (Lstream *stream, Lisp_Object *codesys_in_out, Extbyte buf[4096]; Lisp_Object coding_system = Qnil; Extbyte *p; - ssize_t nread = Lstream_read (stream, buf, sizeof (buf)); + Lstream_data_count nread = Lstream_read (stream, buf, sizeof (buf)); Extbyte *scan_end; /* Look for initial "-*-"; mode line prefix */ @@ -1940,7 +1940,7 @@ type. Optional arg BUFFER defaults to the current buffer. while (1) { Extbyte random_buffer[4096]; - ssize_t nread = Lstream_read (istr, random_buffer, sizeof (random_buffer)); + Lstream_data_count nread = Lstream_read (istr, random_buffer, sizeof (random_buffer)); if (!nread) break; @@ -2107,10 +2107,10 @@ struct decoding_stream struct detection_state decst; }; -static ssize_t decoding_reader (Lstream *stream, - unsigned char *data, size_t size); -static ssize_t decoding_writer (Lstream *stream, - const unsigned char *data, size_t size); +static Lstream_data_count decoding_reader (Lstream *stream, + unsigned char *data, Lstream_data_count size); +static Lstream_data_count decoding_writer (Lstream *stream, + const unsigned char *data, Lstream_data_count size); static int decoding_rewinder (Lstream *stream); static int decoding_seekable_p (Lstream *stream); static int decoding_flusher (Lstream *stream); @@ -2142,12 +2142,12 @@ decoding_marker (Lisp_Object stream) /* Read SIZE bytes of data and store it into DATA. We are a decoding stream so we read data from the other end, decode it, and store it into DATA. */ -static ssize_t -decoding_reader (Lstream *stream, unsigned char *data, size_t size) +static Lstream_data_count +decoding_reader (Lstream *stream, unsigned char *data, Lstream_data_count size) { struct decoding_stream *str = DECODING_STREAM_DATA (stream); unsigned char *orig_data = data; - ssize_t read_size; + Lstream_data_count read_size; int error_occurred = 0; /* We need to interface to mule_decode(), which expects to take some @@ -2163,7 +2163,7 @@ decoding_reader (Lstream *stream, unsigned char *data, size_t size) most SIZE bytes, and delete the data from the runoff. */ if (Dynarr_length (str->runoff) > 0) { - size_t chunk = min (size, (size_t) Dynarr_length (str->runoff)); + Lstream_data_count chunk = min (size, (Lstream_data_count) Dynarr_length (str->runoff)); memcpy (data, Dynarr_atp (str->runoff, 0), chunk); Dynarr_delete_many (str->runoff, 0, chunk); data += chunk; @@ -2204,11 +2204,11 @@ decoding_reader (Lstream *stream, unsigned char *data, size_t size) return data - orig_data; } -static ssize_t -decoding_writer (Lstream *stream, const unsigned char *data, size_t size) +static Lstream_data_count +decoding_writer (Lstream *stream, const unsigned char *data, Lstream_data_count size) { struct decoding_stream *str = DECODING_STREAM_DATA (stream); - ssize_t retval; + Lstream_data_count retval; /* Decode all our data into the runoff, and then attempt to write it all out to the other end. Remove whatever chunk we succeeded @@ -2366,7 +2366,7 @@ make_decoding_output_stream (Lstream *stream, Lisp_Object codesys) static void mule_decode (Lstream *decoding, const Extbyte *src, - unsigned_char_dynarr *dst, size_t n) + unsigned_char_dynarr *dst, Lstream_data_count n) { struct decoding_stream *str = DECODING_STREAM_DATA (decoding); @@ -2488,7 +2488,7 @@ BUFFER defaults to the current buffer if unspecified. char tempbuf[1024]; /* some random amount */ Bufpos newpos, even_newer_pos; Bufpos oldpos = lisp_buffer_stream_startpos (istr); - ssize_t size_in_bytes = Lstream_read (istr, tempbuf, sizeof (tempbuf)); + Lstream_data_count size_in_bytes = Lstream_read (istr, tempbuf, sizeof (tempbuf)); if (!size_in_bytes) break; @@ -2573,9 +2573,9 @@ struct encoding_stream #endif /* MULE */ }; -static ssize_t encoding_reader (Lstream *stream, unsigned char *data, size_t size); -static ssize_t encoding_writer (Lstream *stream, const unsigned char *data, - size_t size); +static Lstream_data_count encoding_reader (Lstream *stream, unsigned char *data, Lstream_data_count size); +static Lstream_data_count encoding_writer (Lstream *stream, const unsigned char *data, + Lstream_data_count size); static int encoding_rewinder (Lstream *stream); static int encoding_seekable_p (Lstream *stream); static int encoding_flusher (Lstream *stream); @@ -2607,12 +2607,12 @@ encoding_marker (Lisp_Object stream) /* Read SIZE bytes of data and store it into DATA. We are a encoding stream so we read data from the other end, encode it, and store it into DATA. */ -static ssize_t -encoding_reader (Lstream *stream, unsigned char *data, size_t size) +static Lstream_data_count +encoding_reader (Lstream *stream, unsigned char *data, Lstream_data_count size) { struct encoding_stream *str = ENCODING_STREAM_DATA (stream); unsigned char *orig_data = data; - ssize_t read_size; + Lstream_data_count read_size; int error_occurred = 0; /* We need to interface to mule_encode(), which expects to take some @@ -2669,11 +2669,11 @@ encoding_reader (Lstream *stream, unsigned char *data, size_t size) return data - orig_data; } -static ssize_t -encoding_writer (Lstream *stream, const unsigned char *data, size_t size) +static Lstream_data_count +encoding_writer (Lstream *stream, const unsigned char *data, Lstream_data_count size) { struct encoding_stream *str = ENCODING_STREAM_DATA (stream); - ssize_t retval; + Lstream_data_count retval; /* Encode all our data into the runoff, and then attempt to write it all out to the other end. Remove whatever chunk we succeeded @@ -2813,7 +2813,7 @@ make_encoding_output_stream (Lstream *stream, Lisp_Object codesys) static void mule_encode (Lstream *encoding, const Bufbyte *src, - unsigned_char_dynarr *dst, size_t n) + unsigned_char_dynarr *dst, Lstream_data_count n) { struct encoding_stream *str = ENCODING_STREAM_DATA (encoding); @@ -2899,7 +2899,7 @@ text. BUFFER defaults to the current buffer if unspecified. char tempbuf[1024]; /* some random amount */ Bufpos newpos, even_newer_pos; Bufpos oldpos = lisp_buffer_stream_startpos (istr); - ssize_t size_in_bytes = Lstream_read (istr, tempbuf, sizeof (tempbuf)); + Lstream_data_count size_in_bytes = Lstream_read (istr, tempbuf, sizeof (tempbuf)); if (!size_in_bytes) break; @@ -2962,7 +2962,7 @@ text. BUFFER defaults to the current buffer if unspecified. ((c) >= 0xA1 && (c) <= 0xDF) static int -detect_coding_sjis (struct detection_state *st, const Extbyte *src, size_t n) +detect_coding_sjis (struct detection_state *st, const Extbyte *src, Lstream_data_count n) { while (n--) { @@ -2985,7 +2985,7 @@ detect_coding_sjis (struct detection_state *st, const Extbyte *src, size_t n) static void decode_coding_sjis (Lstream *decoding, const Extbyte *src, - unsigned_char_dynarr *dst, size_t n) + unsigned_char_dynarr *dst, Lstream_data_count n) { struct decoding_stream *str = DECODING_STREAM_DATA (decoding); unsigned int flags = str->flags; @@ -3041,7 +3041,7 @@ decode_coding_sjis (Lstream *decoding, const Extbyte *src, static void encode_coding_sjis (Lstream *encoding, const Bufbyte *src, - unsigned_char_dynarr *dst, size_t n) + unsigned_char_dynarr *dst, Lstream_data_count n) { struct encoding_stream *str = ENCODING_STREAM_DATA (encoding); unsigned int flags = str->flags; @@ -3243,7 +3243,7 @@ Return the corresponding character code in SHIFT-JIS as a cons of two bytes. } while (0) static int -detect_coding_big5 (struct detection_state *st, const Extbyte *src, size_t n) +detect_coding_big5 (struct detection_state *st, const Extbyte *src, Lstream_data_count n) { while (n--) { @@ -3267,7 +3267,7 @@ detect_coding_big5 (struct detection_state *st, const Extbyte *src, size_t n) static void decode_coding_big5 (Lstream *decoding, const Extbyte *src, - unsigned_char_dynarr *dst, size_t n) + unsigned_char_dynarr *dst, Lstream_data_count n) { struct decoding_stream *str = DECODING_STREAM_DATA (decoding); unsigned int flags = str->flags; @@ -3316,7 +3316,7 @@ decode_coding_big5 (Lstream *decoding, const Extbyte *src, static void encode_coding_big5 (Lstream *encoding, const Bufbyte *src, - unsigned_char_dynarr *dst, size_t n) + unsigned_char_dynarr *dst, Lstream_data_count n) { unsigned char c; struct encoding_stream *str = ENCODING_STREAM_DATA (encoding); @@ -3582,7 +3582,7 @@ encode_ucs4 (Lisp_Object charset, } static int -detect_coding_ucs4 (struct detection_state *st, const Extbyte *src, size_t n) +detect_coding_ucs4 (struct detection_state *st, const Extbyte *src, Lstream_data_count n) { while (n--) { @@ -3607,7 +3607,7 @@ detect_coding_ucs4 (struct detection_state *st, const Extbyte *src, size_t n) static void decode_coding_ucs4 (Lstream *decoding, const Extbyte *src, - unsigned_char_dynarr *dst, size_t n) + unsigned_char_dynarr *dst, Lstream_data_count n) { struct decoding_stream *str = DECODING_STREAM_DATA (decoding); unsigned int flags = str->flags; @@ -3643,7 +3643,7 @@ decode_coding_ucs4 (Lstream *decoding, const Extbyte *src, static void encode_coding_ucs4 (Lstream *encoding, const Bufbyte *src, - unsigned_char_dynarr *dst, size_t n) + unsigned_char_dynarr *dst, Lstream_data_count n) { struct encoding_stream *str = ENCODING_STREAM_DATA (encoding); unsigned int flags = str->flags; @@ -3781,7 +3781,7 @@ encode_coding_ucs4 (Lstream *encoding, const Bufbyte *src, /************************************************************************/ static int -detect_coding_utf8 (struct detection_state *st, const Extbyte *src, size_t n) +detect_coding_utf8 (struct detection_state *st, const Extbyte *src, Lstream_data_count n) { while (n--) { @@ -3816,7 +3816,7 @@ detect_coding_utf8 (struct detection_state *st, const Extbyte *src, size_t n) static void decode_coding_utf8 (Lstream *decoding, const Extbyte *src, - unsigned_char_dynarr *dst, size_t n) + unsigned_char_dynarr *dst, Lstream_data_count n) { struct decoding_stream *str = DECODING_STREAM_DATA (decoding); unsigned int flags = str->flags; @@ -3930,7 +3930,7 @@ encode_utf8 (Lisp_Object charset, static void encode_coding_utf8 (Lstream *encoding, const Bufbyte *src, - unsigned_char_dynarr *dst, size_t n) + unsigned_char_dynarr *dst, Lstream_data_count n) { struct encoding_stream *str = ENCODING_STREAM_DATA (encoding); unsigned int flags = str->flags; @@ -4689,7 +4689,7 @@ parse_iso2022_esc (Lisp_Object codesys, struct iso2022_decoder *iso, } static int -detect_coding_iso2022 (struct detection_state *st, const Extbyte *src, size_t n) +detect_coding_iso2022 (struct detection_state *st, const Extbyte *src, Lstream_data_count n) { int mask; @@ -4880,7 +4880,7 @@ ensure_correct_direction (int direction, Lisp_Coding_System *codesys, static void decode_coding_iso2022 (Lstream *decoding, const Extbyte *src, - unsigned_char_dynarr *dst, size_t n) + unsigned_char_dynarr *dst, Lstream_data_count n) { struct decoding_stream *str = DECODING_STREAM_DATA (decoding); unsigned int flags = str->flags; @@ -5206,7 +5206,7 @@ ensure_shift_out (struct encoding_stream *str, unsigned_char_dynarr *dst) static void encode_coding_iso2022 (Lstream *encoding, const Bufbyte *src, - unsigned_char_dynarr *dst, size_t n) + unsigned_char_dynarr *dst, Lstream_data_count n) { unsigned char charmask, c; unsigned char char_boundary; @@ -5515,7 +5515,7 @@ encode_coding_iso2022 (Lstream *encoding, const Bufbyte *src, interpreted as being in any particular decoding. */ static void decode_coding_no_conversion (Lstream *decoding, const Extbyte *src, - unsigned_char_dynarr *dst, size_t n) + unsigned_char_dynarr *dst, Lstream_data_count n) { struct decoding_stream *str = DECODING_STREAM_DATA (decoding); unsigned int flags = str->flags; @@ -5539,7 +5539,7 @@ decode_coding_no_conversion (Lstream *decoding, const Extbyte *src, static void encode_coding_no_conversion (Lstream *encoding, const Bufbyte *src, - unsigned_char_dynarr *dst, size_t n) + unsigned_char_dynarr *dst, Lstream_data_count n) { unsigned char c; struct encoding_stream *str = ENCODING_STREAM_DATA (encoding); diff --git a/src/fileio.c b/src/fileio.c index 692e49e..e73a205 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -2994,7 +2994,7 @@ positions), even in Mule. (Fixing this is very difficult.) occurs inside of the filedesc stream. */ while (1) { - ssize_t this_len; + Lstream_data_count this_len; Charcount cc_inserted; QUIT; diff --git a/src/frame.h b/src/frame.h index 9a80e8e..377965f 100644 --- a/src/frame.h +++ b/src/frame.h @@ -336,6 +336,10 @@ error_check_frame_type (struct frame * f, Lisp_Object sym) #define CHECK_X_FRAME(z) CHECK_FRAME_TYPE (z, x) #define CONCHECK_X_FRAME(z) CONCHECK_FRAME_TYPE (z, x) +#define FRAME_GTK_P(frm) CONSOLE_TYPESYM_GTK_P (FRAME_TYPE (frm)) +#define CHECK_GTK_FRAME(z) CHECK_FRAME_TYPE (z, gtk) +#define CONCHECK_GTK_FRAME(z) CONCHECK_FRAME_TYPE (z, gtk) + #define FRAME_TTY_P(frm) CONSOLE_TYPESYM_TTY_P (FRAME_TYPE (frm)) #define CHECK_TTY_FRAME(z) CHECK_FRAME_TYPE (z, tty) #define CONCHECK_TTY_FRAME(z) CONCHECK_FRAME_TYPE (z, tty) diff --git a/src/general-slots.h b/src/general-slots.h index fac3a82..78bcf49 100644 --- a/src/general-slots.h +++ b/src/general-slots.h @@ -118,6 +118,7 @@ SYMBOL (Qgap_overhead); SYMBOL (Qgeneric); SYMBOL (Qgeometry); SYMBOL (Qglobal); +SYMBOL (Qgtk); SYMBOL (Qgutter); SYMBOL (Qheight); SYMBOL_KEYWORD (Q_height); diff --git a/src/glyphs-x.c b/src/glyphs-x.c index 8c29839..b45832d 100644 --- a/src/glyphs-x.c +++ b/src/glyphs-x.c @@ -703,7 +703,7 @@ write_lisp_string_to_temp_file (Lisp_Object string, char *filename_out) /* Get the data while doing the conversion */ while (1) { - ssize_t size_in_bytes = Lstream_read (istr, tempbuf, sizeof (tempbuf)); + Lstream_data_count size_in_bytes = Lstream_read (istr, tempbuf, sizeof (tempbuf)); if (!size_in_bytes) break; /* It does seem the flushes are necessary... */ diff --git a/src/glyphs.c b/src/glyphs.c index 7804e03..4494fc8 100644 --- a/src/glyphs.c +++ b/src/glyphs.c @@ -46,7 +46,7 @@ Boston, MA 02111-1307, USA. */ #include "specifier.h" #include "window.h" -#ifdef HAVE_XPM +#if defined (HAVE_XPM) && !defined (HAVE_GTK) #include #endif @@ -2811,6 +2811,14 @@ xface_possible_dest_types (void) * XPM * **********************************************************************/ +#ifdef HAVE_GTK +/* Gtk has to be gratuitously different, eh? */ +Lisp_Object +pixmap_to_lisp_data (Lisp_Object name, int ok_if_data_invalid) +{ + return (make_string_from_file (name)); +} +#else Lisp_Object pixmap_to_lisp_data (Lisp_Object name, int ok_if_data_invalid) { @@ -2892,6 +2900,7 @@ pixmap_to_lisp_data (Lisp_Object name, int ok_if_data_invalid) return Qnil; /* not reached */ } +#endif /* !HAVE_GTK */ static void check_valid_xpm_color_symbols (Lisp_Object data) diff --git a/src/gpmevent.c b/src/gpmevent.c index 20c45ec..d42c9ae 100644 --- a/src/gpmevent.c +++ b/src/gpmevent.c @@ -272,8 +272,8 @@ tty_get_foreign_selection (Lisp_Object selection_symbol, Lisp_Object target_type while (1) { Bufbyte tempbuf[1024]; /* some random amount */ - ssize_t i; - ssize_t size_in_bytes = + Lstream_data_count i; + Lstream_data_count size_in_bytes = Lstream_read (XLSTREAM (terminal_stream), tempbuf, sizeof (tempbuf)); diff --git a/src/gutter.c b/src/gutter.c index c250589..0cb9b94 100644 --- a/src/gutter.c +++ b/src/gutter.c @@ -1393,6 +1393,9 @@ See `default-gutter-height' for more information. #ifdef HAVE_TTY fb = Fcons (Fcons (list1 (Qtty), Qautodetect), fb); #endif +#ifdef HAVE_GTK + fb = Fcons (Fcons (list1 (Qgtk), Qautodetect), fb); +#endif #ifdef HAVE_X_WINDOWS fb = Fcons (Fcons (list1 (Qx), Qautodetect), fb); #endif @@ -1410,6 +1413,9 @@ See `default-gutter-height' for more information. #ifdef HAVE_X_WINDOWS fb = Fcons (Fcons (list1 (Qx), Qautodetect), fb); #endif +#ifdef HAVE_GTK + fb = Fcons (Fcons (list1 (Qgtk), Qautodetect), fb); +#endif #ifdef HAVE_MS_WINDOWS fb = Fcons (Fcons (list1 (Qmsprinter), Qautodetect), fb); fb = Fcons (Fcons (list1 (Qmswindows), Qautodetect), fb); diff --git a/src/inline.c b/src/inline.c index 3db3be5..1995900 100644 --- a/src/inline.c +++ b/src/inline.c @@ -90,6 +90,11 @@ Boston, MA 02111-1307, USA. */ #include "console-msw.h" #endif +#ifdef HAVE_GTK +#include "console-gtk.h" +#include "ui-gtk.h" +#endif + #ifdef FILE_CODING #include "file-coding.h" #endif diff --git a/src/lisp-disunion.h b/src/lisp-disunion.h index 2343e04..f2fdafc 100644 --- a/src/lisp-disunion.h +++ b/src/lisp-disunion.h @@ -41,7 +41,7 @@ Boston, MA 02111-1307, USA. */ bits are the Lisp object. Some people call such Lisp_Objects "immediate". The object is obtained by masking off the type bits. - Bit 1 is used as a value bit by splitting the Lisp integer type + Bit 1 is used as a value bit by splitting the Lisp integer type into two subtypes, Lisp_Type_Int_Even and Lisp_Type_Int_Odd. By this trickery we get 31 bits for integers instead of 30. @@ -49,7 +49,7 @@ Boston, MA 02111-1307, USA. */ a pointer to a structure containing the object. The pointer is obtained by masking off the type and mark bits. - All pointer-based types are coalesced under a single type called + All pointer-based types are coalesced under a single type called Lisp_Type_Record. The type bits for this type are required by the implementation to be 00, just like the least significant bits of word-aligned struct pointers on 32-bit hardware. This requires that diff --git a/src/lisp.h b/src/lisp.h index 9f04fe7..98e82d9 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -267,7 +267,11 @@ void assert_failed (const char *, int, const char *); /* EMACS_INT is the underlying integral type into which a Lisp_Object must fit. In particular, it must be large enough to contain a pointer. - config.h can override this, e.g. to use `long long' for bigger lisp ints. */ + config.h can override this, e.g. to use `long long' for bigger lisp ints. + + #### In point of fact, it would NOT be a good idea for config.h to mess + with EMACS_INT. A lot of code makes the basic assumption that EMACS_INT + is the size of a pointer. */ #ifndef SIZEOF_EMACS_INT # define SIZEOF_EMACS_INT SIZEOF_VOID_P @@ -354,7 +358,7 @@ typedef UChar UChar_ASCII; typedef int Emchar; /* Different ways of referring to a position in a buffer. We use - the typedefs in preference to 'int' to make it clearer what + the typedefs in preference to 'EMACS_INT' to make it clearer what sort of position is being used. See extents.c for a description of the different positions. We put them here instead of in buffer.h (where they rightfully belong) to avoid syntax errors @@ -3249,6 +3253,7 @@ extern Lisp_Object Qvariable_documentation, Qvariable_domain; extern Lisp_Object Qvoid_function, Qvoid_variable; extern Lisp_Object Qwindow_live_p, Qwrong_number_of_arguments; extern Lisp_Object Qwrong_type_argument, Qyes_or_no_p; +extern Lisp_Object Qgtk; #define SYMBOL(fou) extern Lisp_Object fou #define SYMBOL_KEYWORD(la_cle_est_fou) extern Lisp_Object la_cle_est_fou diff --git a/src/lrecord.h b/src/lrecord.h index 3fb3201..3934b5f 100644 --- a/src/lrecord.h +++ b/src/lrecord.h @@ -189,6 +189,9 @@ enum lrecord_type lrecord_type_devmode, lrecord_type_mswindows_dialog_id, lrecord_type_case_table, + lrecord_type_emacs_ffi, + lrecord_type_emacs_gtk_object, + lrecord_type_emacs_gtk_boxed, lrecord_type_free, /* only used for "free" lrecords */ lrecord_type_undefined, /* only used for debugging */ lrecord_type_last_built_in_type /* must be last */ diff --git a/src/lstream.c b/src/lstream.c index d413800..5002e3b 100644 --- a/src/lstream.c +++ b/src/lstream.c @@ -95,17 +95,19 @@ int Lstream_fgetc (Lstream *stream) void Lstream_fungetc (Lstream *stream, int c) Function equivalents of the above macros. -ssize_t Lstream_read (Lstream *stream, void *data, size_t size) +Lstream_data_count Lstream_read (Lstream *stream, void *data, + Lstream_data_count size) Read SIZE bytes of DATA from the stream. Return the number of bytes read. 0 means EOF. -1 means an error occurred and no bytes were read. -ssize_t Lstream_write (Lstream *stream, void *data, size_t size) +Lstream_data_count Lstream_write (Lstream *stream, void *data, + Lstream_data_count size) Write SIZE bytes of DATA to the stream. Return the number of bytes written. -1 means an error occurred and no bytes were written. -void Lstream_unread (Lstream *stream, void *data, size_t size) +void Lstream_unread (Lstream *stream, void *data, Lstream_data_count size) Push back SIZE bytes of DATA onto the input queue. The next call to Lstream_read() with the same size will read the same bytes back. Note that this will be the case even if @@ -308,11 +310,11 @@ Lstream_reopen (Lstream *lstr) int Lstream_flush_out (Lstream *lstr) { - ssize_t num_written; + Lstream_data_count num_written; while (lstr->out_buffer_ind > 0) { - size_t size = lstr->out_buffer_ind; + Lstream_data_count size = lstr->out_buffer_ind; if (! (lstr->flags & LSTREAM_FL_IS_OPEN)) Lstream_internal_error ("lstream not open", lstr); if (! (lstr->flags & LSTREAM_FL_WRITE)) @@ -395,10 +397,10 @@ Lstream_flush (Lstream *lstr) if it's getting EWOULDBLOCK errors. We have to keep stocking them up until they can be written, so as to avoid losing data. */ -static size_t -Lstream_adding (Lstream *lstr, size_t num, int force) +static Lstream_data_count +Lstream_adding (Lstream *lstr, Lstream_data_count num, int force) { - size_t size = num + lstr->out_buffer_ind; + Lstream_data_count size = num + lstr->out_buffer_ind; if (size <= lstr->out_buffer_size) return num; @@ -420,11 +422,11 @@ Lstream_adding (Lstream *lstr, size_t num, int force) /* Like Lstream_write(), but does not handle line-buffering correctly. */ -static ssize_t -Lstream_write_1 (Lstream *lstr, const void *data, size_t size) +static Lstream_data_count +Lstream_write_1 (Lstream *lstr, const void *data, Lstream_data_count size) { const unsigned char *p = (const unsigned char *) data; - ssize_t off = 0; + Lstream_data_count off = 0; if (! (lstr->flags & LSTREAM_FL_IS_OPEN)) Lstream_internal_error ("lstream not open", lstr); if (! (lstr->flags & LSTREAM_FL_WRITE)) @@ -435,7 +437,7 @@ Lstream_write_1 (Lstream *lstr, const void *data, size_t size) while (1) { /* Figure out how much we can add to the buffer */ - size_t chunk = Lstream_adding (lstr, size, 0); + Lstream_data_count chunk = Lstream_adding (lstr, size, 0); if (chunk == 0) { if (couldnt_write_last_time) @@ -480,10 +482,10 @@ Lstream_write_1 (Lstream *lstr, const void *data, size_t size) repeatedly call Lstream_putc(), which knows how to handle line buffering. Returns number of bytes written. */ -ssize_t -Lstream_write (Lstream *lstr, const void *data, size_t size) +Lstream_data_count +Lstream_write (Lstream *lstr, const void *data, Lstream_data_count size) { - size_t i; + Lstream_data_count i; const unsigned char *p = (const unsigned char *) data; if (size == 0) @@ -495,7 +497,7 @@ Lstream_write (Lstream *lstr, const void *data, size_t size) if (Lstream_putc (lstr, p[i]) < 0) break; } - return i == 0 ? -1 : (ssize_t) i; + return i == 0 ? -1 : i; } int @@ -504,8 +506,9 @@ Lstream_was_blocked_p (Lstream *lstr) return lstr->imp->was_blocked_p ? lstr->imp->was_blocked_p (lstr) : 0; } -static ssize_t -Lstream_raw_read (Lstream *lstr, unsigned char *buffer, size_t size) +static Lstream_data_count +Lstream_raw_read (Lstream *lstr, unsigned char *buffer, + Lstream_data_count size) { if (! (lstr->flags & LSTREAM_FL_IS_OPEN)) Lstream_internal_error ("lstream not open", lstr); @@ -519,16 +522,18 @@ Lstream_raw_read (Lstream *lstr, unsigned char *buffer, size_t size) /* Assuming the buffer is empty, fill it up again. */ -static ssize_t +static Lstream_data_count Lstream_read_more (Lstream *lstr) { #if 0 - ssize_t size_needed = max (1, min (MAX_READ_SIZE, lstr->buffering_size)); + Lstream_data_count size_needed + = max (1, min (MAX_READ_SIZE, lstr->buffering_size)); #else /* If someone requested a larger buffer size, so be it! */ - ssize_t size_needed = max (1, lstr->buffering_size); + Lstream_data_count size_needed = + max (1, lstr->buffering_size); #endif - ssize_t size_gotten; + Lstream_data_count size_gotten; DO_REALLOC (lstr->in_buffer, lstr->in_buffer_size, size_needed, unsigned char); @@ -538,12 +543,12 @@ Lstream_read_more (Lstream *lstr) return size_gotten < 0 ? -1 : size_gotten; } -ssize_t -Lstream_read (Lstream *lstr, void *data, size_t size) +Lstream_data_count +Lstream_read (Lstream *lstr, void *data, Lstream_data_count size) { unsigned char *p = (unsigned char *) data; - size_t off = 0; - size_t chunk; + Lstream_data_count off = 0; + Lstream_data_count chunk; int error_occurred = 0; if (size == 0) @@ -576,7 +581,7 @@ Lstream_read (Lstream *lstr, void *data, size_t size) /* If we need some more, try to get some more from the stream's end */ if (size > 0) { - ssize_t retval = Lstream_read_more (lstr); + Lstream_data_count retval = Lstream_read_more (lstr); if (retval < 0) error_occurred = 1; if (retval <= 0) @@ -600,7 +605,7 @@ Lstream_read (Lstream *lstr, void *data, size_t size) VALIDATE_CHARPTR_BACKWARD (dataend); if (dataend + REP_BYTES_BY_FIRST_BYTE (*dataend) != p + off) { - size_t newoff = dataend - p; + Lstream_data_count newoff = dataend - p; /* If not, chop the size down to ignore the last char and stash it away for next time. */ Lstream_unread (lstr, dataend, off - newoff); @@ -609,11 +614,11 @@ Lstream_read (Lstream *lstr, void *data, size_t size) } } - return off == 0 && error_occurred ? -1 : (ssize_t) off; + return off == 0 && error_occurred ? -1 : off; } void -Lstream_unread (Lstream *lstr, const void *data, size_t size) +Lstream_unread (Lstream *lstr, const void *data, Lstream_data_count size) { const unsigned char *p = (const unsigned char *) data; @@ -732,7 +737,7 @@ int Lstream_fputc (Lstream *lstr, int c) { unsigned char ch = (unsigned char) c; - ssize_t retval = Lstream_write_1 (lstr, &ch, 1); + Lstream_data_count retval = Lstream_write_1 (lstr, &ch, 1); if (retval >= 0 && lstr->buffering == LSTREAM_LINE_BUFFERED && ch == '\n') return Lstream_flush_out (lstr); return retval < 0 ? -1 : 0; @@ -813,21 +818,22 @@ make_stdio_output_stream (FILE *stream, int flags) code (it could even be argued that the error might have fixed itself, so we should do the fread() again. */ -static ssize_t -stdio_reader (Lstream *stream, unsigned char *data, size_t size) +static Lstream_data_count +stdio_reader (Lstream *stream, unsigned char *data, Lstream_data_count size) { struct stdio_stream *str = STDIO_STREAM_DATA (stream); - size_t val = fread (data, 1, size, str->file); + Lstream_data_count val = fread (data, 1, size, str->file); if (!val && ferror (str->file)) return -1; return val; } -static ssize_t -stdio_writer (Lstream *stream, const unsigned char *data, size_t size) +static Lstream_data_count +stdio_writer (Lstream *stream, const unsigned char *data, + Lstream_data_count size) { struct stdio_stream *str = STDIO_STREAM_DATA (stream); - size_t val = fwrite (data, 1, size, str->file); + Lstream_data_count val = fwrite (data, 1, size, str->file); if (!val && ferror (str->file)) return -1; return val; @@ -938,13 +944,13 @@ make_filedesc_output_stream (int filedesc, int offset, int count, int flags) return make_filedesc_stream_1 (filedesc, offset, count, flags, "w"); } -static ssize_t -filedesc_reader (Lstream *stream, unsigned char *data, size_t size) +static Lstream_data_count +filedesc_reader (Lstream *stream, unsigned char *data, Lstream_data_count size) { - ssize_t nread; + Lstream_data_count nread; struct filedesc_stream *str = FILEDESC_STREAM_DATA (stream); if (str->end_pos >= 0) - size = min (size, (size_t) (str->end_pos - str->current_pos)); + size = min (size, (Lstream_data_count) (str->end_pos - str->current_pos)); nread = str->allow_quit ? read_allowing_quit (str->fd, data, size) : read (str->fd, data, size); @@ -967,11 +973,12 @@ errno_would_block_p (int val) return 0; } -static ssize_t -filedesc_writer (Lstream *stream, const unsigned char *data, size_t size) +static Lstream_data_count +filedesc_writer (Lstream *stream, const unsigned char *data, + Lstream_data_count size) { struct filedesc_stream *str = FILEDESC_STREAM_DATA (stream); - ssize_t retval; + Lstream_data_count retval; int need_newline = 0; /* This function would be simple if it were not for the blasted @@ -1025,7 +1032,7 @@ filedesc_writer (Lstream *stream, const unsigned char *data, size_t size) out for EWOULDBLOCK. */ if (str->chars_sans_newline >= str->pty_max_bytes) { - ssize_t retval2 = str->allow_quit ? + Lstream_data_count retval2 = str->allow_quit ? write_allowing_quit (str->fd, &str->eof_char, 1) : write (str->fd, &str->eof_char, 1); @@ -1058,7 +1065,7 @@ filedesc_writer (Lstream *stream, const unsigned char *data, size_t size) if (need_newline) { Bufbyte nl = '\n'; - ssize_t retval2 = str->allow_quit ? + Lstream_data_count retval2 = str->allow_quit ? write_allowing_quit (str->fd, &nl, 1) : write (str->fd, &nl, 1); @@ -1194,8 +1201,9 @@ make_lisp_string_input_stream (Lisp_Object string, Bytecount offset, return obj; } -static ssize_t -lisp_string_reader (Lstream *stream, unsigned char *data, size_t size) +static Lstream_data_count +lisp_string_reader (Lstream *stream, unsigned char *data, + Lstream_data_count size) { struct lisp_string_stream *str = LISP_STRING_STREAM_DATA (stream); /* Don't lose if the string shrank past us ... */ @@ -1210,7 +1218,7 @@ lisp_string_reader (Lstream *stream, unsigned char *data, size_t size) if (stream->flags & LSTREAM_FL_NO_PARTIAL_CHARS) VALIDATE_CHARPTR_BACKWARD (start); offset = start - strstart; - size = min (size, (size_t) (str->end - offset)); + size = min (size, (Lstream_data_count) (str->end - offset)); memcpy (data, start, size); str->offset = offset + size; return size; @@ -1253,15 +1261,15 @@ struct fixed_buffer_stream { const unsigned char *inbuf; unsigned char *outbuf; - size_t size; - size_t offset; + Lstream_data_count size; + Lstream_data_count offset; }; DEFINE_LSTREAM_IMPLEMENTATION ("fixed-buffer", lstream_fixed_buffer, sizeof (struct fixed_buffer_stream)); Lisp_Object -make_fixed_buffer_input_stream (const void *buf, size_t size) +make_fixed_buffer_input_stream (const void *buf, Lstream_data_count size) { Lisp_Object obj; Lstream *lstr = Lstream_new (lstream_fixed_buffer, "r"); @@ -1273,7 +1281,7 @@ make_fixed_buffer_input_stream (const void *buf, size_t size) } Lisp_Object -make_fixed_buffer_output_stream (void *buf, size_t size) +make_fixed_buffer_output_stream (void *buf, Lstream_data_count size) { Lisp_Object obj; Lstream *lstr = Lstream_new (lstream_fixed_buffer, "w"); @@ -1284,8 +1292,9 @@ make_fixed_buffer_output_stream (void *buf, size_t size) return obj; } -static ssize_t -fixed_buffer_reader (Lstream *stream, unsigned char *data, size_t size) +static Lstream_data_count +fixed_buffer_reader (Lstream *stream, unsigned char *data, + Lstream_data_count size) { struct fixed_buffer_stream *str = FIXED_BUFFER_STREAM_DATA (stream); size = min (size, str->size - str->offset); @@ -1294,8 +1303,9 @@ fixed_buffer_reader (Lstream *stream, unsigned char *data, size_t size) return size; } -static ssize_t -fixed_buffer_writer (Lstream *stream, const unsigned char *data, size_t size) +static Lstream_data_count +fixed_buffer_writer (Lstream *stream, const unsigned char *data, + Lstream_data_count size) { struct fixed_buffer_stream *str = FIXED_BUFFER_STREAM_DATA (stream); if (str->offset == str->size) @@ -1340,7 +1350,7 @@ fixed_buffer_output_stream_ptr (Lstream *stream) struct resizing_buffer_stream { unsigned char *buf; - size_t allocked; + Lstream_data_count allocked; int max_stored; int stored; }; @@ -1356,8 +1366,9 @@ make_resizing_buffer_output_stream (void) return obj; } -static ssize_t -resizing_buffer_writer (Lstream *stream, const unsigned char *data, size_t size) +static Lstream_data_count +resizing_buffer_writer (Lstream *stream, const unsigned char *data, + Lstream_data_count size) { struct resizing_buffer_stream *str = RESIZING_BUFFER_STREAM_DATA (stream); DO_REALLOC (str->buf, str->allocked, str->stored + size, unsigned char); @@ -1418,8 +1429,9 @@ make_dynarr_output_stream (unsigned_char_dynarr *dyn) return obj; } -static ssize_t -dynarr_writer (Lstream *stream, const unsigned char *data, size_t size) +static Lstream_data_count +dynarr_writer (Lstream *stream, const unsigned char *data, + Lstream_data_count size) { struct dynarr_stream *str = DYNARR_STREAM_DATA (stream); Dynarr_add_many (str->dyn, data, size); @@ -1542,8 +1554,9 @@ make_lisp_buffer_output_stream (struct buffer *buf, Bufpos pos, int flags) return lstr; } -static ssize_t -lisp_buffer_reader (Lstream *stream, unsigned char *data, size_t size) +static Lstream_data_count +lisp_buffer_reader (Lstream *stream, unsigned char *data, + Lstream_data_count size) { struct lisp_buffer_stream *str = LISP_BUFFER_STREAM_DATA (stream); unsigned char *orig_data = data; @@ -1567,7 +1580,7 @@ lisp_buffer_reader (Lstream *stream, unsigned char *data, size_t size) BI_BUF_ZV (buf)); } - size = min (size, (size_t) (end - start)); + size = min (size, (Lstream_data_count) (end - start)); end = start + size; /* We cannot return a partial character. */ VALIDATE_BYTIND_BACKWARD (buf, end); @@ -1600,8 +1613,9 @@ lisp_buffer_reader (Lstream *stream, unsigned char *data, size_t size) return data - orig_data; } -static ssize_t -lisp_buffer_writer (Lstream *stream, const unsigned char *data, size_t size) +static Lstream_data_count +lisp_buffer_writer (Lstream *stream, const unsigned char *data, + Lstream_data_count size) { struct lisp_buffer_stream *str = LISP_BUFFER_STREAM_DATA (stream); Bufpos pos; diff --git a/src/lstream.h b/src/lstream.h index 37211a1..309f722 100644 --- a/src/lstream.h +++ b/src/lstream.h @@ -42,6 +42,26 @@ DECLARE_LRECORD (lstream, struct lstream); #define EOF (-1) #endif +/* Typedef specifying a count of bytes in a data block to be written + out or read in, using Lstream_read(), Lstream_write(), and related + functions. This MUST BE SIGNED, since it also is used in functions + that return the number of bytes actually read to or written from in + an operation, and these functions can return -1 to signal error. + + Note that the standard Unix read() and write() functions define the + count going in as a size_t, which is UNSIGNED, and the count going + out as an ssize_t, which is SIGNED. This is a horrible design + flaw. Not only is it highly likely to lead to logic errors when a + -1 gets interpreted as a large positive number, but operations are + bound to fail in all sorts of horrible ways when a number in the + upper-half of the size_t range is passed in -- this number is + unrepresentable as an ssize_t, so code that checks to see how many + bytes are actually written (which is mandatory if you are dealing + with certain types of devices) will get completely screwed up. +*/ + +typedef EMACS_INT Lstream_data_count; + typedef enum lstream_buffering { /* No buffering. */ @@ -75,8 +95,9 @@ typedef enum lstream_buffering typedef struct lstream_implementation { const char *name; - size_t size; /* Number of additional bytes to be allocated with this - stream. Access this data using Lstream_data(). */ + Lstream_data_count size; /* Number of additional bytes to be + allocated with this stream. Access this + data using Lstream_data(). */ /* Read some data from the stream's end and store it into DATA, which can hold SIZE bytes. Return the number of bytes read. A return value of 0 means no bytes can be read at this time. This may @@ -95,7 +116,8 @@ typedef struct lstream_implementation /* The omniscient mly, blinded by the irresistible thrall of Common Lisp, thinks that it is bogus that the types and implementations of input and output streams are the same. */ - ssize_t (*reader) (Lstream *stream, unsigned char *data, size_t size); + Lstream_data_count (*reader) (Lstream *stream, unsigned char *data, + Lstream_data_count size); /* Send some data to the stream's end. Data to be sent is in DATA and is SIZE bytes. Return the number of bytes sent. This function can send and return fewer bytes than is passed in; in @@ -106,7 +128,8 @@ typedef struct lstream_implementation data. (This is useful, e.g., of you're dealing with a non-blocking file descriptor and are getting EWOULDBLOCK errors.) This function can be NULL if the stream is input-only. */ - ssize_t (*writer) (Lstream *stream, const unsigned char *data, size_t size); + Lstream_data_count (*writer) (Lstream *stream, const unsigned char *data, + Lstream_data_count size); /* Return non-zero if the last write operation on the stream resulted in an attempt to block (EWOULDBLOCK). If this method does not exists, the implementation returns 0 */ @@ -147,26 +170,29 @@ struct lstream struct lcrecord_header header; const Lstream_implementation *imp; /* methods for this stream */ Lstream_buffering buffering; /* type of buffering in use */ - size_t buffering_size; /* number of bytes buffered */ + Lstream_data_count buffering_size; /* number of bytes buffered */ unsigned char *in_buffer; /* holds characters read from stream end */ - size_t in_buffer_size; /* allocated size of buffer */ - size_t in_buffer_current; /* number of characters in buffer */ - size_t in_buffer_ind; /* pointer to next character to take from buffer */ + Lstream_data_count in_buffer_size; /* allocated size of buffer */ + Lstream_data_count in_buffer_current; /* number of characters in buffer */ + Lstream_data_count in_buffer_ind; /* pointer to next character to + take from buffer */ unsigned char *out_buffer; /* holds characters to write to stream end */ - size_t out_buffer_size; /* allocated size of buffer */ - size_t out_buffer_ind; /* pointer to next buffer spot to write a character */ + Lstream_data_count out_buffer_size; /* allocated size of buffer */ + Lstream_data_count out_buffer_ind; /* pointer to next buffer spot to + write a character */ /* The unget buffer is more or less a stack -- things get pushed onto the end and read back from the end. Lstream_read() basically reads backwards from the end to get stuff; Lstream_unread() similarly has to push the data on backwards. */ unsigned char *unget_buffer; /* holds characters pushed back onto input */ - size_t unget_buffer_size; /* allocated size of buffer */ - size_t unget_buffer_ind; /* pointer to next buffer spot to write a character */ + Lstream_data_count unget_buffer_size; /* allocated size of buffer */ + Lstream_data_count unget_buffer_ind; /* pointer to next buffer spot + to write a character */ - size_t byte_count; + Lstream_data_count byte_count; int flags; max_align_t data[1]; }; @@ -209,10 +235,12 @@ int Lstream_flush_out (Lstream *lstr); int Lstream_fputc (Lstream *lstr, int c); int Lstream_fgetc (Lstream *lstr); void Lstream_fungetc (Lstream *lstr, int c); -ssize_t Lstream_read (Lstream *lstr, void *data, size_t size); -ssize_t Lstream_write (Lstream *lstr, const void *data, size_t size); +Lstream_data_count Lstream_read (Lstream *lstr, void *data, + Lstream_data_count size); +Lstream_data_count Lstream_write (Lstream *lstr, const void *data, + Lstream_data_count size); int Lstream_was_blocked_p (Lstream *lstr); -void Lstream_unread (Lstream *lstr, const void *data, size_t size); +void Lstream_unread (Lstream *lstr, const void *data, Lstream_data_count size); int Lstream_rewind (Lstream *lstr); int Lstream_seekable_p (Lstream *lstr); int Lstream_close (Lstream *lstr); @@ -340,8 +368,10 @@ int filedesc_stream_fd (Lstream *stream); Lisp_Object make_lisp_string_input_stream (Lisp_Object string, Bytecount offset, Bytecount len); -Lisp_Object make_fixed_buffer_input_stream (const void *buf, size_t size); -Lisp_Object make_fixed_buffer_output_stream (void *buf, size_t size); +Lisp_Object make_fixed_buffer_input_stream (const void *buf, + Lstream_data_count size); +Lisp_Object make_fixed_buffer_output_stream (void *buf, + Lstream_data_count size); const unsigned char *fixed_buffer_input_stream_ptr (Lstream *stream); unsigned char *fixed_buffer_output_stream_ptr (Lstream *stream); Lisp_Object make_resizing_buffer_output_stream (void); diff --git a/src/make-src-depend b/src/make-src-depend index aaa3155..b1bf8d0 100644 --- a/src/make-src-depend +++ b/src/make-src-depend @@ -56,7 +56,7 @@ for my $file (keys %exists) { s/[ \t]+//g; # Find include dependencies for (/^\#include([^\n]+)/gm) { - if (m@^\"([A-Za-z0-9._-]+\.h)\"@) { + if (m@^\"([A-Za-z0-9._-]+\.[ch])\"@) { $uses{$file}{$1} = 1 if exists $exists{$1}; } elsif (m@<([A-Za-z0-9._-]+\.h)>@) { $uses{$file}{$1} = 1 if exists $generated_header{$1}; @@ -119,6 +119,7 @@ sub PrintPatternDeps { PrintPatternDeps ('-msw\\.', "HAVE_MS_WINDOWS"); PrintPatternDeps ('-x\\.', "HAVE_X_WINDOWS"); PrintPatternDeps ('-tty\\.', "HAVE_TTY"); +PrintPatternDeps ('-gtk\\.', "HAVE_GTK"); PrintPatternDeps ('^database', "HAVE_DATABASE"); PrintPatternDeps ('^mule', "MULE"); PrintPatternDeps ('^(?:External|extw-)', "EXTERNAL_WIDGET"); diff --git a/src/md5.c b/src/md5.c index 901ca58..608ba7b 100644 --- a/src/md5.c +++ b/src/md5.c @@ -579,7 +579,7 @@ file-coding or Mule support. Otherwise, they are ignored. while (1) { Bufbyte tempbuf[1024]; /* some random amount */ - ssize_t size_in_bytes = + Lstream_data_count size_in_bytes = Lstream_read (XLSTREAM (instream), tempbuf, sizeof (tempbuf)); if (!size_in_bytes) break; diff --git a/src/mule-ccl.c b/src/mule-ccl.c index 9a38087..947d64b 100644 --- a/src/mule-ccl.c +++ b/src/mule-ccl.c @@ -677,35 +677,35 @@ static int stack_idx_of_map_multiple; r[7] = LOWER_BYTE (SJIS (Y, Z) */ /* Terminate CCL program successfully. */ -#define CCL_SUCCESS \ -do { \ - ccl->status = CCL_STAT_SUCCESS; \ +#define CCL_SUCCESS \ + do { \ + ccl->status = CCL_STAT_SUCCESS; \ /* The "if (1)" inhibits the warning \ "end-of loop code not reached" */ \ if (1) goto ccl_finish; \ -} while (0) + } while (0) /* Suspend CCL program because of reading from empty input buffer or writing to full output buffer. When this program is resumed, the same I/O command is executed. */ -#define CCL_SUSPEND(stat) \ -do { \ - ic--; \ +#define CCL_SUSPEND(stat) \ + do { \ + ic--; \ ccl->status = (stat); \ /* The "if (1)" inhibits the warning \ "end-of loop code not reached" */ \ if (1) goto ccl_finish; \ -} while (0) + } while (0) /* Terminate CCL program because of invalid command. Should not occur in the normal case. */ -#define CCL_INVALID_CMD \ -do { \ - ccl->status = CCL_STAT_INVALID_CMD; \ +#define CCL_INVALID_CMD \ + do { \ + ccl->status = CCL_STAT_INVALID_CMD; \ /* The "if (1)" inhibits the warning \ "end-of loop code not reached" */ \ if (1) goto ccl_error_handler; \ -} while (0) + } while (0) /* Encode one character CH to multibyte form and write to the current output buffer. At encoding time, if CH is less than 256, CH is @@ -1283,57 +1283,57 @@ ccl_driver (struct ccl_program *ccl, if (!src) CCL_INVALID_CMD; - if (src >= src_end) - { - src++; - goto ccl_read_multibyte_character_suspend; - } - - i = *src++; - if (i < 0x80) - { - /* ASCII */ - reg[rrr] = i; - reg[RRR] = LEADING_BYTE_ASCII; - } - else if (i <= MAX_LEADING_BYTE_OFFICIAL_1) - { - if (src >= src_end) - goto ccl_read_multibyte_character_suspend; - reg[RRR] = i; - reg[rrr] = (*src++ & 0x7F); - } - else if (i <= MAX_LEADING_BYTE_OFFICIAL_2) - { - if ((src + 1) >= src_end) - goto ccl_read_multibyte_character_suspend; - reg[RRR] = i; - i = (*src++ & 0x7F); - reg[rrr] = ((i << 7) | (*src & 0x7F)); - src++; - } - else if (i == PRE_LEADING_BYTE_PRIVATE_1) - { - if ((src + 1) >= src_end) - goto ccl_read_multibyte_character_suspend; - reg[RRR] = *src++; - reg[rrr] = (*src++ & 0x7F); - } - else if (i == PRE_LEADING_BYTE_PRIVATE_2) - { - if ((src + 2) >= src_end) + if (src >= src_end) + { + src++; goto ccl_read_multibyte_character_suspend; - reg[RRR] = *src++; - i = (*src++ & 0x7F); - reg[rrr] = ((i << 7) | (*src & 0x7F)); - src++; - } - else - { - /* INVALID CODE. Return a single byte character. */ - reg[RRR] = LEADING_BYTE_ASCII; - reg[rrr] = i; - } + } + + i = *src++; + if (i < 0x80) + { + /* ASCII */ + reg[rrr] = i; + reg[RRR] = LEADING_BYTE_ASCII; + } + else if (i <= MAX_LEADING_BYTE_OFFICIAL_1) + { + if (src >= src_end) + goto ccl_read_multibyte_character_suspend; + reg[RRR] = i; + reg[rrr] = (*src++ & 0x7F); + } + else if (i <= MAX_LEADING_BYTE_OFFICIAL_2) + { + if ((src + 1) >= src_end) + goto ccl_read_multibyte_character_suspend; + reg[RRR] = i; + i = (*src++ & 0x7F); + reg[rrr] = ((i << 7) | (*src & 0x7F)); + src++; + } + else if (i == PRE_LEADING_BYTE_PRIVATE_1) + { + if ((src + 1) >= src_end) + goto ccl_read_multibyte_character_suspend; + reg[RRR] = *src++; + reg[rrr] = (*src++ & 0x7F); + } + else if (i == PRE_LEADING_BYTE_PRIVATE_2) + { + if ((src + 2) >= src_end) + goto ccl_read_multibyte_character_suspend; + reg[RRR] = *src++; + i = (*src++ & 0x7F); + reg[rrr] = ((i << 7) | (*src & 0x7F)); + src++; + } + else + { + /* INVALID CODE. Return a single byte character. */ + reg[RRR] = LEADING_BYTE_ASCII; + reg[rrr] = i; + } break; ccl_read_multibyte_character_suspend: diff --git a/src/nt.c b/src/nt.c index 0824e2a..1afa11a 100644 --- a/src/nt.c +++ b/src/nt.c @@ -1421,7 +1421,7 @@ mswindows_fstat (int desc, struct stat * buf) } else { - buf->st_nlink = info.nNumberOfLinks; + buf->st_nlink = (short) info.nNumberOfLinks; /* Might as well use file index to fake inode values, but this is not guaranteed to be unique unless we keep a handle open all the time (even then there are situations where it is @@ -1432,9 +1432,9 @@ mswindows_fstat (int desc, struct stat * buf) /* MSVC defines _ino_t to be short; other libc's might not. */ if (sizeof (buf->st_ino) == 2) - buf->st_ino = fake_inode ^ (fake_inode >> 16); + buf->st_ino = (unsigned short) (fake_inode ^ (fake_inode >> 16)); else - buf->st_ino = fake_inode; + buf->st_ino = (unsigned short) fake_inode; /* consider files to belong to current user */ buf->st_uid = 0; @@ -1618,7 +1618,7 @@ mswindows_stat (const char * path, struct stat * buf) buf->st_ino = (unsigned short) (fake_inode ^ (fake_inode >> 16)); /* consider files to belong to current user */ - buf->st_uid = buf->st_gid = nt_fake_unix_uid; + buf->st_uid = buf->st_gid = (short) nt_fake_unix_uid; /* volume_info is set indirectly by map_win32_filename */ buf->st_dev = volume_info.serialnum; diff --git a/src/process-nt.c b/src/process-nt.c index 9f2ad46..21e17c3 100644 --- a/src/process-nt.c +++ b/src/process-nt.c @@ -1051,7 +1051,7 @@ nt_send_process (Lisp_Object proc, struct lstream* lstream) while (1) { - ssize_t writeret; + Lstream_data_count writeret; chunklen = Lstream_read (lstream, chunkbuf, 512); if (chunklen <= 0) diff --git a/src/process-unix.c b/src/process-unix.c index d50028e..462fb55 100644 --- a/src/process-unix.c +++ b/src/process-unix.c @@ -1288,7 +1288,7 @@ unix_send_process (Lisp_Object proc, struct lstream* lstream) while (1) { - ssize_t writeret; + Lstream_data_count writeret; chunklen = Lstream_read (lstream, chunkbuf, 512); if (chunklen <= 0) @@ -1543,9 +1543,9 @@ unix_kill_child_process (Lisp_Object proc, int signo, if (EMACS_KILLPG (pgid, signo) == -1) { /* It's not an error if our victim is already dead. - And we can't rely on the result of killing a zombie, since - XPG 4.2 requires that killing a zombie fail with ESRCH, - while FIPS 151-2 requires that it succeeds! */ + And we can't rely on the result of killing a zombie, since + XPG 4.2 requires that killing a zombie fail with ESRCH, + while FIPS 151-2 requires that it succeeds! */ #ifdef ESRCH if (errno != ESRCH) #endif diff --git a/src/realpath.c b/src/realpath.c index 94b4699..c962aac 100644 --- a/src/realpath.c +++ b/src/realpath.c @@ -137,7 +137,7 @@ static int cygwin_readlink (const char * name, char * buf, int size) { int n = readlink (name, buf, size); - if (n < 0) + if (n < 0 && errno == EINVAL) { /* The file may exist, but isn't a symlink. Try to find the right name. */ @@ -208,6 +208,9 @@ xrealpath (const char *path, char resolved_path []) if (abslen == 2 || abslen == 3) { strncpy (new_path, path, abslen); + /* Make sure drive letter is lowercased. */ + if (abslen == 3) + *new_path = tolower (*new_path); new_path += abslen; path += abslen; } @@ -299,7 +302,11 @@ xrealpath (const char *path, char resolved_path []) if (n < 0) { /* EINVAL means the file exists but isn't a symlink. */ - if (errno != EINVAL) +#ifdef CYGWIN + if (errno != EINVAL && errno != ENOENT) +#else + if (errno != EINVAL) +#endif return NULL; } else @@ -345,10 +352,5 @@ xrealpath (const char *path, char resolved_path []) /* Make sure it's null terminated. */ *new_path = '\0'; -#ifdef WIN32_NATIVE - if (ABS_LENGTH (resolved_path) == 3) - /* Lowercase drive letter. */ - *resolved_path = tolower (*resolved_path); -#endif return resolved_path; } diff --git a/src/redisplay-output.c b/src/redisplay-output.c index 4b8aa7a..cfd1d26 100644 --- a/src/redisplay-output.c +++ b/src/redisplay-output.c @@ -2152,6 +2152,7 @@ redisplay_update_line (struct window *w, int first_line, int last_line, larger impact on their sizing. */ /* #### See if we can get away with only calling this if max_line_len is greater than the window_char_width. */ + /* #### BILL!!! Should we do this for GTK as well? */ #if defined(HAVE_SCROLLBARS) && defined(HAVE_X_WINDOWS) { extern int stupid_vertical_scrollbar_drag_hack; diff --git a/src/redisplay.c b/src/redisplay.c index 54a39ab..9993ecb 100644 --- a/src/redisplay.c +++ b/src/redisplay.c @@ -9178,6 +9178,15 @@ init_redisplay (void) } #endif /* HAVE_X_WINDOWS */ +#ifdef HAVE_GTK + if (!strcmp (display_use, "gtk")) + { + Vwindow_system = Qgtk; + Vinitial_window_system = Qgtk; + return; + } +#endif + #ifdef HAVE_MS_WINDOWS if (!strcmp (display_use, "mswindows")) { diff --git a/src/s/mingw32.h b/src/s/mingw32.h index ef6c2ac..c027d39 100644 --- a/src/s/mingw32.h +++ b/src/s/mingw32.h @@ -133,7 +133,7 @@ Boston, MA 02111-1307, USA. */ #ifndef NOT_C_CODE #include -#include +#include #define mkdir __mkdir #include #undef mkdir diff --git a/src/search.c b/src/search.c index bb12714..45f00e3 100644 --- a/src/search.c +++ b/src/search.c @@ -1563,7 +1563,7 @@ boyer_moore (struct buffer *buf, Bufbyte *base_pat, Bytecount len, in the pattern. Others don't matter anyway! */ xzero (simple_translate); for (i = 0; i < 0400; i++) - simple_translate[i] = i; + simple_translate[i] = (Bufbyte) i; i = 0; while (i != infinity) { @@ -1648,7 +1648,7 @@ boyer_moore (struct buffer *buf, Bufbyte *base_pat, Bytecount len, while ((j = TRANSLATE (inverse_trt, j)) != k) { - simple_translate[j] = k; + simple_translate[j] = (Bufbyte) k; BM_tab[j] = dirlen - i; } #endif diff --git a/src/symsinit.h b/src/symsinit.h index c9d4813..15918cb 100644 --- a/src/symsinit.h +++ b/src/symsinit.h @@ -454,4 +454,39 @@ void init_redisplay (void); void init_sunpro (void); void init_win32 (void); +void syms_of_device_gtk (void); +void syms_of_dialog_gtk (void); +void syms_of_event_gtk (void); +void syms_of_frame_gtk (void); +void syms_of_glyphs_gtk (void); +void syms_of_gui_gtk (void); +void syms_of_menubar_gtk (void); +void syms_of_objects_gtk (void); +void syms_of_select_gtk (void); +void syms_of_ui_gtk (void); +void console_type_create_gtk (void); +void console_type_create_device_gtk (void); +void console_type_create_frame_gtk (void); +void console_type_create_glyphs_gtk (void); +void console_type_create_menubar_gtk (void); +void console_type_create_objects_gtk (void); +void console_type_create_redisplay_gtk (void); +void console_type_create_scrollbar_gtk (void); +void console_type_create_toolbar_gtk (void); +void console_type_create_dialog_gtk (void); +void image_instantiator_format_create_glyphs_gtk (void); +void vars_of_device_gtk (void); +void vars_of_dialog_gtk (void); +void vars_of_event_gtk (void); +void vars_of_frame_gtk (void); +void vars_of_glyphs_gtk (void); +void vars_of_gui_gtk (void); +void vars_of_menubar_gtk (void); +void vars_of_objects_gtk (void); +void vars_of_scrollbar_gtk (void); +void vars_of_select_gtk (void); +void vars_of_ui_gtk (void); +void complex_vars_of_glyphs_gtk (void); +void init_event_gtk_late (void); + #endif /* INCLUDED_symsinit_h_ */ diff --git a/src/syntax.c b/src/syntax.c index 28df567..5c493ab 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -564,6 +564,11 @@ Move point forward COUNT words (backward if COUNT is negative). Normally t is returned, but if an edge of the buffer is reached, point is left there and nil is returned. +The characters that are moved over may be added to the current selection +\(i.e. active region) if the Shift key is held down, a motion key is used +to invoke this command, and `shifted-motion-keys-select-region' is t; see +the documentation for this variable for more details. + COUNT defaults to 1, and BUFFER defaults to the current buffer. */ (count, buffer)) diff --git a/src/sysdep.c b/src/sysdep.c index e327cff..54e1bf2 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -33,7 +33,7 @@ Boston, MA 02111-1307, USA. */ #ifdef WIN32_NATIVE #ifdef MINGW -#include +#include #else /* should not conflict with "process.h", as per ANSI definition. This is not true with visual c though. The trick below works with @@ -2985,23 +2985,22 @@ sys_readdir (DIR *dirp) if (rtnval == NULL) /* End of directory */ return NULL; { - Extcount external_len; - int ascii_filename_p = 1; const Extbyte * const external_name = (const Extbyte *) rtnval->d_name; - - /* Optimize for the common all-ASCII case, computing len en passant */ - for (external_len = 0; external_name[external_len] ; external_len++) - { - if (!BYTE_ASCII_P (external_name[external_len])) - ascii_filename_p = 0; - } - if (ascii_filename_p) + Extcount external_len = strlen (rtnval->d_name); + const Bufbyte *internal_name; + Bytecount internal_len; + + TO_INTERNAL_FORMAT (DATA, (external_name, external_len), + ALLOCA, (internal_name, internal_len), + Qfile_name); + + /* check for common case of ASCII filename */ + if (internal_len == external_len && + !memcmp (external_name, internal_name, internal_len)) return rtnval; { /* Non-ASCII filename */ static Bufbyte_dynarr *internal_DIRENTRY; - const Bufbyte *internal_name; - Bytecount internal_len; if (!internal_DIRENTRY) internal_DIRENTRY = Dynarr_new (Bufbyte); else @@ -3010,9 +3009,6 @@ sys_readdir (DIR *dirp) Dynarr_add_many (internal_DIRENTRY, (Bufbyte *) rtnval, offsetof (DIRENTRY, d_name)); - TO_INTERNAL_FORMAT (DATA, (external_name, external_len), - ALLOCA, (internal_name, internal_len), - Qfile_name); Dynarr_add_many (internal_DIRENTRY, internal_name, internal_len); Dynarr_add (internal_DIRENTRY, '\0'); /* NUL-terminate */ diff --git a/src/sysfile.h b/src/sysfile.h index a8f5405..b00e9c4 100644 --- a/src/sysfile.h +++ b/src/sysfile.h @@ -53,6 +53,11 @@ Boston, MA 02111-1307, USA. */ #ifndef WIN32_NATIVE /* Some configuration files' definitions for the LOAD_AVE_CVT macro (like sparc.h's) use macros like FSCALE, defined here. */ +#ifdef HAVE_GTK +/* I hate GTK */ +#undef MIN +#undef MAX +#endif /* HAVE_GTK */ #include #endif diff --git a/src/toolbar.c b/src/toolbar.c index 9d20a82..7711b6b 100644 --- a/src/toolbar.c +++ b/src/toolbar.c @@ -1610,6 +1610,9 @@ See `default-toolbar-height' for more information. #ifdef HAVE_TTY fb = Fcons (Fcons (list1 (Qtty), Qzero), fb); #endif +#ifdef HAVE_GTK + fb = Fcons (Fcons (list1 (Qgtk), make_int (DEFAULT_TOOLBAR_HEIGHT)), fb); +#endif #ifdef HAVE_X_WINDOWS fb = Fcons (Fcons (list1 (Qx), make_int (DEFAULT_TOOLBAR_HEIGHT)), fb); #endif @@ -1624,6 +1627,9 @@ See `default-toolbar-height' for more information. #ifdef HAVE_TTY fb = Fcons (Fcons (list1 (Qtty), Qzero), fb); #endif +#ifdef HAVE_GTK + fb = Fcons (Fcons (list1 (Qgtk), make_int (DEFAULT_TOOLBAR_WIDTH)), fb); +#endif #ifdef HAVE_X_WINDOWS fb = Fcons (Fcons (list1 (Qx), make_int (DEFAULT_TOOLBAR_WIDTH)), fb); #endif @@ -1740,6 +1746,9 @@ See `default-toolbar-height' for more information. #ifdef HAVE_X_WINDOWS fb = Fcons (Fcons (list1 (Qx), make_int (DEFAULT_TOOLBAR_BORDER_WIDTH)), fb); #endif +#ifdef HAVE_GTK + fb = Fcons (Fcons (list1 (Qgtk), make_int (DEFAULT_TOOLBAR_BORDER_WIDTH)), fb); +#endif #ifdef HAVE_MS_WINDOWS fb = Fcons (Fcons (list1 (Qmswindows), make_int (MSWINDOWS_DEFAULT_TOOLBAR_BORDER_WIDTH)), fb); #endif diff --git a/src/unexcw.c b/src/unexcw.c index 63190c5..eced85b 100644 --- a/src/unexcw.c +++ b/src/unexcw.c @@ -331,7 +331,7 @@ copy_executable_and_dump_data_section (int a_out, int a_new) f_ohdr.dsize + f_ohdr.bsize); if (new_data_size < f_ohdr.dsize + f_ohdr.bsize ) { - PERROR("new data size is < approx"); + printf("warning: new data size is < approx\n"); } f_ohdr.dsize=new_data_size; f_ohdr.bsize=BSS_PAD_SIZE; diff --git a/src/window.c b/src/window.c index ccddef8..8d78ae8 100644 --- a/src/window.c +++ b/src/window.c @@ -4513,6 +4513,11 @@ When calling from a program, supply an integer as argument or nil. On attempt to scroll past end of buffer, `end-of-buffer' is signaled. On attempt to scroll past beginning of buffer, `beginning-of-buffer' is signaled. + +The characters that are moved over may be added to the current selection +\(i.e. active region) if the Shift key is held down, a motion key is used +to invoke this command, and `shifted-motion-keys-select-region' is t; see +the documentation for this variable for more details. */ (count)) { @@ -4528,6 +4533,11 @@ When calling from a program, supply a number as argument or nil. On attempt to scroll past end of buffer, `end-of-buffer' is signaled. On attempt to scroll past beginning of buffer, `beginning-of-buffer' is signaled. + +The characters that are moved over may be added to the current selection +\(i.e. active region) if the Shift key is held down, a motion key is used +to invoke this command, and `shifted-motion-keys-select-region' is t; see +the documentation for this variable for more details. */ (count)) { @@ -4600,6 +4610,11 @@ showing that buffer, popping the buffer up if necessary. DEFUN ("scroll-left", Fscroll_left, 0, 1, "_P", /* Scroll selected window display COUNT columns left. Default for COUNT is window width minus 2. + +The characters that are moved over may be added to the current selection +\(i.e. active region) if the Shift key is held down, a motion key is used +to invoke this command, and `shifted-motion-keys-select-region' is t; see +the documentation for this variable for more details. */ (count)) { @@ -4615,6 +4630,11 @@ Default for COUNT is window width minus 2. DEFUN ("scroll-right", Fscroll_right, 0, 1, "_P", /* Scroll selected window display COUNT columns right. Default for COUNT is window width minus 2. + +The characters that are moved over may be added to the current selection +\(i.e. active region) if the Shift key is held down, a motion key is used +to invoke this command, and `shifted-motion-keys-select-region' is t; see +the documentation for this variable for more details. */ (count)) { @@ -6311,6 +6331,9 @@ This is a specifier; use `set-specifier' to change it. #ifdef HAVE_TTY fb = Fcons (Fcons (list1 (Qtty), make_int (1)), fb); #endif +#ifdef HAVE_GTK + fb = Fcons (Fcons (list1 (Qgtk), make_int (3)), fb); +#endif #ifdef HAVE_X_WINDOWS fb = Fcons (Fcons (list1 (Qx), make_int (3)), fb); #endif @@ -6345,6 +6368,9 @@ This is a specifier; use `set-specifier' to change it. Should not the same value be the fallback under X? - kkm */ fb = Fcons (Fcons (list1 (Qx), make_int (2)), fb); #endif +#ifdef HAVE_GTK + fb = Fcons (Fcons (list1 (Qgtk), Qzero), fb); +#endif #ifdef HAVE_MS_WINDOWS fb = Fcons (Fcons (list1 (Qmswindows), Qzero), fb); #endif diff --git a/tests/ChangeLog b/tests/ChangeLog index c6a3000..57d1848 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,30 @@ +2001-03-21 Martin Buchholz + + * XEmacs 21.2.46 "Urania" is released. + +2001-03-09 William M. Perry + + * gtk/UNIMPLEMENTED: + * gtk/event-stream-tests.el: + * gtk/gnome-test.el: + * gtk/gtk-embedded-test.el: + * gtk/gtk-extra-test.el: + * gtk/gtk-test.el: + * gtk/gtk-test.glade: + * gtk/statusbar-test.el: + * gtk/toolbar-test.el: + * gtk/xemacs-toolbar.el: + The Great GTK Merge: new directory and files. + +2001-03-02 Ben Wing + + * automated\case-tests.el (string-0-through-32): + (string-127-through-160): Created new strings which contain + unprintable characters, and initialize them in a loop. + Rewrite all strings using unprintable characters as concat's + with the above variables, so that this file can be made ASCII, + not binary. + 2001-02-23 Martin Buchholz * XEmacs 21.2.45 "Thelxepeia" is released. diff --git a/tests/automated/case-tests.el b/tests/automated/case-tests.el index 2a294d5..5b0f037 100644 Binary files a/tests/automated/case-tests.el and b/tests/automated/case-tests.el differ diff --git a/tests/glyph-test.el b/tests/glyph-test.el index aec1b7c..7330032 100644 --- a/tests/glyph-test.el +++ b/tests/glyph-test.el @@ -102,6 +102,7 @@ `[progress-gauge :width 5 :pixel-height 16 :descriptor "ok" :value ,x]) (setq x (+ x 5)) + (redisplay-frame) (sit-for 0.1))) (set-extent-begin-glyph diff --git a/version.sh b/version.sh index c6601fc..77efe2a 100644 --- a/version.sh +++ b/version.sh @@ -2,8 +2,8 @@ emacs_is_beta=t emacs_major_version=21 emacs_minor_version=2 -emacs_beta_version=45 -xemacs_codename="Thelxepeia" +emacs_beta_version=46 +xemacs_codename="Urania" infodock_major_version=4 infodock_minor_version=0 infodock_build_version=8