Function: idlwave-shell-help-statement

idlwave-shell-help-statement is a byte-compiled function defined in idlw-shell.el.gz.

Signature

(idlwave-shell-help-statement HELP EXPR)

Documentation

Construct a help statement for printing expression EXPR.

HELP can be non-nil for help,, nil for print, or any string into which to insert expression in place of the marker ___, e.g.: print, size(___,/DIMENSIONS)

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/idlw-shell.el.gz
(defun idlwave-shell-help-statement (help expr)
  "Construct a help statement for printing expression EXPR.

HELP can be non-nil for `help,', nil for `print,' or any string into which
to insert expression in place of the marker ___, e.g.: print,
size(___,/DIMENSIONS)"
  (cond
   ((null help)
    (concat "idlwave_print_safe, " expr ","
	    (number-to-string idlwave-shell-max-print-length)))
   ((stringp help)
    (if (string-match "\\(^\\|[^_]\\)\\(___\\)\\([^_]\\|$\\)" help)
	(concat (substring help 0 (match-beginning 2))
		expr
		(substring help (match-end 2)))))
   (t
    (concat "help, " expr))))