From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.help Subject: Re: How to edit "mixed" (e.g. HTML/JavaScript) files? Date: Thu, 08 Mar 2007 19:14:34 +0100 Organization: disorganized Message-ID: <87649bhab9.fsf@localhorst.mine.nu> References: <87hcsw2hhw.fsf@gmail.com> <87wt1sgdjs.fsf@localhorst.mine.nu> <45F00F30.60707@gmail.com> <87slcfhlks.fsf@localhorst.mine.nu> <45F0349D.5060602@gmail.com> <87k5xrhejs.fsf@localhorst.mine.nu> <45F0449F.8010308@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1173378226 25445 80.91.229.12 (8 Mar 2007 18:23:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Mar 2007 18:23:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 08 19:23:39 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HPNH7-0006PP-EC for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Mar 2007 19:23:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPNHL-00008W-DD for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Mar 2007 13:23:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HPNH9-00008L-NZ for help-gnu-emacs@gnu.org; Thu, 08 Mar 2007 13:23:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HPNH7-00007t-4X for help-gnu-emacs@gnu.org; Thu, 08 Mar 2007 13:23:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HPNH6-00007q-Re for help-gnu-emacs@gnu.org; Thu, 08 Mar 2007 13:23:37 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HPNGr-00040H-SY for help-gnu-emacs@gnu.org; Thu, 08 Mar 2007 13:23:22 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HPNGp-0002F1-8D for help-gnu-emacs@gnu.org; Thu, 08 Mar 2007 19:23:19 +0100 Original-Received: from e178028146.adsl.alicedsl.de ([85.178.28.146]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Mar 2007 19:23:19 +0100 Original-Received: from david.hansen by e178028146.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Mar 2007 19:23:19 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 16 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: e178028146.adsl.alicedsl.de Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) Cancel-Lock: sha1:feHC0T8zeJxO5SGiv5JsKHDyTyI= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:41809 Archived-At: On Thu, 08 Mar 2007 18:15:11 +0100 Lennart Borgman wrote: > David Hansen wrote: >> This always implies unnecessary refontification which IMHO is *very* >> bad. > > I can see your point. But I meant that if a mode where restricted to > just a part of a buffer it would not be that bad. But there are no > structures within Emacs to support that - or multi-mode might be a > way to do it. I know it's considered to be bad style but i have edited .jsp's with hundreds of lines of java code on top of it. Switching the mode for these regions just isn't acceptable for me. David