walt | 7 Oct 19:44

MouseWheel binding bug in listbox and text widgets?

I've found several other posters with this same problem but I've never
seen a solution offered.  When starting any tk application (including
wish) I get this:

/usr/lib64/tk8.4/tk.tcl: no event type or button # or keysym
no event type or button # or keysym
    while executing
"bind Text <MouseWheel> {
        %W yview scroll [expr {- (%D / 120) * 4}] units
    }"

My workaround is to comment these lines in listbox.tcl and text.tcl:

--- text.tcl.orig       2008-10-07 09:01:39.000000000 -0700
+++ text.tcl    2008-10-07 10:38:57.000000000 -0700
@@ -460,9 +460,9 @@
         %W xview scroll [expr {-10 * (%D)}] units
     }
 } else {
-    bind Text <MouseWheel> {
-        %W yview scroll [expr {- (%D / 120) * 4}] units
-    }
+#    bind Text <MouseWheel> {
+#        %W yview scroll [expr {- (%D / 120) * 4}] units
+#    }
 }

The strange part is that only one of my two linux machines has this
error (the amd64 machine) but I had the same error for awhile on my
NetBSD machine.  The NetBSD error fixed itself when I upgraded a few
(Continue reading)

Donal K. Fellows | 7 Oct 17:40

Fixing TIP 234: zlib support

Hi

I've been reviewing TIP#234 today (which describes a feature set that
I'd really like to have in 8.6) and I've seen that it has a number of
odd limitations and unfortunate features. This message is an attempt to
write some of them down. I don't claim to have all the answers. :-)

   1) Do we really want to publicise the streaming API? Maybe it would be
      fine to just provide a way to attach a streaming gzip/gunzip to a
      channel as a transformation (see [chan push]) and leave it at that.

   2) The API for [zlib gzip] and [zlib gunzip] seems odd too. Why can't
      I control (for gzip) or discover (for gunzip) the metadata? For the
      gzipper, it'd probably be best to express this as a set of options
      (the compression level would be best done the same way) but I'm not
      quite so sure about for gunzip.

   3) Is it necessary to give a buffer size, or is letting Tcl pick one
      itself "good enough"? (After all, we give a buffer growth algorithm
      in the TIP!)

Let me be clear again: I'd *really* like to see zlib support in Tcl in
8.6 (and PNG images too) and I think it would make a good Big Ticket
item for many users. But I'd also like the API to be nice too, and we've
got a little time now (rest of October to be honest) to clear things up...

Donal.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
(Continue reading)

miguel sofer | 7 Oct 13:07

Voting results: TIPs 327 and 328

Voting is now closed on TIPs 327 and 328, both are ACCEPTED:

TIP #327: Proper tailcalls
   YES: Fellows, Kenny, Nijtmans, Sofer

TIP #328: Coroutines
   YES: Fellows, Kenny, Nijtmans, Sofer

Miguel

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Donald G Porter | 6 Oct 17:08

Tcl/Tk 8.6 Feature Freeze - revised schedule.


There will be a release of Tcl/Tk this Friday, October 10, 2008, but it
will be labeled 8.6a3, and not 8.6b1 as previously announced.  The new
target date for 8.6b1, and the feature freeze that goes with it is
approximately December 1, 2008.

The recent flood of TIP activity has simply bitten off more than we
can fully digest by Friday.  And even that flood has left a number of
key proposals undone.  This rescheduling of feature freeze will also
permit the gathering of feedback on new features from those at the
conference before those features get frozen.

--

-- 
| Don Porter          Mathematical and Computational Sciences Division |
| donald.porter@...             Information Technology Laboratory |
| http://math.nist.gov/~DPorter/                                  NIST |
|______________________________________________________________________|

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Donald G Porter | 29 Sep 18:14

TIP 323 (Do Nothing Gracefully) Epillogue


TIP 323 proposed many changes along the same theme.  Most of those
changes were compatible in our usual sense.  Those have been committed
to HEAD.

A few proposed changes to [string first|last|replace] are incompatible
in the handling of empty substrings.  That was the whole point of the
proposal, to stop the jarring special treatment of empty substrings.
However, after going through the exercise of creating the patch and
testing against existing code bases, it's apparent that there are at
least some scripts and packages that rely on the very behavior that I
find jarring.  The incompatibility is not as harmless as I assumed
writing those parts of the proposal.

So, I will not commit the changes to [string], and I will delete those
parts of the proposal from TIP 323 before marking it Final.

If someone wants to bring those proposals up again as a separate TIP
where we can more carefully hash out the compatibility issues, I don't
object.

--

-- 
| Don Porter          Mathematical and Computational Sciences Division |
| donald.porter@...             Information Technology Laboratory |
| http://math.nist.gov/~DPorter/                                  NIST |
|______________________________________________________________________|

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
(Continue reading)

