Commit Graph

769 Commits

Author SHA1 Message Date
Robby Findler
551150e805 tweaks to option contract usage 2013-03-15 15:38:13 -05:00
Eli Barzilay
af6be85ff5 Fix lots of indentation mistakes.
(Found by my ayatollah script...)
2013-03-14 10:55:47 -04:00
Robby Findler
443f998531 improve the way the font size callbacks work, wrt to interactivity 2013-03-11 18:53:40 -05:00
Robby Findler
635efe78a0 added a keybinding to center a line within its cell in a table 2013-03-11 18:53:40 -05:00
Robby Findler
761054890d extend the lexer <-> framework's color:text api
to let lexers say "call me again before you change the buffer"

also, use this in the 2d lexer
2013-03-10 20:17:20 -05:00
Robby Findler
c7810ba2ae fix a with-handlers to avoid catching break exns 2013-03-05 22:39:34 -06:00
Robby Findler
be0e32b224 remove a use of normal-case-path
closes PR 6086
2013-03-02 20:41:51 -06:00
Robby Findler
3d0af847b6 add macports default path as a place to look for aspell 2013-02-28 20:45:23 -06:00
Robby Findler
814b9e490c add a keystroke to widen a rectangle 2013-02-23 20:12:56 -06:00
Robby Findler
b0343aa9f0 add a contract on the interaction between the module-lexer and the
lexers it defers to

