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.

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

Reply via email to