emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Warning starting Emacs (Cygwin)


From: Angelo Graziosi
Subject: Re: Warning starting Emacs (Cygwin)
Date: Fri, 01 Aug 2008 14:51:58 +0200
User-agent: Thunderbird 2.0.0.16 (Windows/20080708)

I wrote:

starting Emacs it opens a buffer called Warnings in which it prints:

<beep>
Emergency (alloc): Warning: past 95% of memory limit


I think there is some new problem.

Downloading cvs-trunk with -D "20080730 17:14" bootstraps and works without warning.

Instead -D "20080730 17:15" fails to bootstrap, but it is solved with the patch discussed here [1] or using systty.h from "20080730 17:14".

After solving the bootstrap problem the warning shows up.

Below [2] there are the differences between "20080730 17:14" and "20080730 17:15" and it seem hard to think that the patch is the cause of the warning.

Perhaps the new handling (in 20080730 17:15) of getrlimit?

Cheers,
   Angelo.

---
[1] http://lists.gnu.org/archive/html/emacs-devel/2008-08/msg00014.html

[2] differences:

diff -Naur emacs-20080730-1714/ChangeLog emacs-20080730-1715/ChangeLog
--- emacs-20080730-1714/ChangeLog       2008-08-01 13:59:35.000000000 +0200
+++ emacs-20080730-1715/ChangeLog       2008-08-01 14:03:00.000000000 +0200
@@ -1,3 +1,7 @@
+2008-07-30  Dan Nicolaescu  <address@hidden>
+
+       * configure.in (DO_BLOCK_INPUT): Remove, unused.
+
 2008-07-29  Chong Yidong  <address@hidden>

        * info/dir (File): Add mairix-el.
diff -Naur emacs-20080730-1714/configure.in emacs-20080730-1715/configure.in
--- emacs-20080730-1714/configure.in    2008-08-01 13:59:36.000000000 +0200
+++ emacs-20080730-1715/configure.in    2008-08-01 14:03:00.000000000 +0200
@@ -2561,9 +2561,6 @@
 /* Turned on June 1996 supposing nobody will mind it.  */
 #define AMPERSAND_FULL_NAME

-/* We have blockinput.h.  */
-#define DO_BLOCK_INPUT
-
 /* Define HAVE_SOUND if we have sound support.  We know it works
    and compiles only on the specified platforms.   For others,
    it probably doesn't make sense to try.  */
