diff options
| author | Stefan Kangas | 2021-10-08 21:04:04 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2021-10-08 22:50:46 +0200 |
| commit | bf5b95d9327cfc564bfe6ff8f884b3d8e0b798ea (patch) | |
| tree | a798f631c61e1f57d9185f870831e7b44fc4e2d4 | |
| parent | e73c9ac4ed4ce0a4b423dae6acbfb384c1afbce0 (diff) | |
| download | emacs-bf5b95d9327cfc564bfe6ff8f884b3d8e0b798ea.tar.gz emacs-bf5b95d9327cfc564bfe6ff8f884b3d8e0b798ea.zip | |
Remove XEmacs compat code from sql.el
* lisp/progmodes/sql.el (sql-interactive-mode-map, sql-mode)
(sql-interactive-mode): Remove XEmacs compat code. (Bug#51096)
| -rw-r--r-- | lisp/progmodes/sql.el | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el index d0e0a1154e5..f55115e9027 100644 --- a/lisp/progmodes/sql.el +++ b/lisp/progmodes/sql.el | |||
| @@ -1352,8 +1352,6 @@ specified, it's `sql-product' or `sql-connection' must match." | |||
| 1352 | (defvar sql-interactive-mode-map | 1352 | (defvar sql-interactive-mode-map |
| 1353 | (let ((map (make-sparse-keymap))) | 1353 | (let ((map (make-sparse-keymap))) |
| 1354 | (set-keymap-parent map comint-mode-map) | 1354 | (set-keymap-parent map comint-mode-map) |
| 1355 | (if (fboundp 'set-keymap-name) | ||
| 1356 | (set-keymap-name map 'sql-interactive-mode-map)); XEmacs | ||
| 1357 | (define-key map (kbd "C-j") 'sql-accumulate-and-indent) | 1355 | (define-key map (kbd "C-j") 'sql-accumulate-and-indent) |
| 1358 | (define-key map (kbd "C-c C-w") 'sql-copy-column) | 1356 | (define-key map (kbd "C-c C-w") 'sql-copy-column) |
| 1359 | (define-key map (kbd "O") 'sql-magic-go) | 1357 | (define-key map (kbd "O") 'sql-magic-go) |
| @@ -4160,10 +4158,6 @@ must tell Emacs. Here's how to do that in your init file: | |||
| 4160 | (modify-syntax-entry ?\\\\ \"\\\\\" sql-mode-syntax-table)))" | 4158 | (modify-syntax-entry ?\\\\ \"\\\\\" sql-mode-syntax-table)))" |
| 4161 | :abbrev-table sql-mode-abbrev-table | 4159 | :abbrev-table sql-mode-abbrev-table |
| 4162 | 4160 | ||
| 4163 | (when (and (featurep 'xemacs) | ||
| 4164 | sql-mode-menu) | ||
| 4165 | (easy-menu-add sql-mode-menu)) | ||
| 4166 | |||
| 4167 | ;; (smie-setup sql-smie-grammar #'sql-smie-rules) | 4161 | ;; (smie-setup sql-smie-grammar #'sql-smie-rules) |
| 4168 | (setq-local comment-start "--") | 4162 | (setq-local comment-start "--") |
| 4169 | ;; Make each buffer in sql-mode remember the "current" SQLi buffer. | 4163 | ;; Make each buffer in sql-mode remember the "current" SQLi buffer. |
| @@ -4286,9 +4280,6 @@ you entered, right above the output it created. | |||
| 4286 | (setq mode-name | 4280 | (setq mode-name |
| 4287 | (concat "SQLi[" (or (sql-get-product-feature sql-product :name) | 4281 | (concat "SQLi[" (or (sql-get-product-feature sql-product :name) |
| 4288 | (symbol-name sql-product)) "]")) | 4282 | (symbol-name sql-product)) "]")) |
| 4289 | (when (and (featurep 'xemacs) | ||
| 4290 | sql-interactive-mode-menu) | ||
| 4291 | (easy-menu-add sql-interactive-mode-menu)) | ||
| 4292 | 4283 | ||
| 4293 | ;; Note that making KEYWORDS-ONLY nil will cause havoc if you try | 4284 | ;; Note that making KEYWORDS-ONLY nil will cause havoc if you try |
| 4294 | ;; SELECT 'x' FROM DUAL with SQL*Plus, because the title of the column | 4285 | ;; SELECT 'x' FROM DUAL with SQL*Plus, because the title of the column |