type.tcl 576 B

12345678910111213141516171819202122232425
  1. namespace eval type {
  2. user_setting create string default_type_proc \
  3. {Determines which implementation is used for the generic type command:
  4. type_via_keyboard or type_via_keybuf} type_via_keyboard
  5. proc type {args} {
  6. $::default_type_proc {*}$args
  7. }
  8. proc type_help {args} {
  9. return \
  10. "The type command is currently implemented by $::default_type_proc. (This can
  11. be changed with the default_type_proc setting.) Here is the help of that
  12. command:\n[help $::default_type_proc]"
  13. }
  14. set_help_proc type [namespace code type_help]
  15. namespace export type
  16. }
  17. namespace import type::*