From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Galen Boyer Newsgroups: gmane.emacs.help Subject: Is is a major or minor mode? Date: 30 Oct 2002 20:19:12 -0600 Sender: help-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1036031257 14074 80.91.224.249 (31 Oct 2002 02:27:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 31 Oct 2002 02:27:37 +0000 (UTC) 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 18753Y-0003es-00 for ; Thu, 31 Oct 2002 03:27:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18752T-0007M2-00; Wed, 30 Oct 2002 21:26:29 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!novia!newscene.com!newscene!newscene!novia!novia!sequencer.newscene.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-Sender: galenboyer@hotpop.com User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:106601 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:3151 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:3151 I have been working on a package I am calling ejsql.el (Emacs JDBC SQL). The idea is to use the beanshell (the way that the JDEE is using it) to act as a JVM and serve up metadata objects that have specific JDBC connections. I have a connection pooling mechanism working and a data caching mechanism working and this is being "eval'd" into elisp completing-reads. So, now, from (hopefully) any sql buffer, I can start to build a dynamic sql generator (among a host of other enhancements providing me years worth of weekends spent with my favorite addiction and keeping me from my previous golf addiction). The data I'm currently retrieving is a table listing and a table/column mapping. I cache these data structures using java objects hosted within the Emacs process (*bsh*) so the user won't take a big time data retrieval hit while they are coding their sql. I will provide the user the mechanism to have Emacs retrieve these structures directly from the database as well, or in other words, to refresh the cache. Now, my question. I want this to be available in both SQLi and sql-mode buffers and piggyback on its comint integration. I was planning to write a wrapper around the login functionality of sql.el which would then define the specific variables that the sql-mode and sqli buffers needed to know about to get at the *bsh* variables. I'm just not sure if this is the right plan to proceed with. Should I make my own major-mode and steal liberally from sql.el? -- Galen deForest Boyer Sweet dreams and flying machines in pieces on the ground.