[racket-dev] [racket] Parens/string quotes automatic behavior

From: John Clements (clements at brinckerhoff.org)
Date: Thu May 23 11:15:53 EDT 2013

On May 23, 2013, at 8:13 AM, Robby Findler wrote:

> On Thursday, May 23, 2013, Nadeem Abdul Hamid wrote:
> Hello Racket devs,
> I'm working on tweaking how typing a double quote is handled in strings when DrRacket's auto parens mode is on, per recent post on the users list. If any of you use the mode and can offer feedback on the following, it'd be appreciated: In addition to handling Laurent's initial feature request (see message at bottom), I'm setting it up so that if the following string is in the DrRacket window:
>   "abcdefghi"
> and you select the _def_ and press " (double quote), then it places double-quotes around the "def" with additional quotes to ensure that the other two portions of the string are still validly delimited, i.e.
>   "abc""def""ghi"
> One question is where to put the cursor following this operation? Should it be right inside the beginning of the lifted string, or in front of its double quotes, i.e.:
>   "abc""|def""ghi"  
> or "abc"|"def""ghi"
> ?
> Oh: another possibility: keep the selection where it is (or, perhaps better, select the open quote, the def, and the close quote).



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/dev/archive/attachments/20130523/112e8d38/attachment.html>

Posted on the dev mailing list.