From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: How to redefine color theme of nXhtml? Date: Thu, 15 Oct 2009 12:26:01 +0200 Message-ID: References: <83r5t6clw6.fsf@ymail.invalid> <838wfdxk4i.fsf@ymail.invalid> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1255602992 17041 80.91.229.12 (15 Oct 2009 10:36:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Oct 2009 10:36:32 +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 Oct 15 12:36:24 2009 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 1MyNgr-0003EV-FB for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Oct 2009 12:36:13 +0200 Original-Received: from localhost ([127.0.0.1]:45382 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyNgq-0004fG-J6 for geh-help-gnu-emacs@m.gmane.org; Thu, 15 Oct 2009 06:36:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MyNXR-0007bg-RS for help-gnu-emacs@gnu.org; Thu, 15 Oct 2009 06:26:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MyNXL-0007Vg-8f for help-gnu-emacs@gnu.org; Thu, 15 Oct 2009 06:26:27 -0400 Original-Received: from [199.232.76.173] (port=43007 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyNXK-0007VH-Px for help-gnu-emacs@gnu.org; Thu, 15 Oct 2009 06:26:22 -0400 Original-Received: from mail-yx0-f191.google.com ([209.85.210.191]:53264) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MyNXK-0002h6-AG for help-gnu-emacs@gnu.org; Thu, 15 Oct 2009 06:26:22 -0400 Original-Received: by yxe29 with SMTP id 29so623099yxe.14 for ; Thu, 15 Oct 2009 03:26:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=M1Mz9SKPU9RLzIyQhX1OhQfTayyR9Fio/F/kc8AAtpk=; b=UC2XpHRPJhLO+yE7MMVSOusd5PlAKbEtDV84f3bFblWI3ZlB+LE6fmMEtRMDrLo0vA xKbnPDk7nwntbmtsp1V30ECpambHqm5s/BURSw739m+1ssxPYm92GPBC8ifQ+Uf5WSw7 pSbbEwyZQHz/fOUwRLHr0aMjNB5FeqoENq+dM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=sTodfthV0XsoCa28/E0bMDz8Z1gKR3IOG2eoHXjVQKDNIwCmyGL67Xn4OX2EW4cydp Z9dg8P7ZdYZxtPCmP8q8zGZaFXkygNgrcacQfrLcAGWCisyE++G43N8QxAFQsZlzjLpp 8XVZHzWDq5QlVNFq4wRFKfokjnQvxPnTCQj1s= Original-Received: by 10.101.186.12 with SMTP id n12mr8510377anp.111.1255602381107; Thu, 15 Oct 2009 03:26:21 -0700 (PDT) In-Reply-To: <838wfdxk4i.fsf@ymail.invalid> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:68987 Archived-At: On Thu, Oct 15, 2009 at 8:10 AM, Water Lin wrote: > > But I found a very strange question. > > When I open a PHP or html file first time, Emacs will use nXhtml for this > file. But then I open another PHP or html files, Emacs will use php-mode > bu not nXhtml mode for this file. > > How strange this is! > > Why? This happens because loading some elisp tells Emacs to use a new major mode for a file extension. In this case php-mode.el probably tells Emacs to use php-mode for .php-files. I have done a workaround for this in nXhtml. Which version are you using? (BTW, everybody using nXhtml should upgrade to the latest version, 1.97!) Are you using the php-mode.el that comes with nXhtml or some other version?