/[emacs]/emacs/lisp/progmodes/sql.el
ViewVC logotype

Diff of /emacs/lisp/progmodes/sql.el

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.28 by gerd, Mon Oct 29 09:35:04 2001 UTC revision 1.29 by rms, Tue Nov 13 02:22:40 2001 UTC
# Line 4  Line 4 
4    
5  ;; Author: Alex Schroeder <alex@gnu.org>  ;; Author: Alex Schroeder <alex@gnu.org>
6  ;; Maintainer: Alex Schroeder <alex@gnu.org>  ;; Maintainer: Alex Schroeder <alex@gnu.org>
7  ;; Version: 1.6.3  ;; Version: 1.6.5
8  ;; Keywords: comm languages processes  ;; Keywords: comm languages processes
9  ;; URL: http://www.emacswiki.org/cgi-bin/wiki.pl?SqlMode  ;; URL: http://www.emacswiki.org/cgi-bin/wiki.pl?SqlMode
10    
# Line 531  Based on `comint-mode-map'.") Line 531  Based on `comint-mode-map'.")
531      (modify-syntax-entry ?\f "> b" table)      (modify-syntax-entry ?\f "> b" table)
532      ;; single quotes (') quotes delimit strings      ;; single quotes (') quotes delimit strings
533      (modify-syntax-entry ?' "\"" table)      (modify-syntax-entry ?' "\"" table)
534        ;; backslash is no escape character
535        (modify-syntax-entry ?\\ "." table)
536      table)      table)
537    "Syntax table used in `sql-mode' and `sql-interactive-mode'.")    "Syntax table used in `sql-mode' and `sql-interactive-mode'.")
538    
# Line 1115  determine where the strings should be se Line 1117  determine where the strings should be se
1117  value of `sql-buffer' using \\[sql-set-sqli-buffer].  value of `sql-buffer' using \\[sql-set-sqli-buffer].
1118    
1119  For information on how to create multiple SQLi buffers, see  For information on how to create multiple SQLi buffers, see
1120  `sql-interactive-mode'."  `sql-interactive-mode'.
1121    
1122    Note that SQL doesn't have an escape character unless you specify
1123    one.  If you specify backslash as escape character in SQL,
1124    you must tell Emacs.  Here's how to do that in your `~/.emacs' file:
1125    
1126    \(add-hook 'sql-mode-hook
1127              (lambda ()
1128                (modify-syntax-entry ?\\\\ \".\" sql-mode-syntax-table)))"
1129    (interactive)    (interactive)
1130    (kill-all-local-variables)    (kill-all-local-variables)
1131    (setq major-mode 'sql-mode)    (setq major-mode 'sql-mode)

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26