help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Special SQL mode?


From: Doug Lewan
Subject: RE: Special SQL mode?
Date: Wed, 28 Nov 2012 15:48:42 +0000

Stefan,

Thank you. These are details that I had known nothing about. I'll give your 
suggestions a try.

,Doug

> -----Original Message-----
> From: help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org
> [mailto:help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org] On
> Behalf Of Stefan Monnier
> Sent: Thursday, 2012 November 22 11:47
> To: help-gnu-emacs@gnu.org
> Subject: Re: Special SQL mode?
> 
> > Nonetheless, my *.sql files automatically get SQL[ANSI] mode.
> 
> When pp-sql-mode calls sql-mode, sql-mode registers
> `sql-highlight-product' on `hack-local-variables-hook' (which is run
> later, even after running the mode hooks) to select which SQL variant
> should be used.
> 
> A quick hack would be for you to (remove-hook 'hack-local-variables-
> hook
> 'sql-highlight-product t).  But maybe another approach (instead of
> or additionally to creating a derived-mode) would be to add an entry in
> sql-product-alist for your "pp sql".
> 
> 
>         Stefan
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]