Ticket Change Details
Not logged in
Overview

Artifact ID: 39f10d9c4d5fd730672bec93b3a463fc3eaf97c6
Ticket: f1253530cdd83e66fd7c023540df68cfbfb51e98
Different Windows / *nix default bindings for text widget
User & Date: fvogel 2016-03-21 21:26:20
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    tcl_wordchars and tcl_nonwordchars are unknown at Tcl startup.
    
    They are currently auto-loaded along with the commands they control (tcl_wordBreakAfter, tcl_wordBreakBefore, tcl_endOfWord, tcl_startOfNextWord, tcl_startOfPreviousWord). Only when one of these commands are used the file word.tcl where all this is defined is sourced.
    
    That means that ::tcl_wordchars and ::tcl_nonwordchars cannot be used before using one of these commands first.
    
    Therefore, running one of the following commands (for instance) make Tcl aware of tcl_wordchars and tcl_nonwordchars:
        catch {tcl_endOfWord}
        tcl_endOfWord "Hello world" 2  ; # or any parameters
        source [file join [info library] word.tcl]
    
    But this should not be necessary from a user point of view: tcl_wordchars and tcl_nonwordchars should be readily available at Tcl session startup.
    
    Note: this ticket is a follow-up from the following Tk ticket:
        http://core.tcl.tk/tk/tktview/1517768fffffffffffffffffffffffffffffffff
    
    See also this comp.lang.tcl thread:
        http://groups.google.fr/group/comp.lang.tcl/browse_thread/thread/659fd6c1f41d9a81/4a3c30d2c97604cc
    
    Another reference is in the wiki:
        http://wiki.tcl.tk/1655
    
  5. foundin changed to: "trunk"
  6. is_private changed to: "0"
  7. login: "fvogel"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "a013af67114eccc19ad12b04f14923acea9e96b7"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "fvogel"
  14. subsystem changed to: "07. Variables"
  15. title changed to:
    tcl_wordchars and tcl_nonwordchars are unknown at startup
    
  16. type changed to: "Bug"