From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: [Fwd: Modes within modes] Date: Fri, 07 Nov 2003 15:20:23 -0700 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3FAC1AA7.3030208@yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090107080100020400050508" X-Trace: sea.gmane.org 1068243732 16629 80.91.224.253 (7 Nov 2003 22:22:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Nov 2003 22:22:12 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 07 23:22:08 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AIEzY-0002mk-00 for ; Fri, 07 Nov 2003 23:22:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AIFwt-0000or-BQ for geb-bug-gnu-emacs@m.gmane.org; Fri, 07 Nov 2003 18:23:27 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AIFvu-0000Hh-Nw for bug-gnu-emacs@prep.ai.mit.edu; Fri, 07 Nov 2003 18:22:26 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AIFvK-0008LZ-9B for bug-gnu-emacs@prep.ai.mit.edu; Fri, 07 Nov 2003 18:22:21 -0500 Original-Received: from [193.4.58.12] (helo=horus.isnic.is) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AIFvH-0008Cd-IB for bug-gnu-emacs@prep.ai.mit.edu; Fri, 07 Nov 2003 18:21:47 -0500 Original-Received: from mail.fu-berlin.de (root@mail.fu-berlin.de [160.45.11.165]) by horus.isnic.is (8.12.9p2/8.12.9/isnic) with ESMTP id hA7MKHcs072591 for ; Fri, 7 Nov 2003 22:20:18 GMT (envelope-from ihs_4664@yahoo.com) Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Fri, 7 Nov 2003 23:20:16 +0100 (MET) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Fri, 7 Nov 2003 23:20:16 +0100 (MET) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 60 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: news.uni-berlin.de 1068243616 48172500 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:6114 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:6114 This is a multi-part message in MIME format. --------------090107080100020400050508 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Perhaps indirect buffers ought to have local text properties and overlays... -- Kevin Rodgers --------------090107080100020400050508 Content-Type: message/rfc822; name="Re: Modes within modes" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Re: Modes within modes" Path: uni-berlin.de!fu-berlin.de!peer01.cox.net!peer02.cox.net!cox.net!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr11.news.prodigy.com.POSTED!not-for-mail Newsgroups: gnu.emacs.help Subject: Re: Modes within modes References: From: Peter Lee Message-ID: Organization: ~ User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:28Uq3+eLyMo/gT/UPPjuqzOkrLE= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 216.62.199.3 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr11.news.prodigy.com 1068238331 ST000 216.62.199.3 (Fri, 07 Nov 2003 15:52:11 EST) NNTP-Posting-Date: Fri, 07 Nov 2003 15:52:11 EST X-UserInfo1: Q[R_PJONEJW[STT^BJJNOFXBBZ\LPCXLLBWLOOAFBATBTSUBYFWEAE[YJLYPIWKHTFCMZKVMB^[Z^DOBRVVMOSPFHNSYXVDIE@X\BUC@GTSX@DL^GKFFHQCCE\G[JJBMYDYIJCZM@AY]GNGPJD]YNNW\GSX^GSCKHA[]@CCB\[@LATPD\L@J\\PF]VR[QPJN Date: Fri, 07 Nov 2003 20:52:11 GMT Xref: uni-berlin.de gnu.emacs.help:126909 >>>> Gareth Rees writes: Gareth> The simplest way to do this is to use Gareth> 'clone-indirect-buffer' (C-x 4 c) and use A-mode in the Gareth> original buffer and B-mode in the cloned buffer. Put the Gareth> two buffers in adjacent windows and switch between them Gareth> when you want the features of the other mode. See the Gareth> Info node (emacs)Indirect Buffers. This method seems to partially work. I can clone an html buffer (in html mode) and switch to the cloned buffer and issue M-x text-mode. The modes are correct for each buffer however they seem to share fontification. So if I do M-x font-lock-fontify-buffer while in the text-mode buffer I see the changes in both. Same if I issue the command in the html-mode buffer... the text-mode buffer then gets fontified for html. I'm using cvs, so perhaps it's just my version. If this is a known limitation of clone-indirect however, then it wouldn't be as useful a method for multiple modes (at least for me). --------------090107080100020400050508 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bug-gnu-emacs mailing list Bug-gnu-emacs@gnu.org http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs --------------090107080100020400050508--