changeset 96752:9697a5f0281d

various small cleanups detailed in changelogs
author Adrian Robert <Adrian.B.Robert@gmail.com>
date Wed, 16 Jul 2008 23:24:46 +0000
parents 5e647deae824
children f5cf56c90437
files ChangeLog configure.in lib-src/ChangeLog lib-src/Makefile.in lisp/ChangeLog lisp/startup.el nextstep/ChangeLog nextstep/Cocoa/Emacs.base/Contents/Resources/Credits.html nextstep/FOR-RELEASE src/ChangeLog src/Makefile.in src/frame.c src/keyboard.c src/syntax.c
diffstat 14 files changed, 55 insertions(+), 44 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Jul 16 23:02:52 2008 +0000
+++ b/ChangeLog	Wed Jul 16 23:24:46 2008 +0000
@@ -1,3 +1,9 @@
+2008-07-16  Adrian Robert <Adrian.B.Robert@gmail.com>
+
+	* configure.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
+	NS_IMPL_COCOA.
+	* configure: Regenerate.
+
 2008-07-16  Glenn Morris  <rgm@gnu.org>
 
 	* configure.in (with_kerberos, with_kerberos5, with_hesiod):
--- a/configure.in	Wed Jul 16 23:02:52 2008 +0000
+++ b/configure.in	Wed Jul 16 23:24:46 2008 +0000
@@ -1221,17 +1221,17 @@
 fi
 
 HAVE_NS=no
-COCOA=no
-GNUSTEP=no
+NS_IMPL_COCOA=no
+NS_IMPL_GNUSTEP=no
 tmp_CPPFLAGS="$CPPFLAGS"
 tmp_CFLAGS="$CFLAGS"
 CPPFLAGS="$CPPFLAGS -x objective-c"
 CFLAGS="$CFLAGS -x objective-c"
 if test "${with_ns}" != no; then
   if test "${opsys}" = darwin; then
-     COCOA=yes
+     NS_IMPL_COCOA=yes
   elif test -f /etc/GNUstep/GNUstep.conf; then
-     GNUSTEP=yes
+     NS_IMPL_GNUSTEP=yes
      GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)"
      GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)"
      CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
@@ -2062,13 +2062,13 @@
       * ) ns_appdir=${ns_appdir_x} ;;
     esac
   fi
-  if test "${COCOA}" = "yes"; then
+  if test "${NS_IMPL_COCOA}" = "yes"; then
     AC_DEFINE(NS_IMPL_COCOA, 1, [Define to 1 if you are using NS windowing under MacOS X.])
   fi
   if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
     AC_DEFINE(COCOA_EXPERIMENTAL_CTRL_G, 1, [Define to 1 if you are trying experimental enhanced Ctrl-g support using NS windowing under MacOS X.])
   fi
-  if test "${GNUSTEP}" = "yes"; then
+  if test "${NS_IMPL_GNUSTEP}" = "yes"; then
     AC_DEFINE(NS_IMPL_GNUSTEP, 1, [Define to 1 if you are using NS windowing under GNUstep.])
   fi
   # We also have mouse menus.
@@ -2637,10 +2637,10 @@
 #  define LD_SWITCH_SITE -lgnustep-gui -lgnustep-base -lobjc $(CONFIG_SYSTEM_LIBS) -lpthread
 #  define GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE
 #  define OTHER_FILES ns-app
-# else /* COCOA */
+# else /* NS_IMPL_COCOA */
 #  define C_SWITCH_X_SYSTEM
 #  define GNU_OBJC_CFLAGS
-# endif /* COCOA */
+# endif /* NS_IMPL_COCOA */
 #endif /* HAVE_NS */
 
 
--- a/lib-src/ChangeLog	Wed Jul 16 23:02:52 2008 +0000
+++ b/lib-src/ChangeLog	Wed Jul 16 23:24:46 2008 +0000
@@ -1,3 +1,8 @@
+2008-07-16  Adrian Robert <Adrian.B.Robert@gmail.com>
+
+	* Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
+	NS_IMPL_COCOA.
+
 2008-07-16  Dan Nicolaescu  <dann@ics.uci.edu>
 
 	* ntlib.h (fcloseall, fgetchar, flushall, fputchar, putw): Remove,
--- a/lib-src/Makefile.in	Wed Jul 16 23:02:52 2008 +0000
+++ b/lib-src/Makefile.in	Wed Jul 16 23:24:46 2008 +0000
@@ -144,7 +144,7 @@
 #define NOT_C_CODE
 #include "../src/config.h"
 
-#if defined(COCOA)
+#if defined(NS_IMPL_COCOA)
 /* Build these programs as universal binaries. */
 CFLAGS := $(CFLAGS) -universal
 /* Add mac-fix-env for OS X systems running NS version. */
@@ -278,14 +278,13 @@
    Using an explicit command made it work.  */
 .c.o:
 	${CC} -c ${CPP_CFLAGS} $<
