From: Doug Lewan <dougl@shubertticketing.com>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Special SQL mode?
Date: Tue, 20 Nov 2012 21:29:09 +0000 [thread overview]
Message-ID: <155DEC68569B714B86C2C7075F5EDA9828D38354@DAKIYA1.pegasus.local> (raw)
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 table; what is national is no longer science. - Anton Chekov
next reply other threads:[~2012-11-20 21:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-20 21:29 Doug Lewan [this message]
2012-11-22 16:47 ` Special SQL mode? Stefan Monnier
2012-11-28 15:48 ` Doug Lewan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=155DEC68569B714B86C2C7075F5EDA9828D38354@DAKIYA1.pegasus.local \
--to=dougl@shubertticketing.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.