From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: can't find library nxml-mode.el Date: Wed, 08 Jun 2011 10:02:29 +0200 Message-ID: <4DEF2C95.2080508@easy-emacs.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1307520244 7545 80.91.229.12 (8 Jun 2011 08:04:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Jun 2011 08:04:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 08 10:04:00 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QUDk7-000696-Ht for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Jun 2011 10:03:59 +0200 Original-Received: from localhost ([::1]:49143 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUDk6-00048z-27 for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Jun 2011 04:03:58 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUDir-00048u-W0 for help-gnu-emacs@gnu.org; Wed, 08 Jun 2011 04:02:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QUDiq-00041e-QJ for help-gnu-emacs@gnu.org; Wed, 08 Jun 2011 04:02:41 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.187]:60686) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUDiq-000415-DO for help-gnu-emacs@gnu.org; Wed, 08 Jun 2011 04:02:40 -0400 Original-Received: from [192.168.178.27] (brln-4db9d1ec.pool.mediaWays.net [77.185.209.236]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0MPbvB-1QYMaD3aAj-004elw; Wed, 08 Jun 2011 10:02:37 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.17) Gecko/20110414 SUSE/3.1.10 Thunderbird/3.1.10 In-Reply-To: X-Provags-ID: V02:K0:fA713Pdyh2BSXa4gSD2/sPIu9v40ml4AZu4SXfNEYza QNMB8f/6gjMN0zYr62PG+9vrjT5ZBu07WeQ9YA6ZGf2b03ZAeQ zEAYbw7A5LNu8AzMNn24X1fTuNzovw6Rx0fUBBxYCn4Fddq1Ho CxGk32goCeCwX6Is3Ic341kFmevDk6tYrAqFIHE7D3+bKPUeDL zgx4Sid9IlGW/pJse8oP2wp863dn1fulDTd5sajiv8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 212.227.126.187 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81309 Archived-At: Am 05.06.2011 04:23, schrieb pablo platt: > Hi > > I'm using the emacs 23.2 package on ubuntu 11.04 > I'm trying to use mxml + actionscript mode using MuMaMo as explained here: > http://transfinite.wordpress.com/2009/04/24/multiple-modes-for-mxml-and-actionscript-in-emacs/ > > When trying to use TAB inside an .mxml file I'm getting an error: > emacs can't find library /usr/share/emacs/23.2/lisp/nxml/nxml-mode.el > I don't see nxml-mode.el in that path but I do see nxml-mode.elc > I've copied the nxml-mode.el file from the emacs source and the error > disappeared. Hi, thanks pointing at that. Think it's just an error in your configuration, As nxml-mode is installed already, there is no need to load this file. Just do M-x nxml-mode resp. (require 'nxml-mode) BTW Emacs doesn't see this file because it's zipped probably. Should exist as "nxml-mode.el.gz" In cases, you want to install some new stuff, AFAIU the recommended way to add mode-files is adding it's directory to Eamcs' load-path and afterwards require it: (add-to-list 'load-path "MODE-DIRECTORY") (require 'MY_NEW_MODE') Andreas -- https://code.launchpad.net/~a-roehler/python-mode/components-python-mode https://code.launchpad.net/s-x-emacs-werkstatt/ > > I'm new to emacs so I don't know if this is a bug in emacs, one of the > packages or my configuration. > Please see below the way I setup emacs. > > Thanks > > In ~/.emacs.d/ I've included the actionscript-mode from here > http://austin.pettomato.com/actionscript-mode.el > and nxhtml from > http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html > > My .emacs file looks like this: > > (load "~/.emacs.d/nxhtml/autostart.el") > > (load-file "~/.emacs.d/actionscript-mode.el") > (autoload 'actionscript-mode "javascript" nil t) > (add-to-list 'auto-mode-alist '("\\.as\\'" . actionscript-mode)) > > (defun mumamo-chunk-mxml-script (pos min max) > "Find ... , return range and actionscript-mode." > (mumamo-quick-static-chunk pos min max "" nil > 'actionscript-mode nil)) > > (define-mumamo-multi-major-mode mxml-actionscript-mumamo-mode > "Turn on multiple major modes for MXML files with main mode `nxml-mode'. > This covers inlined Actionscript." > ("MXML Actionscript Family" nxml-mode > (mumamo-chunk-mxml-script > ))) > > (add-to-list 'auto-mode-alist '("\\.mxml$" . mxml-actionscript-mumamo)) >