Commit Graph

1532 Commits

Author SHA1 Message Date
Robby Findler
7f70f83094 Rackety
original commit: e65cbdecf0ca06b4e3911952bc8a58f7646f7f4b
2012-08-07 13:03:45 -05:00
Robby Findler
22fee824e5 add some highlighting to the line numbers to show where
the insertion point currently is

closes PR 12976

original commit: 94a448413ee9b371bc7822f27ac422776cf1ca3a
2012-08-07 12:12:45 -05:00
Robby Findler
6d8cf91696 add some highlighting to the line numbers to show where
the insertion point currently is

closes PR 12976

original commit: b5f97513699690a76e54fdea7d884b39032b9e00
2012-08-06 22:24:59 -05:00
Robby Findler
88e9787226 add a find-from-selection menu item that grabs the selection and puts
it directly into the find window

related to PR 12978

original commit: b16843a908a740ebfa843c2455921b76e761a063
2012-08-06 18:00:57 -05:00
Robby Findler
6b3b6b77f8 adjust the filename filter for the insert-images menu item
closes PR 12963

original commit: 9b39fc37f8559ab2e1f760af754f1b15620e0542
2012-08-02 07:17:09 -05:00
Eli Barzilay
92dfc2b100 Redo text sculpturing.
original commit: 2ebab9b93f0ee680104f64df317b3b66f7df7fe1
2012-07-06 16:07:30 -04:00
Robby Findler
d0ee91fc1d when moving the focus to the replace window, also select the text
closes PR 12855

original commit: 8f892a2d3af2216311afa055bc312cd61efc5f71
2012-06-20 09:27:16 -05:00
Robby Findler
93404aaf3a fix interaction between the framework's first-line-mixin and
line-numbers mixin

Specifically, when both are turned on, the #lang line now shows
the line number and shifts the "#lang ..." over to the same spot
where it is drawn when the first line is natually visible

Also, rackety

original commit: dfa0305bb3234808334607758f6ddceb32767824
2012-05-15 22:08:42 -05:00
Matthew Flatt
b4689e86d2 implement scribble/srcdoc' via submodules instead of expand'
Also add a `for-doc' require form, make `proc-doc' et al. provide
forms, make `provide/doc' an alias for `provide'.

original commit: 964020f288a73340052b471327bfe873d804eea8
2012-05-12 01:37:50 -06:00
Eli Barzilay
2869673b26 A bunch of fprintf' -> eprintf' conversions (and a few related things).
original commit: 17090fca4f19298f01d03fea419edb20f315d040
2012-05-06 12:06:00 -04:00
Robby Findler
750c18c835 fix bug in docs; closes PR 12716
original commit: 80d57148d114ff12f3f97ce0266274850500695b
2012-04-22 21:54:19 -05:00
Robby Findler
d60426e9a6 the autosave file might be deleted by the user after it is created
the first time but before the file is actually saved. guard against that.

closes PR 12698

original commit: 35e818ae50eea159f10c996c3475198bc321c662
2012-04-13 10:04:25 -05:00
Robby Findler
4bee9aeb19 add splicing-syntax-parameterize to the default indentation prefs
original commit: a475c078e26dca8dcdb605fa1212125d4525c7ce
2012-04-05 17:34:45 -05:00
Robby Findler
2450c4ad0f be a bit more systematic with tabbing and magic square-bracket-ing for 'for's
also, add in for/sum and for/product

original commit: a1446a037b6dcf083a6e7edeefbc05b5e4a34cf2
2012-03-28 07:21:09 -05:00
Robby Findler
46cd9ed627 added a test suite for DrRacket that checks to make sure the Dear Dr
starts up on all of the days that have easter eggs (well, except 7/2,
since that one is hard to interpose on and hasn't changed in a long
time)

original commit: 617df05ef7d43c04cfaf6978c52619e1865a4812
2012-03-26 15:43:56 -05:00
Robby Findler
eabea09e88 fix splash screen error handling code
original commit: b640b6b41c721bdbd70697e996dd8072a464da73
2012-03-26 15:43:55 -05:00
Robby Findler
018fd62d43 add a preference to control whether or not there is an extra
pixel of space in between lines in DrRacket.

This change is based on Matthew's experience having a look
at the font setup on the three platforms.

He writes:
>  * Mac OS X: the convention seems to be to add space between lines.
>   TextEdit, for example, looks like DrRacket: the maze has spaces.
>
>   (I can't find a font that makes the maze look right, actually, even
>   if I adjust the line spacing.)
>
>  * Windows: the convention seems to be that space is built into the
>   font. DrRacket (and SirMail) draw lines more sparsely than Notepad.
>
>   Perhaps consistent with the differing conventions, the height of
>   "Courier New" at 11-pixel size is 14 on Windows, 13 on Mac OS X.
>
>  * Unix: the convention seems to be to add space. DrRacket looks like
>   the default Terminal and Text Editor programs on Ubuntu.
>
>   The maze nevertheless looks right everywhere, because the glyphs
>   extend an extra pixel above the declared bounding box!

