Eli Barzilay
47460ac451
Remove preference for old-style menu bindings, and instead add a sample
...
keybindings file that does that.
(This reverts most of commit 26f6c588fcfa45a1a12c275e5824aede8ba23e3e.)
(cherry picked from commit c66c669ee3
)
2011-10-17 14:11:45 -04:00
Eli Barzilay
e1ffc0dd9a
Make `create-new-tab' public.
...
(cherry picked from commit 319a158dec
)
2011-10-17 14:11:43 -04:00
Robby Findler
728153bb07
adjust the code that checks to see if a file is in the module language so that it uses
...
read-language, in the case that the simpler check (that just looks for "#lang") fails.
please include in 5.2
(cherry picked from commit abf722f19a
)
2011-10-17 14:11:34 -04:00
Robby Findler
a4a7b80c97
avoid calling the show method for tooltips unless the frame is shown.
...
please include in 5.2
(cherry picked from commit 5db48b3e73
)
2011-10-10 15:31:30 -04:00
Robby Findler
fcd5fb9d74
adjust uses of after-load-file to use the success? flag
...
(cherry picked from commit fcc720f43e
)
2011-10-10 15:31:25 -04:00
Robby Findler
941f18a562
adjust the way languages are chosen when opening a file.
...
Specifically, in the case that we're inheriting a language setting
from some earlier preference or something and the language we're
inheriting is one that saves prefixes, and the current file being
opened does not match any of the possible prefixes, then revert
to the not-a-language language, instead of using the value from
the preference
Also: finish the removal of the EoPL language level from the
DrRacket langauge dialog, and clean up the 'get guidance' dialog
Please cherrypick this commit to the 5.2 release branch
(cherry picked from commit d362bda6d3
)
2011-10-10 15:31:20 -04:00
Robby Findler
2339046554
shrink some long lines
2011-10-07 11:48:39 -05:00
Robby Findler
93c1d1dd36
add a 'find longest line' menu item to the edit menu
2011-10-07 11:48:39 -05:00
Robby Findler
e7197c4129
fix tooltip placement in online check syntax (only affects mac os x)
2011-10-07 11:48:24 -05:00
Robby Findler
57deb86f7b
don't invalidate the error ranges for online check syntax when there is no admin
...
I believe that this can go wrong in the case that you edit a buffer and switch tabs
before drracket fully finishes responding to the edited buffer (due to a queue-callback
that postpones some of the response to editing the buffer) for online expansion.
At least, this is how I guess that the error below happened:
send: target is not an object: #f for method: get-view
=== context ===
/Users/robby/git/exp/plt/collects/racket/private/class-internal.rkt:4602:0: obj-error
/Users/robby/git/exp/plt/collects/drracket/private/module-language.rkt:1485:6: get-box method in .../module-language.rkt:1151:4
/Users/robby/git/exp/plt/collects/drracket/private/module-language.rkt:1397:6: invalidate-online-error-ranges method in .../module-language.rkt:1151:4
/Users/robby/git/exp/plt/collects/drracket/private/module-language.rkt:1387:6: clear-old-error method in .../module-language.rkt:1151:4
/Users/robby/git/exp/plt/collects/drracket/private/module-language.rkt:1177:6: buffer-modified method in .../module-language.rkt:1151:4
/Users/robby/git/exp/plt/collects/mred/private/wx/common/timer.rkt:34:38
/Users/robby/git/exp/plt/collects/mred/private/wx/common/queue.rkt:432:6
/Users/robby/git/exp/plt/collects/mred/private/wx/common/queue.rkt:472:32
/Users/robby/git/exp/plt/collects/mred/private/wx/common/queue.rkt:618:3
2011-10-07 11:48:24 -05:00
Robby Findler
9b3f2427d7
make right-click in the space between the definitions and
...
interactions window pop up a menu to let you change from
vertical to horizontal orientation
2011-10-04 16:47:10 -05:00
Robby Findler
eb0165cae8
adjust drracket's "download plt" file functionality to follow redirections
...
closes PR 6675
2011-10-03 13:21:32 -05:00
Robby Findler
721cdba2c1
adjst check syntax so that it only clears out style changes when clicking 'Run'
...
(style changes are not applied when running online check syntax)
2011-10-02 10:18:36 -05:00
Robby Findler
7b3e350f84
adjust initial value to be something less likely to cause problems
2011-10-02 08:38:27 -05:00
Robby Findler
b95b346a4e
adjust various plumbing to get the drracket icon to the startup screen. Only to realize
...
that the startup screen is a dialog% and thus doesn't have set-icon
related to PR 12241
2011-09-30 17:08:03 -05:00
Robby Findler
56effc21f9
adjust the preferences setting for the module language auto-text
...
so that it deals with the trailing newline in a manner consistent
with the way the rest of that code works
2011-09-30 17:08:02 -05:00
Robby Findler
e1d332a693
make the (non-online) check syntax error report window be resizable
...
closes PR 8161
closes PR 10177
2011-09-27 21:23:54 -05:00
Robby Findler
086ff122f9
clean up the way check syntax handles the various callbacks that tell it
...
that things have changed and it needs to show different stuff in the editor.
(hopefully tooltips now come and go properly)
2011-09-27 16:20:47 -05:00
Robby Findler
135e3ee14d
add a 'Racket Documentation' menu item to drracket
2011-09-27 08:33:55 -05:00
Matthew Flatt
fd9a3e3926
set DrRacket WM_CLASS class name to "DrRacket"
2011-09-26 18:07:18 -06:00
Robby Findler
0baa32bcf8
fix the way that the set of identifiers to rename is calculated so that
...
macros that do strange things like the one below are treated better
(define-syntax-rule (m q)
(begin (lambda (q) q)
(define q 1)))
(m x)
x
2011-09-26 13:00:23 -05:00
Robby Findler
cc42ac8b1f
Rackety
2011-09-24 08:00:33 -05:00
Robby Findler
75be15700e
clear out any old check syntax information before replaying information
...
gotten from online check syntax. closes PR 12154
also fix a bug where one piece of check syntax information could be dropped
from large files
2011-09-24 08:00:32 -05: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
a553cd7a4b
be more agressive about setting the current directory during check syntax
...
also, minor Rackety
2011-09-23 16:37:17 -05:00
Vincent St-Amour
3851727c73
Fix acknowledgements.
2011-09-23 14:40:17 -04:00
Robby Findler
b1a360be9d
Add the following keybindings in a (hopefully) transparent REPL-friendly way:
...
esc;c:x send-toplevel-form-to-repl
m:c:x send-toplevel-form-to-repl
c:c;c:e send-toplevel-form-to-repl
c:c;c:r send-selection-to-repl
c:c;m:e send-toplevel-form-to-repl-and-go
c:c;m:r send-selection-to-repl-and-go
c:c;c:z move-to-interactions
Took the inspiration for the list from the keybindings
available in Scheme mode in Emacs.
Closes PR 12211 (and probably others)
2011-09-22 10:51:48 -05:00
Robby Findler
469bc6ec00
change the online check syntax so it doesn't require any preferences to be
...
set up in the separate place
2011-09-22 10:51:46 -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
c264ece3f4
added status messages to the (now often empty) error message bar
2011-09-21 22:53:03 -05:00
Robby Findler
d6f54435b7
adjust the interaction between online check syntax and the documentation
...
system to guarantee that killing online check syntax doesn't wedge the docs
information lookup process
2011-09-21 22:53:02 -05:00
Robby Findler
0ba3a8ef7c
remember the default #lang line separately from the language preference
...
closes PR 12210
2011-09-21 22:53:01 -05:00
Robby Findler
d399e094ed
make tooltips and arrows come and go when scrolling (without moving the
...
mouse)
2011-09-21 22:53:00 -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
13e16d2b12
add preferences for displaying error messages from online expansion
...
also improved the highlighting in the margin by invalidating only the region
of the editor that actually needs redrawing
2011-09-20 17:15:04 -05:00
Robby Findler
7e27cc5331
adjust the order in which the keymaps are added to the interactions
...
window so that repl-specific bindings override the general purpose
drracket editor bindings
2011-09-20 17:15:03 -05:00
Robby Findler
d654d3e09b
add the place creation memory use to the memory-log test
...
(this required rearranging a bunch of local-member-names)
2011-09-20 17:15:02 -05:00
Robby Findler
35de11134b
adjust the way the 'there is an erorr' margin annotation draws for online
...
expansion. mostly the goal was to make it look the same on all platforms,
but it needed more sharp edges (or so I thought)
2011-09-20 17:15:00 -05:00
Robby Findler
d4f3fe4442
adjust online expansion so that the space for the error messages doesn't
...
automatically go away, but instead just becomes empty (and requires a click
on a close button to go away) so that there is less bouncing around
2011-09-20 17:14:59 -05:00
Robby Findler
2fea831663
fix bug introduced in recent commit caught by drdr
2011-09-20 06:57:02 -05:00
Robby Findler
252db20c85
add menus and keybindings for jumping around to the errors in the defs
...
window
also a little line-length shrinking
2011-09-19 22:47:47 -05:00
Robby Findler
e7d3a2e1d8
adjust online expansion so it is off by default; also fix the preference so
...
it really actually works (and also doesn't create a place until it is turned
on at least once)
2011-09-15 17:35:04 -05:00
Matthew Flatt
347d4d32ba
fix broken attempt to update DrRacket for errortrace change
2011-09-14 06:54:57 -06:00
Matthew Flatt
a233697f08
fix errortrace (required API changes), add `syntax-shift-phase-level'
...
Also fix a bug in the `module' expander and streamline lazy
visits.
2011-09-13 21:04:10 -06:00
Robby Findler
621109a40a
adjust check syntax to use the new capability in free-identifier=?
2011-09-13 14:56:32 -05:00
Robby Findler
566db80842
add more info into the log for the expanding place
...
specifically, when drracket kills the thread that is expanding/transforming
the program, first print out its stack trace. that way, if it is stuck
somewhere, maybe we'll get a clue as to where
2011-09-12 10:49:17 -05:00
Robby Findler
b43250a448
remove unnecessary thread creation & remove commented out code
2011-09-12 10:49:16 -05:00
Robby Findler
273afb266d
adjust online expansion to hold onto previously successful
...
namespace-module-registry in order to encourage the bytecode cache to
hold onto likely-to-be-useful entries a while longer
2011-09-11 08:15:46 -05:00
Robby Findler
05cd55fb04
make the right-hand side blobs (for online check syntax) look a little bit
...
better in white-on-black mode
2011-09-10 22:11:03 -05:00
Robby Findler
cd1c96d596
adjust check syntax to work with the new begin-for-syntax
2011-09-10 22:10:59 -05:00