Re: A few questions

Stephen Langer <[email protected]>
Newsgroups gmane.emacs.nxml.general
Message-ID <[email protected]>
On Oct 15, 2009, at 12:15 PM, Florent Georges wrote:

>>>
>>>   What's within your magic-mode-alist variable?
>
>> I think I have auto-mode-alist instead of magic-mode-alist.
>
>  They are two distinct variables.  auto-mode-alist is used to choose  
> the mode from the file name, while magic-mode-alist is used to  
> choose the mode from the file content (in case of XML, this is  
> interesting if the file starts with <?xml...)
>
>> I don't know much about elisp.  How do I print the value?
>
>  "C-h v magic-mode-alist RET" will print the variable documentation  
> alongside its value on your Emacs at that time.


magic-mode-alist is nil.

I've found the problem, and of course it had nothing to do with auto- 
mode-alist or magic-mode-alist.  The file contained local variable  
values for psgml and the mode was being set in that section.   It's  
been a long time since I edited these files...

Thanks for your help.

  -- Steve

--
-- [email protected]                    Tel: (301) 975-5423 --
-- http://math.nist.gov/mcsd/Staff/SLanger/   Fax: (301) 975-3553 --
-- NIST, 100 Bureau Drive, Stop 8910, Gaithersburg, Md 20899-8910 --

-- "I don't think this will work.  That's why it's science."      --
--                     Naomi Langer (age 6),  17 Feb 2003         --







------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/emacs-nxml-mode/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.