home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / tcl / 2320 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.4 KB  |  38 lines

  1. Newsgroups: comp.lang.tcl
  2. Path: sparky!uunet!spool.mu.edu!agate!linus!philabs!acheron!scifi!watson!yktnews!admin!ghostwind!shmdgljd
  3. From: shmdgljd@rchland.vnet.ibm.com (Jay Schmidgall)
  4. Subject: bind problem
  5. Sender: news@rchland.ibm.com
  6. Message-ID: <1993Jan07.150404.10636@rchland.ibm.com>
  7. Date: Thu, 07 Jan 1993 15:04:04 GMT
  8. Reply-To: jay@vnet.ibm.com
  9. Disclaimer: This posting represents the poster's views, not necessarily those of IBM
  10. Nntp-Posting-Host: ghostwind.rchland.ibm.com
  11. Organization: IBM Rochester, MN
  12. Lines: 24
  13.  
  14. How come I can do 
  15. 1)    bind . <FocusIn> {puts stdout "focus in"}
  16.   but not
  17. 2)    bind . <FocusIn> +{puts stdout "focus in"}
  18.   or
  19. 3)    bind . <FocusIn> +{puts stdout focus_in}
  20.  
  21. (2) results in the error message
  22.     extra characters after close-quote
  23. while (3) results in the message
  24.     wrong # args: should be "bind window ?pattern? ?command?"
  25.  
  26. Both (2) and (3) seem to be problematic due to Tcl's parsing of the
  27. command, probably because they begin with `+'.  Is this intentional?  If
  28. not, perhaps the bind command could take a -append flag to allow forms
  29. such as (2) and (3) while of course maintaining the current syntax.
  30.  
  31. I realize this is easy enough to work around, but it is occasionally
  32. annoying (more so of late).
  33.  
  34. This is with tk2.3, AIX 3.2.2, x11r4.
  35. -- 
  36. : jay          jay@vnet.ibm.com    My opinions and ideas, not my employer's.
  37. : shmdgljd@rchland.vnet.ibm.com    (c) Copyright 1992.  All rights reserved.
  38.