original commit: 0d6b82537776ad4bd850e3b7c5cc1bdaa209b865
2012-03-24 20:20:05 -05:00
Matthew Flatt
cd76937049 try module+' in place of slice'
original commit: e01ebf6095682d9e8ac51d4ce8bf01bf14e9cfdc
2012-03-13 14:31:40 -06:00
Robby Findler
2da0f72492 small improvements to the memory usage for files opened in DrRacket.
Before this commit, opening collects/drracket/private/unit.rkt required
about 17.5 megabytes of memory and after this commit, it is down to
about 15 megabytes.

The precise measurement I did was to create a frame and a scheme:text%
object in it, record the result of current-memory-use, open the file,
and record current-memory-use again.

For comparison, using a text:standard-style-list% object instead of
the scheme:text% requires only about 4.1 megabytes. One difference
being that there are about 3x more snips (10,204 vs 33,901 (after the
commit)), since we have one snip for each region that has a different
color in the scheme:text version, and the text:standard-style-list has
no colors and thus about two per line (there are 5006 lines in the
file).

original commit: a7cb8fdc84f3b592c812468e5e7486d4f7d5bbb6
2012-03-10 20:18:49 -06:00
Matthew Flatt
0f58af9a51 DrRacket default `module*' indentation
original commit: 54a441c0e376ace19d705a9fe9717253bd56f50b
2012-03-09 10:34:57 -07:00
Asumu Takikawa
f9e4af3567 framework: add missing methods to interface and docs
The set-replace-start and get-replace-search-hit methods were
missing in the text:searchable<%> interface. The latter was
also undocumented.

original commit: 04f7bdbb021d1dbcac959eed439050abc36ee1b7
2012-03-01 13:17:48 -05:00
Eli Barzilay
c56a523200 Big newline at EOF scan.
original commit: f7c67b49a49a723534454ce561cd060e63889480
2012-02-29 00:28:11 -05:00
Robby Findler
6878919906 Lost the snipclass with the name (lib "collapsed-snipclass.ss" "framework")
somewhere between 5.1.3 and 5.2.1. Bring it back.

closes PR 12563

original commit: eda4d294cc08a37fb1e94161fbd1fa9440381bdb
2012-02-14 11:26:20 -06:00
Sam Tobin-Hochstadt
dc8edd7062 Refactor and improve fuzzy searching in completion.
original commit: e3609cdb3281993854f7ea57ae63b89be07f3d43
2012-01-13 14:39:05 -05:00
Robby Findler
57f229d37d fix call to message box to remove incorrect style flag
merge to the release branch, please

original commit: e067a4415a03ec6572135ce584a17050690873ca
2012-01-11 13:16:46 -06:00
Robby Findler
bbde125b1e fixed bug in the way aug:keymap extracts the names
now it should return only the canonical names of the keybindings
(instead of potentially returning both the canonical and
non-canonicalized names)

original commit: 95ac3c86f789d6514a3a6c6a2f16d28f7d6f0ea9
2012-01-08 07:07:56 -06:00
Robby Findler
1c40749acf fix the not-a-language message so that the styles in the REPL are right
original commit: 950d165133768ac8fe500b7bfea5eb22f8d5286c
2012-01-06 20:59:34 -06:00
Robby Findler
705bdfbc34 when double clicking in a comment, fall back to word-based instead
of sexp-based selection

closes PR 12439

original commit: 48772f2e405a7723f40397ccdbfdf1f646f8f9c6
2011-12-12 14:45:27 -06:00
Robby Findler
6af85bce99 adjust the double clicking in racket mode so that clicks on the
(instead of sexp-based)

closes PR 12421

original commit: 1d03e5f711c26fb06e3110c2124ef2d13a793979
2011-12-05 21:01:28 -06:00
Robby Findler
95edc28dd8 improve the double-click-on-word behavior for scribble (generally when
double clicking inside a string) and when clicking on close
parentheses (specifically, only special case close parens that are
actually parentheses according to the colorer, rather than special
casing all close parens).

original commit: 082978effea79f2689b9377f1e8d7da795c1b8ee
2011-11-30 16:55:54 -06:00
Robby Findler
ff6fa2736c some long overdue Rackety: renaming the 'scheme:' exports of the framework to 'racket:'
original commit: 458e2c2282adca43aabe3d1e62957389d2fbe798
2011-11-30 06:45:50 -06:00
Robby Findler
c865a34f8a use an aug-keymap instead of a keymap for the scheme mode keymap container
original commit: dd4f307a4707712693927b8e8fd859e2fd85b733
2011-11-29 14:27:51 -06:00
Robby Findler
ade72045be adjust the handling of the scheme mode keymap so that it can go
before the plain text-mode keymap.

Add a doubleleftclick binding to the scheme mode keymap so that
we can have sexp-sensitive double clicking in the drracket editor

original commit: 1c2f9cd721588affa82b0a5497c3580e846a0892
2011-11-29 13:46:23 -06:00
Robby Findler
2eb9dede6a change the framework & drracket so that they still use the colorer
methods (paren matching, mostly) when the colorer is frozen
(but continue to avoid using them when the colrer is stopped)

closes PR 12374

original commit: e935b1fa8e987a2867bb5ddb881d78cbdb23b98d
2011-11-29 13:46:23 -06:00
Robby Findler
e526d30337 fix a bug in the module lexer; it was returning the wrong length for the tokens
it creates when the #lang line isn't well-formed (eg "#lang racke").

closes PR 12399

original commit: 11994bd4f8ea60b5a19ae1f1129bc5c072f3311f
2011-11-28 21:16:31 -06:00
Robby Findler
221e28c123 adjust the autosave error code to print the stacktrace
related to PR 12400

original commit: d580518e66573692e6258c04d94b25e23f3bbf93
2011-11-28 15:34:30 -06:00
Robby Findler
f25948153a add the ability to pass a bitmap directly for the splash screen
original commit: d381c7b40b58c6ea4d9fa7bf1d507a661ed91358
2011-11-28 14:35:44 -06:00
Robby Findler
c0ffac2972 adjust the completions box so that it doesn't raise the error mentioned in 12396 anymore
closes PR 12396

original commit: 081dc6c9a1f67862af6a8ae2d7dfcafb21afe686
2011-11-26 18:30:25 -06:00
Robby Findler
49d4593939 add another printf for drdr's consumption
original commit: e942bb1c3a8ede379ff8ea5032a5cc5855f279c1
2011-11-25 17:54:56 -06:00
Robby Findler
f028cff805 add some debugging to see if I get more useful info for the module language test intermeittent failure
original commit: ca457b00520ada0aba50a83588440b4d9f532960
2011-11-25 15:13:11 -06:00
Robby Findler
2916ffce08 adjust number-snip% so that it subscribes to the file/convertible
protocol for 'png-bytes and 'text

original commit: 6ea6483221a6a9f4aad2db7a391043e61718757c
2011-11-20 16:38:17 -06:00
Robby Findler
ab717a2380 fix the interaction between the automatic insertion of matching parens
and the magic fixup of opening parentheses.

This commit moves the automatic insertion of matching parens to the
scheme mode keymap, so it will now take affect in Racket mode editing,
only. Also, Rackety.

original commit: b726209dc540dfa779fb464510ae68848c4db1e7
2011-11-16 19:36:18 -06:00
Robby Findler
ff239b6f3d Make the 'Show Replace' menu item be always enabled. Also, make it
set the keyboard focus to the replace editor.

It used to be disabled when the searching bar is hidden. In that case, it now
makes the searching bar visible.

original commit: 3345415d71591f60285786cee19a63704effc2ad
2011-11-16 16:23:11 -06:00
Sam Tobin-Hochstadt
8206ecb470 Make autocompletion fuzzier, similar to the doc search.
For example, autocomplete of `cur-dir' will produce the same list of results as the documentation search, with `current-directory' first, instead of producing no results.

original commit: 0754e6b702063efd4153848386d4467c13587fb1
2011-11-13 16:33:17 -05:00
Robby Findler
f20ad9a4fe minor docs fix
original commit: 5128f08810ec027fdb6569750d302930e3cd0519
2011-11-01 09:51:28 -05:00
Robby Findler
6cf14004d5 use the focus table mixin for the autosave window so that drdr tests work right
original commit: 4a3997ac1c21282c324e125ffad835f8d8371cbe
2011-10-17 17:32:37 -05:00
Matthew Flatt
10137f4760 fix framework doc reference to `set-icon' method
Merge to 5.2

original commit: f2082e6eeb4a41ad6e1c33416fa4ae59430362a2
2011-10-11 17:17:58 -06:00
Robby Findler
711cab5ea9 adjust the autosave gui so that closing the window doesn't cause drracket to
exit (this only happened on non-mac os x platforms)

include in 5.2

original commit: 4d00b13ce0f28e876ea87bc4159673c274247f7b
2011-10-11 10:44:00 -05:00
Sam Tobin-Hochstadt
8f9254d569 Change basic-top-level-window% to support `set-icon', and use to set icon for splash screen.
Closes 12241

Merge to 5.2

original commit: 1b69d742bd7b895ce44c8ed21ffcbaa7caeebf93
2011-10-09 09:43:32 -06:00
Robby Findler
6632c07805 adjust uses of after-load-file to use the success? flag
original commit: fcc720f43e7f92063637af65b8c087327908e2ca
2011-10-08 10:50:27 -05:00