Skip to content

Commit 601b3a5

Browse files
committed
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.
1 parent 5108c16 commit 601b3a5

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

emacsql.el

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -378,14 +378,10 @@ Each column must be a plain symbol, no expressions allowed here."
378378
(sql-mode)
379379
(with-no-warnings ;; autoloaded by previous line
380380
(sql-highlight-sqlite-keywords))
381-
(if (and (fboundp 'font-lock-flush)
382-
(fboundp 'font-lock-ensure))
383-
(save-restriction
384-
(widen)
385-
(font-lock-flush)
386-
(font-lock-ensure))
387-
(with-no-warnings
388-
(font-lock-fontify-buffer)))
381+
(save-restriction
382+
(widen)
383+
(font-lock-flush)
384+
(font-lock-ensure))
389385
(emacsql--indent)
390386
(buffer-string))))
391387
(with-current-buffer (get-buffer-create emacsql-show-buffer-name)

0 commit comments

Comments
 (0)