From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Lewan Newsgroups: gmane.emacs.help Subject: RE: Special SQL mode? Date: Wed, 28 Nov 2012 15:48:42 +0000 Message-ID: <155DEC68569B714B86C2C7075F5EDA9828D39F26@DAKIYA1.pegasus.local> References: <155DEC68569B714B86C2C7075F5EDA9828D38354@DAKIYA1.pegasus.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1354117671 28990 80.91.229.3 (28 Nov 2012 15:47:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Nov 2012 15:47:51 +0000 (UTC) To: Stefan Monnier , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 28 16:48:02 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tdjrh-0003Lk-Cd for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Nov 2012 16:47:57 +0100 Original-Received: from localhost ([::1]:47718 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdjrW-0000tw-6b for geh-help-gnu-emacs@m.gmane.org; Wed, 28 Nov 2012 10:47:46 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35771) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdjrM-0000tH-A6 for help-gnu-emacs@gnu.org; Wed, 28 Nov 2012 10:47:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TdjrG-00080d-IJ for help-gnu-emacs@gnu.org; Wed, 28 Nov 2012 10:47:36 -0500 Original-Received: from webmail.shubertorg.com ([207.246.209.200]:32202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdjrG-00080I-EH for help-gnu-emacs@gnu.org; Wed, 28 Nov 2012 10:47:30 -0500 Original-Received: from dakiya1.pegasus.local ([172.16.208.201]) by DAKIYA1.pegasus.local ([172.16.208.201]) with mapi id 14.01.0339.001; Wed, 28 Nov 2012 10:48:43 -0500 Thread-Topic: Special SQL mode? Thread-Index: Ac3HZeivFWHPUk0UQ2ugGSTU7rfqRgBa1zWzASuNT2A= In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.21.202] X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 207.246.209.200 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87924 Archived-At: 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=3Dshubertticketing.com@gnu.org > [mailto:help-gnu-emacs-bounces+dougl=3Dshubertticketing.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? >=20 > > Nonetheless, my *.sql files automatically get SQL[ANSI] mode. >=20 > 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. >=20 > 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". >=20 >=20 > Stefan >=20