1. 11 Sep, 2005 2 commits
    • Karoly Lorentey's avatar
      Fix bootstrap error in keyboard.c. · 9148bda2
      Karoly Lorentey authored
      * src/keyboard.c: Add forward declaration of restore_kboard_configuration.
      
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-415
      9148bda2
    • Karoly Lorentey's avatar
      Fix crash after y-or-n-p prompt triggered by emacsclient. (Reported by Han... · 256c9c3a
      Karoly Lorentey authored
      Fix crash after y-or-n-p prompt triggered by emacsclient. (Reported by Han Boetes, analysis by Kalle Olavi Niemitalo.)
      
      * src/keyboard.c (temporarily_switch_to_single_kboard)
        (record_single_kboard_state, restore_kboard_configuration):  New functions.
        (timer_check): Use record_single_kboard_state instead of
        naive single_kboard state management.
      
      * src/fns.c: Include termhooks.h.
        (Fy_or_n_p): Use temporarily_switch_to_single_kboard to prevent crashes
        caused by bogus longjmps in read_char.
      
      * src/callint.c (Fcall_interactively): Use
        temporarily_switch_to_single_kboard instead of single_kboard_state.
        Make sure it is correctly unwinded.
      
      * src/keyboard.c (recursive_edit_unwind): Remove single_kboard stuff.
        (Frecursive_edit): Use temporarily_switch_to_single_kboard for
        single_kboard state management.
      
      * src/minibuf.c (read_minibuf): Use temporarily_switch_to_single_kboard
        instead of simply calling single_kboard_state.
      
      * src/keyboard.c (push_device_kboard): Remove function.
        (push_kboard): New function.
        (push_frame_kboard): Use it.
        (pop_frame_kboard): Rename to pop_kboard.
      
      * src/xdisp.c (display_mode_line, Fformat_mode_line): Update uses.
      
      * src/data.c: Include termhooks.h.
        (Fterminal_local_value, Fset_terminal_local_value): Update.
      
      * src/Makefile.in (data.o, fns.o): Add termhooks.h dependency.
      
      * src/keyboard.h (push_device_kboard, pop_frame_kboard): Remove declarations.
        (push_kboard, pop_kboard, temporarily_switch_to_single_kboard)
        (record_single_kboard_state): New declarations.
      
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-414
      256c9c3a
  2. 25 Aug, 2005 1 commit
  3. 07 Aug, 2005 1 commit
  4. 23 Jul, 2005 1 commit
  5. 13 Jul, 2005 1 commit
  6. 12 Jul, 2005 1 commit
    • Karoly Lorentey's avatar
      Rename function-key-map to local-function-key-map, and global-function-key-map... · ac09dc1e
      Karoly Lorentey authored
      Rename function-key-map to local-function-key-map, and global-function-key-map to function-key-map.  Same for key-translation-map.
      
      * src/keyboard.h (struct kboard): Rename member 'Vfunction_key_map' to
        'Vlocal_function_key_map', and 'Vkey_translation_map' to
        'Vlocal_key_translation_map'.
        (Vfunction_key_map, Vkey_translation_map): New declarations.
      
      * src/keyboard.c (Vfunction_key_map): New variable.
        (Vglobal_key_translation_map): Rename to Vglobal_key_translation_map.
        (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards): Update.
      * src/keymap.c (Fdescribe_buffer_bindings): Update.
      * src/term.c (term_get_fkeys_1): Update.
      
      * lisp/double.el (double-setup): Replace global-key-translation-map with key-translation-map.
      * lisp/international/encoded-kb.el (encoded-kbd-setup-display): Ditto.
      * lisp/international/iso-transl.el: Ditto.
      * lisp/obsolete/iso-acc.el (iso-accents-customize): Ditto.
      
      * lisp/edmacro.el (edmacro-format-keys): Use terminal-local binding of
        local-function-key-map instead of function-key-map.
      * lisp/emulation/cua-base.el (cua--pre-command-handler): Ditto.
      * lisp/isearch.el (isearch-other-meta-char): Ditto.
      * lisp/subr.el (read-quoted-char): Ditto.
      * lisp/term/vt200.el: Ditto.
      * lisp/term/vt201.el: Ditto.
      * lisp/term/vt220.el: Ditto.
      * lisp/term/vt240.el: Ditto.
      * lisp/term/vt300.el: Ditto.
      * lisp/term/vt320.el: Ditto.
      * lisp/term/vt400.el: Ditto.
      * lisp/term/vt420.el: Ditto.
      
      * lisp/simple.el (normal-erase-is-backspace-mode): Add todo note.
      * lisp/xt-mouse.el: Ditto.
      
      * lisp/term/AT386.el: Adapt for renaming of function-key-map to local-function-key-map.
      * lisp/term/internal.el: Ditto.
      * lisp/term/iris-ansi.el: Ditto.
      * lisp/term/lk201.el: Ditto.
      * lisp/term/mac-win.el: Ditto.
      * lisp/term/news.el: Ditto.
      * lisp/term/rxvt.el: Ditto.
      * lisp/term/sun.el: Ditto.
      * lisp/term/tvi970.el: Ditto.
      * lisp/term/wyse50.el: Ditto.
      * lisp/term/x-win.el (x-setup-function-keys): Ditto.
      * lisp/term/xterm.el: Ditto.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-386
      ac09dc1e
  7. 11 Jul, 2005 1 commit
    • Karoly Lorentey's avatar
      Rename `struct display' to `struct device'. Update function, parameter and... · 7e59217d
      Karoly Lorentey authored
      Rename `struct display' to `struct device'.  Update function, parameter and variable names accordingly.
      
      * src/termhooks.h (struct device): Rename to `struct device'.
        Rename member `next_display' to `next_device'.
        Rename member `delete_display_hook' to `delete_device_hook'.
        (FRAME_DISPLAY): Rename to FRAME_DEVICE.
        (DISPLAY_ACTIVE_P): Rename to DEVICE_ACTIVE_P.
        (DISPLAY_TERMINAL_CODING): Rename to DEVICE_TERMINAL_CODING.
        (DISPLAY_KEYBOARD_CODING): Rename to DEVICE_KEYBOARD_CODING.
      
      * src/frame.h (stuct frame): Rename `display' member to `device'.
      
      * src/xterm.h (x_display_info): Rename member `frame_display' to `device'.
      
      * src/termchar.h (struct tty_display_info): Rename `display' member to `device'.
      
      * src/keyboard.c (push_display_kboard): Rename to push_device_kboard.
      
      * lisp/frame.el (make-frame): Rename frame parameter `display-id' to `device'.
      * src/frame.c (Fmake_terminal_frame): Ditto.
      * src/xfns.c (Fx_create_frame): Ditto.
      
      * src/term.c (display_list): Rename to device_list.
      * src/term.c (initial_display): Rename to initial_device.
      * src/term.c (next_display_id): Rename to next_device_id.
      * src/term.c (get_display): Rename to get_device.
      * src/term.c (get_tty_display): Rename to get_tty_device.
      * src/term.c (get_named_tty_display): Rename to get_named_tty.
      * src/term.c (init_initial_display): Rename to init_initial_device.
      * src/term.c (delete_initial_display): Rename to delete_initial_device.
      * src/term.c (create_display): Rename to create_device.
      * src/term.c (delete_display): Rename to delete_device.
      
      * src/xfns.c (check_x_display_info): Document that the function allows
        display ids as well.
      
      * src/xterm.c (x_delete_frame_display): Rename to x_delete_device.
      * src/xterm.c (x_create_frame_display): Rename to x_create_device.
      
      * src/coding.c: Update.
      * src/dispextern.h: Update.
      * src/data.c: Update.
      * src/dispnew.c: Update.
      * src/frame.c: Update.
      * src/frame.h: Update.
      * src/keyboard.c: Update.
      * src/keyboard.h: Update.
      * src/lisp.h: Update.
      * src/sysdep.c: Update.
      * src/term.c: Update.
      * src/xdisp.c: Update.
      * src/xselect.c: Update.
      * src/xterm.c: Update.
      
      * src/prefix-args.c: Include stdlib.h for exit.
      
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-382
      7e59217d
  8. 08 Jul, 2005 1 commit
  9. 04 Jul, 2005 1 commit
  10. 27 Jun, 2005 2 commits
    • Karoly Lorentey's avatar
      Work around nondeterministic binding of terminal-local variables. (Fixes... · 2a42d440
      Karoly Lorentey authored
      Work around nondeterministic binding of terminal-local variables.  (Fixes national character input on ttys.)
      
      * src/data.c (Fterminal_local_value, Fset_terminal_local_value): New functions.
        (syms_of_data): Defsubr them.
      
      * lisp/international/encoded-kb.el (encoded-kbd-setup-keymap): Add keymap
        parameter.  Use it instead of changing key-translation-map directly.
        (encoded-kbd-setup-display): Use terminal-local-value and
        set-terminal-local-value to access key-translation-map.  Remove
        debugging messages.
      
      * lisp/international/mule.el (keyboard-coding-system): Test for
        encoded-kbd-setup-display, not encoded-kbd-mode.
      
      * src/keyboard.c (syms_of_keyboard): Expand docs of terminal-local
        variables to warn about their random bindings.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-365
      2a42d440
    • Karoly Lorentey's avatar
      New C function `push_display_kboard'. · e589efa5
      Karoly Lorentey authored
      * src/keyboard.c (push_display_kboard): New function.
      * src/keyboard.h (push_display_kboard): Declare it.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-364
      e589efa5
  11. 26 Jun, 2005 2 commits
    • Karoly Lorentey's avatar
      Change key-translation-map to be terminal-local. · 4ea81208
      Karoly Lorentey authored
      * src/keymap.c (Vkey_translation_map): Remove.
        (syms_of_keymap): Remove DEFVAR for key-translation-map.
        (Fdescribe_buffer_bindings): Update for terminal-local key-translation-map.
        
      
      * src/keyboard.h (kboard): Add Vkey_translation_map field.
        (Vglobal_key_translation_map): Declare.
      
      * src/keyboard.c (Vglobal_key_translation_map): New variable.
        (syms_of_keyboard): DEFVAR it and Vkey_translation_map.
        (mark_kboards): Mark key-translation-map.
        (read_key_sequence): Update for terminal-local key-translation-map.
      
      * src/emacs.c (main): Call syms_of_keymap before syms_of_keyboard.
      
      * lisp/term/mac-win.el (mac-handle-language-change): Use
        global-key-translation-map instead of key-translation-map.
      * lisp/obsolete/iso-acc.el (iso-accents-customize): Ditto.
      * lisp/international/iso-transl.el (iso-transl-ctl-x-8-map): Ditto.
      * lisp/double.el (double-setup): Ditto.
      
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-359
      4ea81208
    • Karoly Lorentey's avatar
      Work around mysterious breakage of arrow key recognition under screen (see first TODO in README). · 1fb8c4ad
      Karoly Lorentey authored
      * src/keyboard.c (Fset_input_mode): Call reset_sys_modes and
        init_sys_modes on the selected device only; do not use the bulk
        functions reset_all_sys_modes and init_all_sys_modes.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-358
      1fb8c4ad
  12. 25 Jun, 2005 1 commit
    • Karoly Lorentey's avatar
      Make function-key-map a terminal-local variable (move it inside the kboard struct). · f01b6d17
      Karoly Lorentey authored
      * src/keyboard.h (kboard): Move Vfunction_key_map inside the kboard struct.
      
      * src/keyboard.c (Vfunction_key_map): Remove declaration.
        (read_key_sequence, init_kboard): Update references to Vfunction_key_map.
        (syms_of_keyboard): Declare function-key-map as a terminal-local variable.
        (mark_kboards): Mark Vfunction_key_map.
      
      * src/keymap.c (Vfunction_key_map): Remove.
        (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
        (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
      
      * src/term.c (term_get_fkeys_1): Update references to Vfunction_key_map.
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-355
      f01b6d17
  13. 17 Jun, 2005 1 commit
  14. 10 Jun, 2005 1 commit
  15. 08 Jun, 2005 1 commit
  16. 06 Jun, 2005 1 commit
  17. 26 May, 2005 1 commit
  18. 18 May, 2005 1 commit
  19. 16 May, 2005 1 commit
  20. 13 May, 2005 1 commit
  21. 02 May, 2005 1 commit
  22. 01 May, 2005 1 commit
  23. 12 Apr, 2005 2 commits
  24. 10 Apr, 2005 1 commit
  25. 31 Mar, 2005 1 commit
  26. 19 Mar, 2005 1 commit
  27. 16 Mar, 2005 1 commit
  28. 10 Mar, 2005 1 commit
  29. 06 Mar, 2005 1 commit
  30. 01 Mar, 2005 1 commit
  31. 15 Feb, 2005 1 commit
  32. 13 Feb, 2005 1 commit
  33. 12 Feb, 2005 1 commit
    • Karoly Lorentey's avatar
      Fix compilation error with GTK, fix issues with double C-g on controlling tty.... · e72cf5ee
      Karoly Lorentey authored
      Fix compilation error with GTK, fix issues with double C-g on controlling tty. (Reported by Friedrich Delgado Friedrichs, Yoshiaki Kasahara.)
      
      * src/keyboard.c (interrupt_signal, handle_interrupt): Move thread check
        to interrupt_signal.  Check for frame on controlling tty instead of
        current selected frame in handle_interrupt.
      
      
      git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-292
      e72cf5ee
  34. 16 Jan, 2005 1 commit
    • Jan Djärv's avatar
      * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW) · a2d5fca0
      Jan Djärv authored
      (READABLE_EVENTS_FILTER_EVENTS)
      (READABLE_EVENTS_IGNORE_SQUEEZABLES): New flags for readable_events.
      get_filtered_input_pending, readable_filtered_events): Removed.
      (tracking_off): Call readable_events and get_input_pending with
      flag READABLE_EVENTS_DO_TIMERS_NOW.
      (readable_events): Move code from old readable_filtered_events here,
      but check new READABLE_EVENTS_* in argument flags instead of previous
      two boolean arguments do_timers_now and filter_events.
      If we are doing mouse tracking and the mouse moved, return only if
      READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
      (swallow_events): Call get_input_pending with flag
      READABLE_EVENTS_DO_TIMERS_NOW.
      (get_input_pending): Move code from old   get_filtered_input_pending
      here.  Replace boolean arguments do_timers_now, filter_events with
      flags, and pass flags to readable_events.  Document new
      READABLE_EVENTS_* flags.
      (detect_input_pending_ignore_squeezables): New function.
      (detect_input_pending_run_timers): Call get_input_pending with flag
      READABLE_EVENTS_DO_TIMERS_NOW.
      (Finput_pending_p): Call get_input_pending with flags
      READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
      
      * dispnew.c (update_window, update_frame_1): Replace calls to
      detect_input_pending with detect_input_pending_ignore_squeezables
      so that redisplay is not paused if the event queue contains only
      mouse movements.
      
      * lisp.h: Declare detect_input_pending_ignore_squeezables.
      a2d5fca0
  35. 14 Jan, 2005 1 commit
  36. 13 Jan, 2005 1 commit