changeset 83023:6ce586a7243e

Set the keyboard of the initial frame correctly. src/dispnew.c (init_display)[MULTI_KBOARD]: Change the kboard of the initial frame to that of the tty. (Fixes --eval bug reported by Romain Francoise.) git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-63
author Karoly Lorentey <lorentey@elte.hu>
date Sat, 24 Jan 2004 19:32:29 +0000
parents abaf78268f22
children e66f69c4f2c5
files README.multi-tty src/dispnew.c
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/README.multi-tty	Fri Jan 23 21:51:08 2004 +0000
+++ b/README.multi-tty	Sat Jan 24 19:32:29 2004 +0000
@@ -173,8 +173,6 @@
    >
    >     This also happens when I start a new frame in an xterm.
 
-** emacs -nw --eval '(y-or-n-p "Foobar")' segfaults.
-
 ** Fix interactive use of temacs.  There are face-related SEGVs, most
    likely because of changes in realize_default_face, realize_face.
 
@@ -605,4 +603,9 @@
    initialize tty colors when the initial window system was
    graphical.)
 
+-- emacs -nw --eval '(y-or-n-p "Foobar")' segfaults.  (Reported by
+   Romain Francoise)
+
+   (Fixed, there was a keyboard initialization problem.)
+
 ;;; arch-tag: 8da1619e-2e79-41a8-9ac9-a0485daad17d
--- a/src/dispnew.c	Fri Jan 23 21:51:08 2004 +0000
+++ b/src/dispnew.c	Sat Jan 24 19:32:29 2004 +0000
@@ -6697,6 +6697,9 @@
       abort ();
     f->output_method = d->type;
     f->display = d;
+#ifdef MULTI_KBOARD
+    f->kboard = d->display_info.tty->kboard;
+#endif
 
     d->reference_count++;
     d->display_info.tty->top_frame = selected_frame;