emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/src/keyboard.c


From: Richard M . Stallman
Subject: [Emacs-diffs] Changes to emacs/src/keyboard.c
Date: Sun, 01 May 2005 14:47:17 -0400

Index: emacs/src/keyboard.c
diff -c emacs/src/keyboard.c:1.820 emacs/src/keyboard.c:1.821
*** emacs/src/keyboard.c:1.820  Tue Apr 12 10:25:05 2005
--- emacs/src/keyboard.c        Sun May  1 18:47:16 2005
***************
*** 1186,1192 ****
  
    Vstandard_output = Qt;
    Vstandard_input = Qt;
!   Vexecuting_macro = Qnil;
    executing_macro = Qnil;
    current_kboard->Vprefix_arg = Qnil;
    current_kboard->Vlast_prefix_arg = Qnil;
--- 1186,1192 ----
  
    Vstandard_output = Qt;
    Vstandard_input = Qt;
!   Vexecuting_kbd_macro = Qnil;
    executing_macro = Qnil;
    current_kboard->Vprefix_arg = Qnil;
    current_kboard->Vlast_prefix_arg = Qnil;
***************
*** 1453,1459 ****
          if (NILP (Vunread_command_events)
              && NILP (Vunread_input_method_events)
              && NILP (Vunread_post_input_method_events)
!             && NILP (Vexecuting_macro)
              && !NILP (sit_for (0, post_command_idle_delay, 0, 1, 1)))
            safe_run_hooks (Qpost_command_idle_hook);
        }
--- 1453,1459 ----
          if (NILP (Vunread_command_events)
              && NILP (Vunread_input_method_events)
              && NILP (Vunread_post_input_method_events)
!             && NILP (Vexecuting_kbd_macro)
              && !NILP (sit_for (0, post_command_idle_delay, 0, 1, 1)))
            safe_run_hooks (Qpost_command_idle_hook);
        }
***************
*** 1582,1592 ****
        }
  
        cmd = read_key_sequence_cmd;
!       if (!NILP (Vexecuting_macro))
        {
          if (!NILP (Vquit_flag))
            {
!             Vexecuting_macro = Qt;
              QUIT;             /* Make some noise. */
                                /* Will return since macro now empty. */
            }
--- 1582,1592 ----
        }
  
        cmd = read_key_sequence_cmd;
!       if (!NILP (Vexecuting_kbd_macro))
        {
          if (!NILP (Vquit_flag))
            {
!             Vexecuting_kbd_macro = Qt;
              QUIT;             /* Make some noise. */
                                /* Will return since macro now empty. */
            }
***************
*** 1685,1691 ****
                      && EQ (current_buffer->selective_display, Qnil)
                      && !detect_input_pending ()
                      && NILP (XWINDOW 
(selected_window)->column_number_displayed)
!                     && NILP (Vexecuting_macro))
                    direct_output_forward_char (1);
                  goto directly_done;
                }
--- 1685,1691 ----
                      && EQ (current_buffer->selective_display, Qnil)
                      && !detect_input_pending ()
                      && NILP (XWINDOW 
(selected_window)->column_number_displayed)
!                     && NILP (Vexecuting_kbd_macro))
                    direct_output_forward_char (1);
                  goto directly_done;
                }
***************
*** 1720,1726 ****
                      && EQ (current_buffer->selective_display, Qnil)
                      && !detect_input_pending ()
                      && NILP (XWINDOW 
(selected_window)->column_number_displayed)
!                     && NILP (Vexecuting_macro))
                    direct_output_forward_char (-1);
                  goto directly_done;
                }
--- 1720,1726 ----
                      && EQ (current_buffer->selective_display, Qnil)
                      && !detect_input_pending ()
                      && NILP (XWINDOW 
(selected_window)->column_number_displayed)
!                     && NILP (Vexecuting_kbd_macro))
                    direct_output_forward_char (-1);
                  goto directly_done;
                }
***************
*** 1733,1739 ****
                    = translate_char (Vtranslation_table_for_input,
                                      XFASTINT (last_command_char), 0, 0, 0);
                  int value;
!                 if (NILP (Vexecuting_macro)
                      && !EQ (minibuf_window, selected_window))
                    {
                      if (!nonundocount || nonundocount >= 20)
--- 1733,1739 ----
                    = translate_char (Vtranslation_table_for_input,
                                      XFASTINT (last_command_char), 0, 0, 0);
                  int value;
!                 if (NILP (Vexecuting_kbd_macro)
                      && !EQ (minibuf_window, selected_window))
                    {
                      if (!nonundocount || nonundocount >= 20)
***************
*** 1755,1761 ****
                          || !EQ (current_buffer->selective_display, Qnil)
                          || detect_input_pending ()
                          || !NILP (XWINDOW 
(selected_window)->column_number_displayed)
!                         || !NILP (Vexecuting_macro));
  
                  value = internal_self_insert (c, 0);
  
--- 1755,1761 ----
                          || !EQ (current_buffer->selective_display, Qnil)
                          || detect_input_pending ()
                          || !NILP (XWINDOW 
(selected_window)->column_number_displayed)
!                         || !NILP (Vexecuting_kbd_macro));
  
                  value = internal_self_insert (c, 0);
  
