Variable: sql-electric-stuff
sql-electric-stuff is a customizable variable defined in sql.el.gz.
Value
nil
Documentation
Treat some input as electric.
If set to the symbol semicolon, then hitting ; will send current
input in the SQLi buffer to the process.
If set to the symbol go, then hitting go on a line by itself will
send current input in the SQLi buffer to the process.
If set to nil, then you must use M-x comint-send-input (comint-send-input) in order to send
current input in the SQLi buffer to the process.
This variable was added, or its default value changed, in Emacs 31.1.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/sql.el.gz
;; misc customization of sql.el behavior
(defcustom sql-electric-stuff nil
"Treat some input as electric.
If set to the symbol `semicolon', then hitting `;' will send current
input in the SQLi buffer to the process.
If set to the symbol `go', then hitting `go' on a line by itself will
send current input in the SQLi buffer to the process.
If set to nil, then you must use \\[comint-send-input] in order to send
current input in the SQLi buffer to the process."
:type '(choice (const :tag "Nothing" nil)
(const :tag "The semicolon `;'" semicolon)
(const :tag "The string `go' by itself" go))
:initialize #'custom-initialize-default
:set (lambda (symbol value)
(custom-set-default symbol value)
(if (eq value 'go)
(add-hook 'post-self-insert-hook 'sql-magic-go)
(remove-hook 'post-self-insert-hook 'sql-magic-go)))
:version "31.1")