diff options
| author | Paul Eggert | 2015-09-17 16:08:20 -0700 |
|---|---|---|
| committer | Paul Eggert | 2015-09-17 16:09:39 -0700 |
| commit | 284c470ef752967fcd8bae6a450dc138462b1e49 (patch) | |
| tree | 83e8bcfe4c756e741ee9d4ecdf80f6b8d0e73c91 /lisp/progmodes/sql.el | |
| parent | d149ff5233805c0a09b6067e0cf27549291cc83a (diff) | |
| download | emacs-284c470ef752967fcd8bae6a450dc138462b1e49.tar.gz emacs-284c470ef752967fcd8bae6a450dc138462b1e49.zip | |
Backslash cleanup in Elisp source files
This patch should not change behavior. It typically omits backslashes
where they are redundant (e.g., in the string literal "^\$").
In a few places, insert backslashes where they make regular
expressions clearer: e.g., replace "^\*" (equivalent to "^*") with
"^\\*", which has the same effect as a regular expression.
Also, use ‘\ %’ instead of ‘\%’ when avoiding confusion with SCCS IDs,
and similarly use ‘\ $’ instead of ‘\$’ when avoiding confusion with
RCS IDs, as that makes it clearer that the backslash is intended.
Diffstat (limited to 'lisp/progmodes/sql.el')
| -rw-r--r-- | lisp/progmodes/sql.el | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el index 3b77ac088e3..abc99eec909 100644 --- a/lisp/progmodes/sql.el +++ b/lisp/progmodes/sql.el | |||
| @@ -381,9 +381,9 @@ file. Since that is a plaintext file, this could be dangerous." | |||
| 381 | :sqli-options sql-ingres-options | 381 | :sqli-options sql-ingres-options |
| 382 | :sqli-login sql-ingres-login-params | 382 | :sqli-login sql-ingres-login-params |
| 383 | :sqli-comint-func sql-comint-ingres | 383 | :sqli-comint-func sql-comint-ingres |
| 384 | :prompt-regexp "^\* " | 384 | :prompt-regexp "^\\* " |
| 385 | :prompt-length 2 | 385 | :prompt-length 2 |
| 386 | :prompt-cont-regexp "^\* ") | 386 | :prompt-cont-regexp "^\\* ") |
| 387 | 387 | ||
| 388 | (interbase | 388 | (interbase |
| 389 | :name "Interbase" | 389 | :name "Interbase" |
| @@ -525,7 +525,7 @@ highlighted and will not support `sql-interactive-mode'. | |||
| 525 | 525 | ||
| 526 | Each element in the list is in the following format: | 526 | Each element in the list is in the following format: |
| 527 | 527 | ||
| 528 | \(PRODUCT FEATURE VALUE ...) | 528 | (PRODUCT FEATURE VALUE ...) |
| 529 | 529 | ||
| 530 | where PRODUCT is the appropriate value of `sql-product'. The | 530 | where PRODUCT is the appropriate value of `sql-product'. The |
| 531 | product name is then followed by FEATURE-VALUE pairs. If a | 531 | product name is then followed by FEATURE-VALUE pairs. If a |
| @@ -639,7 +639,7 @@ settings.") | |||
| 639 | "An alist of connection parameters for interacting with a SQL product. | 639 | "An alist of connection parameters for interacting with a SQL product. |
| 640 | Each element of the alist is as follows: | 640 | Each element of the alist is as follows: |
| 641 | 641 | ||
| 642 | \(CONNECTION \(SQL-VARIABLE VALUE) ...) | 642 | (CONNECTION \(SQL-VARIABLE VALUE) ...) |
| 643 | 643 | ||
| 644 | Where CONNECTION is a case-insensitive string identifying the | 644 | Where CONNECTION is a case-insensitive string identifying the |
| 645 | connection, SQL-VARIABLE is the symbol name of a SQL mode | 645 | connection, SQL-VARIABLE is the symbol name of a SQL mode |
| @@ -3897,14 +3897,14 @@ Here is an example for your init file. It keeps the SQLi buffer a | |||
| 3897 | certain length. | 3897 | certain length. |
| 3898 | 3898 | ||
| 3899 | \(add-hook \\='sql-interactive-mode-hook | 3899 | \(add-hook \\='sql-interactive-mode-hook |
| 3900 | \(function (lambda () | 3900 | (function (lambda () |
| 3901 | \(setq comint-output-filter-functions \\='comint-truncate-buffer)))) | 3901 | (setq comint-output-filter-functions \\='comint-truncate-buffer)))) |
| 3902 | 3902 | ||
| 3903 | Here is another example. It will always put point back to the statement | 3903 | Here is another example. It will always put point back to the statement |
| 3904 | you entered, right above the output it created. | 3904 | you entered, right above the output it created. |
| 3905 | 3905 | ||
| 3906 | \(setq comint-output-filter-functions | 3906 | \(setq comint-output-filter-functions |
| 3907 | \(function (lambda (STR) (comint-show-output))))" | 3907 | (function (lambda (STR) (comint-show-output))))" |
| 3908 | (delay-mode-hooks (comint-mode)) | 3908 | (delay-mode-hooks (comint-mode)) |
| 3909 | 3909 | ||
| 3910 | ;; Get the `sql-product' for this interactive session. | 3910 | ;; Get the `sql-product' for this interactive session. |