emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master b4e953b 1/5: Remove obsolete keyboard.c code


From: Daniel Colascione
Subject: [Emacs-diffs] master b4e953b 1/5: Remove obsolete keyboard.c code
Date: Mon, 11 Jun 2018 19:10:59 -0400 (EDT)

branch: master
commit b4e953ba0442e351ef06b93e85fbe67bbf163771
Author: Daniel Colascione <address@hidden>
Commit: Daniel Colascione <address@hidden>

    Remove obsolete keyboard.c code
    
    * src/keyboard.c (any_kboard_state, single_kboard_state): Remove
    #if-0-ed functions.
---
 src/keyboard.c | 39 ---------------------------------------
 1 file changed, 39 deletions(-)

diff --git a/src/keyboard.c b/src/keyboard.c
index c90fbd3..c9e069c 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -788,35 +788,6 @@ recursive_edit_unwind (Lisp_Object buffer)
 }
 
 
-#if 0  /* These two functions are now replaced with
-          temporarily_switch_to_single_kboard.  */
-static void
-any_kboard_state ()
-{
-#if 0 /* Theory: if there's anything in Vunread_command_events,
-        it will right away be read by read_key_sequence,
-        and then if we do switch KBOARDS, it will go into the side
-        queue then.  So we don't need to do anything special here -- rms.  */
-  if (CONSP (Vunread_command_events))
-    {
-      current_kboard->kbd_queue
-       = nconc2 (Vunread_command_events, current_kboard->kbd_queue);
-      current_kboard->kbd_queue_has_data = true;
-    }
-  Vunread_command_events = Qnil;
-#endif
-  single_kboard = false;
-}
-
-/* Switch to the single-kboard state, making current_kboard
-   the only KBOARD from which further input is accepted.  */
-
-void
-single_kboard_state ()
-{
-  single_kboard = true;
-}
-#endif
 
 /* If we're in single_kboard state for kboard KBOARD,
    get out of it.  */
@@ -915,16 +886,6 @@ temporarily_switch_to_single_kboard (struct frame *f)
   record_unwind_protect_int (restore_kboard_configuration, was_locked);
 }
 
-#if 0 /* This function is not needed anymore.  */
-void
-record_single_kboard_state ()
-{
-  if (single_kboard)
-    push_kboard (current_kboard);
-  record_unwind_protect_int (restore_kboard_configuration, single_kboard);
-}
-#endif
-
 static void
 restore_kboard_configuration (int was_locked)
 {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]