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: Special SQL mode? Date: Tue, 20 Nov 2012 21:29:09 +0000 Message-ID: <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 1353446887 30627 80.91.229.3 (20 Nov 2012 21:28:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Nov 2012 21:28:07 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 20 22:28:18 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 1TavMg-0002Bo-JA for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Nov 2012 22:28:18 +0100 Original-Received: from localhost ([::1]:37911 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TavMW-0007hn-8F for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Nov 2012 16:28:08 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TavMP-0007hT-TB for help-gnu-emacs@gnu.org; Tue, 20 Nov 2012 16:28:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TavMO-00023L-HY for help-gnu-emacs@gnu.org; Tue, 20 Nov 2012 16:28:01 -0500 Original-Received: from webmail.shubertorg.com ([207.246.209.200]:40503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TavMO-00022r-Dv for help-gnu-emacs@gnu.org; Tue, 20 Nov 2012 16:28:00 -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; Tue, 20 Nov 2012 16:29:10 -0500 Thread-Topic: Special SQL mode? Thread-Index: Ac3HZeivFWHPUk0UQ2ugGSTU7rfqRg== 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:87824 Archived-At: I work with a non-standard variant of SQL. (Don't ask.) I have, accordingly= , a non-standard variant of SQL mode, defined via `(define-derived-mode pp-= sql-mode sql-mode "PP sql" ...)'. The stock SQL mode entry has been replaced in auto-mode-alist by `("\\.sql\= \'" . pp-sql-mode)'. There is no other even remotely SQL-ish entry in auto-= mode-alist. The variable magic-mode-alist is NIL, and there are no local = file variables. Finally, there is no '#!'. Nonetheless, my *.sql files automatically get SQL[ANSI] mode. If the info about Choosing Major Modes is right, then I should not (if I'm = smart enough to understand it). Apparently I'm not. Does anyone have a hint= about what I might have missed? Thanks. ,Douglas Douglas Lewan Shubert Ticketing (201) 489-8600 ext 224 There is no national science just as there is no national multiplication ta= ble; what is national is no longer science. - Anton Chekov