all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Special SQL mode?
@ 2012-11-20 21:29 Doug Lewan
  2012-11-22 16:47 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Doug Lewan @ 2012-11-20 21:29 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-28 15:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-20 21:29 Special SQL mode? Doug Lewan
2012-11-22 16:47 ` Stefan Monnier
2012-11-28 15:48   ` Doug Lewan

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.