Function: sql-placeholders-filter
sql-placeholders-filter is a byte-compiled function defined in
sql.el.gz.
Signature
(sql-placeholders-filter STRING)
Documentation
Replace placeholders in STRING.
Placeholders are words starting with an ampersand like &this.
Probably introduced at or before Emacs version 24.4.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/sql.el.gz
(defun sql-placeholders-filter (string)
"Replace placeholders in STRING.
Placeholders are words starting with an ampersand like &this."
(when sql-oracle-scan-on
(let ((start 0)
(replacement ""))
(while (string-match "&?&\\(\\(?:\\sw\\|\\s_\\)+\\)[.]?" string start)
(setq replacement (read-from-minibuffer
(format "Enter value for %s: "
(propertize (match-string 1 string)
'face 'font-lock-variable-name-face))
nil nil nil 'sql-placeholder-history)
string (replace-match replacement t t string)
start (+ (match-beginning 1) (length replacement))))))
string)