-#ifdef HAVE_NS
+
 .m.o:
-#ifdef GNUSTEP
+#ifdef NS_IMPL_GNUSTEP
 	$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString $<
 #else
 	$(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
 #endif
-#endif
 
 all: ${DONT_INSTALL} ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}
 
@@ -483,7 +482,7 @@
 	$(CC) -c ${CPP_CFLAGS} ${srcdir}/update-game-score.c \
 	  -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\""
 
-#if defined(COCOA)
+#if defined(NS_IMPL_COCOA)
 mac-fix-env: ${srcdir}/mac-fix-env.m
 	$(CC) -o mac-fix-env ${srcdir}/mac-fix-env.m -prebind -framework Foundation
 #endif
--- a/lisp/ChangeLog	Wed Jul 16 23:02:52 2008 +0000
+++ b/lisp/ChangeLog	Wed Jul 16 23:24:46 2008 +0000
@@ -1,3 +1,8 @@
+2008-07-16  Adrian Robert  <Adrian.B.Robert@gmail.com>
+
+	* startup.el (command-line-1): Update processing of NS long options to
+	mimic recent changes to processing of X long options.
+
 2008-07-16  Nick Roberts  <nickrob@snap.net.nz>
 
 	* progmodes/gdb-ui.el (gdb-create-define-alist): Don't create a
--- a/lisp/startup.el	Wed Jul 16 23:02:52 2008 +0000
+++ b/lisp/startup.el	Wed Jul 16 23:24:46 2008 +0000
@@ -2087,12 +2087,10 @@
 	  (if (string-match "^--" (car tem))
 	      (push (list (car tem)) longopts)))
 
