From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kj Newsgroups: gmane.emacs.help Subject: How to edit "mixed" (e.g. HTML/JavaScript) files? Date: Tue, 6 Mar 2007 19:45:54 +0000 (UTC) Organization: none Message-ID: NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1173213667 8256 80.91.229.12 (6 Mar 2007 20:41:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Mar 2007 20:41:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 06 21:41:01 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 1HOgSz-0003zT-2V for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Mar 2007 21:41:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HOgSz-0005Fr-D3 for geh-help-gnu-emacs@m.gmane.org; Tue, 06 Mar 2007 15:41:01 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newscon04.news.prodigy.net!prodigy.net!news.linkpendium.com!news.linkpendium.com!panix!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: panix3.panix.com Original-X-Trace: reader2.panix.com 1173210354 29084 166.84.1.3 (6 Mar 2007 19:45:54 GMT) Original-X-Complaints-To: abuse@panix.com Original-NNTP-Posting-Date: Tue, 6 Mar 2007 19:45:54 +0000 (UTC) X-No-Confirm: yes User-Agent: nn/6.7.2 Original-Xref: shelby.stanford.edu gnu.emacs.help:146127 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:41731 Archived-At: It often happens that a single file must contain code corresponding to two different syntaxes. For example, an HTML file with embedded JavaScript or CSS. Is there a way to *locally* override the mode of a file and replace it with a different mode? If not, is there a good way to deal with such situations (other than avoiding them altogether)? Thanks! kj -- NOTE: In my address everything before the first period is backwards; and the last period, and everything after it, should be discarded.