
I may be wrong but I think a single select entry field is used
for selecting messages and switching folders. Restricting the entries
to be numeric would break the folder switching functionality, wouldn't
it?My version of MsgChange, not yet updated, has a check    if {$msgid != {}} {
	# Allow null msgid from Msg_ShowWhat, which supplies line instead
	if {$msgid < 0}  return
    } else {
    ...at the start of the procedure which takes care of the single '-' case.
Perhaps the thing to do is for MsgChange to validate a msgid as a
number before continuing.KevinIn message <200208280108.VAA30178@blackcomb.panasas.com>, Brent Welch writes:
> You can also duplicate thiswith
> 
> MsgChange - noshow
> 
> at the Tcl prompt in the Log window.  I suspect that the sequence
> parser, which understands things like 5-22 to mean messages 5 through 22
> is confused when asked to add/remove message "-" from a sequence.
> 
> If we are allowed to assume 8.2 or higher, which we can't really, then
> we could add
> 
> if {![string is integer $select(sel)]} {
>    # bail out of message select mode
> }
> to the SelectTypein procedure.
> 
> We can probably survive with
> 
> if {![regexp {^[0-9]+$} $select(sel)]} {
>     #bail out of message select mode
> }
> 
> >>>Robert Elz said:
>  >     Date:        Mon, 26 Aug 2002 09:27:56 -0500
>  >     From:        Chris Garrigues  m>
>  >     Message-ID:  <1030372078.11075.TMDA@deepeddy.vircio.com>
>  > 
>  >   | Tell me what keystroke made it happen so I can reproduce it and I'll
>  >   | see what I can do about it (or if I can't, I'll hand it off to 
> Brent).
>  > 
>  > Don't worry too much about it, you seem to have plenty of other things
>  > to do in the immediate future, and this one isn't so critical that people
>  > can't use the code in normal ways.
>  > 
>  > But, to make it happen, type (with normal key bindings) any digit, so the
>  > code thinks you're trying a message number, then backspace, so the digit
>  > goes away, then '-' (other junk characters don't seem to have the
>  > problem, I have just been playing).   That will do it (every time).
>  > 
>  > That is: 0 ^h -
>  > 
>  > Once you get into that state, the same traceback occurs for every
>  > character you type, until a message is selected with the mouse.
>  > 
>  > This is looking like it might be easy to find and fix, so I'll take a
>  > look at it later.
> 
> 
> --
> Brent Welch
> Software Architect, Panasas Inc
> Pioneering the World's Most Scalable and Agile Storage Network
> www.panasas.com
> welch@panasas.com
> 
> 
> 
> 
> _______________________________________________
> Exmh-workers mailing list
> Exmh-workers@redhat.com
> https://listman.redhat.com/mailman/listinfo/exmh-workers_______________________________________________
Exmh-workers mailing list
Exmh-workers@redhat.com
https://listman.redhat.com/mailman/listinfo/exmh-workers