Mercurial > emacs
annotate src/epaths.in @ 52242:f5ada28bb9f0
Patch by Michael Mauger <mmaug@yahoo.com>
Version 1.8.0 of sql-mode.
Simplify selection of SQL products to define highlighting and
interactive mode. Includes detailed instructions on adding
support for new products.
* sql.el (sql-product): New variable. Identifies SQL product for
use in highlighting and interactive mode.
(sql-interactive-product): New variable. SQL product for
sql-interactive-mode.
(sql-product-support): New variable. Specifies product-specific
parameters to drive highlighting and interactive mode.
(sql-imenu-generic-expression): Add more object types.
(sql-sqlite-options): Correct comment.
(sql-ms-program): Use "osql" rather than "isql".
(sql-prompt-regexp, sql-prompt-length): Update comment.
(sql-mode-menu): Add "Start SQLi session" entry. Replace
Highlighting submenu with Product menu. Fix Send Region entry.
(sql-mode-abbrev-table): Add abbreviations. Support of
SYSTEM-FLAG on define-abbrev. Support was removed with last
check-in; it now handles older Emacsen without the SYSTEM-FLAG.
(sql-mode-font-lock-object-name): Add font-lock pattern for object
names.
(sql-mode-ansi-font-lock-keywords): Set as default value.
(sql-mode-oracle-font-lock-keywords): Set as default value.
Support Oracle 9i keywords.
(sql-mode-postgres-font-lock-keywords): Set as default value.
(sql-mode-linter-font-lock-keywords): Set as default value.
(sql-mode-ms-font-lock-keywords): New variable. Support Microsoft
SQLServer 2000.
(sql-mode-sybase-font-lock-keywords)
(sql-mode-interbase-font-lock-keywords)
(sql-mode-sqlite-font-lock-keywords)
(sql-mode-strong-font-lock-keywords)
(sql-mode-mysql-font-lock-keywords)
(sql-mode-db2-font-lock-keywords): New variables. Default to ANSI
keywords.
(sql-mode-font-lock-defaults): Update comment.
(sql-product-feature): New function. Returns feature associated
with a product from `sql-product-support' alist.
(sql-product-font-lock): New function. Set font-lock support
based on `sql-product'.
(sql-add-product-keywords): New function. Add font-lock rules to
product-specific keyword variables.
(sql-set-product): New function. Set `sql-product' and apply
appropriate font-lock highlighting.
(sql-highlight-product): New function. Set font-lock support
based on a product. Also set mode name to include product name.
(sql-highlight-ansi-keywords, sql-highlight-oracle-keywords)
(sql-highlight-postgres-keywords, sql-highlight-linter-keywords):
Use `sql-set-product'.
(sql-highlight-ms-keywords)
(sql-highlight-sybase-keywords)
(sql-highlight-interbase-keywords)
(sql-highlight-strong-keywords)
(sql-highlight-mysql-keywords)
(sql-highlight-sqlite-keywords)
(sql-highlight-db2-keywords): New functions. Use
`sql-set-product'.
(sql-get-login): Prompt in the same order as the tokens.
(sql-mode): Uses `sql-product-highlight' and
`sql-product-font-lock'.
(sql-product-interactive): New function. Common portions of
product-specific interactive mode wrappers.
(sql-interactive-mode): Rewritten to use product features.
(sql-oracle, sql-sybase, sql-informix, sql-sqlite, sql-mysql)
(sql-solid, sql-ingres, sql-ms, sql-postgres, sql-interbase)
(sql-db2, sql-linter): Use `sql-product-interactive'.
(sql-connect-oracle, sql-connect-sybase, sql-connect-informix)
(sql-connect-sqlite, sql-connect-mysql, sql-connect-solid)
(sql-connect-ingres, sql-connect-postgres)
(sql-connect-interbase, sql-connect-db2, sql-connect-linter): New
functions. Format command line parameters and invoke comint on
the appropriate interpreter. Code was in the corresponding
`sql-xyz' function before.
(sql-connect-ms): New function. Support -E argument to use
operating system credentials for authentication.
| author | Alex Schroeder <alex@gnu.org> |
|---|---|
| date | Mon, 18 Aug 2003 17:29:23 +0000 |
| parents | 64a36687ae30 |
| children | 695cf19ef79e d7ddb3e565de |
| rev | line source |
|---|---|
| 616 | 1 /* Hey Emacs, this is -*- C -*- code! */ |
| 36283 | 2 /* Copyright (C) 1993, 1995, 1997, 1999, 2001 |
| 3 Free Software Foundation, Inc. | |
| 36281 | 4 |
| 5 This file is part of GNU Emacs. | |
| 6 | |
| 7 GNU Emacs is free software; you can redistribute it and/or modify | |
| 8 it under the terms of the GNU General Public License as published by | |
| 9 the Free Software Foundation; either version 2, or (at your option) | |
| 10 any later version. | |
| 11 | |
| 12 GNU Emacs is distributed in the hope that it will be useful, | |
| 13 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 GNU General Public License for more details. | |
| 16 | |
| 17 You should have received a copy of the GNU General Public License | |
| 18 along with GNU Emacs; see the file COPYING. If not, write to | |
| 19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
| 20 Boston, MA 02111-1307, USA. */ | |
| 616 | 21 |
| 22 /* The default search path for Lisp function "load". | |
| 23 This sets load-path. */ | |
| 24 #define PATH_LOADSEARCH "/usr/local/lib/emacs/lisp" | |
| 25 | |
| 26 /* Like PATH_LOADSEARCH, but used only when Emacs is dumping. This | |
| 27 path is usually identical to PATH_LOADSEARCH except that the entry | |
| 28 for the directory containing the installed lisp files has been | |
| 29 replaced with ../lisp. */ | |
| 30 #define PATH_DUMPLOADSEARCH "../lisp" | |
| 31 | |
| 32 /* The extra search path for programs to invoke. This is appended to | |
| 33 whatever the PATH environment variable says to set the Lisp | |
| 34 variable exec-path and the first file name in it sets the Lisp | |
| 35 variable exec-directory. exec-directory is used for finding | |
| 36 executables and other architecture-dependent files. */ | |
| 37 #define PATH_EXEC "/usr/local/lib/emacs/etc" | |
| 38 | |
| 39 /* Where Emacs should look for its architecture-independent data | |
|
6032
07507709e0fe
New path PATH_DOC for doc-directory.
Karl Heuer <kwzh@gnu.org>
parents:
3064
diff
changeset
|
40 files, like the NEWS file. The lisp variable data-directory |
| 616 | 41 is set to this value. */ |
| 42 #define PATH_DATA "/usr/local/lib/emacs/data" | |
| 43 | |
|
9555
0fac2c0a026d
(PATH_BITMAPS): New macro.
Richard M. Stallman <rms@gnu.org>
parents:
6032
diff
changeset
|
44 /* Where Emacs should look for X bitmap files. |
|
0fac2c0a026d
(PATH_BITMAPS): New macro.
Richard M. Stallman <rms@gnu.org>
parents:
6032
diff
changeset
|
45 The lisp variable x-bitmap-file-path is set based on this value. */ |
|
0fac2c0a026d
(PATH_BITMAPS): New macro.
Richard M. Stallman <rms@gnu.org>
parents:
6032
diff
changeset
|
46 #define PATH_BITMAPS "/usr/include/X11/bitmaps" |
|
0fac2c0a026d
(PATH_BITMAPS): New macro.
Richard M. Stallman <rms@gnu.org>
parents:
6032
diff
changeset
|
47 |
|
6032
07507709e0fe
New path PATH_DOC for doc-directory.
Karl Heuer <kwzh@gnu.org>
parents:
3064
diff
changeset
|
48 /* Where Emacs should look for its docstring file. The lisp variable |
|
07507709e0fe
New path PATH_DOC for doc-directory.
Karl Heuer <kwzh@gnu.org>
parents:
3064
diff
changeset
|
49 doc-directory is set to this value. */ |
|
07507709e0fe
New path PATH_DOC for doc-directory.
Karl Heuer <kwzh@gnu.org>
parents:
3064
diff
changeset
|
50 #define PATH_DOC "/usr/local/lib/emacs/data" |
|
07507709e0fe
New path PATH_DOC for doc-directory.
Karl Heuer <kwzh@gnu.org>
parents:
3064
diff
changeset
|
51 |
|
3064
fa5466904709
* paths.h (PATH_INFO): New path, to edited by the configuration
Jim Blandy <jimb@redhat.com>
parents:
625
diff
changeset
|
52 /* Where the configuration process believes the info tree lives. The |
|
fa5466904709
* paths.h (PATH_INFO): New path, to edited by the configuration
Jim Blandy <jimb@redhat.com>
parents:
625
diff
changeset
|
53 lisp variable configure-info-directory gets its value from this |
|
fa5466904709
* paths.h (PATH_INFO): New path, to edited by the configuration
Jim Blandy <jimb@redhat.com>
parents:
625
diff
changeset
|
54 macro, and is then used to set the Info-default-directory-list. */ |
|
fa5466904709
* paths.h (PATH_INFO): New path, to edited by the configuration
Jim Blandy <jimb@redhat.com>
parents:
625
diff
changeset
|
55 #define PATH_INFO "/usr/local/info" |
|
19389
ef499d854610
(PATH_X_DEFAULTS): New macro.
Richard M. Stallman <rms@gnu.org>
parents:
19217
diff
changeset
|
56 |
|
46601
64a36687ae30
(PATH_GAME): New macro, edited by ../Makefile.in.
Richard M. Stallman <rms@gnu.org>
parents:
36283
diff
changeset
|
57 /* Where Emacs should store game score files. */ |
|
64a36687ae30
(PATH_GAME): New macro, edited by ../Makefile.in.
Richard M. Stallman <rms@gnu.org>
parents:
36283
diff
changeset
|
58 #define PATH_GAME "/usr/local/var/games/emacs" |
|
64a36687ae30
(PATH_GAME): New macro, edited by ../Makefile.in.
Richard M. Stallman <rms@gnu.org>
parents:
36283
diff
changeset
|
59 |
|
19389
ef499d854610
(PATH_X_DEFAULTS): New macro.
Richard M. Stallman <rms@gnu.org>
parents:
19217
diff
changeset
|
60 /* Where Emacs should look for the application default file. */ |
|
ef499d854610
(PATH_X_DEFAULTS): New macro.
Richard M. Stallman <rms@gnu.org>
parents:
19217
diff
changeset
|
61 #define PATH_X_DEFAULTS "/usr/lib/X11/%L/%T/%N%C%S:/usr/lib/X11/%l/%T/%N%C%S:/usr/lib/X11/%T/%N%C%S:/usr/lib/X11/%L/%T/%N%S:/usr/lib/X11/%l/%T/%N%S:/usr/lib/X11/%T/%N%S" |
