I believe the code in racket.rkt is correct.
An example situation where (send editor position-paragraph end-pos) would
be different from the result of calc-last-para is when you have an editor
that has "abc" followed by a newline, followed by "d" as the entire
contents of the buffer, and the selec
Hey Racket Users,
Just trying Racket for the first time, and very excited to finally be
learning it! I've been wanting to for years.
Just had my first encounter with DrRacket, and am trying to get comfortable
with keyboard input. According to
http://docs.racket-lang.org/drracket/Keyboard_Shortcut
Having just mentioned the bundled examples, I just realised that the only
examples I've found are the ones from the zguide. These may not be
compatible with the planet zeromq packages 1.0 and 2.0 that seem to
otherwise behave with the racket 5.1 (unlike 2.1). ... not that I could
get the examples
Hello,
Here is a piece of code that essentially shows my problem:
#lang racket
(define port (open-input-file "anyfile.txt"))
(port-count-lines! port)
(let-values (((line col pos) (port-next-location port)))
(printf "before: ~a ~a ~a\n" line col pos)
(set! port (relocate-input-port
> On Wed, Nov 27, 2013 at 10:02 AM, Jukka Tuominen
> wrote:
>> Jay,
>>
>> I've tried numerous version combinations of Racket/zeromq/your API on
>> ubuntu 10.04 but can't get any to work. These are the versions I've
>> tried:
>>
>> Racket 5.1 - 5.3.6
>> Zeromq 2.2 - 4.x
>> API planet 1.0 - latest
On Wed, Nov 27, 2013 at 10:02 AM, Jukka Tuominen
wrote:
> Jay,
>
> I've tried numerous version combinations of Racket/zeromq/your API on ubuntu
> 10.04 but can't get any to work. These are the versions I've tried:
>
> Racket 5.1 - 5.3.6
> Zeromq 2.2 - 4.x
> API planet 1.0 - latest pkg
> (Several
Jay,
I've tried numerous version combinations of Racket/zeromq/your API on ubuntu
10.04 but can't get any to work. These are the versions I've tried:
Racket 5.1 - 5.3.6
Zeromq 2.2 - 4.x
API planet 1.0 - latest pkg
(Several but not every racket versions)
At best, the server gets started (by run
First, local-require can only get phase-0 bindings.
Second, there is a slight code-size penalty if you look at the
expansion, because local-require lifts the require to the top-level
and then enumerates the phase-0 bindings with the same ids but the
lexical context of the local-require body.
As f
So I have a delayed-reaction question.
Why separate `require` and `local-require`?
It looks like `local-require` works at module level or top level; it
_seems_ equivalent to `require` there.
Why not just have `require` _be_ `local-require`?
Or is there some cost or penalty to `local-require` th
`pretty-print' is not really meant to print tables. You probably want to
use `~a' instead, which has various arguments related to width:
http://docs.racket-lang.org/reference/strings.html?q=~a#%28def._%28%28lib._racket%2Fformat..rkt%29._~7ea%29%29
For example:
(for ([s '("auie" "bépoauie" 5 10)]
Hello,
I am trying to output a table with different column widths. That is, each
column in the table will have a different column width. It looks like
pretty printing and parameterizing column widths might do the trick but I
have not been able to put it together and get it to work.
I have a funct
Thanks for your pointers Robby. After much digging through of source code,
I seem to have located the source of the problem.
The definition of comment-out-selection in
collects/framework/private/racket.rt has a loop which goes through and
inserts a semi-colon at the start of every paragraph in the
12 matches
Mail list logo