Commit Graph

46 Commits

Author SHA1 Message Date
Danny Yoo
9ed78f2752 Include zero-width-space in string-normalize.
Closes PR 12683.
2013-02-14 13:24:31 -07:00
Robby Findler
fa85d30773 adjust the search bubbles so they flicker less when typing 2012-12-25 17:40:32 -06:00
Robby Findler
43e7150fdf clean up the text:searchable docs based on recent changes 2012-11-26 18:42:18 -06:00
Robby Findler
5197649cb7 improve the interactivity of DrRacket's search
Changes the implementation of highlight-range so that it
only recomputes all of the new locations from the positions
when on-reflow is called (otherwise only computing the
relevant ones) and make the on-reflow callback chop itself
up, in case there are lots of highlighted ranges to avoid
tying up the event loop.

Changes searching so that it doesn't neccessarily compute
the entire search results in a single event callback
(but also make it start the computation more aggressively)

Overall, this changes the strategy from one that, for any potentially
long-running callback, just tried to push it off into the future, into
a strategy that tries to avoid long-running callbacks by breaking the
work up into chunks, but starting the first chunk immediately (in a
low-priority callback).

Also, misc other changes to make this work better and generally clean
things up.
2012-11-25 20:58:13 -06:00
Robby Findler
b520696d6f typos 2012-07-30 21:46:22 -05:00
Robby Findler
0d6b825377 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!
2012-03-24 20:20:05 -05:00
Asumu Takikawa
04f7bdbb02 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.
2012-03-01 13:17:48 -05:00
Robby Findler
458e2c2282 some long overdue Rackety: renaming the 'scheme:' exports of the framework to 'racket:' 2011-11-30 06:45:50 -06:00
Robby Findler
4a2757f200 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
2011-09-30 17:08:07 -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
Eli Barzilay
78dacef817 Get rid of "defaultly"s. 2011-06-28 02:11:24 -04: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
Eli Barzilay
debd1f9f1e Recketizing much in `net/*', mass ".ss" -> ".rkt" conversion in .scrbl files.
(Some other minor things here and there.)
2011-06-20 04:27:14 -04:00
Robby Findler
9bf26ef69e add more caching to avoid calling normalize-path so much;
this should affect the test coverage coloring and the stacktrace
arrows/stop-sign window
2011-06-15 16:45:47 +08:00
Robby Findler
d6ef130fd2 cleaned up framework docs 2011-05-01 14:16:04 -05:00
Asumu Takikawa
6d1b584271 Documentation fixes in framework 2011-04-25 17:56:45 -04:00
Asumu Takikawa
14ef89c37d Fix documentation for gui, draw, and framework.
- General cleanup/consistency (e.g. void -> void?)
  - Fix misdocumented methods (found violations via contracts)
2011-04-22 11:27:08 -04:00
Eli Barzilay
1be26400cb Some random tidyings. 2011-02-16 15:26:15 -05: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
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
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
Jon Rafkind
7f56e677f4 add line number interface documentation 2010-11-03 15:09:04 -06:00
Jon Rafkind
32bd5c9f5f document line-numbers-mixin 2010-11-01 22:14:45 -06:00
Eli Barzilay
28946a0a43 More reformatting 2010-05-21 20:41:35 -04:00
Matthew Flatt
6563ef6812 rackety framework and tools docs 2010-05-08 07:37:08 -06:00
Robby Findler
fcfa572e02 PRS 10379 and 10377
svn: r15795
2009-08-25 04:51:05 +00:00
Eli Barzilay
ff73a5395e removed lots of "the the"s
svn: r14679
2009-05-01 21:02:51 +00:00
Matthew Flatt
f9190e5c1c fix doc typos
svn: r14280
2009-03-25 20:28:33 +00:00
Robby Findler
a4b6310507 a fix to the way tabs switch around, plus a few additions (that are disabled for now) in preparation for making drscheme automatically compile files that it runs
svn: r12344
2008-11-07 18:13:33 +00:00
Robby Findler
47297fac9f added normalization during pasting to eliminate various ligatures, etc
svn: r12183
2008-10-30 21:38:40 +00:00
Robby Findler
805d4eb73f refined searching
svn: r11581
2008-09-09 03:43:57 +00:00
Robby Findler
6d34eaf333 moved the first-line-text stuff into the framework, added docs, added a pref to disable it and made it work a little bit better with check syntax
svn: r11477
2008-08-29 04:24:34 +00:00
Robby Findler
6e674a9804 PR 9705
svn: r11373
2008-08-21 22:03:34 +00:00
Robby Findler
8d53a2ec34 adjusted searching a little bit
svn: r11072
2008-08-04 20:19:10 +00:00
Matthew Flatt
2c813c53c5 fix '(nonnegative|positive)-exact-integer?' contracts (moving 'exact-' to the front where it belongs)
svn: r10960
2008-07-29 12:56:05 +00:00
Robby Findler
9d34ccb169 fixed a pair of bugs related to the anchor
svn: r10951
2008-07-28 21:45:24 +00:00
Robby Findler
eaf979b749 added a search anchor to drschemes new search facility
svn: r10946
2008-07-28 18:40:34 +00:00
Eli Barzilay
8b59996cb4 remove bogus space between closing bracket an opening brace
svn: r10933
2008-07-27 04:53:13 +00:00
Robby Findler
a3c0e93324 improved searching (docs not yet quite done, but I want to test on other platforms ... another commit to follow)
svn: r10921
2008-07-26 20:06:23 +00:00
Robby Findler
e2c49f4963 more speedups for the highlighting and some setup for improving docked search
svn: r10855
2008-07-21 22:17:54 +00:00
Matthew Flatt
01691d9240 adjust the way framework and tools docs extract documentation
svn: r10727
2008-07-12 15:37:31 +00:00
Robby Findler
1eb4f0ffc1 rewrote lots of latexisms
svn: r9967
2008-05-26 23:27:30 +00:00
Robby Findler
3eb20f5a11 moved all of the framework's function documentation into the scribble/srcdoc world
svn: r9545
2008-04-30 19:18:52 +00:00
Robby Findler
faaa7d1bc1 more progress on the framework docs
svn: r9539
2008-04-29 22:51:59 +00:00
Robby Findler
d07eff8bce added docs for the gui-utils and the textual preferences to the framework
svn: r9503
2008-04-27 14:57:09 +00:00