-      ;; Add the long NS options to longopts.
-      (setq tem command-line-ns-option-alist)
-      (while tem
-	(if (string-match "^--" (car (car tem)))
-	    (setq longopts (cons (list (car (car tem))) longopts)))
-	(setq tem (cdr tem)))
+	;; Add the long NS options to longopts.
+	(dolist (tem command-line-ns-option-alist)
+	  (if (string-match "^--" (car tem))
+	      (push (list (car tem)) longopts)))
 
 	;; Loop, processing options.
 	(while command-line-args-left
--- a/nextstep/ChangeLog	Wed Jul 16 23:02:52 2008 +0000
+++ b/nextstep/ChangeLog	Wed Jul 16 23:24:46 2008 +0000
@@ -1,3 +1,7 @@
+2008-07-15  Adrian Robert <Adrian.B.Robert@gmail.com>
+	* Cocoa/Contents/Resources/Credits.html: Change URL from sf.net to
+	GNU.org.
+
 2008-07-15  Adrian Robert <Adrian.B.Robert@gmail.com>
 
 	* FOR-RELEASE: Remove historical info.
--- a/nextstep/Cocoa/Emacs.base/Contents/Resources/Credits.html	Wed Jul 16 23:02:52 2008 +0000
+++ b/nextstep/Cocoa/Emacs.base/Contents/Resources/Credits.html	Wed Jul 16 23:24:46 2008 +0000
@@ -1,4 +1,4 @@
-<font face="lucida grande" size="-1"><a href="http://emacs-app.sf.net">http://emacs-app.sf.net</a></font>
+<font face="lucida grande" size="-1"><a href="http://www.gnu.org/software/emacs">http://www.gnu.org/software/emacs</a></font>
 
 <!-- arch-tag: cc455793-f594-45c6-822c-f4a7bb362c15
      (do not change this comment) -->
--- a/nextstep/FOR-RELEASE	Wed Jul 16 23:02:52 2008 +0000
+++ b/nextstep/FOR-RELEASE	Wed Jul 16 23:24:46 2008 +0000
@@ -1,9 +1,10 @@
 -*- outline -*-
 
 * BUGS
-** Fix char_quoted's workaround.
 * NON-SPECIFIC
 
+** Find out why char_quoted() in syntax.c gets called with Fix char_quoted's workaround.
+
 ** Remove Feval calls relating to insert working text in isearch mode.
 
 ** free_frame_resources, face colors
--- a/src/ChangeLog	Wed Jul 16 23:02:52 2008 +0000
+++ b/src/ChangeLog	Wed Jul 16 23:24:46 2008 +0000
@@ -1,3 +1,12 @@
+2008-07-16  Adrian Robert <Adrian.B.Robert@gmail.com>
+
+	* syntax.c: Remove stdio.h include accidentally introduced in
+	Emacs.app commit.
+	* Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
+	NS_IMPL_COCOA.
+	* keyboard.c (handle_async_input, input_available_signal): Remove
+	BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
+
 2008-07-16  Stefan Monnier  <monnier@iro.umontreal.ca>
 
 	* nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
--- a/src/Makefile.in	Wed Jul 16 23:02:52 2008 +0000
+++ b/src/Makefile.in	Wed Jul 16 23:24:46 2008 +0000
@@ -113,7 +113,7 @@
 #endif
 
 /* Under GNUstep, putting libc on the link line causes problems. */
-#ifdef GNUSTEP
+#ifdef NS_IMPL_GNUSTEP
 #define LIB_STANDARD
 #endif
 
@@ -234,7 +234,7 @@
 #endif /* not ORDINARY_LINK */
 
 
-#ifdef GNUSTEP
+#ifdef NS_IMPL_GNUSTEP
 /* Pull in stuff from GNUstep-make. */
 FOUNDATION_LIB=gnu
 GUI_LIB=gnu
@@ -535,13 +535,13 @@
 NS_OBJ= nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o \
 	fontset.o fringe.o image.o
 emacsapp = $(PWD)/../nextstep/build/Emacs.app/
-#ifdef GNUSTEP
+#ifdef NS_IMPL_GNUSTEP
 emacsappsrc = ${srcdir}/../nextstep/GNUstep/Emacs.base
 emacsbindir = $(emacsapp)
 #else
 emacsappsrc = ${srcdir}/../nextstep/Cocoa/Emacs.base
 emacsbindir = $(emacsapp)/Contents/MacOS/
-#endif  /* GNUSTEP */
+#endif  /* NS_IMPL_GNUSTEP */
 #endif  /* HAVE_NS */
 
 #ifdef HAVE_WINDOW_SYSTEM
@@ -969,7 +969,7 @@
 
 temacs${EXEEXT}: $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_MACHINE prefix-args${EXEEXT}
 	echo "${obj} ${otherobj} " OBJECTS_MACHINE > buildobj.lst
-#ifdef GNUSTEP
+#ifdef NS_IMPL_GNUSTEP
 	$(CC) -rdynamic YMF_PASS_LDFLAGS (${TEMACS_LDFLAGS}) -o temacs ${obj} ${otherobj} OBJECTS_MACHINE ${LIBES}
 #else
 	$(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS) \
@@ -1355,7 +1355,7 @@
 	rm -f buildobj.lst
 clean: mostlyclean
 	rm -f emacs-*.*.*${EXEEXT} emacs${EXEEXT}
-#ifdef GNUSTEP
+#ifdef NS_IMPL_GNUSTEP
 	rm -f *.d
 #endif
 /* bootstrap-clean is used to clean up just before a bootstrap.
--- a/src/frame.c	Wed Jul 16 23:02:52 2008 +0000
+++ b/src/frame.c	Wed Jul 16 23:24:46 2008 +0000
@@ -206,7 +206,7 @@
 Value is t for a termcap frame (a character-only terminal),
 `x' for an Emacs frame that is really an X window,
 `w32' for an Emacs frame that is a window on MS-Windows display,
-`mac' for an Emacs frame on a Macintosh 8/9 X-Carbon display,
+`mac' for an Emacs frame on a Macintosh Carbon display,
 `ns' for an Emacs frame on a GNUstep or Macintosh Cocoa display,
 `pc' for a direct-write MS-DOS frame.
 See also `frame-live-p'.  */)
--- a/src/keyboard.c	Wed Jul 16 23:02:52 2008 +0000
+++ b/src/keyboard.c	Wed Jul 16 23:24:46 2008 +0000
@@ -7308,10 +7308,6 @@
 void
 handle_async_input ()
 {
-#ifdef BSD4_1
-  extern int select_alarmed;
-#endif
-
   interrupt_input_pending = 0;
 
   while (1)
@@ -7323,10 +7319,6 @@
 	 0 means there was no keyboard input available.  */
       if (nread <= 0)
 	break;
-
-#ifdef BSD4_1
-      select_alarmed = 1;  /* Force the select emulator back to life */
-#endif
     }
 }
 
@@ -7345,10 +7337,6 @@
   signal (signo, input_available_signal);
 #endif /* USG */
 
-#ifdef BSD4_1
-  sigisheld (SIGIO);
-#endif
-
 #ifdef SYNC_INPUT
   interrupt_input_pending = 1;
 #else
@@ -7362,9 +7350,6 @@
   handle_async_input ();
 #endif
 
-#ifdef BSD4_1
-  sigfree ();
-#endif
   errno = old_errno;
 }
 #endif /* SIGIO */
--- a/src/syntax.c	Wed Jul 16 23:02:52 2008 +0000
+++ b/src/syntax.c	Wed Jul 16 23:24:46 2008 +0000
@@ -1,4 +1,3 @@
-#include <stdio.h>
 /* GNU Emacs routines to deal with syntax tables; also word and list parsing.
    Copyright (C) 1985, 1987, 1993, 1994, 1995, 1997, 1998, 1999, 2001,
                  2002, 2003, 2004, 2005, 2006, 2007, 2008