Eli Barzilay
656de69636
Don't create a page-setup menu item if `file-menu:create-print?' returns #f.
2011-09-30 10:45:43 -04:00
Eli Barzilay
01c859072e
Rename "standard-menus.rkt" -> "standard-menus.rktl".
...
Since it's a file that gets included. This is likely to be temporary,
if I get on with turning the whole thing into a macro.
2011-09-30 10:45:43 -04:00
Robby Findler
3a3ce656c4
add splicing-* to the default indentation preferences setting
2011-09-29 06:55:05 -05:00
Robby Findler
bef4ed1fd4
adjust frame position preferences for the case when a monitor has gone away
2011-09-28 21:04:56 -05:00
Ryan Culpepper
afc9210599
revert some (require racket/pretty) to (require scheme/pretty)
2011-09-28 19:01:27 -06:00
Robby Findler
c8cbe81e51
fix problems with the autosave recovery gui and add a drdr test for it
2011-09-28 17:06:30 -05:00
Robby Findler
abeaebcad0
remove debugging printf
2011-09-28 17:06:29 -05:00
Ryan Culpepper
c7f86d276c
removed useless requires
2011-09-27 19:28:44 -06:00
Robby Findler
abda257295
moved the 'send to repl' keystrokes to the manual (and added a test
...
suite to make sure the example code in the manual doesn't get stale)
2011-09-23 16:37:18 -05:00
Robby Findler
2ec720176a
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
2011-09-22 10:51:47 -05:00
Robby Findler
048fa1d7b8
get rid of the "open here" functionality
...
This is a backwards incompatible change; there is a more complex change
that just stubs this stuff out that may be better that we may need
isntead of this commit.
2011-09-21 22:53:03 -05:00
Robby Findler
e2f1611ab4
adjusted the color for 'is-documented' bindings in online check syntax to be
...
green so it doesn't look anythign close to how the "yellow" error messages
look
2011-09-21 22:52:59 -05:00
Robby Findler
8e5bb730b3
guard a use of get-root-data in the token tree implementation
...
closes PR 12072
2011-09-16 19:04:14 -05:00
Robby Findler
89ef65a746
fix the collapsed snipclass so that it cooperates with the wxme library and
...
thus saved files with collapsed snips can be required in non-GUI contexts
2011-09-13 14:58:39 -05:00
Robby Findler
14441264ef
Rackety
2011-09-12 10:49:15 -05:00
Vincent St-Amour
68aad051e9
Reduce priority of paren matching highlighting.
2011-09-08 18:01:16 -04:00
Robby Findler
67d17645c4
wrong super interface
2011-09-05 12:33:53 -05:00
Robby Findler
8a30ed73b7
add forgotten file
2011-09-05 09:41:49 -05:00
Robby Findler
a67f509f90
add frame:focus-table-mixin & related things to be able to make drracket
...
test suites that don't depend on the OS giving any focus messages
2011-09-05 08:30:49 -05:00
Robby Findler
171858add1
wrong check for the result of system-type
2011-09-02 08:58:22 -05:00
Robby Findler
49dbb5d963
adjust the close/close window/close tab menu items to be more like other apps on the various platforms
2011-09-01 10:53:09 -05:00
Robby Findler
8f6fb87597
adjust keybindings to free up <menukey>-r for "Run" and <menukey>-t for "New Tab"
2011-09-01 10:53:07 -05:00
Robby Findler
ce0da835ce
adjust the 'recently opened files' menu item so its contents are contain fewer redundant entries
...
amusingly I was reminded to do this by Matthew's recent commit message
saying that normal-case-path is usually a bad idea
2011-08-30 16:11:00 -05:00
Robby Findler
9fcc12b6a0
adjust drracket to be more accomodating in the presence of hostile filesystems
2011-08-27 16:41:35 -05:00
Robby Findler
6823941080
adjust framework get and put file functions to use simple-form-path instead
...
of normalize-path (I'm unsure of the ramifications of this change ...)
2011-08-27 07:54:11 -05:00
Robby Findler
1d13d1399c
adjust the framework get file dialog functions to not call normalize-path unless
...
they've recently checked to see if the file exists
2011-08-27 07:54:10 -05:00
Robby Findler
9817820e4c
remove non-existent files from the 'open recent' menu (but only when the file is selected)
2011-08-25 12:33:33 -05:00
Robby Findler
dc326c9501
change some prints to fprintfs to make it easier to remove debugging printfs from this file when checking in
2011-08-10 12:02:49 -05:00
Robby Findler
83e70af006
fix the initial frame position code for the multiple monitors case
2011-08-10 12:02:49 -05:00
Robby Findler
40c68df514
fix the auto-square-bracket thing for with-syntax
...
closes PR 12096
2011-08-08 19:30:13 -05:00
Robby Findler
38596a9b58
manage the state for delegates better (used by the drracket contour window)
...
closes PR 12094
2011-08-07 18:39:22 -05:00
Robby Findler
fc50be1caa
when moving the insertion point due to a search, use call-as-primary-owner
...
to scroll the right editor
closes PR 12080
2011-08-05 23:33:51 -05:00
Robby Findler
a090a0e903
adjust the tabify and tabify-selection methods so they do nothing when the colorer is frozen or stopped
...
closes PR 12087
2011-08-05 21:39:31 -05:00
Robby Findler
29a843ac37
get rid of a broken attempt to optimize the 20,000-ft overview refreshing
...
closes PR 12083
2011-08-03 09:58:23 -05:00
John Clements
e178dbc4f2
unimportant tabbing fixup
2011-07-28 22:51:00 -04:00
Robby Findler
eba9c56d8c
adjust the control-s keybinding so that it behaves like the menu shortcut
...
keep the old keybinding on esc;% (only under linux)
2011-07-25 13:40:15 -04:00
Robby Findler
2a78ea9723
change autowrapping preference default
...
please merge to release branch
2011-07-19 16:17:04 -05:00
Robby Findler
3fa2cc0d67
adjust the size-pref frame mixin to track the position of the frame in a multi-monitor sensitive way
...
(also fix various issues with that code and unify the framework and drracket way of doing this)
2011-07-19 16:16:50 -05:00
Matthew Flatt
5e0d6e0dee
fix void result to match contract
...
Merge to 5.1.2 if Robby agrees
2011-07-16 14:30:08 -06:00
John Clements
b14ac37d99
added automatic parens preference
2011-07-12 12:23:08 -07:00
Eli Barzilay
3157955d40
".ss" -> ".rkt" scan done.
2011-07-02 10:37:53 -04:00
Eli Barzilay
78dacef817
Get rid of "defaultly"s.
2011-06-28 02:11:24 -04:00
Eli Barzilay
40124a0619
A long overdue scan to eliminate files without terminating newlines.
...
(DrRacket should really do that.)
2011-06-28 02:01:41 -04:00
Robby Findler
f93ff4de26
added get-pos/text-dc-location method to editor:basic in framework
2011-06-26 15:49:55 +08:00
Eli Barzilay
ac26fe7554
A ton of @scheme*' ->
@racket*' and related updates.
...
Also, updates some of the mzlib files to point at `racket/*' libraries
rather than to `scheme/*' ones.
2011-06-25 04:08:47 -04:00
Robby Findler
e008fc3399
improved the error messsage for contract violations of preferences:add-callback
2011-06-20 15:09:00 +08:00
Robby Findler
524d533392
added edit-sequence when flushing the delegate updates
2011-06-17 15:46:52 +08:00
Robby Findler
24d11805ac
attempt to try to make the contour window feel faster by delaying the work until nothing has happened for 250 msec
2011-06-17 12:43:14 +08:00
Eli Barzilay
1582f160bc
* Make the drracket `default-filters' have a ";"-separated glob for all
...
patterns instead of one pattern per suffix. (This was almost never
used -- only when saving a file that is in text mode.)
* Since this default is the same that the scheme
mode ("framework/private/scheme.rkt") sets, remove that
setting. (Leave it commented in case there's need to have some
different global default.) It makes the above default get used when
saving a scheme-mode file.
* Finally, for some reason the code in "framework/private/finder.rkt"
was not using these `default-filters' at all for the file open dialog
in `*get-file'. (I tracked it back to CVS when the code was written,
and it was never used.)
I made it use it now. This is visible on gtk (and probably on
windows, not sure what OSX does) in that openning a file would show
you all files. After this change, it would show only racket source
files, but there will be an option to switch the pattern to show all files.
** If the previous setup (showing all files) was intentional, it would
be better to simply change "drracket/private/main.rkt" to add the
racket source globs before the default. In that case it might also
make sense to uncomment the change in scheme.rkt back in, so when
saving the default is the racket file suffixes (but this sounds
like a confusing UI).
2011-06-02 10:06:15 -04:00
Robby Findler
1b838cf85a
add c:x;t as a keybinding for the latex shortcuts
...
closes PR 11871
2011-05-10 15:34:47 -05:00
Robby Findler
d6ef130fd2
cleaned up framework docs
2011-05-01 14:16:04 -05:00
Vincent St-Amour
32a8da58cb
More indentation of TR keywords.
2011-04-29 15:28:30 -04:00
Asumu Takikawa
8ea0e5916d
Fix horizontal-panel-mixin to use correct interface.
2011-04-29 14:11:22 -04:00
Asumu Takikawa
4b575c315b
Fixed inconsistent return values for get-pos/text.
2011-04-29 14:11:21 -04:00
Vincent St-Amour
5592e9b34b
Add more TR keywords to tabify list.
2011-04-28 16:19:58 -04:00
Eric Dobson
cfab042e54
Added TR keywords to default tabify list
2011-04-28 16:19:58 -04:00
Robby Findler
e7d0029aea
added lots of new tests that our documentation is complete
2011-04-25 13:24:43 -05:00
Robby Findler
658bc59a92
adjust various status controls so they don't take the focus
...
also added a separator menu item to the line/column number popup menu
2011-04-11 07:41:49 -05:00
Robby Findler
c4e0559db4
made the line/column thingy's popup menu be able to show the line numbers in the definitions window
...
- added add-line-number-menu-items
- some minor fixes to the docs
related to discussion in PR 11837
2011-04-10 19:38:19 -05:00
Robby Findler
bb792c977d
the tabber incorrectly counted tab chars as spaces when doing indentation;
...
this meant that if some line were supposed to be indented in the third
column and you had two tabs and a space on that line, the indenter
would leave it alone. Now, if it sees tabs in the line anywhere, it just
decides that the line is not properly indented and re-indents it
(always using spaces)
Also: started a tabber test suite
2011-04-08 07:48:17 -05:00
Jon Rafkind
576916d4d7
line numbers separator uses the same color as the text
2011-04-04 13:07:25 -06:00
Robby Findler
82933e8019
fixed the 'find the word behind the insertion point' function for racket-mode completion
...
closes PR 11800
2011-03-30 19:07:08 -05:00
Robby Findler
e28a6832ca
fixes descent/ascept problems and text highlighting problems in number snips
...
closes PR 11825
2011-03-29 22:43:26 -05:00
Robby Findler
fe75ed9a39
adjusted the color preferences button placement to avoid such a wide prefs dialog
2011-03-26 10:53:23 -05:00
Robby Findler
3b4ba31d74
set the save-as menu shortcut to s and the prefix to shift
2011-03-25 20:18:52 -05:00
Robby Findler
e6633d2af1
use the new extend-position functionality to adjust the shift-based key bindings implemented in the framework
...
closes PR 11768
closes PR 11806
2011-03-25 15:19:55 -05:00
Robby Findler
87e637a1cc
- adjust the teaching language test coverage style implementation
...
so that it changes immediately when the black-on-white and
white-on-black buttons are pushed in the preferences dialog
- expanded the color preferences api a little
to allow the specification of background colors
in addition to the foreground/style information
already there
- changed the test coverage style so that the colors are
settable in the preferences dialog
closes PR 11704
2011-02-17 12:27:00 -06:00
Robby Findler
8e94ce49e4
lift the restriction that the text:ports mixin
...
cannot do io from the eventspace handler thread
and add a test suite for text:ports
2011-02-15 18:10:02 -06:00
Jon Rafkind
5bb72d5b0e
use the standard editor style to get the right colors in the line
...
numbers mixin. closes pr11655
2011-02-09 14:36:58 -07:00
Robby Findler
d659d2f0af
changed the module lexer's strategy to be able to handle
...
the part of the buffer before the #lang line properly
closes PR 11381
2011-02-09 15:27:05 -06:00
Matthew Flatt
33db7b1229
fix s:home keybinding
...
Merge to 5.1
2011-02-09 12:43:18 -07:00
Jon Rafkind
7f3f861899
add documentation for the splitter mixin
2011-02-08 14:47:07 -07:00
Jon Rafkind
878787e6f3
add mixin for splitting panels
2011-02-08 14:47:07 -07:00
Robby Findler
49c3011f49
started to fix the colorer problems (now that I undestand how!)
...
plus some extra checking in the colorer
2011-02-08 10:02:42 -06:00
David Van Horn
760a58b65d
Fixes more spelling errors.
2011-02-04 19:44:13 -07:00
David Van Horn
c9519fd113
Fixed various spelling errors.
2011-02-03 17:42:33 -05:00
Robby Findler
63aa388d49
missed a multiple-vlaues change in a short-cut case.
...
Please merge to the 5.1 release branch
2011-02-02 17:27:26 -06:00
Robby Findler
8c6c1a0e9b
fix the get-token-range method in the case that the colorer's current region doesn't start at the begining of the buffer
...
Please merge to the release branch
2011-02-01 14:52:18 -06:00
Robby Findler
ce4bf97bde
monitor the font size preference in order to redo the one-line size computation for the search bar
...
closes PR 11687
2011-01-31 17:46:31 -06:00
Robby Findler
4090eabacb
added a color:text method get-token-range and then used that to improve how f1 in drracket works
...
Please include this commit on the release branch
2011-01-29 12:28:26 -06:00
Matthew Flatt
96fd11eede
DrRacket line numbers: fix condition for whether to draw a number
2011-01-28 06:22:28 -07:00
Robby Findler
efb66b0cc4
disable the new {} indentation until it can be done in a #lang language-specific way
2011-01-27 11:21:46 -06:00
Robby Findler
71236aa48c
make completions box handle clicking around a little bit better
2011-01-25 20:58:50 -06:00
Robby Findler
f182d0def4
drop superflous dependency on srfi1
2011-01-25 20:58:47 -06:00
Robby Findler
e0703e251b
fix sizing and font inconsistencies in the completions box
2011-01-25 20:58:44 -06:00
Robby Findler
54d556b368
adjusted PLTDRCM in trace mode to use the log-info printouts instead of manager-trace-handler
2011-01-22 16:06:47 -06:00
Robby Findler
0fe0858ba8
adjustments to the colorer-out-of-sync gizmo
...
(the "()" in the bottom right of the drracket window)
to make sure that it is right when switching tabs
and when a frame is first opened
2011-01-22 16:06:44 -06:00
Robby Findler
db13cddef0
added docs and contract for preferences:get-preference/gui
2011-01-22 07:43:57 -06:00
Robby Findler
72b7c26290
add match to the default indentation and squarebracket preferences
...
closes PR 11656
closes PR 11653
2011-01-21 06:47:28 -06:00
Robby Findler
b25c9591f6
remove leftover printf and adjust splash screen width default
2011-01-20 15:40:50 -06:00
Robby Findler
cde613218e
adjusted the framework preferences system to work better with failures under windows
2011-01-20 14:07:12 -06:00
Robby Findler
b2dfe78fb0
Rackety
2011-01-20 14:05:59 -06:00
Robby Findler
e95957483c
fix a bug in the indenter relating to {} tabbing
2011-01-18 10:54:56 -06:00
Robby Findler
7a85e942a2
fixes the way alt-enter in the drracket repl works so that it doesn't insert whitespace into the submitted expression
...
closes PR 11621
2011-01-15 16:02:23 -06:00
Robby Findler
666c559532
adjusted how paren matching inside {} works for better tabbing in scribble mode
2011-01-10 16:56:45 -06:00
Robby Findler
b823b94cda
change drracket to print the start & end compiling messages when in PLTDRCM=trace mode
2011-01-10 16:56:40 -06:00
Robby Findler
d2cb96bcb3
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
2011-01-09 16:22:28 -06:00
Robby Findler
ad47d346ba
move the text class creation calls back to the end of the file
2011-01-09 15:38:24 -06:00
Matthew Flatt
9d7a7a1520
line number fixes
...
- restore some method augments that I shouldn't have deleted
- handle font change through a style-list callback
2011-01-07 13:02:33 -07:00
Matthew Flatt
be6ba896e0
repairs for line numbers in DrRacket
2011-01-07 11:57:50 -07:00
Robby Findler
d8a3edfc88
clicking on the preference file indicator now gives stats about the preferences file
2011-01-07 12:33:14 -06:00
Robby Findler
21050c2454
remove now useless private field
2011-01-06 10:09:09 -06:00
Robby Findler
c94ad960ac
ask about normalizing pastes only after pasting has finished (in case there are multiple calls to insert)
...
closes PR 11449
2011-01-06 08:39:32 -06:00
Robby Findler
33cb5a8b6f
use new syntax colorer hooks to provide feedback about syntax coloring in the definitions window in drracket
2011-01-05 20:39:35 -06:00
Robby Findler
92d9ce38d3
added an observer for the colorer
2011-01-05 20:39:31 -06:00
Matthew Flatt
c9d2f43398
fix line-number mixin
2011-01-05 09:57:33 -07:00
Jon Rafkind
6c3feabb52
restore dc state after calculating the clipping area
2011-01-04 22:24:36 -07:00
Jon Rafkind
d7ac9c4399
sest the line number padding when the editor changes. calculate the position to draw at better
2011-01-04 22:16:52 -07:00
Robby Findler
e0c02e66c8
make sure all modifications to the splash screen controls happen in the splash's eventspace handler thread
2011-01-04 15:40:33 -06:00
Robby Findler
7eb3e8c28a
change drracket and framework so they don't rebind printf anymore
...
(instead binding oprintf to print to the original output port of drracket)
2011-01-02 10:03:24 -06:00
Robby Findler
465d5a9f75
adjust check to only insist that, when there is an editor, is it the right kind of editor.
2011-01-02 10:03:21 -06:00
Jon Rafkind
11494ce8b9
use padding instead of manually moving the origin
2010-12-31 19:29:34 -07:00
Robby Findler
6f9bcf0001
Rackety
2010-12-31 09:58:54 -06:00
Robby Findler
900d74714e
fixed up panel:dragable so that it actually does the right thing now
...
adjusted the framework test suite so that it runs under windows
closes PR 10880
2010-12-31 09:58:51 -06:00
Robby Findler
b2a297afaf
framework: change status line so they never contribute to the minimum width of the frame
...
related to PR 10880
2010-12-30 21:27:11 -06:00
Robby Findler
4e40efaf37
framework: sometimes put the text completion menu above the line instead of below it
...
closes PR 10829
2010-12-28 07:33:26 -06:00
Robby Findler
f849f25272
Rackety
2010-12-28 07:33:24 -06:00
Robby Findler
4c796a6445
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!)
2010-12-20 12:22:46 -06:00
Robby Findler
6ee34f1e88
generalize gui-utils:ok/cancel-buttons so that the ok button doesn't have to have the '(border) style
2010-12-17 10:02:46 -06:00
Robby Findler
3424e1b1df
only show the compiling messages when PLTDRCM is trace
2010-12-12 15:26:48 -06:00
Robby Findler
4391de9ba6
added a pointer to the serialization functions from the preferences marshalling and unmarshalling
2010-12-12 15:26:46 -06:00
Robby Findler
7512986086
fix docs typo
2010-12-12 15:26:43 -06:00
Robby Findler
32851bddf9
set the font for the flashing 'P' to be the small-control-font
2010-12-10 11:47:08 -06:00
Robby Findler
ac8fd51bc4
adjust meta-backspace and meta-delete so that they both delete whole words, with backspace getting rid of the one before the insertion point and delete getting rid of the one after the insertion point
2010-12-10 11:47:05 -06:00
Robby Findler
9a485dd492
added set-orientation method to panel:dragable (lets the panels
...
change from being vertically aligned to horizontally aligned, even
after they have been created)
2010-12-09 15:50:08 -06:00
Robby Findler
81de0c1337
changed the 'cancel' button to say something more accurate
...
closes PR 11473
2010-12-08 21:31:47 -06:00
Robby Findler
dd081d9b4e
added a tabs menu for windows (and linux)
2010-12-07 16:33:51 -06:00
Casey Klein
5f0430a5ab
Fixes doc typos
2010-12-02 19:26:24 -06:00
Casey Klein
fbd7bdff54
Adds an indicator that shows when framework prefs are being written.
...
Performance grinds to a halt when the preference file is too large or
written too often. Hopefully the indicator will help us identify this
phenonmenon.
2010-12-02 15:56:08 -06:00
Robby Findler
de0103129b
avoid saving the preferences on each keystroke in the find/replace dialog
2010-12-01 14:09:33 -06:00
Robby Findler
2125535e06
change the behavior for closing the preferences window.
...
closes PR 11473
2010-11-30 09:57:19 -06:00
Matthew Flatt
820e832853
add 'close-button style to dialog%; fix cocoa default frame placement
2010-11-25 08:03:33 -07:00
Jon Rafkind
ee62bae74b
save/restore dc state while drawing line numbers
2010-11-14 19:48:21 -07:00
Robby Findler
e9c90dc580
add .scrbl to liked extensions in drracket
2010-11-09 09:04:14 -06:00
Jon Rafkind
d920cdc945
set pen to black so the line separator is drawn in the right color
2010-11-08 18:10:08 -07:00
Jon Rafkind
96018f258c
check last-line + 1
2010-11-07 12:19:49 -07:00
Jon Rafkind
74fce96d92
add dx offset when drawing
2010-11-07 12:06:34 -07:00
Matthew Flatt
d7f1d12ea1
clean up
2010-11-05 15:54:49 -06:00
Matthew Flatt
61788d68d5
adjust flush-display
2010-11-05 15:54:26 -06:00
Jon Rafkind
e0e3870a62
dont modify positions if line numbers arent being shown
2010-11-05 15:43:20 -06:00
Jon Rafkind
a698d89a75
adjust x position when finding editor locations
2010-11-05 15:15:01 -06:00
Jon Rafkind
c0d504b7b8
use a lighter color for same paragraph lines
2010-11-04 11:56:36 -06:00
Jon Rafkind
9742f896f9
right align numbers
2010-11-04 11:56:36 -06:00
Jon Rafkind
d1e44d0cc8
set minimum line width to accept 100 lines
2010-11-03 17:59:40 -06:00
Jon Rafkind
c3111c425b
allow line number width to increase automatically
2010-11-03 17:58:18 -06:00
Jon Rafkind
1093b4a430
get the line number from the paragraph
2010-11-03 17:16:34 -06:00
Jon Rafkind
68c197f639
clean up line numbers code
2010-11-03 15:15:54 -06:00
Jon Rafkind
4a69c36258
use line locations instead of counting snips
2010-11-03 14:56:05 -06:00
Casey Klein
bd0ebc7511
Adds auto-completion to LaTeX and TeX inspired keybindings
2010-11-02 22:34:05 -05:00
Jon Rafkind
87cc623a6f
set clipping for regular text. minor optimization when choosing line numbers to draw
2010-11-02 13:09:54 -06:00