help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

did syntax for setq auto-mode-alist or regexp change with 21.3.1?


From: Tom
Subject: did syntax for setq auto-mode-alist or regexp change with 21.3.1?
Date: 30 Jun 2005 11:09:16 -0700
User-agent: G2/0.2

This worked with emacs 20.7.1 on Linux

(setq auto-mode-alist (cons
`("makefile\\(\\.aix\\|\\.hp\\|\\.sol\\|\\.linux\\|\\.gcc\\)\\'".makefile-mode)
auto-mode-alist))

With emacs 21.3.1 on Linux I get this error for the above syntax:

File mode specification error: (invalid-function (\.makefile-mode))

I had to do it this way to get it to work in emacs 21.3.1 on Linux

(setq auto-mode-alist (cons `( "makefile\\.linux" . makefile-mode )
auto-mode-alist ))
(setq auto-mode-alist (cons `( "makefile\\.sol" . makefile-mode )
auto-mode-alist ))
(setq auto-mode-alist (cons `( "makefile\\.aix" . makefile-mode )
auto-mode-alist ))
(setq auto-mode-alist (cons `( "makefile\\.hp" . makefile-mode )
auto-mode-alist ))
(setq auto-mode-alist (cons `( "makefile\\.gcc" . makefile-mode )
auto-mode-alist ))

Any ideas why the first form no longer works?

Thank you,

Tom M.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]