From: Stefan Kangas Date: Fri, 8 Oct 2021 19:02:14 +0000 (+0200) Subject: Remove Emacs 20 compat code from sql.el X-Git-Tag: emacs-29.0.90~3671^2~621^2~14 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e73c9ac4ed4ce0a4b423dae6acbfb384c1afbce0;p=emacs.git Remove Emacs 20 compat code from sql.el * lisp/progmodes/sql.el (sql-input-ring-separator) (sql-product-font-lock): Remove Emacs 20 compat code. --- diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el index 454279ca17f..d0e0a1154e5 100644 --- a/lisp/progmodes/sql.el +++ b/lisp/progmodes/sql.el @@ -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))))