Opened 12 years ago

Closed 12 years ago

#82 closed defect (fixed)

Editor Evaluate Region doesn't work on some expressions

Reported by: gz Owned by: gb
Priority: major Milestone:
Component: IDE Version:
Keywords: Cc:

Description

In an editor window, type 'foo, then select it, and hit Enter. Nothing happens - no output in the listener, no errors in terminal window.

Other expressions work, e.g. selecting (setq foo 17) and hitting Enter sets foo and prints 17 in the listener as expected. Numbers don't work (i.e. select & eval 17), strings (e.g. select & eval "abc") work.

Change History (3)

comment:1 Changed 12 years ago by gb

Arrgh; selecting "17" and pressing Enter buffers "17" to the listener's standard input; the listener is just sitting there waiting for the next character.

The whole eval-region mechanism should probably take some care to ensure that the region is syntactically well-formed, or (probably better) we should somehow delimit the end of the selection and let READ worry about what's well-formed and what isn't.

in the meantime, selecting "17 " - when possible - causes 17 to be read.

comment:2 Changed 12 years ago by gb

This is supposed to be fixed in changeset:7094.

There's still an issue where reading a selection that contains something like "(foo" will keep reading, waiting for the close paren; I'd sort of rather that that was treated as a premature EOF or something similar.

comment:3 Changed 12 years ago by gb

  • Resolution set to fixed
  • Status changed from new to closed

Close this; maybe open a new bug for failure to detect end of selection

Note: See TracTickets for help on using tickets.