
Is there a reason you are on 6.11?

I’m on 7.7 so we’re comparing apples and oranges

yeah it’s part of a production so upgrading is a process. I just tried 7.4 and it doesn’t have the issue, so time to upgrade!

Why 7.4 at this stage? 7.7[cs] is good!

heh yeah it’s just what I have installed. I do want to try cs

Can a bunch of insert
, delete
and tabify-selection
and undo
s permanently mess up with DrRacket’s autoindent? indent-all produces completely wrong results after that. (edited, as may have been an XY problem)

or again, could it be because I’m playing with show-content
and read-syntax
, maybe badly interacting with background expansion somehow?

I had a quckscript once with some inerts and deletes, possibly with a non-ascii character, after which the definitions area started to act strange. I don’t recall the details, but will try to reproduce it when I have a chance.

The edits might even have been confined to within a comment, something like adding ‘●’ to each side of the selection.

Definitely no undo
involved, probably no tabify-selection
, in case you want to quickly check whether the insert and delete you’re doing is enough to screw it up.

#\| Surround current to end-of-line with '★'s or '∗'s \|#
#;
(define ((bracketer open close) _ #:editor ted)
(send ted begin-edit-sequence)
(define current (send ted get-start-position))
(send* ted
(insert open)
(move-position 'right #false 'line)
(insert close)
(set-position current))
(send ted end-edit-sequence))
#;
(define-script script:★—★
#:label "★ Stars Around Current to End-of-Line ★"
#:shortcut-prefix (ctl shift) #:shortcut #\8
(bracketer "★ " " ★"))
#;
(define-script script:∗—∗
#:label "∗ Asterisks Around Current to End-of-Line ∗"
#:shortcut-prefix (ctl) #:shortcut #\8
(bracketer "∗ " " ∗"))

Those were the scripts, commented-out in a larger file of scripts since they were causing problems. But I can’t recall what problem they were causing after use.

Thanks, I’ll give it a try