Skip to content

Commit

Permalink
Remove obsolete backward compatibility kludge
Browse files Browse the repository at this point in the history
`font-lock-flush' and `font-lock-ensure' were added ten
years ago in Emacs 25.1.  We already depend on Emacs 25.1.
  • Loading branch information
tarsius committed Jun 11, 2024
1 parent 5108c16 commit 601b3a5
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions emacsql.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 601b3a5

Please sign in to comment.