Trevoke / sqlup-mode.el

An emacs minor mode to upcase SQL keyword and functions
GNU General Public License v3.0
88 stars 15 forks source link

Invalidate `sqlup-local-keywords-regexps` after product changes #34

Closed iqbalansari closed 9 years ago

iqbalansari commented 9 years ago

This sets sqlup-local-keywords-regexps to nil after sql product is changed. Since sql-mode does not provide any hook that are run after changing the sql product, we need to advice sql-set-product to invalidate the cache. Old advice system (defadvice) is used instead of the new mechanism (advice-add) which available only in Emacs 24.4 and higher does would fail on old Emacs.

Fixes #33

Trevoke commented 9 years ago

Thanks for the fix!

iqbalansari commented 9 years ago

Your welcome :smile: !