Function: sql-magic-go

sql-magic-go is a byte-compiled function defined in sql.el.gz.

Signature

(sql-magic-go)

Documentation

Insert "o" and call comint-send-input.

sql-electric-stuff must be the symbol go.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/sql.el.gz
;;; Small functions

(defun sql-magic-go ()
  "Insert \"o\" and call `comint-send-input'.
`sql-electric-stuff' must be the symbol `go'."
  (and (eq major-mode 'sql-interactive-mode)
       (equal sql-electric-stuff 'go)
       (or (eq last-command-event ?o) (eq last-command-event ?O))
       (save-excursion
	 (comint-bol nil)
	 (looking-at "go\\b"))
       (comint-send-input)))