also, remove the checks in color.rkt in the framework (they are not
all covered by the added contract, but they mostly are and when they
aren't, most of those times are using the heavily tested racket-lexer)
2013-02-23 14:35:25 -06:00
Robby Findler
5eddac7482 fix the use of impersonator-ephemerons in the framework preferences library 2013-02-20 21:13:02 -06:00
Robby Findler
164a5831b8 use impersonator-ephemeron to allow a
real contract on preferences:add-callback
2013-02-19 13:52:42 -06:00
Robby Findler
e720d1df92 add parameterize* to tabing and smart opening square bracket pref defaults 2013-02-18 13:38:34 -06:00
Robby Findler
ca8ad3b88b try to be slightly smarter about invalidating the green region
in the line numbers when it moves around

specifically, if the before and after green line are right
next to each other, then put it into a single edit sequence
(which unions the invalidated regions); if not, then we
may be jumping far away, so invalidate the two regions
and redraw them separately
2013-02-14 19:51:08 -06:00
Danny Yoo
9ed78f2752 Include zero-width-space in string-normalize.
Closes PR 12683.
2013-02-14 13:24:31 -07:00
Robby Findler
7dff18c385 add for/set and it's varieties to the default prefs 2013-02-13 10:50:06 -06:00
Robby Findler
246939f781 tighten up the checks in the place where the framework receives
values from the lexer (for syntax coloring)
2013-02-09 20:42:34 -06:00
Robby Findler
2c35a98ad8 Adjust keybinding code to fall back from
get-active-canvas to get-canvas

Unclear if this is a bug in get-active-canvas or not

closes PR 13507
2013-02-09 14:58:21 -06:00
Robby Findler
6c93cfea56 move dir-chars.rkt to unstable/2d to unbreak dependencies 2013-02-07 10:16:10 -06:00
Robby Findler
e7e64f4006 a better version of deac3fa2b3
This time with test cases, and also without changing the
semantics of unhighlight-range

related to PR 13488
2013-02-05 20:52:35 -06:00
Robby Findler
deac3fa2b3 fix a bug in highlight-range exposed by the contour window
closes PR 13488
related to PR 13491
2013-02-05 15:38:31 -06:00
Robby Findler
12ebfa2cf4 make #:keywords have different color prefs in DrRacket
closes PR 13492
2013-02-05 12:32:48 -06:00
Robby Findler
405e51bb05 adjust contour to track edit sequences better
Specifically when there is no delegate and an edit
sequence is started, track that differently in case
a delegate is set before the edit sequence ends
(in which case we don't want to end the edit
sequence in the delegate since we didn't start it
there)

related to PR 13491
2013-02-05 12:32:48 -06:00
Robby Findler
ab55d43312 give up on the "find the close paren strategy that doesn't
edit the buffer" attempt

In other words, go back to (a rackety version of) the old
implementation of the get-close-paren method
2013-02-03 11:22:46 -06:00
Robby Findler
8aa3e1d473 another close-paren insertion repair
(this one causes runtime errors, not
bad behavior)
2013-02-02 09:10:17 -06:00
Robby Findler
8aadc03719 more close paren adjustment repairs 2013-01-31 21:11:11 -06:00
Robby Findler
219f9dc358 fix close paren correction code 2013-01-31 15:07:20 -06:00
Robby Findler
aaf4a2e16d adjust find-next-outer-paren to avoid editing the buffer
related to PR 13454
2013-01-26 09:05:28 -06:00
Robby Findler
54fad8546a an attempt to change get-close-paren to not edit the buffer
related to PR 13454
2013-01-26 08:08:34 -06:00
Robby Findler
f90eb33d67 only when when there is something to undo
They hypothesis behind this change is that the undo is
undoing an edit that came before, not the temporary edit
that appears in insert-close-paren. So, when there are
no edits happening (ie when fixup? is #f) then don't
undo. This is only a hypothesis because we were not able
to find a small code sequence, outside of DrRacket to
cause the bad behavior, so possibly there is really more
going on here.

Thanks to Nadeem Abdul Hamid for finding this fix.

Closes PR 13454
2013-01-26 07:49:14 -06:00
Robby Findler
a0f910c3dc more adjustments to the c:x;r;a keystroke
The goal is to better handle situations like this one:

╔═══╗
║ - ║
╚═══╝

where the hyphen should not change.
2013-01-21 20:25:40 -06:00
Robby Findler
fce4cbad3a loosen slightly the requirements for changing existing chars
in the c:x;r;a keystroke
2013-01-17 15:39:35 -06:00
Burke Fetscher
2f61d04073 ASCII art box - don't search past extra +x space 2013-01-15 21:43:33 -06:00
Burke Fetscher
8562310f38 ACII art boxes keybinding - look a little harder for the box 2013-01-15 16:53:41 -06:00
Robby Findler
1edec6a33e move the ╬ char and friends into a separate file
do not merge to 5.3.2
2013-01-15 09:08:02 -06:00
Robby Findler
12d670b5a3 add missing inner call 2013-01-05 17:31:07 -06:00
Robby Findler
c907368e0f try to make the colorer more friendly when there is an unclosed
edit sequence

(ie make it not take over the cpu)
2013-01-05 17:31:07 -06:00
Robby Findler
89373c7850 re-enable autosave only if a save is successful, not just attempted
when combined with 94b54db118,
closes PR 13359
2013-01-05 11:35:13 -06:00
Robby Findler
0c76c692ac guard call to file-or-directory-permissions
related to PR 13359
also, Rackety
2013-01-05 11:35:13 -06:00
Robby Findler
aa5f2e7875 adjust the framework to avoid
calling the error-display-handler when reporting
problems saving files

closes PR 13403
2013-01-03 20:47:19 -06:00
Robby Findler
94b54db118 clean up autosave a little
guard more of the filesystem manipulations with
handlers and log errors instead of letting them
be raised and show up as internal errors

related to PR 13403
2013-01-03 20:47:17 -06:00
Robby Findler
0e763f5b01 check the result of find-ls in the one place it wasn't being checked
probably closes 13404
2013-01-01 15:01:13 -06:00
Robby Findler
a948f1b40d fix commit c818eb3ca3
related to PR 13394
2012-12-31 11:52:36 -06:00
Robby Findler
c818eb3ca3 Fix the new lexer interaction when some of the lexer states were
finished, but not all. Don't re-do them the next time around

closes PR 13394
2012-12-29 23:56:38 -06:00
Robby Findler
fa85d30773 adjust the search bubbles so they flicker less when typing 2012-12-25 17:40:32 -06:00
Robby Findler
6a69da76e2 adjust ascii-box => unicode-box algorithm so that
it only looks left and right at hyphens and only
up and down at pipes, etc. This better handles the
case where you have something like this:

  +--------------+
  | (<= a-x b-y) |
  +--------------+

Before this commit, it would have adjusted the hypens
inside the identifiers
2012-12-24 13:49:32 -06:00
Robby Findler
a504f77d54 adjust line number mixin so it postpones recomputation of
sizes until the end of an edit sequence (when appropriate)
2012-12-24 12:30:54 -06:00
Robby Findler
5a9c5f681b clean up ascii art => unicode a little
adjust the way it changes characters so it
doesn't change them when they are already the right
thing (this means set-modified is not always called
and also improves performance in the case that little
changes in a big diagram)
2012-12-24 12:29:57 -06:00
Robby Findler
042bbbefe7 add an ASCII art rectangle => unicode rectangle keybinding to drracket 2012-12-24 11:38:54 -06:00
Robby Findler
ccae98777a fix a switchable button / discrete-sizes panel interaction bug
also clean up the code a bit (make sure the h? argument to
set-label-visible is really a boolean and make some of the
long lines narrower)
2012-12-23 09:52:55 -06:00