From 601b3a5f6bdaf5b7c7c5889053b8191bcc89a8ff Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Tue, 11 Jun 2024 22:32:11 +0200 Subject: [PATCH] Remove obsolete backward compatibility kludge `font-lock-flush' and `font-lock-ensure' were added ten years ago in Emacs 25.1. We already depend on Emacs 25.1. --- emacsql.el | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/emacsql.el b/emacsql.el index d1d0c08..4f9e94f 100644 --- a/emacsql.el +++ b/emacsql.el @@ -378,14 +378,10 @@ Each column must be a plain symbol, no expressions allowed here." (sql-mode) (with-no-warnings ;; autoloaded by previous line (sql-highlight-sqlite-keywords)) - (if (and (fboundp 'font-lock-flush) - (fboundp 'font-lock-ensure)) - (save-restriction - (widen) - (font-lock-flush) - (font-lock-ensure)) - (with-no-warnings - (font-lock-fontify-buffer))) + (save-restriction + (widen) + (font-lock-flush) + (font-lock-ensure)) (emacsql--indent) (buffer-string)))) (with-current-buffer (get-buffer-create emacsql-show-buffer-name)