From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/22713 Path: main.gmane.org!not-for-mail From: Oscar Figueiredo Newsgroups: gmane.emacs.gnus.general Subject: Re: Writing enriched text Date: 21 Apr 1999 19:29:21 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: <8690bm6sxc.fsf@kramer.bp.aventail.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035160584 30791 80.91.224.250 (21 Oct 2002 00:36:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:36:24 +0000 (UTC) Return-Path: Original-Received: from farabi.math.uh.edu (farabi.math.uh.edu [129.7.128.57]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id NAA16615 for ; Wed, 21 Apr 1999 13:34:45 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by farabi.math.uh.edu (8.9.1/8.9.1) with ESMTP id MAB12156; Wed, 21 Apr 1999 12:30:16 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 21 Apr 1999 12:30:18 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id MAA17422 for ; Wed, 21 Apr 1999 12:30:07 -0500 (CDT) Original-Received: from lspsun12.epfl.ch (root@lspsun12.epfl.ch [128.178.75.34]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id NAA16409 for ; Wed, 21 Apr 1999 13:30:00 -0400 (EDT) Original-Received: from lspsun17.epfl.ch (figueire@lspsun17.epfl.ch [128.178.75.85]) by lspsun12.epfl.ch (8.8.X/EPFL-8.1a) with ESMTP id TAA05191 for ; Wed, 21 Apr 1999 19:29:22 +0200 (MET DST) Original-Received: (from figueire@localhost) by lspsun17.epfl.ch (8.8.X/EPFL-8.1a) id TAA01026; Wed, 21 Apr 1999 19:29:21 +0200 (MET DST) Original-To: ding@gnus.org X-Attribution: Oscar X-Face: &f0TVPZirOQ$"C[5pZkDY(1~+M1p0&edTtJPL-*?u$b(vr<1m?~iZBqp2YoDS[IyxDHVU~)KHl|Kpm"='5OF?vT]k_HQ1]|^}Pm>,;+]iJCt_-Y[S\ EpwT);2R8#[4dt8~*}$6xI4jNZM9lVHua'vIM[PEx*#cgxCVruf1zN0} In-Reply-To: Alan Shutko's message of "21 Apr 1999 10:03:18 -0500" Original-Lines: 36 User-Agent: Gnus/5.070083 (Pterodactyl Gnus v0.83) XEmacs/21.0(beta67) (20 minutes to Nikko) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:22713 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:22713 >>>>> "Alan" == Alan Shutko writes: Alan> Kai.Grossjohann@CS.Uni-Dortmund.DE writes: >> Or, we need a way to dissect a buffer into areas each of which is >> edited in a different mode. OLE, anyone? Alan> We _definately_ need this. This would make help writing javascript in Alan> html, yacc, lex, web, and tons of other places. If you figure out how Alan> to do this.... This has been more or less done already though not exactly as you would expect: look for "indirect buffers" in Emacs 20.something and XEmacs 21.2 >>From the XEmacs 21.2 NEWS file: ** You can now create "indirect buffers", like in GNU Emacs. An indirect buffer shares its text with another buffer ("base buffer"), but has its own major mode, local variables, extents, and narrowing. An indirect buffer has a name of its own, distinct from those of the base buffer and all other buffers. An indirect buffer cannot itself be visiting a file (though its base buffer can be). The base buffer cannot itself be indirect. Use (make-indirect-buffer BASE-BUFFER NAME) to make an indirect buffer named NAME whose base is BASE-BUFFER. If BASE-BUFFER is an indirect buffer, its base buffer is used as the base for the new buffer. You can make an indirect buffer current, or switch to it in a window, just as you would a non-indirect buffer. The function `buffer-base-buffer', given an indirect buffer, returns its base buffer. It returns nil when given an ordinary buffer (not indirect). `buffer-indirect-children' returns a list of the indirect children of a base buffer. Oscar