[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs routinely gets stuck in single_kboard mode
From: |
Richard Stallman |
Subject: |
Re: Emacs routinely gets stuck in single_kboard mode |
Date: |
Mon, 12 Jul 2004 19:58:04 -0400 |
Killing the sole frame on a certain display should exit single_kboard mode
if it is enabled on tht display.
Would someone like to implement that?
I decided to write it rather than wonder if someone would.
Does this fix it? Add the following function to keyboard.c
and install the patch below.
/* If we're in single_kboard state for kboard KBOARD,
get out of it. */
void
not_single_kboard_state (kboard)
KBOARD *kboard;
{
if (kboard == current_kboard)
single_kboard = 0;
}
*** frame.c 16 Nov 2003 20:36:24 -0500 1.306
--- frame.c 12 Jul 2004 16:55:02 -0400
***************
*** 1327,1332 ****
--- 1327,1362 ----
}
}
+ /* If there's no other frame on the same kboard, get out of
+ single-kboard state if we're in it for this kboard. */
+ {
+ Lisp_Object frames;
+ /* Some frame we found on the same kboard, or nil if there are none. */
+ Lisp_Object frame_on_same_kboard;
+
+ frame_on_same_kboard = Qnil;
+
+ for (frames = Vframe_list;
+ CONSP (frames);
+ frames = XCDR (frames))
+ {
+ Lisp_Object this;
+ struct frame *f1;
+
+ this = XCAR (frames);
+ if (!FRAMEP (this))
+ abort ();
+ f1 = XFRAME (this);
+
+ if (FRAME_KBOARD (f) == FRAME_KBOARD (f1))
+ frame_on_same_kboard = this;
+ }
+
+ if (NILP (frame_on_same_kboard))
+ not_single_kboard_state (FRAME_KBOARD (f));
+ }
+
+
/* If we've deleted this keyboard's default_minibuffer_frame, try to
find another one. Prefer minibuffer-only frames, but also notice
frames with other windows. */
- Re: Emacs routinely gets stuck in single_kboard mode, Lőrentey Károly, 2004/07/10
- Re: Emacs routinely gets stuck in single_kboard mode, Richard Stallman, 2004/07/11
- Re: Emacs routinely gets stuck in single_kboard mode, Lőrentey Károly, 2004/07/12
- Re: Emacs routinely gets stuck in single_kboard mode, Richard Stallman, 2004/07/12
- Re: Emacs routinely gets stuck in single_kboard mode, Lőrentey Károly, 2004/07/13
- Re: Emacs routinely gets stuck in single_kboard mode, David Kastrup, 2004/07/13
- Re: Emacs routinely gets stuck in single_kboard mode, Richard Stallman, 2004/07/14
- Re: Emacs routinely gets stuck in single_kboard mode, Lőrentey Károly, 2004/07/15
- Re: Emacs routinely gets stuck in single_kboard mode, Richard Stallman, 2004/07/16