+2001-11-15 Andreas Schwab <schwab@suse.de>
+
+ * progmodes/ada-mode.el (ada-add-extensions): Quote regexp special
+ characters and append anchor to pattern added to auto-mode-alist.
+
2001-11-15 Andre Spiegel <spiegel@gnu.org>
* vc.el: Documentation fixes.
;; Markus Heritsch <Markus.Heritsch@studbox.uni-stuttgart.de>
;; Emmanuel Briot <briot@gnat.com>
;; Maintainer: Emmanuel Briot <briot@gnat.com>
-;; Ada Core Technologies's version: $Revision: 1.43 $
+;; Ada Core Technologies's version: $Revision: 1.43.4.1 $
;; Keywords: languages ada
;; This file is part of GNU Emacs.
(setcdr tmp (list (cons body (cadr tmp))))
(add-to-list 'ada-other-file-alist (list reg (list body)))))
- (add-to-list 'auto-mode-alist (cons spec 'ada-mode))
- (add-to-list 'auto-mode-alist (cons body 'ada-mode))
+ (add-to-list 'auto-mode-alist
+ (cons (concat (regexp-quote spec) "\\'") 'ada-mode))
+ (add-to-list 'auto-mode-alist
+ (cons (concat (regexp-quote body) "\\'") 'ada-mode))
(add-to-list 'ada-spec-suffixes spec)
(add-to-list 'ada-body-suffixes body)