comparison runtime/doc/if_mzsch.txt @ 7609:77a14f3bc18b v7.4.1104

commit https://github.com/vim/vim/commit/4e640bd930d133889dbc9f9a77e29bab902e3b7d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 16 16:20:38 2016 +0100 patch 7.4.1104 Problem: Various problems building with MzScheme/Racket. Solution: Make it work with new versions of Racket. (Yukihiro Nakadaira, Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Sat, 16 Jan 2016 16:30:04 +0100
parents 359743c1f59a
children 07f11de5efca
comparison
equal deleted inserted replaced
7608:161471eae904 7609:77a14f3bc18b
11 3. Threads |mzscheme-threads| 11 3. Threads |mzscheme-threads|
12 4. Vim access from MzScheme |mzscheme-vim| 12 4. Vim access from MzScheme |mzscheme-vim|
13 5. mzeval() Vim function |mzscheme-mzeval| 13 5. mzeval() Vim function |mzscheme-mzeval|
14 6. Using Function references |mzscheme-funcref| 14 6. Using Function references |mzscheme-funcref|
15 7. Dynamic loading |mzscheme-dynamic| 15 7. Dynamic loading |mzscheme-dynamic|
16 8. MzScheme setup |mzscheme-setup|
16 17
17 {Vi does not have any of these commands} 18 {Vi does not have any of these commands}
18 19
19 The MzScheme interface is available only if Vim was compiled with the 20 The MzScheme interface is available only if Vim was compiled with the
20 |+mzscheme| feature. 21 |+mzscheme| feature.
270 output then includes |+mzscheme/dyn|. 271 output then includes |+mzscheme/dyn|.
271 272
272 This means that Vim will search for the MzScheme DLL files only when needed. 273 This means that Vim will search for the MzScheme DLL files only when needed.
273 When you don't use the MzScheme interface you don't need them, thus you can 274 When you don't use the MzScheme interface you don't need them, thus you can
274 use Vim without these DLL files. 275 use Vim without these DLL files.
276 NOTE: Newer version of MzScheme (Racket) require earlier (trampolined)
277 initialisation via scheme_main_setup. So Vim always loads the MzScheme DLL at
278 startup if possible.
275 279
276 To use the MzScheme interface the MzScheme DLLs must be in your search path. 280 To use the MzScheme interface the MzScheme DLLs must be in your search path.
277 In a console window type "path" to see what directories are used. 281 In a console window type "path" to see what directories are used.
278 282
279 The names of the DLLs must match the MzScheme version Vim was compiled with. 283 The names of the DLLs must match the MzScheme version Vim was compiled with.
280 For MzScheme version 209 they will be "libmzsch209_000.dll" and 284 For MzScheme version 209 they will be "libmzsch209_000.dll" and
281 "libmzgc209_000.dll". To know for sure look at the output of the ":version" 285 "libmzgc209_000.dll". To know for sure look at the output of the ":version"
282 command, look for -DDYNAMIC_MZSCH_DLL="something" and 286 command, look for -DDYNAMIC_MZSCH_DLL="something" and
283 -DDYNAMIC_MZGC_DLL="something" in the "Compilation" info. 287 -DDYNAMIC_MZGC_DLL="something" in the "Compilation" info.
284 288
289 For example, if MzScheme (Racket) is installed at C:\Racket63, you may need
290 to set the environment variable as the following: >
291
292 PATH=%PATH%;C:\Racket63\lib
293 PLTCOLLECTS=C:\Racket63\collects
294 PLTCONFIGDIR=C:\Racket63\etc
295 <
296 ==============================================================================
297 8. MzScheme setup *mzscheme-setup*
298
299 Vim requires "racket/base" module for if_mzsch core (fallback to "scheme/base"
300 if it doesn't exist), "r5rs" module for test and "raco ctool" command for
301 building Vim. If MzScheme did not have them, you can install them with
302 MzScheme's raco command:
303 >
304 raco pkg install scheme-lib # scheme/base module
305 raco pkg install r5rs-lib # r5rs module
306 raco pkg install cext-lib # raco ctool command
307 <
285 ====================================================================== 308 ======================================================================
286 vim:tw=78:ts=8:sts=4:ft=help:norl: 309 vim:tw=78:ts=8:sts=4:ft=help:norl: