Changeset 3399

Show
Ignore:
Timestamp:
08/13/04 20:31:56 (4 years ago)
Author:
fujii
Message:

* callint.c (Fcall_interactively): Save and restore Vthis_command,
real_this_command, and current_kbd->Vlast_command. These codes are
imported from Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.2/src/ChangeLog.Meadow

    r3394 r3399  
     12004-08-13  Masayuki FUJII  <boochang@m4.kcn.ne.jp> 
     2 
     3        * callint.c (Fcall_interactively): Save and restore Vthis_command, 
     4        real_this_command, and current_kbd->Vlast_command. These codes are 
     5        imported from Emacs CVS HEAD. 
     6 
    172004-08-12  MIYOSHI Masanori  <miyoshi@meadowy.org> 
    28 
  • branches/2.2/src/callint.c

    r3104 r3399  
    4040 
    4141extern Lisp_Object Vhistory_length; 
     42extern Lisp_Object real_this_command; 
    4243 
    4344Lisp_Object Vcommand_debug_status, Qcommand_debug_status; 
     
    223224  int key_count; 
    224225 
     226  Lisp_Object save_this_command, save_last_command; 
     227  Lisp_Object save_real_this_command; 
     228 
     229  save_this_command = Vthis_command; 
     230  save_real_this_command = real_this_command; 
     231  save_last_command = current_kboard->Vlast_command; 
     232 
    225233  if (NILP (keys)) 
    226234    keys = this_command_keys, key_count = this_command_key_count; 
     
    364372            } 
    365373        } 
     374 
     375      Vthis_command = save_this_command; 
     376      real_this_command= save_real_this_command; 
     377      current_kboard->Vlast_command = save_last_command; 
     378 
    366379      single_kboard_state (); 
    367380      return apply1 (function, specs); 
     
    788801    if (varies[i] >= 1 && varies[i] <= 4) 
    789802      XSETINT (args[i], marker_position (args[i])); 
     803 
     804  Vthis_command = save_this_command; 
     805  real_this_command= save_real_this_command; 
     806  current_kboard->Vlast_command = save_last_command; 
    790807 
    791808  single_kboard_state ();