]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove Emacs 20 compat code from sql.el
authorStefan Kangas <stefan@marxist.se>
Fri, 8 Oct 2021 19:02:14 +0000 (21:02 +0200)
committerStefan Kangas <stefan@marxist.se>
Fri, 8 Oct 2021 19:02:14 +0000 (21:02 +0200)
* lisp/progmodes/sql.el (sql-input-ring-separator)
(sql-product-font-lock): Remove Emacs 20 compat code.

lisp/progmodes/sql.el

index 454279ca17f10835a021bf783f0c1d3075bcd672..d0e0a1154e5dc2b5f3689450167a889ae2a3e54e 100644 (file)
@@ -963,12 +963,7 @@ If set to \"\\n\", each line in the history file will be interpreted as
 one command.  Multi-line commands are split into several commands when
 the input ring is initialized from a history file.
 
-This variable used to initialize `comint-input-ring-separator'.
-`comint-input-ring-separator' is part of Emacs 21; if your Emacs
-does not have it, setting `sql-input-ring-separator' will have no
-effect.  In that case multiline commands will be split into several
-commands when the input history is read, as if you had set
-`sql-input-ring-separator' to \"\\n\"."
+This variable used to initialize `comint-input-ring-separator'."
   :type 'string)
 
 ;; The usual hooks
@@ -2832,16 +2827,6 @@ configured."
       (font-lock-mode-internal nil)
       (font-lock-mode-internal t))
 
-    (add-hook 'font-lock-mode-hook
-              (lambda ()
-                  ;; Provide defaults for new font-lock faces.
-                  (defvar font-lock-builtin-face
-                    (if (boundp 'font-lock-preprocessor-face)
-                        font-lock-preprocessor-face
-                      font-lock-keyword-face))
-                  (defvar font-lock-doc-face font-lock-string-face))
-             nil t)
-
     ;; Setup imenu; it needs the same syntax-alist.
     (when imenu
       (setq imenu-syntax-alist syntax-alist))))