diff -Naur emacs-20080730-1714/src/ChangeLog emacs-20080730-1715/src/ChangeLog
--- emacs-20080730-1714/src/ChangeLog   2008-08-01 13:59:56.000000000 +0200
+++ emacs-20080730-1715/src/ChangeLog   2008-08-01 14:03:12.000000000 +0200
@@ -1,3 +1,13 @@
+2008-07-30  Dan Nicolaescu  <address@hidden>
+
+       * systty.h (sensemode): Remove empty #if.  Remove reference to
+       BSD_TERMIOS, unused.
+
+       * sysdep.c: Remove reference to DGUX.
+       (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
+
+       * config.in: Regenerate.
+
 2008-07-30  Jason Rumney  <address@hidden>

         * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
diff -Naur emacs-20080730-1714/src/config.in emacs-20080730-1715/src/config.in
--- emacs-20080730-1714/src/config.in   2008-08-01 13:59:57.000000000 +0200
+++ emacs-20080730-1715/src/config.in   2008-08-01 14:03:12.000000000 +0200
@@ -221,6 +221,9 @@
 /* Define to 1 if you have the `getpt' function. */
 #undef HAVE_GETPT

+/* Define to 1 if you have the `getrlimit' function. */
+#undef HAVE_GETRLIMIT
+
 /* Define to 1 if you have the `getrusage' function. */
 #undef HAVE_GETRUSAGE

@@ -996,9 +999,6 @@
 /* Turned on June 1996 supposing nobody will mind it.  */
 #define AMPERSAND_FULL_NAME

-/* We have blockinput.h.  */
-#define DO_BLOCK_INPUT
-
 /* Define HAVE_SOUND if we have sound support.  We know it works
    and compiles only on the specified platforms.   For others,
    it probably doesn't make sense to try.  */
diff -Naur emacs-20080730-1714/src/sysdep.c emacs-20080730-1715/src/sysdep.c
--- emacs-20080730-1714/src/sysdep.c    2008-08-01 14:00:01.000000000 +0200
+++ emacs-20080730-1715/src/sysdep.c    2008-08-01 14:03:12.000000000 +0200
@@ -1213,7 +1213,7 @@
    but if so, this does no harm,
    and using the same name avoids wasting the other one's space.  */

-#if defined (USG) || defined (DGUX)
+#if defined (USG)
 unsigned char _sobuf[BUFSIZ+8];
 #else
 char _sobuf[BUFSIZ];
@@ -3273,11 +3273,10 @@

 #include <dirent.h>

-#if defined (BROKEN_CLOSEDIR) || !defined (HAVE_CLOSEDIR)
+#if !defined (HAVE_CLOSEDIR)

 int
-closedir (dirp)
-     register DIR *dirp;              /* stream from opendir */
+closedir (DIR *dirp /* stream from opendir */)
 {
   int rtnval;

@@ -3293,7 +3292,7 @@

   return rtnval;
 }
-#endif /* BROKEN_CLOSEDIR or not HAVE_CLOSEDIR */
+#endif /* not HAVE_CLOSEDIR */
 #endif /* SYSV_SYSTEM_DIR */

 #ifdef NONSYSTEM_DIR_LIBRARY
diff -Naur emacs-20080730-1714/src/systty.h emacs-20080730-1715/src/systty.h
--- emacs-20080730-1714/src/systty.h    2008-08-01 14:00:01.000000000 +0200
+++ emacs-20080730-1715/src/systty.h    2008-08-01 14:03:13.000000000 +0200
@@ -174,42 +174,34 @@
    EMACS_SET_TTY_PGRP(int FD, int *PGID) sets the terminal FD's
    current process group to *PGID.  Return -1 if there is an error.  */

-#ifdef HPUX
 /* HPUX tty process group stuff doesn't work, says the anonymous voice
    from the past.  */
-#else
+#ifndef HPUX
 #ifdef TIOCGPGRP
 #define EMACS_HAVE_TTY_PGRP
 #else
 #ifdef HAVE_TERMIOS
 #define EMACS_HAVE_TTY_PGRP
-#endif
-#endif
-#endif
+#endif /* HAVE_TERMIOS */
+#endif /* TIOCGPGRP */
+#endif /* not HPUX */

 #ifdef EMACS_HAVE_TTY_PGRP

-#if defined (HAVE_TERMIOS) && ! defined (BSD_TERMIOS)
-
-#define EMACS_GET_TTY_PGRP(fd, pgid) (*(pgid) = tcgetpgrp ((fd)))
-#define EMACS_SET_TTY_PGRP(fd, pgid) (tcsetpgrp ((fd), *(pgid)))
-
-#else
 #ifdef TIOCSPGRP

 #define EMACS_GET_TTY_PGRP(fd, pgid) (ioctl ((fd), TIOCGPGRP, (pgid)))
 #define EMACS_SET_TTY_PGRP(fd, pgid) (ioctl ((fd), TIOCSPGRP, (pgid)))

-#endif
-#endif
+#endif /* TIOCSPGRP */

-#else
+#else /* not EMACS_SET_TTY_PGRP */

 /* Just ignore this for now and hope for the best */
 #define EMACS_GET_TTY_PGRP(fd, pgid) 0
 #define EMACS_SET_TTY_PGRP(fd, pgif) 0

-#endif
+#endif /* not EMACS_SET_TTY_PGRP */

 /* EMACS_GETPGRP (arg) returns the process group of the process.  */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]