unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: help-gnu-emacs@gnu.org
Subject: Re: can't find library nxml-mode.el
Date: Wed, 08 Jun 2011 10:02:29 +0200	[thread overview]
Message-ID: <4DEF2C95.2080508@easy-emacs.de> (raw)
In-Reply-To: <BANLkTikDHXByC6K1qO__W8=ZTLr7=6fxuw@mail.gmail.com>

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 "<Script>""</Script>" 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))
>




  reply	other threads:[~2011-06-08  8:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-05  2:23 can't find library nxml-mode.el pablo platt
2011-06-08  8:02 ` Andreas Röhler [this message]
2011-06-08 14:46   ` PJ Weisberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DEF2C95.2080508@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).