diff options
| author | Richard M. Stallman | 1999-08-06 00:51:50 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1999-08-06 00:51:50 +0000 |
| commit | 0e9a110afd710bff9715076adbcdfd27b550cab0 (patch) | |
| tree | f2ea94087986e3690ebb5965a4d14f07cf55d695 | |
| parent | aee631c210d6067a9f44014335a2580fe00485c5 (diff) | |
| download | emacs-0e9a110afd710bff9715076adbcdfd27b550cab0.tar.gz emacs-0e9a110afd710bff9715076adbcdfd27b550cab0.zip | |
(sql-accumulate-and-indent): Instead of testing
whether this is Emacs 20 before calling comint-accumulate,
test whether comint-accumulate is defined.
| -rw-r--r-- | lisp/progmodes/sql.el | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el index c83435e3146..da527250471 100644 --- a/lisp/progmodes/sql.el +++ b/lisp/progmodes/sql.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | ;; Author: Alex Schroeder <a.schroeder@bsiag.ch> | 5 | ;; Author: Alex Schroeder <a.schroeder@bsiag.ch> |
| 6 | ;; Maintainer: Alex Schroeder <a.schroeder@bsiag.ch> | 6 | ;; Maintainer: Alex Schroeder <a.schroeder@bsiag.ch> |
| 7 | ;; Version: 1.4.5 | 7 | ;; Version: 1.4.6 |
| 8 | ;; Keywords: comm languages processes | 8 | ;; Keywords: comm languages processes |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| @@ -27,9 +27,9 @@ | |||
| 27 | ;;; Commentary: | 27 | ;;; Commentary: |
| 28 | 28 | ||
| 29 | ;; Please send bug reports and bug fixes to the mailing list at | 29 | ;; Please send bug reports and bug fixes to the mailing list at |
| 30 | ;; sql.el@gnu.org so that I can merge them into the master source. If | 30 | ;; sql.el@gnu.org (or sql.el@bsiag.com). If you want to subscribe to |
| 31 | ;; you want to subscribe to the mailing list, send mail to | 31 | ;; the mailing list, send mail to sql.el-request@gnu.org with |
| 32 | ;; sql.el-request@gnu.org with 'subscribe' in the subject line. | 32 | ;; `subscribe sql.el FIRSTNAME LASTNAME' in the subject line. |
| 33 | 33 | ||
| 34 | ;; You can get the latest version of this file from my homepage | 34 | ;; You can get the latest version of this file from my homepage |
| 35 | ;; <URL:http://www.geocities.com/TimesSquare/6120/emacs.html>. | 35 | ;; <URL:http://www.geocities.com/TimesSquare/6120/emacs.html>. |
| @@ -167,6 +167,12 @@ exiting the SQL interpreter in an SQLi buffer will write the input | |||
| 167 | history to the specified file. Starting a new process in a SQLi buffer | 167 | history to the specified file. Starting a new process in a SQLi buffer |
| 168 | will read the input history from the specified file. | 168 | will read the input history from the specified file. |
| 169 | 169 | ||
| 170 | You have to set this variable if you want the history of your commands | ||
| 171 | saved from one Emacs session to the next. If this variable is set, | ||
| 172 | exiting the SQL interpreter in an SQLi buffer will write the input | ||
| 173 | history to the specified file. Starting a new process in a SQLi buffer | ||
| 174 | will read the input history from the specified file. | ||
| 175 | |||
| 170 | This is used to locally set `comint-input-ring-file-name' when reading | 176 | This is used to locally set `comint-input-ring-file-name' when reading |
| 171 | or writing the input history." | 177 | or writing the input history." |
| 172 | :type '(choice (const :tag "none" nil) | 178 | :type '(choice (const :tag "none" nil) |
| @@ -613,9 +619,7 @@ can be changed by some entry functions to provide more hilighting.") | |||
| 613 | (defun sql-accumulate-and-indent () | 619 | (defun sql-accumulate-and-indent () |
| 614 | "Continue SQL statement on the next line." | 620 | "Continue SQL statement on the next line." |
| 615 | (interactive) | 621 | (interactive) |
| 616 | ;; comint-accumulate is a Emacs 20.X thingie | 622 | (if (fboundp 'comint-accumulate) (comint-accumulate)) |
| 617 | (if (not (string-match "XEmacs\\|Lucid\\|GNU Emacs 19" emacs-version)) | ||
| 618 | (comint-accumulate)) | ||
| 619 | (indent-according-to-mode)) | 623 | (indent-according-to-mode)) |
| 620 | 624 | ||
| 621 | ;;;###autoload | 625 | ;;;###autoload |