From duncan@research.bell-labs.com  Mon Nov  4 20:45:13 2002
From: duncan@research.bell-labs.com (Duncan Temple Lang)
Date: Mon, 4 Nov 2002 15:45:13 -0500
Subject: seemingly random "nesting of readline input" warnings
In-Reply-To: <Pine.LNX.4.44.0211021007340.20950-100000@nokomis2.stat.umn.edu>; from luke@stat.uiowa.edu on Sat, Nov 02, 2002 at 10:11:37AM -0600
References: <x24rb0nx4k.fsf@biostat.ku.dk> <Pine.LNX.4.44.0211021007340.20950-100000@nokomis2.stat.umn.edu>
Message-ID: <20021104154512.G25720@jessie.research.bell-labs.com>

Luke Tierney wrote:
> On 2 Nov 2002, Peter Dalgaard BSA wrote:
> 
> > Argh. Yes, the ReadlineStack.current needs to be reset to zero by
> > something when you break out. A pragmatic temporary fix is to increase
> > the maximum to be large enough that you don't bump into it this
> > easily.
> > 
> > Duuuuncan! Come and fix this!
> > 

Done using a local signal handler that pops the readline stack and
then calls the regular handler. This should work for pretty much all
the cases of interest. There are issues with the very unusual cases.

Fix committed to R-devel. (Do we want it also on R-patches?)

> 
> Looks like another case where our expedient but unfortunately too
> crude approach of handling Control-C on UNIX-likes with longjmp is
> biting us.  We really do need to bite the bullet and fix this properly.
> Maybe Duncan and I can coordinate getting a handle on this.

Yes, indeed.

> 
> luke
> 
> -- 
> Luke Tierney
> University of Iowa                  Phone:             319-335-3386
> Department of Statistics and        Fax:               319-335-3017
>    Actuarial Science
> 241 Schaeffer Hall                  email:      luke@stat.uiowa.edu
> Iowa City, IA 52242                 WWW:  http://www.stat.uiowa.edu
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._

-- 
_______________________________________________________________

Duncan Temple Lang                duncan@research.bell-labs.com
Bell Labs, Lucent Technologies    office: (908)582-3217
700 Mountain Avenue, Room 2C-259  fax:    (908)582-3340
Murray Hill, NJ  07974-2070       
         http://cm.bell-labs.com/stat/duncan
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


seemingly random "nesting of readline input" warnings
Duncan Temple Lang