diff options
| author | Masatake YAMATO | 2006-01-12 10:09:44 +0000 |
|---|---|---|
| committer | Masatake YAMATO | 2006-01-12 10:09:44 +0000 |
| commit | 4ec7bdfdf7169d13613347b9680b1bca7b64df81 (patch) | |
| tree | 7b04a69980e3eca75b5e2b9c2d23a933a2c9e3dc | |
| parent | 2026418cf3f153c6f94884eacf6eabda31141ca9 (diff) | |
| download | emacs-4ec7bdfdf7169d13613347b9680b1bca7b64df81.tar.gz emacs-4ec7bdfdf7169d13613347b9680b1bca7b64df81.zip | |
* progmodes/ld-script.el (auto-mode-alist): Support suffix conventions used in netbsd and eCos.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/ld-script.el | 8 |
2 files changed, 12 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 53adc193d6a..94c9abeea1c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2006-01-12 Masatake YAMATO <jet@gyve.org> | ||
| 2 | |||
| 3 | * progmodes/ld-script.el (auto-mode-alist): Support | ||
| 4 | suffix conventions used in netbsd and eCos. | ||
| 5 | |||
| 1 | 2006-01-11 Luc Teirlinck <teirllm@auburn.edu> | 6 | 2006-01-11 Luc Teirlinck <teirllm@auburn.edu> |
| 2 | 7 | ||
| 3 | * cus-edit.el (custom-reset-menu, custom-buffer-create-internal) | 8 | * cus-edit.el (custom-reset-menu, custom-buffer-create-internal) |
diff --git a/lisp/progmodes/ld-script.el b/lisp/progmodes/ld-script.el index 4dbbe0faa18..989439695ae 100644 --- a/lisp/progmodes/ld-script.el +++ b/lisp/progmodes/ld-script.el | |||
| @@ -125,8 +125,14 @@ | |||
| 125 | cpp-font-lock-keywords) | 125 | cpp-font-lock-keywords) |
| 126 | "Default font-lock-keywords for `ld-script-mode'.") | 126 | "Default font-lock-keywords for `ld-script-mode'.") |
| 127 | 127 | ||
| 128 | ;; Linux-2.6.9 uses some different suffix for linker scripts: | ||
| 129 | ;; "ld", "lds", "lds.S", "lds.in", "ld.script", and "ld.script.balo". | ||
| 130 | ;; eCos uses "ld" and "ldi". | ||
| 131 | ;; Netbsd uses "ldscript.*". | ||
| 128 | ;;;###autoload | 132 | ;;;###autoload |
| 129 | (add-to-list 'auto-mode-alist '("\\.ld[s]?\\>" . ld-script-mode)) | 133 | (add-to-list 'auto-mode-alist '("\\.ld[si]?\\>" . ld-script-mode)) |
| 134 | (add-to-list 'auto-mode-alist '("ld[.]?script\\>" . ld-script-mode)) | ||
| 135 | |||
| 130 | ;;;###autoload | 136 | ;;;###autoload |
| 131 | (add-to-list 'auto-mode-alist '("\\.x[bdsru]?[cn]?$" . ld-script-mode)) | 137 | (add-to-list 'auto-mode-alist '("\\.x[bdsru]?[cn]?$" . ld-script-mode)) |
| 132 | 138 | ||