Lars Hellström | 29 Sep 15:58

TIP#327 (tailcall) and custom control structures

I'm worried about the interaction between TIP#327's [tailcall] and 
custom control structures, e.g. the likes of TIP#329's [try]. It seems 
to me that there is a big bunch of unspecified behaviour in this area, 
which could shroud breaking some fundamental principles for Tcl, even 
if it can be argued that it doesn't break compatibility since the new 
behaviour is only triggered by a new command.

First, what works: If one defines

proc test-foreach {prefix list} {
    foreach x $list {
       tcl::unsupported::tailcall {*}$prefix $x
    }
}

then [test-foreach {format -%s-} {foo bar baz}] returns -foo-, as one 
should expect from the [return [uplevel ...]] analogy in the TIP.

Second, what's unclear: Suppose I want a try-finally style command with 
a body to be evaluated and which does some cleanup afterwards. 
Classically (well, post-TIP#90) that should be something like

proc once {body} {
    # Before-code
    catch {uplevel 1 $body} res opt
    # After-code
    return -options $opt $res
}

so for test purposes one might consider
(Continue reading)

Andreas Leitgeb | 26 Sep 10:53

TIP #332: Half-Close for Bidirectional Channels

Alexandre Ferrieux <alexandre.ferrieux@...> wrote:
>  TIP #332: HALF-CLOSE FOR BIDIRECTIONAL CHANNELS 
...
>  This TIP proposes to extend the *close*/*chan close* commands to let 
>  them perform an unidirectional "half-close" on bidirectional channels. 
...
>        *close* /channel/ ?*read*|*write*? 

I'd just like to know if my pledoyees for "using -options with close"
and for "settling for half-closing only *write*-sides" came just too
late, or whether it was read in time but for some reasons declined.

Is there any usecase for closing the read-side only?

And a question I also couldn't find clarified in the TIP:
  What's the result, if a socket's read-side is requested
  to be closed?  error? ignore? just marking the tcl-channel
  wrapping the socket as write-only? (in that case: what will
  happen to the data received on the socket afterwards?)

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

TIPs 330 and 331

Voting is now closed on TIP's 330 and 331:

Results of the ballot:

TIP #330: Eliminate interp->result from the Public Headers

    YES: English, Fellows, Kenny, Nijtmans, Porter, Sofer

TIP #331: Allow [lset] to Extend Lists

    YES: English, Kenny, Nijtmans, Porter, Sofer
    PRESENT: Fellows

Both TIPs PASS.

--

73 de ke9tv/2, Kevin

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Donald G Porter | 30 Sep 16:38

Tcl 8.6 Feature Freeze reminder


Repeating my message from last month, I intend to release Tcl/Tk 8.6b1
on or about October 10, 2008.  I received no responses to my invitation
to delay that deadline, so I plan to stick to that absent some really
compelling issue.

--

-- 
| Don Porter          Mathematical and Computational Sciences Division |
| donald.porter@...             Information Technology Laboratory |
| http://math.nist.gov/~DPorter/                                  NIST |
|______________________________________________________________________|

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Donald G Porter | 30 Sep 14:56

[Fwd: TIP 323 (Do Nothing Gracefully) Epillogue]


Trying a resend.  This message didn't appear yesterday, AFAICT.

-------- Original Message --------
From: Donald G Porter <dgp@...>
Subject: TIP 323 (Do Nothing Gracefully) Epillogue

TIP 323 proposed many changes along the same theme.  Most of those
changes were compatible in our usual sense.  Those have been committed
to HEAD.

A few proposed changes to [string first|last|replace] are incompatible
in the handling of empty substrings.  That was the whole point of the
proposal, to stop the jarring special treatment of empty substrings.
However, after going through the exercise of creating the patch and
testing against existing code bases, it's apparent that there are at
least some scripts and packages that rely on the very behavior that I
find jarring.  The incompatibility is not as harmless as I assumed
writing those parts of the proposal.

So, I will not commit the changes to [string], and I will delete those
parts of the proposal from TIP 323 before marking it Final.

If someone wants to bring those proposals up again as a separate TIP
where we can more carefully hash out the compatibility issues, I don't
object.

--

-- 
| Don Porter          Mathematical and Computational Sciences Division |
| donald.porter@...             Information Technology Laboratory |
(Continue reading)

miguel sofer | 30 Sep 02:51

CFV for TIPs 327 and 328

This is the call for votes on the two tips that move new NRE-enabled 
functionality from ::tcl::unsupported to ::

   TIP #327: Proper tailcalls
   TIP #328: Coroutines

Please submit your votes by [clock format 1223344800], a week plus epsilon from now.

My votes:

   TIP #327: YES
   TIP #328: YES

Cheers
Miguel

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Gmane