From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Robert Pollard Newsgroups: gmane.emacs.help Subject: Re: Looking for mode for Oracle Pro*C. AKA embedded SQL/C. Date: Mon, 19 May 2003 14:22:48 -0700 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <0A02E4D1-8A40-11D7-B3A8-0003930A6566@apple.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1053383377 7565 80.91.224.249 (19 May 2003 22:29:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 19 May 2003 22:29:37 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue May 20 00:29:32 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Ht8O-0001xX-00 for ; Tue, 20 May 2003 00:29:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19HsrO-0002qn-Sb for gnu-help-gnu-emacs@m.gmane.org; Mon, 19 May 2003 18:11:58 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19HsVj-0008MP-C3 for help-gnu-emacs@gnu.org; Mon, 19 May 2003 17:49:35 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19Hs9W-0003VB-00 for help-gnu-emacs@gnu.org; Mon, 19 May 2003 17:26:39 -0400 Original-Received: from mail-out2.apple.com ([17.254.0.51]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19Hs5y-0002ik-00 for help-gnu-emacs@gnu.org; Mon, 19 May 2003 17:22:59 -0400 Original-Received: from mailgate1.apple.com (A17-128-100-225.apple.com [17.128.100.225]) by mail-out2.apple.com (8.12.9/8.12.9) with ESMTP id h4JLMpBx025355 for ; Mon, 19 May 2003 14:22:51 -0700 (PDT) Original-Received: from scv1.apple.com (scv1.apple.com) by mailgate1.apple.com ; Mon, 19 May 2003 14:22:34 -0700 Original-Received: from apple.com ([17.101.117.23]) by scv1.apple.com (8.12.9/8.12.9) with ESMTP id h4JLMmRV024222; Mon, 19 May 2003 14:22:48 -0700 (PDT) Original-To: Mamouliane In-Reply-To: X-Mailer: Apple Mail (2.552) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:9900 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:9900 I am sorry I can't help you with your question but I believe you could help me. I have been looking for a way to define my own colorization scheme for a particular mode type. One of the ones I was needing to define was PL/SQL. You indicated there was a SQL and PL/SQL mode in Emacs. I was not aware that this existed. How can I get this mode? And, maybe you can help me understand how I can define my own mode or colorizations as well. I have bought books on Emacs (which are few and far between) but none of them talk about defining your own mode. I have asked this list the question of how you define your own colors. After a few responses of RTFM to you can colorize text with the font-lock-mode command I gave up on getting what I was looking for. The manual describes and gives examples of adding keywords. This is not what I am looking for. I want to know how adding keywords works. It appears when you add keywords you use a type face definition like font-lock-warning-face. I don't want to use whatever font-lock-warning-face is using as a color or type definition. I want to be able to use my own colors when defining patterns. This is what I need to know. Could/would you point me in a direction to find out how to define my own colors for specific patterns? Could/would you point me in a direction to understanding what it would take to define my own mode? Could/would you let me know how to use SQL or PL/SQL editing modes? Thanks, Robert Pollard 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 >