diff options
author | Richard M. Stallman <rms@gnu.org> | 2001-11-13 02:22:40 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2001-11-13 02:22:40 +0000 |
commit | 4da8ff79a0d97f762fc68e7343d799e801afe7d3 (patch) | |
tree | 1ff1bca853d1b99e9ae38416e23211ecfea0cd0d /lisp/progmodes/sql.el | |
parent | aa5dbf7b628a88e6016dd41947a7fe7180b6eec6 (diff) | |
download | emacs-4da8ff79a0d97f762fc68e7343d799e801afe7d3.tar.gz |
(sql-mode): Doc change.
(sql-mode-syntax-table): Backslash is no longer an escape character.
Diffstat (limited to 'lisp/progmodes/sql.el')
-rw-r--r-- | lisp/progmodes/sql.el | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el index b3a52062777..e689800739a 100644 --- a/lisp/progmodes/sql.el +++ b/lisp/progmodes/sql.el @@ -4,7 +4,7 @@ ;; Author: Alex Schroeder <alex@gnu.org> ;; Maintainer: Alex Schroeder <alex@gnu.org> -;; Version: 1.6.3 +;; Version: 1.6.5 ;; Keywords: comm languages processes ;; URL: http://www.emacswiki.org/cgi-bin/wiki.pl?SqlMode @@ -531,6 +531,8 @@ Based on `comint-mode-map'.") (modify-syntax-entry ?\f "> b" table) ;; single quotes (') quotes delimit strings (modify-syntax-entry ?' "\"" table) + ;; backslash is no escape character + (modify-syntax-entry ?\\ "." table) table) "Syntax table used in `sql-mode' and `sql-interactive-mode'.") @@ -1115,7 +1117,15 @@ determine where the strings should be sent to. You can set the value of `sql-buffer' using \\[sql-set-sqli-buffer]. For information on how to create multiple SQLi buffers, see -`sql-interactive-mode'." +`sql-interactive-mode'. + +Note that SQL doesn't have an escape character unless you specify +one. If you specify backslash as escape character in SQL, +you must tell Emacs. Here's how to do that in your `~/.emacs' file: + +\(add-hook 'sql-mode-hook + (lambda () + (modify-syntax-entry ?\\\\ \".\" sql-mode-syntax-table)))" (interactive) (kill-all-local-variables) (setq major-mode 'sql-mode) |