unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Joe Buehler <jbuehler@hekimian.com>
Subject: [PATCH] trivial fixes for CANNOT_UNDUMP bugs in emacs-21.2
Date: Wed, 21 Aug 2002 10:43:25 -0400	[thread overview]
Message-ID: <3D63A70D.9060307@hekimian.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 517 bytes --]

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

[-- Attachment #2: emacs.patch --]
[-- Type: text/plain, Size: 991 bytes --]

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 */

                 reply	other threads:[~2002-08-21 14:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D63A70D.9060307@hekimian.com \
    --to=jbuehler@hekimian.com \
    --cc=joseph.buehler@spirentcom.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).