From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Joe Buehler Newsgroups: gmane.emacs.bugs Subject: [PATCH] trivial fixes for CANNOT_UNDUMP bugs in emacs-21.2 Date: Wed, 21 Aug 2002 10:43:25 -0400 Organization: Spirent Communications Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <3D63A70D.9060307@hekimian.com> Reply-To: joseph.buehler@spirentcom.com NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070500090101090302010706" X-Trace: main.gmane.org 1029940982 4752 127.0.0.1 (21 Aug 2002 14:43:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 21 Aug 2002 14:43:02 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17hWhH-0001EV-00 for ; Wed, 21 Aug 2002 16:42:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17hWiS-00046Y-00; Wed, 21 Aug 2002 10:44:12 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17hWhl-00044a-00 for bug-gnu-emacs@gnu.org; Wed, 21 Aug 2002 10:43:29 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17hWhj-00044E-00 for bug-gnu-emacs@gnu.org; Wed, 21 Aug 2002 10:43:29 -0400 Original-Received: from hekimian.com ([206.205.138.10] helo=python.hekimian.com) by monty-python.gnu.org with esmtp (Exim 4.10) id 17hWhj-000449-00 for bug-gnu-emacs@gnu.org; Wed, 21 Aug 2002 10:43:27 -0400 Original-Received: from hekimian.com (jbuehler-lt.hekimian.com [10.32.6.132]) by python.hekimian.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id Q99P7PAS; Wed, 21 Aug 2002 10:38:31 -0400 X-Sybari-Trust: f223ff4a b923d9bf 4738785c 00000109 User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en Original-To: bug-gnu-emacs@gnu.org Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:3262 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:3262 This is a multi-part message in MIME format. --------------070500090101090302010706 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit There are a couple bugs in emacs 21.2 when it is compiled with #define CANNOT_DUMP 1. The default screen bg and fg colors are not initialized, causing them to be black on black, which is obviously unreadable. 2. The DOC file is not installed when "make install" is run -- or rather, it is installed, but then it is promptly removed, because an assumption is being made that the proper file is DOC-21.2, which is not true under #define CANNOT_DUMP -- it should be just plain DOC. Patches are attached. Joe Buehler --------------070500090101090302010706 Content-Type: text/plain; name="emacs.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="emacs.patch" diff -u -r -N -x '*~*' Makefile.in Makefile.in --- Makefile.in 2001-10-31 09:45:46.000000000 -0500 +++ Makefile.in 2002-08-13 17:15:20.000000000 -0400 @@ -407,7 +407,8 @@ echo "Copying etc/DOC-* to ${docdir} ..." ; \ (cd ./etc; tar -chf - DOC*) \ |(cd ${docdir}; umask 0; tar -xvf - && cat > /dev/null) || exit 1; \ - (cd $(docdir); chmod a+r DOC*; rm DOC); \ + (cd ${docdir}; chmod a+r DOC*; if test "`echo DOC-*`" != "DOC-*"; \ + then rm DOC; fi); \ else true; fi -unset CDPATH; \ if [ -r ./lisp ] \ diff -u -r -N -x '*~*' src/frame.c src/frame.c --- src/frame.c 2001-10-25 17:03:52.000000000 -0400 +++ src/frame.c 2002-08-20 14:55:26.000000000 -0400 @@ -486,6 +486,10 @@ make_mac_terminal_frame (f); #else f->output_data.x = &tty_display; +#ifdef CANNOT_DUMP + FRAME_FOREGROUND_PIXEL(f) = FACE_TTY_DEFAULT_FG_COLOR; + FRAME_BACKGROUND_PIXEL(f) = FACE_TTY_DEFAULT_BG_COLOR; +#endif #endif /* macintosh */ #endif /* WINDOWSNT */ #endif /* MSDOS */ --------------070500090101090302010706--