 

eval-and-grab-output

swank.commands.basic

  • (eval-and-grab-output string)

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Source swank/commands/basic.clj:78 top

(defslimefn eval-and-grab-output [string]
  (with-emacs-package
    (with-local-vars [retval nil]
      (list (with-out-str
              (var-set retval (pr-str (first (eval-region string)))))
            (var-get retval)))))
Vars in swank.commands.basic/eval-and-grab-output: first list pr-str var-get var-set with-local-vars with-out-str
Used in 0 other vars
 
{"cc_re__cc_re__cc_publicdomain_zero_1_0": ["orm action=\"/swank-clojure/swank.commands.basic/eval-and-grab-output\" method=\"post\"><div style=\"margin:0;padding:0;display:inline\"><input name=\"authenticity_token\" type=\"hidden\" value=\"px+fBJ4wj5wOguYB8v25ow3ycNf+N6D5EXalgb/OWho=\" /></div>Example Content <span class=\"instructions\">(code only, do not wrap in &lt;pre&gt; tags. See <a href=\"/examples_style_guide\">style guide</a> for more information.)</span><div class=\"examples_license\">\tExamples submitted to clojuredocs will be licensed under the <a href=\"http://creativecommons.org/publicdomain/zero/1.0/\">Creative Commons CC 0</a>.</div><img alt=\"Ajax-loader\" class=\"ajax_loader\" height=\"20\" src=\"/images/ajax-loader.gif?1317195880\" width=\"20\" /><textarea class=\"textarea\" cols=\"40\" id=\"example_body\" name=\"example[body]\" rows=\"20\"></textarea><div style=\"text-align: right\">\t<a class=\"cancel\" href=\"\" style=\"float: left\">Cancel</a>\t<!-- <input class=\"preview_example\" type=\"button\" value=\"Preview\" /> -->\t<input id=\"example_submit\" name=\"commit\" type=\"submit\" value=\"Update Example\" />\t<div class=\"clear\">"], "copyright__copyright__copyright": ["ing)\n\n0 Examples top\n\nLog in to add / edit an example.\n\nSee Also top\n\nLog in to add a see also.\n\nSource swank/commands/basic.clj:78 top\n\n(defslimefn eval-and-grab-output [string]\n  (with-emacs-package\n    (with-local-vars [retval nil]\n      (list (with-out-str\n              (var-set retval (pr-str (first (eval-region string)))))\n            (var-get retval)))))\nVars in swank.commands.basic/eval-and-grab-output: first list pr-str var-get var-set with-local-vars with-out-str\nUsed in 0 other vars\n\u00a0", "ing)\n\n0 Examples top\n\nLog in to add / edit an example.\n\nSee Also top\n\nLog in to add a see also.\n\nSource swank/commands/basic.clj:78 top\n\n(defslimefn eval-and-grab-output [string]\n  (with-emacs-package\n    (with-local-vars [retval nil]\n      (list (with-out-str\n              (var-set retval (pr-str (first (eval-region string)))))\n            (var-get retval)))))\nVars in swank.commands.basic/eval-and-grab-output: first list pr-str var-get var-set with-local-vars with-out-str\nUsed in 0 other vars\n\u00a0"]}