emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/progmodes/sql.el


From: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/lisp/progmodes/sql.el
Date: Mon, 12 Nov 2001 21:22:40 -0500

Index: emacs/lisp/progmodes/sql.el
diff -u emacs/lisp/progmodes/sql.el:1.28 emacs/lisp/progmodes/sql.el:1.29
--- emacs/lisp/progmodes/sql.el:1.28    Mon Oct 29 04:35:04 2001
+++ emacs/lisp/progmodes/sql.el Mon Nov 12 21:22:40 2001
@@ -4,7 +4,7 @@
 
 ;; Author: Alex Schroeder <address@hidden>
 ;; Maintainer: Alex Schroeder <address@hidden>
-;; 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 @@
     (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 @@
 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]