From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: leon Newsgroups: gmane.emacs.help Subject: Re: mode for a region? Date: Sun, 27 Nov 2005 18:44:12 +0000 Message-ID: <86u0dyexs3.fsf@gmail.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1133117494 12912 80.91.229.2 (27 Nov 2005 18:51:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 27 Nov 2005 18:51:34 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 27 19:51:29 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EgRbv-0000o1-4S for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Nov 2005 19:50:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EgRbu-0000SK-JM for geh-help-gnu-emacs@m.gmane.org; Sun, 27 Nov 2005 13:50:50 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!LF.net!quimby.gnus.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-NNTP-Posting-Host: sl392.st-edmunds.cam.ac.uk Original-X-Trace: quimby.gnus.org 1133117052 10358 131.111.223.202 (27 Nov 2005 18:44:12 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Sun, 27 Nov 2005 18:44:12 +0000 (UTC) Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAIVBMVEUbEhA6KCRRMCrrwK9q Qzq+em4aCAjKjoM7Ih4wGhaeYVDYvthgAAACXklEQVQokT2SwWvbMBTGn6EEfJOCD01PixA0yXGK EeRWoaypTqOpMPPJJ7Pe1rpB0NtCGGUnJ/SQ3Eprz63+yj2bbAZh+PH50/c9P4icriLPV94vRlrI Cwq9HLaNfKRae4QbgwxhBnBWVOMDR1hxXlFKoBdAeVI8kJCbSquJaoUAEZDgcgp7rRXKF0NCOkjp mSM7NWLklo1bHQBFGL392I1Hw0/hRUkDSjpMo/lsfxjxxbqCINIE78Z3bZZXp/unJ2ayiHdCCPrN a3MfMcZM8dIfkl6O0i01lVlppc1SzLaUdvCw7esoSasWiivMmWcBBCSgdO698W9C3FM6gIBDOEDj Cbb0qIyHFNMYJGU42Pja2qTA78uAcg1ZWMIp98kKqRDfMjTDXrSEPfe2TvEI+R60tpiC7LRPEXo0 mG5JCDA4bGmkfe2sr9F09pN29Q97rn0iYp9eCvnAmGpnFR64NsnKpaoR8mbIGEJstUGo60eeFFJR OkSY57DjJvFJXNtCjgddpDzPv6PSFRLPDN3a/vhsKmOdkIldzkq8GGG4ZsYbrCOx/rTXzg2ixlmt J7V1K8WXn/EGfDCwfMWg2L6aFHcdAyGEu2lh7a5/Fx//4SrlXGtuP57FVdY7wlhzhStm1URIkh+h rBjCOtXnONBefoTpeM313KWXhZxlR6W4GR+YNl41ftaQfzB+z9dKsYldNM2XDLXWYuvr/JaN+KT6 de7+ZBDCCgfu0vIZV0m/Pm3k19a0hTLV9cIkD7ryb3ftfiIUy6Syau5iVtuzKaV9wJ+IC/OYYKT4 xJvQ4ZD/Ao6c3fpm4VhaAAAAAElFTkSuQmCC User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:BMeFg/b75hQQ//81wza/2Pqxig0= Original-Xref: shelby.stanford.edu gnu.emacs.help:135817 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:31419 Archived-At: "Drew Adams" writes: | Some languages provide for using expressions of another language within | them. Some syntactic method is used to identify the other-language | expression. | | For example, you might have a SQL expression that uses SQL function | XMLQuery, which takes a (quoted) XQuery expression as an argument. SQL and | XQuery are different languages, with radically different syntaxes. Another | example would be Prolog expressions within Lisp (or vice versa). There are | many languages that let you pass an expression to another language. | | I'm wondering how Emacs modes might have already tried to deal with this (if | they have). | | What I'm thinking of is something like this: The major mode (e.g. SQL mode) | recognizes the existence of an expression in the other language (e.g. | XQuery), and somehow allows for use of a "regional" mode that acts on that | (e.g. XQuery) expression. "Act on" could be anything - simple font-lock | highlighting, indentation, syntax-checking, type-checking, or even | evaluation. | | Anyone know of an attempt to deal with mixing two languages, perhaps by | having a local (region) sub-mode? That is multimode. Have a look at the following link http://www.emacswiki.org/cgi-bin/wiki/MultipleModes -- .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:. . * . . /.\ excuses are the easiest things . . /..'\ to manufacture . . /'.'\ and the hardest things to sell . . /.''.'\ . . /.'.'.\ . . /'.''.'.\ . . ^^^[_]^^^ . . . .Leon . .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:.