comparison runtime/doc/eval.txt @ 2050:afcf9db31561 v7.2.336

updated for version 7.2.336 Problem: MzScheme interface can't evaluate an expression. Solution: Add mzeval(). (Sergey Khorev)
author Bram Moolenaar <bram@zimbu.org>
date Tue, 19 Jan 2010 15:55:06 +0100
parents de5a43c5eedc
children 4a1bcdd9ea55
comparison
equal deleted inserted replaced
2049:23d366df1938 2050:afcf9db31561
1824 max( {list}) Number maximum value of items in {list} 1824 max( {list}) Number maximum value of items in {list}
1825 min( {list}) Number minimum value of items in {list} 1825 min( {list}) Number minimum value of items in {list}
1826 mkdir( {name} [, {path} [, {prot}]]) 1826 mkdir( {name} [, {path} [, {prot}]])
1827 Number create directory {name} 1827 Number create directory {name}
1828 mode( [expr]) String current editing mode 1828 mode( [expr]) String current editing mode
1829 mzeval( {expr}) any evaluate |MzScheme| expression
1829 nextnonblank( {lnum}) Number line nr of non-blank line >= {lnum} 1830 nextnonblank( {lnum}) Number line nr of non-blank line >= {lnum}
1830 nr2char( {expr}) String single char with ASCII value {expr} 1831 nr2char( {expr}) String single char with ASCII value {expr}
1831 pathshorten( {expr}) String shorten directory names in a path 1832 pathshorten( {expr}) String shorten directory names in a path
1832 pow( {x}, {y}) Float {x} to the power of {y} 1833 pow( {x}, {y}) Float {x} to the power of {y}
1833 prevnonblank( {lnum}) Number line nr of non-blank line <= {lnum} 1834 prevnonblank( {lnum}) Number line nr of non-blank line <= {lnum}
4099 ! Shell or external command is executing 4100 ! Shell or external command is executing
4100 This is useful in the 'statusline' option or when used 4101 This is useful in the 'statusline' option or when used
4101 with |remote_expr()| In most other places it always returns 4102 with |remote_expr()| In most other places it always returns
4102 "c" or "n". 4103 "c" or "n".
4103 Also see |visualmode()|. 4104 Also see |visualmode()|.
4105
4106 mzeval({expr}) *mzeval()*
4107 Evaluate MzScheme expression {expr} and return its result
4108 convert to Vim data structures.
4109 Numbers and strings are returned as they are.
4110 Pairs (including lists and improper lists) and vectors are
4111 returned as Vim |Lists|.
4112 Hash tables are represented as Vim |Dictionary| type with keys
4113 converted to strings.
4114 All other types are converted to string with display function.
4115 Examples: >
4116 :mz (define l (list 1 2 3))
4117 :mz (define h (make-hash)) (hash-set! h "list" l)
4118 :echo mzeval("l")
4119 :echo mzeval("h")
4120 <
4121 {only available when compiled with the |+mzscheme| feature}
4104 4122
4105 nextnonblank({lnum}) *nextnonblank()* 4123 nextnonblank({lnum}) *nextnonblank()*
4106 Return the line number of the first line at or below {lnum} 4124 Return the line number of the first line at or below {lnum}
4107 that is not blank. Example: > 4125 that is not blank. Example: >
4108 if getline(nextnonblank(1)) =~ "Java" 4126 if getline(nextnonblank(1)) =~ "Java"