Robby Findler
c4deab2e67
fix crlf mode initialization
...
original commit: b71e562284168419abb5500e2eaceb9d0488f363
2011-10-01 08:10:25 -05:00
Robby Findler
eb943f394e
Adjust DrRacket so that it saves files with CRLF
...
line terminators when:
a) running under windows, and
b) the file on the disk (when DrRacket first opens it)
contains all CRLF line endings.
In all other situations, the file is saved with LF terminators.
Before this commit, DrRacket would always use the platform-specific
convention, regardless of the original content of the file.
closes PR 12242
original commit: 4a2757f2004fa84901cbae7ff9a257616ce7acaa
2011-09-30 17:08:07 -05:00
Ryan Culpepper
7fb542cbf5
removed useless requires
...
original commit: c7f86d276c68b12e87dc46cef4a8e1b95538f88d
2011-09-27 19:28:44 -06:00
Robby Findler
63d9d89abb
extend and refactor minor stuff in the framework
...
specifically add an argument to move/copy-to-edit so that it
does copy-only and export a function for trigger a submission
to the input port of a text:ports<%> object programmatically
original commit: 2ec720176a295f147cbb461f6b804e05c78ee57d
2011-09-22 10:51:47 -05:00
Robby Findler
48e71d341a
manage the state for delegates better (used by the drracket contour window)
...
closes PR 12094
original commit: 38596a9b581c06a7bdc8faba26c8e0cfb1b09492
2011-08-07 18:39:22 -05:00
Robby Findler
b1c27e35c2
get rid of a broken attempt to optimize the 20,000-ft overview refreshing
...
closes PR 12083
original commit: 29a843ac379438a6b7540716c68537a09c62ac51
2011-08-03 09:58:23 -05:00
Robby Findler
7c6bdcbc98
added edit-sequence when flushing the delegate updates
...
original commit: 524d53339296a9b1d047ed77bd50b99a031ef9fc
2011-06-17 15:46:52 +08:00
Robby Findler
5c21353cb5
attempt to try to make the contour window feel faster by delaying the work until nothing has happened for 250 msec
...
original commit: 24d11805ac25fcb3a0505009ff47ff8c95392f5e
2011-06-17 12:43:14 +08:00
Jon Rafkind
59a546f676
line numbers separator uses the same color as the text
...
original commit: 576916d4d7de34fe9927eac46b2fc65a5edf9aa1
2011-04-04 13:07:25 -06:00
Robby Findler
4c0a52964d
lift the restriction that the text:ports mixin
...
cannot do io from the eventspace handler thread
and add a test suite for text:ports
original commit: 8e94ce49e417ca57547702e5b40b201e27edb5bb
2011-02-15 18:10:02 -06:00
Jon Rafkind
3848e3da6c
use the standard editor style to get the right colors in the line
...
numbers mixin. closes pr11655
original commit: 5bb72d5b0e01d022ce49ad360bc1333029c0ea56
2011-02-09 14:36:58 -07:00
David Van Horn
15c7ab6e1f
Fixes more spelling errors.
...
original commit: 760a58b65df2b91010d2bcc2739ddab2a4489729
2011-02-04 19:44:13 -07:00
Matthew Flatt
3a9e14051b
DrRacket line numbers: fix condition for whether to draw a number
...
original commit: 96fd11eedebc28331aa689892042742ea75039be
2011-01-28 06:22:28 -07:00
Robby Findler
97b928821b
make completions box handle clicking around a little bit better
...
original commit: 71236aa48c1292539390899a14e4481aafd226e5
2011-01-25 20:58:50 -06:00
Robby Findler
4e61f8bb71
drop superflous dependency on srfi1
...
original commit: f182d0def4cb65f3089e0de167d61053279cb799
2011-01-25 20:58:47 -06:00
Robby Findler
8dd3d90602
fix sizing and font inconsistencies in the completions box
...
original commit: e0703e251be2c2fc62303f8376bc4bd10d3f0c60
2011-01-25 20:58:44 -06:00
Robby Findler
c9d3f9a823
fixes the way alt-enter in the drracket repl works so that it doesn't insert whitespace into the submitted expression
...
closes PR 11621
original commit: 7a85e942a2314822352d0a8aeeace56021e019f2
2011-01-15 16:02:23 -06:00
Robby Findler
08dbf9be69
setup hooks so that the behavior of the home / c:a keybinings delegates to a method to find where to go
...
then, use that to change how it works for the scheme mode (and also another variation for the REPL to
cope with the prompt)
I spent a while trying to make this work at the keymap% level (ie putting different keybindings for "home"
and "c:a" into different keymaps) but this just turned out to be far too confusing and fragile, so went
with this alternative (one keybinding, but that delegates to an overridable method)
closes PR 11446
original commit: d2cb96bcb39d93f6dac92906bed9885828663798
2011-01-09 16:22:28 -06:00
Robby Findler
ece9db9125
move the text class creation calls back to the end of the file
...
original commit: ad47d346bad2fdb6f5e4b8f9a5a69dda7e7b4726
2011-01-09 15:38:24 -06:00
Matthew Flatt
e7ecd69f95
line number fixes
...
- restore some method augments that I shouldn't have deleted
- handle font change through a style-list callback
original commit: 9d7a7a1520d5be5ccd993dc935f1053e6160e01a
2011-01-07 13:02:33 -07:00
Matthew Flatt
4ea0968815
repairs for line numbers in DrRacket
...
original commit: be6ba896e04a7a0744810883774ee88fde9aa041
2011-01-07 11:57:50 -07:00
Robby Findler
a58b1541a8
remove now useless private field
...
original commit: 21050c24542a905daa6a29ffa04ebae58ff64228
2011-01-06 10:09:09 -06:00
Robby Findler
1f39495448
ask about normalizing pastes only after pasting has finished (in case there are multiple calls to insert)
...
closes PR 11449
original commit: c94ad960acee98198775b4d67743a318303a961c
2011-01-06 08:39:32 -06:00
Matthew Flatt
41d92f6891
fix line-number mixin
...
original commit: c9d2f43398dc4c607ff98278cab93655d3b2af14
2011-01-05 09:57:33 -07:00
Jon Rafkind
b40699d86f
restore dc state after calculating the clipping area
...
original commit: 6c3feabb52bd1e987b3d24a9c54ca74d431dffea
2011-01-04 22:24:36 -07:00
Jon Rafkind
57fded8b41
sest the line number padding when the editor changes. calculate the position to draw at better
...
original commit: d7ac9c4399939dce2ec8562d863b8c8db16a9b19
2011-01-04 22:16:52 -07:00
Robby Findler
1efce0f496
change drracket and framework so they don't rebind printf anymore
...
(instead binding oprintf to print to the original output port of drracket)
original commit: 7eb3e8c28aacd14c4422d96e2d9e79d6910261b0
2011-01-02 10:03:24 -06:00
Jon Rafkind
2461f3d8b3
use padding instead of manually moving the origin
...
original commit: 11494ce8b9ac4ec55d86cfe4e264330d4d908a02
2010-12-31 19:29:34 -07:00
Robby Findler
e53c285799
framework: sometimes put the text completion menu above the line instead of below it
...
closes PR 10829
original commit: 4e40efaf37fc3ce255e2f8e5760df54c75535ae6
2010-12-28 07:33:26 -06:00
Robby Findler
6f3d72755e
Rackety
...
original commit: f849f25272debb3372b1ceea676f455f5ea3310e
2010-12-28 07:33:24 -06:00
Robby Findler
4dc7f21694
added a 'fast path' check that speeds up the coloring phrase of check syntax by 3x on drracket/private/rep.rkt under windows
...
(thank you Eli's profiler!)
original commit: 4c796a6445ccb8504ef51f3144745bc21cde19ea
2010-12-20 12:22:46 -06:00
Jon Rafkind
68bae9195e
save/restore dc state while drawing line numbers
...
original commit: ee62bae74be7c59479a19ac4b81fed1c03df90b9
2010-11-14 19:48:21 -07:00
Jon Rafkind
6306af91de
set pen to black so the line separator is drawn in the right color
...
original commit: d920cdc945e8455e33a55fb26b2b7c3f3ccfb9c2
2010-11-08 18:10:08 -07:00
Jon Rafkind
c9ec791df0
check last-line + 1
...
original commit: 96018f258c406e55b98dd4d02f2c2248ad38daea
2010-11-07 12:19:49 -07:00
Jon Rafkind
421f133066
add dx offset when drawing
...
original commit: 74fce96d9242a559c3aed6461b1821e6cbe9ec12
2010-11-07 12:06:34 -07:00
Jon Rafkind
80563786c3
dont modify positions if line numbers arent being shown
...
original commit: e0e3870a622627a048e548ea5db0b5acf99b9f39
2010-11-05 15:43:20 -06:00
Jon Rafkind
29b4ae696f
adjust x position when finding editor locations
...
original commit: a698d89a75351a470ae9f972d0c86389fd9ff88f
2010-11-05 15:15:01 -06:00
Jon Rafkind
c333bc022e
use a lighter color for same paragraph lines
...
original commit: c0d504b7b84277e4b21d2ce0a97fb2d7d711df5e
2010-11-04 11:56:36 -06:00
Jon Rafkind
5d8c34a4ca
right align numbers
...
original commit: 9742f896f9916373f00448b3bc72f5ea86f654da
2010-11-04 11:56:36 -06:00
Jon Rafkind
729ebbabb0
set minimum line width to accept 100 lines
...
original commit: d1e44d0cc85838e4183b2a10330d6a69ec72bfd2
2010-11-03 17:59:40 -06:00
Jon Rafkind
67d668337c
allow line number width to increase automatically
...
original commit: c3111c425b2a85a90a5312e343d5a9144665d252
2010-11-03 17:58:18 -06:00
Jon Rafkind
fcec57d8fb
get the line number from the paragraph
...
original commit: 1093b4a43060cdd1e481e8570a7293538ab201ce
2010-11-03 17:16:34 -06:00
Jon Rafkind
52a60ead83
clean up line numbers code
...
original commit: 68c197f63920e1b2814beb2bb68a2c22117b6502
2010-11-03 15:15:54 -06:00
Jon Rafkind
a7e7bb6384
use line locations instead of counting snips
...
original commit: 4a69c362588381e28977a2529578911f2fc54c9b
2010-11-03 14:56:05 -06:00
Jon Rafkind
b444c0726d
set clipping for regular text. minor optimization when choosing line numbers to draw
...
original commit: 87cc623a6fd1815f4361e3117708f38989388b1a
2010-11-02 13:09:54 -06:00
Jon Rafkind
7a68394411
set the font before computing the distance between the line numbers and the real text. add an option to the general pane to enable line numbers
...
original commit: eb89a429e796f4ee0ae0d8e0bd154992e36dc0dc
2010-11-01 23:45:00 -06:00
Jon Rafkind
2388261846
replace the line number widget in drracket with the new mixin from the framework
...
original commit: 4f3e87d42a788de0f11f503f31deb8bc2069e890
2010-11-01 22:14:45 -06:00
Jon Rafkind
d68731be35
clean up line numbers implementation
...
original commit: 281138d4b8e7340a8cc35035f39fca8766a7b87f
2010-11-01 22:14:45 -06:00
Jon Rafkind
bd00bd5303
add first draft of a mixin for text% objects that displays line numbers
...
original commit: dc6350244d4d324dae97e863c2fc4a38d1b1dac3
2010-11-01 22:14:44 -06:00
Matthew Flatt
4155ffbbeb
extend invalidate-bitmap-cache' in
editor<%>' with 'display-end option
...
which the framework's background-rectangle implementation can use
to queue refreshes for changing rectangles, instead of requiring a
full-canvas refresh
original commit: aac7e0b58a2dd7a5e964785b0162ab48c9081c8f
2010-09-19 19:22:22 -06:00