***************
*** 1783,1789 ****
              int scount = SPECPDL_INDEX ();
  
              if (display_hourglass_p
!                 && NILP (Vexecuting_macro))
                {
                  record_unwind_protect (cancel_hourglass_unwind, Qnil);
                  start_hourglass ();
--- 1783,1789 ----
              int scount = SPECPDL_INDEX ();
  
              if (display_hourglass_p
!                 && NILP (Vexecuting_kbd_macro))
                {
                  record_unwind_protect (cancel_hourglass_unwind, Qnil);
                  start_hourglass ();
***************
*** 1801,1807 ****
             hourglass cursor anyway.
             But don't cancel the hourglass within a macro
             just because a command in the macro finishes.  */
!         if (NILP (Vexecuting_macro))
              unbind_to (scount, Qnil);
  #endif
            }
--- 1801,1807 ----
             hourglass cursor anyway.
             But don't cancel the hourglass within a macro
             just because a command in the macro finishes.  */
!         if (NILP (Vexecuting_kbd_macro))
              unbind_to (scount, Qnil);
  #endif
            }
***************
*** 1827,1833 ****
          if (NILP (Vunread_command_events)
              && NILP (Vunread_input_method_events)
              && NILP (Vunread_post_input_method_events)
!             && NILP (Vexecuting_macro)
              && !NILP (sit_for (0, post_command_idle_delay, 0, 1, 1)))
            safe_run_hooks (Qpost_command_idle_hook);
        }
--- 1827,1833 ----
          if (NILP (Vunread_command_events)
              && NILP (Vunread_input_method_events)
              && NILP (Vunread_post_input_method_events)
!             && NILP (Vexecuting_kbd_macro)
              && !NILP (sit_for (0, post_command_idle_delay, 0, 1, 1)))
            safe_run_hooks (Qpost_command_idle_hook);
        }
***************
*** 2499,2505 ****
  
    this_command_key_count_reset = 0;
  
!   if (!NILP (Vexecuting_macro))
      {
        /* We set this to Qmacro; since that's not a frame, nobody will
         try to switch frames on us, and the selected window will
--- 2499,2505 ----
  
    this_command_key_count_reset = 0;
  
!   if (!NILP (Vexecuting_kbd_macro))
      {
        /* We set this to Qmacro; since that's not a frame, nobody will
         try to switch frames on us, and the selected window will
***************
*** 2516,2530 ****
        /* Exit the macro if we are at the end.
         Also, some things replace the macro with t
         to force an early exit.  */
!       if (EQ (Vexecuting_macro, Qt)
!         || executing_macro_index >= XFASTINT (Flength (Vexecuting_macro)))
        {
          XSETINT (c, -1);
          goto exit;
        }
  
!       c = Faref (Vexecuting_macro, make_number (executing_macro_index));
!       if (STRINGP (Vexecuting_macro)
          && (XINT (c) & 0x80) && (XUINT (c) <= 0xff))
        XSETFASTINT (c, CHAR_META | (XINT (c) & ~0x80));
  
--- 2516,2530 ----
        /* Exit the macro if we are at the end.
         Also, some things replace the macro with t
         to force an early exit.  */
!       if (EQ (Vexecuting_kbd_macro, Qt)
!         || executing_macro_index >= XFASTINT (Flength (Vexecuting_kbd_macro)))
        {
          XSETINT (c, -1);
          goto exit;
        }
  
!       c = Faref (Vexecuting_kbd_macro, make_number (executing_macro_index));
!       if (STRINGP (Vexecuting_kbd_macro)
          && (XINT (c) & 0x80) && (XUINT (c) <= 0xff))
        XSETFASTINT (c, CHAR_META | (XINT (c) & ~0x80));
  
***************
*** 9817,9823 ****
  
    /* If enabled, show which key runs this command.  */
    if (!NILP (Vsuggest_key_bindings)
!       && NILP (Vexecuting_macro)
        && SYMBOLP (function))
      bindings = Fwhere_is_internal (function, Voverriding_local_map,
                                   Qt, Qnil, Qnil);
--- 9817,9823 ----
  
    /* If enabled, show which key runs this command.  */
    if (!NILP (Vsuggest_key_bindings)
!       && NILP (Vexecuting_kbd_macro)
        && SYMBOLP (function))
      bindings = Fwhere_is_internal (function, Voverriding_local_map,
                                   Qt, Qnil, Qnil);




reply via email to

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