Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

*CommonSQL expression formatting

1 view
Skip to first unread message

Vladimir Zolotykh

unread,
Mar 10, 2002, 11:07:44 AM3/10/02
to
I'm learning (un)CommonSQL. Is it possible to have special SQL syntax expressions
formatted nicely in Emacs ? I mean instead of

(sql:select 'employee :where [and [= [slot-value 'employee 'companyid]
[slot-value 'company 'companyid]]
[= [slot-value 'company 'name]
"Widgets Inc."]])

I'd like to have something like:

(sql:select 'employee :where [and [= [slot-value 'employee 'companyid]
[slot-value 'company 'companyid]]
[= [slot-value 'company 'name]
"Widgets Inc."]])

Using ACL ELI.

--
Vladimir Zolotykh

Harald Hanche-Olsen

unread,
Mar 10, 2002, 6:17:06 PM3/10/02
to
+ Vladimir Zolotykh <gsm...@eurocom.od.ua>:

You could try something like this:

(modify-syntax-entry ?\[ "(]")
(modify-syntax-entry ?\] ")[")

| Using ACL ELI.

I have no idea if that makes a difference, but it works in emacs'
standard lisp mode, anyway.

--
* Harald Hanche-Olsen <URL:http://www.math.ntnu.no/~hanche/>
- Yes it works in practice - but does it work in theory?

0 new messages