all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@spamto.devnul.com>
Subject: Re: Looking for mode for Oracle Pro*C. AKA embedded SQL/C.
Date: 20 May 2003 19:43:03 +1000	[thread overview]
Message-ID: <87u1bqar88.fsf@tiger.rapttech.com.au> (raw)
In-Reply-To: mailman.6420.1053382303.21513.help-gnu-emacs@gnu.org

>>>>> "Robert" == Robert Pollard <rpollard@apple.com> writes:

 Robert> I am sorry I can't help you with your question but I believe
 Robert> you could help me.  I have been looking for a way to define
 Robert> my own colorization scheme for a particular mode type.  One
 Robert> of the ones I was needing to define was PL/SQL.  You
 Robert> indicated there was a SQL and PL/SQL mode in Emacs.  I was
 Robert> not aware that this existed.  How can I get this mode?  And,
 Robert> maybe you can help me understand how I can define my own mode
 Robert> or colorizations as well.  I have bought books on Emacs
 Robert> (which are few and far between) but none of them talk about
 Robert> defining your own mode.

 Robert> I have asked this list the question of how you define your
 Robert> own colors.  After a few responses of RTFM to you can
 Robert> colorize text with the font-lock-mode command I gave up on
 Robert> getting what I was looking for.  The manual describes and
 Robert> gives examples of adding keywords.  This is not what I am
 Robert> looking for.  I want to know how adding keywords works.  It
 Robert> appears when you add keywords you use a type face definition
 Robert> like font-lock-warning-face.  I don't want to use whatever
 Robert> font-lock-warning-face is using as a color or type
 Robert> definition.  I want to be able to use my own colors when
 Robert> defining patterns.  This is what I need to know.

 Robert> Could/would you point me in a direction to find out how to
 Robert> define my own colors for specific patterns?

 Robert> Could/would you point me in a direction to understanding what
 Robert> it would take to define my own mode?

 Robert> Could/would you let me know how to use SQL or PL/SQL editing
 Robert> modes?

 Robert> Thanks,

 Robert> Robert Pollard

 Robert> On Friday, May 16, 2003, at 02:07 PM, Mamouliane wrote:

 >>  Oracle Pro*C is basically a pre-processor. It takes a source file
 >> written in C and containing SQL statements. Hence the name
 >> embedded SQL.  The pre-processor replaces all SQL statements by C
 >> statements & function calls. In the end what you have is C source
 >> code that is then compiled and linked with Oracle libraries.  This
 >> is a very basic description of what it does but you get the idea.
 >> 
 >> Is anyone aware of such a mode available for Pro*C? I know of a
 >> SQL mode and PL/SQL mode but can't find a mode for Pro*C or
 >> embedded SQL/C.  Should I write such a mode? Is it very difficult?
 >> It would basically be an extension to the available C mode. There
 >> is already modes for SQL and PL/SQL out there so I figure I would
 >> use that too.
 >> 
 >> What do you guys think?
 >> _______________________________________________ Help-gnu-emacs
 >> mailing list Help-gnu-emacs@gnu.org
 >> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
 >> 

Look at http://www.emacswiki.org - you can get PL/SQL mode there -
I've been using it daily - on the whole it works well - it does have
some minor bugs and I have sent some corrections and bug reports to
the author, but have never received a response and the mode has not
been updated since late last year. 

There is also some info on running modes for Pro*C and other tips
relating to using sql mode, additional functions which are quite
useful and there is some information at this site on writing your own
mode etc.

Tim



-- 
Tim Cross
The e-mail address on this message is FALSE (obviously!). My real e-mail is
to a company in Australia called rapttech and my login is tcross - if you 
really need to send mail, you should be able to work it out!

  parent reply	other threads:[~2003-05-20  9:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-16 21:07 Looking for mode for Oracle Pro*C. AKA embedded SQL/C Mamouliane
2003-05-17  7:12 ` Tim X
2003-05-19 12:19   ` Kevin Dziulko
     [not found]   ` <873cjdsxz3.fsf@gnu.org>
2003-05-20 14:45     ` Mamouliane
2003-05-19 21:22 ` Robert Pollard
     [not found] ` <mailman.6420.1053382303.21513.help-gnu-emacs@gnu.org>
2003-05-19 23:31   ` Johan Bockgård
2003-05-20  9:43   ` Tim X [this message]
2003-05-20 16:13   ` Mamouliane

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=87u1bqar88.fsf@tiger.rapttech.com.au \
    --to=timx@spamto.devnul.com \
    /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.