diff options
| author | Andreas Schwab | 2001-11-15 15:50:10 +0000 |
|---|---|---|
| committer | Andreas Schwab | 2001-11-15 15:50:10 +0000 |
| commit | 1997815f8b9a29dff56e7479cd90e315c962e6e0 (patch) | |
| tree | d149bb74b0fd8d6c58f23d307c62610c05f8e6c5 | |
| parent | 7fab92237abbb5db795742245d6ca98349ca8121 (diff) | |
| download | emacs-1997815f8b9a29dff56e7479cd90e315c962e6e0.tar.gz emacs-1997815f8b9a29dff56e7479cd90e315c962e6e0.zip | |
(ada-add-extensions): Quote regexp special
characters and append anchor to pattern added to auto-mode-alist.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/ada-mode.el | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b17cc6fae70..b3c58ef4df9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2001-11-15 Andreas Schwab <schwab@suse.de> | ||
| 2 | |||
| 3 | * progmodes/ada-mode.el (ada-add-extensions): Quote regexp special | ||
| 4 | characters and append anchor to pattern added to auto-mode-alist. | ||
| 5 | |||
| 1 | 2001-11-15 Stefan Monnier <monnier@cs.yale.edu> | 6 | 2001-11-15 Stefan Monnier <monnier@cs.yale.edu> |
| 2 | 7 | ||
| 3 | * server.el (server-process-filter): Run pore/post-comment-hook | 8 | * server.el (server-process-filter): Run pore/post-comment-hook |
diff --git a/lisp/progmodes/ada-mode.el b/lisp/progmodes/ada-mode.el index 85530df2284..4d29dd1650a 100644 --- a/lisp/progmodes/ada-mode.el +++ b/lisp/progmodes/ada-mode.el | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | ;; Markus Heritsch <Markus.Heritsch@studbox.uni-stuttgart.de> | 7 | ;; Markus Heritsch <Markus.Heritsch@studbox.uni-stuttgart.de> |
| 8 | ;; Emmanuel Briot <briot@gnat.com> | 8 | ;; Emmanuel Briot <briot@gnat.com> |
| 9 | ;; Maintainer: Emmanuel Briot <briot@gnat.com> | 9 | ;; Maintainer: Emmanuel Briot <briot@gnat.com> |
| 10 | ;; Ada Core Technologies's version: $Revision: 1.44 $ | 10 | ;; Ada Core Technologies's version: $Revision: 1.45 $ |
| 11 | ;; Keywords: languages ada | 11 | ;; Keywords: languages ada |
| 12 | 12 | ||
| 13 | ;; This file is part of GNU Emacs. | 13 | ;; This file is part of GNU Emacs. |
| @@ -937,8 +937,10 @@ name" | |||
| 937 | (setcdr tmp (list (cons body (cadr tmp)))) | 937 | (setcdr tmp (list (cons body (cadr tmp)))) |
| 938 | (add-to-list 'ada-other-file-alist (list reg (list body))))) | 938 | (add-to-list 'ada-other-file-alist (list reg (list body))))) |
| 939 | 939 | ||
| 940 | (add-to-list 'auto-mode-alist (cons spec 'ada-mode)) | 940 | (add-to-list 'auto-mode-alist |
| 941 | (add-to-list 'auto-mode-alist (cons body 'ada-mode)) | 941 | (cons (concat (regexp-quote spec) "\\'") 'ada-mode)) |
| 942 | (add-to-list 'auto-mode-alist | ||
| 943 | (cons (concat (regexp-quote body) "\\'") 'ada-mode)) | ||
| 942 | 944 | ||
| 943 | (add-to-list 'ada-spec-suffixes spec) | 945 | (add-to-list 'ada-spec-suffixes spec) |
| 944 | (add-to-list 'ada-body-suffixes body) | 946 | (add-to-list 'ada-body-suffixes body) |